/* ============================================
   Mile High Locating — Global Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1B3A5C;
  --navy-deep: #0f2235;
  --navy-light: #2a5280;
  --navy-faint: rgba(27, 58, 92, 0.06);
  --gold: #F5B800;
  --gold-hover: #e0a800;
  --gold-faint: #fdf6dc;
  --sky: #4AABDB;
  --sky-faint: #e8f4fb;
  --red-orange: #D94F3D;
  --red-faint: #fceae8;
  --white: #FAFAFA;
  --bg: #FFFFFF;
  --text: #2D2D2D;
  --text-light: #4a5568;
  --text-muted: #718096;
  --border: #e2e6ea;
  --border-strong: #cbd2d9;
  --shadow-sm: 0 1px 3px rgba(27, 58, 92, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 58, 92, 0.08);
  --shadow-lg: 0 8px 32px rgba(27, 58, 92, 0.10);
  --shadow-xl: 0 16px 48px rgba(27, 58, 92, 0.12);
  --radius: 10px;
  --radius-lg: 14px;
  --transition: 0.25s cubic-bezier(0.25, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--sky); }

/* --- Focus styles (accessibility) --- */
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { max-width: 72ch; }

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- SVG Icon System --- */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;
}

.icon--lg {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  padding: 10px;
}

