@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #003366;
  --accent: #E63946;
  --bg: #f8fafc;
  --text: #0f172a;
  --border: #e2e8f0;
  --header-height: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  height: auto;
  min-height: var(--header-height);
  background: white;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  z-index: 1000;
  padding: 8px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.header-phone {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.header-phone span {
    color: var(--accent);
    font-weight: 800;
}

.btn-quote-header {
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: transform 0.2s;
}

.btn-quote-header:hover {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
  .header-actions {
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .logo {
    font-size: clamp(16px, 4vw, 18px);
  }
  .header-phone {
    font-size: 15px;
  }
  .btn-quote-header {
      padding: 8px 10px;
      font-size: 11px;
  }
}

@media (max-width: 480px) {
  header .container {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 8px;
  }
  .header-actions {
      justify-content: center;
      width: 100%;
  }
}

/* Navigation */
.main-nav {
  background: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 60px; /* Offset to stay below header on some layouts if needed, but header is sticky too */
  z-index: 999;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 12px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
  .nav-list {
    gap: 16px;
    padding: 10px 0;
    padding-left: 4px;
  }
  .nav-list li a {
    font-size: 13px;
  }
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-list li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.nav-list li a:hover {
  opacity: 1;
}

/* Main Layout */
main {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  padding: 16px;
  max-width: 1240px;
  margin: 0 auto;
}

.left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hero Container */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--primary);
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }
}

/* Hero Section */
.hero-section {
  background: var(--primary);
  color: white;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 240px;
}

.hero-section h1 {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15;
  margin: 0 0 14px 0;
  font-weight: 800;
  text-transform: uppercase;
  color: white;
}

.hero-p {
  font-size: clamp(15px, 1.4vw, 17px);
  margin-bottom: 20px;
  opacity: 1;
  max-width: 600px;
  line-height: 1.5;
  color: white;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-red {
  background: var(--accent);
  color: white;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
}

.btn-white {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid white;
  color: white;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
}

/* CTA Banner (compact in-page call-to-action) */
.cta-banner {
  background: var(--primary);
  color: white;
  padding: 24px 20px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cta-banner h2 {
  font-size: 20px;
  color: white;
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.cta-banner .btn-red {
  font-size: 16px;
  padding: 12px 24px;
}

/* Trust Strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.trust-card {
  background: white;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.service-card {
  background: white;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.service-card h3 {
  font-size: 18px;
  margin: 0;
  color: var(--primary);
  font-weight: 700;
}

.service-card p {
  font-size: 14px;
  margin: 0;
  color: #475569;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.info-box {
  background: white;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.info-box h4 {
  font-size: 14px;
  text-transform: uppercase;
  margin: 0;
  color: var(--primary);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.info-box p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: #475569;
  flex: 1;
}

/* Form Sidebar */
.form-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-form-container {
  background: white;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  position: sticky;
  top: 100px;
}

.sidebar-form-container h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: var(--text);
  font-weight: 700;
}

.sidebar-form-container p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
}

.sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-form label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: -4px;
}

.sidebar-form input,
.sidebar-form select,
.sidebar-form textarea {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
}

.sidebar-form .btn-submit {
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
  font-size: 16px;
}

.sidebar-form .btn-submit:hover {
  background: #b91c1c;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

.input-group input,
.input-group textarea {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
  width: 100%;
  font-family: inherit;
}

.btn-submit {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 14px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
  font-size: 16px;
  transition: opacity 0.2s;
}

.testimonials-box {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 16px;
  margin-top: 8px;
}

.test-card {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  color: #475569;
}

.test-card:last-child {
  border: 0;
}

/* Content Sections (for service pages) */
.content-section {
  background: white;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.content-section h2 {
  color: var(--primary);
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.25;
}

.content-section h3 {
  font-size: 17px;
  line-height: 1.3;
}

.content-section p {
  margin-bottom: 12px;
}

.list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.faq-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border: 0;
}

.faq-question {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

/* Inline Form Section */
.hero-form-section {
  background: white;
  padding: 28px 24px;
}

.hero-form-section h2 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 700;
  line-height: 1.25;
}

.hero-form-section p {
  font-size: 14px;
  color: #475569;
  margin-bottom: 16px;
}

.inline-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inline-form .btn-submit {
  margin-top: 8px;
}

.inline-form .input-group input,
.inline-form .input-group textarea {
  height: 38px;
}

@media (max-width: 600px) {
  .inline-form {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 60px 0;
  color: #475569;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.badge {
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

/* Responsiveness */
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  
  .form-sidebar {
    position: static;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding: 24px 18px;
    min-height: 0;
  }
  .hero-section h1 {
    font-size: 22px;
    margin-bottom: 10px;
  }
  .hero-p {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .hero-form-section {
    padding: 22px 18px;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }
  .trust-card {
    padding: 12px;
    font-size: 13px;
  }

  .list-grid {
    grid-template-columns: 1fr;
  }

  .btn-red, .btn-white {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .content-section {
    padding: 20px 16px;
  }
  .content-section h2 {
    font-size: 20px;
  }

  .cta-banner {
    padding: 18px 14px;
  }
  .cta-banner h2 {
    font-size: 17px;
  }

  footer {
    padding: 40px 0;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

