/* ============================================================
   DESIGN SYSTEM — Lead Gen Network
   Colors: Navy #1A2F5E | Steel Blue #2E6DA4 | Gold #C9922A | White #FFFFFF
   ============================================================ */

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

:root {
  --navy: #1A2F5E;
  --steel: #2E6DA4;
  --gold: #C9922A;
  --gold-light: #F5E6CC;
  --gold-hover: var(--gold-hover);
  --white: #FFFFFF;
  --text: #1A1A1A;
  --light-gray: #F5F7FA;
  --border: #E2E8F0;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --radius: 6px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

/* Typography */
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; color: var(--navy); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
p { margin-bottom: 1.25rem; color: #374151; line-height: 1.75; }
a { color: var(--steel); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* Section background classes (explicit, replaces nth-child alternation) */
.section-white { background: var(--white); }
.section-gray { background: var(--light-gray); }
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.85); }
.section-dark .section-heading::after { background: var(--gold); }

/* Section heading underline */
.section-heading {
  display: inline-block;
  margin-bottom: 1.5rem;
}
.section-heading::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: var(--gold);
  margin-top: 0.6rem;
  border-radius: 2px;
}

/* Text utility */
.text-body { max-width: 680px; }

/* Navigation */
nav {
  background: var(--navy);
  padding: 0.875rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.nav-logo {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.nav-phone {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}
.nav-phone:hover { color: var(--white); text-decoration: none; }
.nav-cta {
  background: var(--gold);
  color: var(--white);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-hover); text-decoration: none; }
@media (max-width: 600px) {
  .nav-phone { display: none; }
  .nav-inner { flex-wrap: wrap; }
}

/* Hero — two-column with embedded form */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #243f7a 100%);
  color: var(--white);
  padding: 4rem 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-content h1 { color: var(--white); margin-bottom: 1rem; }
.hero-content .subheadline {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}
.hero-trust-list {
  list-style: none;
  margin-bottom: 1.5rem;
}
.hero-trust-list li {
  padding: 0.3rem 0;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}
.hero-trust-list li::before {
  content: "✓ ";
  color: var(--gold);
  font-weight: 700;
}
.hero-phone-cta {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}
.hero-phone-cta a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}
.hero-phone-cta a:hover { text-decoration: underline; }

/* Hero form card */
.hero-form-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.hero-form-card h3 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.hero-form-card .form-group { margin-bottom: 1rem; }
.hero-form-card .form-group label { font-size: 0.85rem; }
.hero-form-card .btn-submit {
  width: 100%;
  background: var(--gold);
  color: var(--white);
  padding: 0.875rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
  margin-top: 0.5rem;
}
.hero-form-card .btn-submit:hover { background: var(--gold-hover); }
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.5rem;
}
.consent-check input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }

/* Legacy hero CTA row (kept for backward compat) */
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero .subheadline { font-size: 1.25rem; opacity: 0.9; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
  background: var(--gold);
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(201,146,42,0.3);
}
.btn-primary:hover { background: var(--gold-hover); text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--white);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--white); color: var(--navy); text-decoration: none; }

/* Trust Bar */
.trust-bar {
  background: var(--gold);
  color: var(--white);
  padding: 1rem 0;
  text-align: center;
}
.trust-bar ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 0.95rem;
}
.trust-bar li::before { content: "✓ "; }

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.service-card h3 { color: var(--navy); }

/* Service item list (gold checkmark) */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}
.service-item-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
}
.service-item-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

/* Alternating service block (services page) */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse .service-block-img { order: 2; }
.service-block.reverse .service-block-content { order: 1; }
.service-block h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.service-block-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}
.service-block-link:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .service-block { grid-template-columns: 1fr; }
  .service-block.reverse .service-block-img { order: 0; }
  .service-block.reverse .service-block-content { order: 0; }
}

/* Sub-services (from config) */
.sub-service {
  border-left: 3px solid var(--steel);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--light-gray);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Why Choose Us */
.why-list { list-style: none; margin-top: 1.5rem; }
.why-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  padding-left: 1.75rem;
  position: relative;
}
.why-list li::before {
  content: "→";
  color: var(--steel);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* Trust Signals */
.trust-signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.trust-signal {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.trust-signal .icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--gold);
}
.trust-signal h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }

/* Seasonal Banner */
.seasonal-banner {
  background: var(--steel);
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.seasonal-banner h3 { color: var(--white); }

/* Form */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--steel);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc2626;
}
.field-error { color: #dc2626; font-size: 0.8rem; margin-top: 0.25rem; display: none; }
.field-error.visible { display: block; }
.form-error-message {
  background: #fef2f2;
  border: 1px solid #dc2626;
  color: #dc2626;
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  display: none;
}
.form-error-message.visible { display: block; }
.honeypot { display: none !important; }

/* Contact page phone */
.contact-phone {
  text-align: center;
  padding: 2.5rem 0;
  background: var(--navy);
  color: var(--white);
  margin-bottom: 0;
}
.contact-phone p { color: rgba(255,255,255,0.8); margin-bottom: 0.5rem; }
.contact-phone a {
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  text-decoration: none;
}

/* Service Area list */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.area-tag {
  background: var(--light-gray);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-align: center;
}
.areas-not-served { margin-top: 2rem; font-size: 0.95rem; color: #6b7280; }

/* CTA Section */
.cta-section {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }

/* FAQ */
.faq-list { margin-top: 1.5rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.125rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  gap: 1rem;
}
.faq-chevron {
  font-size: 0.75rem;
  color: var(--gold);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding-bottom: 1.25rem; color: #374151; line-height: 1.75; }

/* Split two-column layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* Image placeholder */
.img-placeholder {
  background: linear-gradient(135deg, #1A2F5E 0%, #2E6DA4 100%);
  border-radius: 10px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 3rem;
}

/* Footer */
footer {
  background: #111827;
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
}
.footer-inner { } /* wrapper class used in current HTML templates */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-brand { }
.footer-brand .footer-name {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.footer-brand .footer-phone {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  display: block;
  margin-top: 0.5rem;
}
.footer-col-heading {
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* 404 */
.error-page { text-align: center; padding: 8rem 0; }
.error-page h1 { font-size: 6rem; color: var(--steel); }

/* Thank you */
.thankyou-page { text-align: center; padding: 6rem 0; }
.thankyou-page .checkmark { font-size: 4rem; margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 768px) {
  .nav-inner { flex-direction: column; gap: 0.75rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-bar ul { gap: 1.25rem; }
  section { padding: 3rem 0; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse { direction: ltr; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
}