.icon--gold { background: var(--gold-faint); color: #b8860b; }
.icon--sky { background: var(--sky-faint); color: #2980b9; }
.icon--red { background: var(--red-faint); color: #c0392b; }
.icon--navy { background: var(--navy-faint); color: var(--navy); }

/* --- Utility Divider (3 colored lines) --- */
.utility-divider {
  display: flex;
  gap: 0;
  height: 4px;
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
}

.utility-divider span {
  flex: 1;
  display: block;
}

.utility-divider span:nth-child(1) { background: var(--gold); }
.utility-divider span:nth-child(2) { background: var(--sky); }
.utility-divider span:nth-child(3) { background: var(--red-orange); }

.utility-divider--short { max-width: 200px; }
.utility-divider--center { margin-left: auto; margin-right: auto; }

/* =========================================
   HEADER / NAV
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 24px;
}

.header-logo .logo-icon {
  height: 40px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.header-logo:hover .logo-text {
  color: var(--navy);
}

@media (max-width: 580px) {
  .logo-text { display: none; }
}

.footer-logo-icon {
  height: 52px;
  width: auto;
  margin-bottom: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--navy-faint);
  color: var(--navy);
}

.nav-links a.active {
  background: rgba(27, 58, 92, 0.10);
  box-shadow: inset 0 -2px 0 var(--navy);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy-deep) !important;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-call:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 184, 0, 0.3);
  color: var(--navy-deep) !important;
}

.btn-call svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Mobile Nav */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .hamburger {
    display: flex;
    margin-left: auto; /* push to right edge of header */
  }

  /* Nav wrapper has no natural size (nav-links is position:fixed),
     so just ensure it doesn't affect flex layout */
  .site-header nav {
    position: absolute;
    width: 0;
    height: 0;
    overflow: visible;
  }

  .nav-links {
    position: fixed;
    top: 62px; /* below the sticky header */
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 12px 20px 24px;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s var(--ease-out-expo), opacity 0.25s ease;
    pointer-events: none;
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 1.05rem;
    width: 100%;
    display: block;
  }

  .nav-links .btn-call {
    margin-top: 10px;
    justify-content: center;
    padding: 14px 20px;
  }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 184, 0, 0.3);
  color: var(--navy-deep);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid rgba(250, 250, 250, 0.4);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(250, 250, 250, 0.1);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  filter: brightness(0.3) saturate(0.6);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15, 34, 53, 0.92) 0%,
    rgba(27, 58, 92, 0.78) 50%,
    rgba(15, 34, 53, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  margin-bottom: 16px;
  max-width: 680px;
  line-height: 1.1;
}

.hero p {
  color: rgba(250, 250, 250, 0.8);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================
   SECTIONS
   ========================================= */
.section {
  padding: clamp(48px, 8vw, 80px) 0;
}

.section--sm {
  padding: clamp(32px, 5vw, 48px) 0;
}

.section--gray { background: #f7f8fa; }
.section--navy { background: var(--navy); }
.section--navy-deep { background: var(--navy-deep); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 { margin-bottom: 10px; }

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin: 0 auto;
}

.section-header--left {
  text-align: left;
}

.section-header--left p {
  margin: 0;
}

/* =========================================
   HOME — "Why Private Locates Matter" (Bento)
   ========================================= */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow var(--transition);
}

.bento-card:hover {
  box-shadow: var(--shadow-md);
}

.bento-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 36px 32px;
  background: var(--navy);
  border-color: var(--navy);
}

.bento-card--featured h3 {
  color: var(--white);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  margin-bottom: 8px;
}

.bento-card--featured p {
  color: rgba(250, 250, 250, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
}

.bento-card--featured .icon--lg {
  width: 56px;
  height: 56px;
  background: rgba(245, 184, 0, 0.15);
  color: var(--gold);
}

.bento-card:not(.bento-card--featured) {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.bento-card .bento-text h3 {
  margin-bottom: 8px;
}

.bento-card .bento-text p {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card--featured {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .bento-card--featured .icon--lg {
    margin: 0 auto;
  }
  .bento-card:not(.bento-card--featured) {
    flex-direction: column;
  }
}

/* =========================================
   HOME — Services Snapshot (color-coded)
   ========================================= */
.services-snapshot {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.snap-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.snap-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.snap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.snap-card--gold::before { background: var(--gold); }
.snap-card--red::before { background: var(--red-orange); }
.snap-card--sky::before { background: var(--sky); }

.snap-card--gold:hover { border-color: var(--gold); }
.snap-card--red:hover { border-color: var(--red-orange); }
.snap-card--sky:hover { border-color: var(--sky); }

.snap-card .icon--lg { margin-bottom: 16px; }

.snap-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* Make first card taller / featured */
.snap-card:first-child {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
}

.snap-card:first-child p {
  flex: 1;
}

.snap-card p {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.snap-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: auto;
  transition: gap var(--transition), color var(--transition);
}

.snap-card--gold .card-link { color: #9a7100; }
.snap-card--red .card-link { color: #a33b2d; }
.snap-card--sky .card-link { color: #2980b9; }

.snap-card .card-link:hover { gap: 10px; }

@media (max-width: 800px) {
  .services-snapshot {
    grid-template-columns: 1fr;
  }
  .snap-card:first-child {
    grid-row: auto;
  }
}

/* =========================================
   HOME — Who We Serve
   ========================================= */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.audience-card {
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.audience-card--contractor { border-left-color: var(--navy); }
.audience-card--homeowner { border-left-color: var(--gold); }

.audience-card:hover {
  box-shadow: var(--shadow-sm);
}

.audience-card .icon--lg {
  margin-bottom: 14px;
}

.audience-card h3 { margin-bottom: 10px; }

.audience-card p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

.audience-projects {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.audience-projects li {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  padding-left: 16px;
  position: relative;
}

.audience-projects li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
}

.audience-card--contractor .audience-projects li::before { background: var(--navy-light); }
.audience-card--homeowner .audience-projects li::before { background: var(--gold); }

@media (max-width: 700px) {
  .audience-grid { grid-template-columns: 1fr; }
  .audience-projects { grid-template-columns: 1fr; }
}

/* =========================================
   HOME — Testimonials / Social Proof
   ========================================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  margin: 0;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 18px;
  left: 24px;
  font-family: 'DM Serif Display', serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.35;
}

.testimonial-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  font-style: italic;
  padding-top: 20px;
  margin-bottom: 20px;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testimonial-card footer strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.testimonial-card footer span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (max-width: 700px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* =========================================
   HOME — Trust Bar
   ========================================= */
.trust-section {
  background: var(--navy);
  padding: clamp(36px, 5vw, 52px) 0;
}

.trust-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.trust-inner .utility-divider {
  max-width: 120px;
  margin: 0 auto 24px;
}

.trust-inner p {
  color: rgba(250, 250, 250, 0.8);
  font-size: 1.02rem;
  line-height: 1.8;
  margin: 0 auto;
}

.trust-inner strong {
  color: var(--gold);
  font-weight: 700;
}

/* =========================================
   CTA BANNER
   ========================================= */
.cta-banner {
  background: var(--navy-deep);
  padding: clamp(40px, 6vw, 56px) 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--sky), var(--red-orange));
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 8px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.cta-banner .cta-sub {
  color: rgba(250, 250, 250, 0.72);
  font-size: 0.95rem;
  margin: 0 auto 20px;
}

.cta-banner .phone-large {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
}

.cta-banner .phone-large a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

.cta-banner .phone-large a:hover {
  color: var(--white);
}

/* =========================================
   SERVICES PAGE
   ========================================= */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.service-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  scroll-margin-top: 100px;
}

.service-block-content {
  min-width: 0;
}

.service-block-accent {
  width: 4px;
  border-radius: 4px;
  align-self: stretch;
}

.service-block:nth-child(1) .service-block-accent { background: var(--gold); }
.service-block:nth-child(2) .service-block-accent { background: var(--red-orange); }
.service-block:nth-child(3) .service-block-accent { background: var(--sky); }

.service-block .icon--lg { margin-bottom: 8px; }

.service-block h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.service-block-content > p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.service-block h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.service-block ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.service-block li {
  padding-left: 20px;
  position: relative;
  color: var(--text-light);
  font-size: 0.93rem;
}

.service-block:nth-child(1) li::before { background: var(--gold); }
.service-block:nth-child(2) li::before { background: var(--red-orange); }
.service-block:nth-child(3) li::before { background: var(--sky); }

.service-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

@media (max-width: 600px) {
  .service-block {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  .service-block-accent {
    width: 100%;
    height: 4px;
    align-self: auto;
  }
  .service-block ul { grid-template-columns: 1fr; }
}

.note-box {
  background: var(--gold-faint);
  border: 1px solid #eedfa0;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 32px;
  text-align: center;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.7;
}

.note-box a { font-weight: 700; color: var(--navy); }

/* =========================================
   SERVICE AREA PAGE
   ========================================= */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.area-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  text-align: center;
  transition: background var(--transition), border-color var(--transition);
}

.area-tag:hover {
  background: var(--navy-faint);
  border-color: var(--navy);
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.map-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
}

.area-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.area-secondary-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.area-secondary-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.area-secondary-card p { color: var(--text-light); font-size: 0.93rem; }

/* =========================================
   FAQ PAGE
   ========================================= */
.faq-group { margin-bottom: 36px; }

.faq-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.faq-group-header h3 {
  font-size: 1.25rem;
  margin: 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item.open {
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  line-height: 1.5;
  transition: color var(--transition);
  min-height: 44px; /* touch target */
}

.faq-question:hover { color: var(--navy); }

.faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out-expo);
  color: var(--text-muted);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--navy);
}

.faq-answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out-expo);
}

.faq-item.open .faq-answer-wrapper {
  grid-template-rows: 1fr;
}

.faq-answer { overflow: hidden; }

.faq-answer p {
  padding: 0 22px 18px;
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h2 { margin-bottom: 20px; }

.contact-phone {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--navy);
  margin: 12px 0;
  display: block;
}

.contact-phone a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-phone a:hover { color: var(--sky); }

.contact-email {
  font-size: 1rem;
  color: var(--text-light);
  margin: 6px 0 16px;
  display: block;
}
.contact-email a { color: var(--text-light); text-decoration: none; transition: color var(--transition); }
.contact-email a:hover { color: var(--sky); }

.contact-info p {
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.7;
}

.contact-trust {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Quote Form */
.quote-form {
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.quote-form h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 5px;
}

.form-group label .required { color: var(--red-orange); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  min-height: 44px; /* touch target */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.14);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232D2D2D' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

.btn-submit:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 58, 92, 0.2);
}

.form-note {
  text-align: center;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e6f9ee;
  color: #22865a;
  margin-bottom: 16px;
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
}

.form-success h3 {
  color: #22865a;
  margin-bottom: 10px;
}

.form-success p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 auto;
}

.form-success a {
  font-weight: 700;
  color: var(--navy);
}

/* =========================================
   PAGE HEADERS (varied per page)
   ========================================= */
.page-header {
  background: var(--navy);
  padding: clamp(32px, 5vw, 52px) 24px;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 10px;
}

.page-header p {
  color: rgba(250, 250, 250, 0.7);
  font-size: 1.02rem;
  max-width: 600px;
}

/* Centered variant */
.page-header--centered {
  text-align: center;
}

.page-header--centered p {
  margin: 0 auto;
}

/* Minimal variant (no heavy banner) */
.page-header--minimal {
  background: var(--bg);
  padding: clamp(28px, 4vw, 44px) 24px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--border);
}

.page-header--minimal h1 {
  color: var(--navy);
}

.page-header--minimal p {
  color: var(--text-light);
}

/* With accent bar */
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--sky), var(--red-orange));
}

.page-header--minimal::after {
  display: none;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--navy-deep);
  color: rgba(250, 250, 250, 0.75);
  padding-top: 0;
}

.footer-divider { margin-bottom: 44px; }

.footer-divider .utility-divider {
  height: 5px;
  border-radius: 0;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 44px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-brand h3 {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-brand .tagline {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 14px;
  display: block;
}

.footer-brand .footer-phone {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
}

.footer-brand .footer-phone a { color: var(--white); text-decoration: none; }
.footer-brand .footer-phone a:hover { color: var(--gold); }

.footer-brand .footer-email {
  font-size: 0.9rem;
  color: rgba(250, 250, 250, 0.7);
  margin-top: 4px;
}
.footer-brand .footer-email a { color: rgba(250, 250, 250, 0.7); text-decoration: none; }
.footer-brand .footer-email a:hover { color: var(--gold); }

.footer-links h4 {
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 7px; }

.footer-links a {
  color: rgba(250, 250, 250, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(250, 250, 250, 0.08);
  padding: 18px 24px;
  text-align: center;
  max-width: 1180px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(250, 250, 250, 0.4);
  margin: 0 auto;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 600px) {
  .hero-content {
    padding: 48px 20px 56px;
  }

  .service-block {
    padding: 24px 18px;
  }

  .quote-form {
    padding: 24px 18px;
  }

  .bento-grid { gap: 14px; }
  .services-snapshot { gap: 14px; }
}

/* =========================================
   ⚡ OVERDRIVE — Cinematic Hero Entrance
   ========================================= */

/* Hero line-by-line reveal */
.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line-inner {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  animation: heroLineReveal 0.8s var(--ease-out-expo) forwards;
}

.hero-line:nth-child(1) .hero-line-inner { animation-delay: 0.15s; }
.hero-line:nth-child(2) .hero-line-inner { animation-delay: 0.3s; }

@keyframes heroLineReveal {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Hero subtitle fade */
.hero p {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.7s var(--ease-out-expo) 0.5s forwards;
}

/* Hero buttons entrance */
.hero-buttons {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.7s var(--ease-out-expo) 0.65s forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero background slow zoom on load */
.hero-bg {
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1.0); }
}

/* =========================================
   ⚡ OVERDRIVE — Scroll-Driven Parallax
   ========================================= */

/* Hero parallax (CSS scroll-driven where supported) */
@supports (animation-timeline: scroll()) {
  @keyframes heroParallax {
    from { transform: scale(1.12) translateY(0); }
    to { transform: scale(1.12) translateY(15%); }
  }

  .hero-bg {
    animation: heroParallax linear forwards, heroZoom 20s ease-out forwards;
    animation-timeline: scroll(), auto;
    animation-range: 0vh 100vh, normal;
  }

  /* Utility divider center-out reveal */
  @keyframes dividerReveal {
    from { clip-path: inset(0 50%); }
    to { clip-path: inset(0 0%); }
  }

  .utility-divider {
    animation: dividerReveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

/* =========================================
   ⚡ OVERDRIVE — Spring-Physics Hover
   ========================================= */

/* Custom spring-like easing (slight overshoot) */
:root {
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-soft: cubic-bezier(0.25, 1.2, 0.5, 1);
}

/* Cards get spring hover */
.bento-card:not(.bento-card--featured),
.snap-card,
.audience-card,
.testimonial-card,
.area-tag,
.area-secondary-card {
  transition:
    transform 0.4s var(--spring),
    box-shadow 0.3s var(--ease-out-expo),
    border-color 0.25s ease;
}

.bento-card:not(.bento-card--featured):hover,
.audience-card:hover,
.testimonial-card:hover,
.area-secondary-card:hover {
  transform: translateY(-4px);
}

.snap-card:hover {
  transform: translateY(-5px) scale(1.01);
}

/* FAQ item spring open */
.faq-item {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.35s var(--spring-soft);
}

.faq-item.open {
  transform: scale(1.005);
}

/* Service blocks subtle lift */
.service-block {
  transition: box-shadow 0.35s var(--ease-out-expo), transform 0.4s var(--spring);
}

.service-block:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* =========================================
   ⚡ OVERDRIVE — Phone Button Pulse
   ========================================= */

/* Nav "Call Now" button entrance + pulse */
.btn-call {
  animation: btnCallEntrance 0.6s var(--ease-out-expo) 1s both;
}

@keyframes btnCallEntrance {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Subtle pulse ring on hero CTA */
.hero-buttons .btn-primary {
  position: relative;
}

.hero-buttons .btn-primary::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50px;
  border: 2px solid var(--gold);
  opacity: 0;
  animation: ctaPulse 3s ease-in-out 2s infinite;
}

@keyframes ctaPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  15% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.08); }
}

/* =========================================
   ⚡ OVERDRIVE — CTA Gradient Animation
   ========================================= */

@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.cta-banner::before {
  background: linear-gradient(
    var(--gradient-angle),
    var(--gold),
    var(--sky),
    var(--red-orange),
    var(--gold)
  );
  animation: gradientRotate 6s linear infinite;
}

@keyframes gradientRotate {
  to { --gradient-angle: 360deg; }
}

/* =========================================
   ⚡ OVERDRIVE — Enhanced Reveals
   ========================================= */

/* Different reveal directions for variety */
.reveal--left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.reveal--right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.reveal--scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.reveal--left.visible,
.reveal--right.visible,
.reveal--scale.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children automatically */
.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease-out-expo), transform 0.45s var(--ease-out-expo);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.06s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.12s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.18s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.30s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.36s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.42s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.48s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.54s; }
.stagger-children.visible > *:nth-child(11) { transition-delay: 0.60s; }
.stagger-children.visible > *:nth-child(12) { transition-delay: 0.66s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   ⚡ OVERDRIVE — Hero Grid Overlay
   ========================================= */

/* Subtle animated grid pattern evoking underground utility mapping */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(74, 171, 219, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 171, 219, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 30s linear infinite;
  pointer-events: none;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

/* =========================================
   ⚡ OVERDRIVE — Page Header Accents
   ========================================= */

/* Animated accent bar on page headers */
.page-header::after {
  animation: accentSlide 0.8s var(--ease-out-expo) 0.2s both;
}

@keyframes accentSlide {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0% 0 0);
  }
}

/* =========================================
   ⚡ OVERDRIVE — Reduced Motion Override
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  .hero-line-inner {
    transform: none;
    opacity: 1;
    animation: none;
  }

  .hero p,
  .hero-buttons {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-bg {
    animation: none;
    transform: none;
  }

  .hero::after {
    animation: none;
  }

  .btn-call {
    animation: none;
  }

  .hero-buttons .btn-primary::after {
    animation: none;
    display: none;
  }

  .cta-banner::before {
    animation: none;
  }

  .page-header::after {
    animation: none;
    clip-path: none;
  }

  .stagger-children > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal--left,
  .reveal--right,
  .reveal--scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .snap-card,
  .bento-card,
  .audience-card,
  .testimonial-card,
  .service-block,
  .faq-item {
    transition-duration: 0.01ms !important;
  }
}
