/* ============================================================
   MDU Advisors — Shared Design System
   ============================================================ */

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

/* --- CSS Variables --- */
:root {
  --blue-900: #0F2240;
  --blue-800: #1A3F6F;
  --blue-700: #2A5298;
  --blue-600: #1E6FD9;
  --blue-100: #EBF3FF;
  --blue-50:  #F0F7FF;
  --gray-900: #1A1A2E;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F7F8FA;
  --white:    #FFFFFF;
  --green:    #10B981;
  --gold:     #C8A951;
  --gold-light: rgba(200,169,81,0.15);
  --radius:   2px;
  --radius-lg: 3px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.03);
  --shadow:    0 4px 16px rgba(0,0,0,.07);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10);
  --nav-h: 68px;
  --util-h: 38px;
  --header-h: 106px; /* nav-h + util-h */
  --max-w: 1200px;
  --transition: .2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #4B5563;
  background: var(--white);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section-sm { padding: 72px 0; }
.section.bg-navy { background: var(--blue-900); }

/* --- Typography --- */
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', Georgia, serif; color: var(--gray-900); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.85rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { color: var(--gray-500); }
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-header { margin-bottom: 56px; }
.section-header p { max-width: 620px; margin-top: 16px; font-size: 1.08rem; }
.section-header.center { text-align: center; }
.section-header.center p { margin-left: auto; margin-right: auto; }
/* Deloitte-style accent rule — short thick gold bar under section headings */
.section-header h2::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  background: var(--gold);
  margin-top: 20px;
}
.section-header.center h2::after { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-900);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-800); }
.btn-white {
  background: var(--white);
  color: var(--blue-900);
}
.btn-white:hover { background: var(--gray-100); }
.btn-outline {
  border: 1.5px solid var(--blue-900);
  color: var(--blue-900);
}
.btn-outline:hover { background: var(--blue-900); color: var(--white); }
.btn-outline-white {
  border: 1.5px solid rgba(255,255,255,.6);
  color: var(--white);
}
.btn-outline-white:hover { border-color: rgba(255,255,255,.85); }
.btn-outline-white:active { border-color: var(--white); background: var(--white); color: var(--blue-900); }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
/* Understated Deloitte-style text link with arrow */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--blue-800);
  padding: 4px 0;
  border-bottom: 2px solid var(--gold);
  border-radius: 0;
  transition: gap var(--transition);
}
.btn-link:hover { gap: 12px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
/* Fixed header wrapper holds the utility bar + main nav */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
/* Thin utility bar above the main nav */
.nav-utility { background: var(--blue-900); }
.nav-utility-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--util-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}
.nav-utility a {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255,255,255,.72);
  transition: color var(--transition);
}
.nav-utility a:hover { color: var(--gold); }

.nav {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: var(--nav-h);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); border-bottom-color: transparent; }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-800);
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.nav-logo span { font-weight: 400; color: var(--gray-500); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-item { position: relative; }
.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-700);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.nav-tab:hover, .nav-tab.active { color: var(--blue-900); border-bottom-color: var(--gold); }
.nav-tab svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform var(--transition); }
.nav-dropdown:hover .nav-tab svg,
.nav-tab[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 101;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 2px;
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu a:hover { background: var(--blue-50); color: var(--blue-900); }
.nav-cta { flex-shrink: 0; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  transition: all var(--transition);
  border-radius: 2px;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 2px;
  z-index: 99;
  box-shadow: var(--shadow-lg);
}
.nav-mobile.open { display: flex; }
.nav-mobile a,
.m-link {
  display: block;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
}
.nav-mobile a:hover, .m-link:hover { background: var(--blue-50); color: var(--blue-900); }
.nav-mobile .btn { margin-top: 12px; width: 100%; justify-content: center; }
/* Mobile accordion groups */
.m-group { border-bottom: 1px solid var(--gray-100); }
.m-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-900);
  font-family: inherit;
  border-radius: 4px;
}
.m-trigger svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform var(--transition); }
.m-trigger.open svg { transform: rotate(180deg); }
.m-panel { display: none; padding: 0 0 8px 10px; }
.m-panel.open { display: block; }
.m-panel a { font-weight: 500; color: var(--gray-700); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: calc(var(--nav-h) + 96px) 0 96px;
  position: relative;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 28, 54, 0.72);
  z-index: -1;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-light);
  border: 2px solid rgba(200,169,81,0.5);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 8px 16px;
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero h1 { color: var(--gray-900); margin-bottom: 22px; }
.hero p {
  color: var(--gray-500);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--gray-200);
}
.hero-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--blue-800);
}
.hero-stat-label {
  font-size: .8rem;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Hero form card */
.hero-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.hero-form-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.hero-form-card > p { font-size: .85rem; margin-bottom: 20px; }

/* ============================================================
   VIDEO HERO (homepage + bulk-telecom)
   ============================================================ */
.video-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 72px) 0 96px;
  overflow: hidden;
  background: var(--blue-900);
}
.video-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.video-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15,34,64,.70) 0%, rgba(15,34,64,.62) 45%, rgba(15,34,64,.78) 100%);
}
.video-hero .container { position: relative; z-index: 2; }
.video-hero-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.video-hero .hero-badge { margin-bottom: 24px; }
.video-hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.video-hero p {
  color: rgba(255,255,255,.88);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 36px;
}
.video-hero .hero-actions { justify-content: center; }
.video-hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.18);
  flex-wrap: wrap;
}
.video-hero-stats .hero-stat-value { color: var(--gold); text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.video-hero-stats .hero-stat-label { color: rgba(255,255,255,.65); }
@media (prefers-reduced-motion: reduce) {
  .video-hero video { display: none; }
  .video-hero-overlay { background: var(--blue-900); }
}
@media (max-width: 768px) {
  .video-hero { min-height: 0; padding: calc(var(--header-h) + 48px) 0 64px; }
  .video-hero-stats { gap: 28px; }
}

/* Sticky "Get Started" CTA (appears after the hero) */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.sticky-cta.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ============================================================
   CARRIERS STRIP
   ============================================================ */
.carriers {
  background: var(--white);
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-200);
}
.carriers-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.carriers-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-500);
  white-space: nowrap;
}
.carriers-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.carrier-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: -.02em;
  transition: color var(--transition);
  opacity: .75;
}
.carrier-logo:hover { opacity: 1; color: var(--blue-800); }
.carrier-att { font-weight: 800; }
.carrier-charter { font-weight: 700; letter-spacing: .02em; }
.carrier-frontier { font-weight: 700; font-style: italic; }

/* ============================================================
   CARDS & GRIDS
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color var(--transition);
}
.card:hover { border-top-color: var(--gold); border-color: var(--gray-300); }
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--blue-700); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .9rem; }
.card-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--blue-50);
  color: var(--blue-700);
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 12px;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide: horizontal;
}
.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--gray-200);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-800);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: .85rem; color: var(--gray-500); }

/* ============================================================
   PROBLEM / SOLUTION
   ============================================================ */
.problem-solution {
  background: var(--white);
}
.problem-solution-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.check-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
  color: var(--gray-700);
}
.check-item::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-200);
}
.process-step:last-child { border-bottom: none; }
.step-number {
  width: 48px;
  height: 48px;
  background: var(--blue-800);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-content h3 { margin-bottom: 6px; }
.step-content p { font-size: .9rem; }

/* Horizontal steps (for preview) */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-card {
  text-align: center;
  padding: 32px 20px;
}
.process-card .step-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,.4);
  line-height: 1;
  margin-bottom: 12px;
}
.process-card h3 { color: var(--white); margin-bottom: 8px; }
.process-card p { color: rgba(255,255,255,.65); font-size: .9rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
}
.testimonial-quote {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: .9rem; color: var(--gray-900); }
.author-role { font-size: .8rem; color: var(--gray-500); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section { background: var(--blue-900); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 80px;
  align-items: start;
}
.contact-left h2 { margin-bottom: 16px; color: var(--white); }
.contact-left > p { margin-bottom: 24px; font-size: 1rem; color: rgba(255,255,255,.8); }
.contact-features { display: flex; flex-direction: column; gap: 12px; }
.contact-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}
.contact-feature::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Form styles */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group:last-of-type { margin-bottom: 0; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--gray-700); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--gray-900);
  transition: border-color var(--transition);
  background: var(--white);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(26,63,111,.1);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-submit {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}
.form-note {
  text-align: center;
  font-size: .8rem;
  color: var(--gray-500);
  margin-top: 12px;
}
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}
.form-success.visible { display: block; }
.form-success-icon {
  width: 56px;
  height: 56px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.form-success-icon svg { stroke: white; width: 28px; height: 28px; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.form-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: .85rem;
  color: #B91C1C;
  margin-top: 12px;
  display: none;
}
.form-error.visible { display: block; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--blue-800);
  color: var(--white);
  text-align: center;
  padding: 88px 0;
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 540px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.6);
  padding: 72px 0 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 32px;
}
.footer-brand { }
.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand p { font-size: .85rem; line-height: 1.6; max-width: 220px; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: .875rem;
  padding: 3px 0;
  transition: color var(--transition);
  color: rgba(255,255,255,.6);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}
.footer-bottom a { transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background-color: var(--blue-800);
  background-size: cover;
  background-position: center;
  padding: calc(var(--header-h) + 72px) 0 72px;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 63, 111, 0.80);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ============================================================
   ACCORDION (FAQ)
   ============================================================ */
.faq-category { margin-bottom: 48px; }
.faq-category h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--blue-800); padding-bottom: 12px; border-bottom: 2px solid var(--blue-100); }
.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-900);
  background: var(--white);
  transition: background var(--transition);
  gap: 16px;
}
.accordion-trigger:hover { background: var(--gray-50); }
.accordion-trigger.open { background: var(--blue-50); color: var(--blue-800); }
.accordion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
}
.accordion-trigger.open .accordion-icon { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 0 20px 18px;
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
}
.accordion-body.open { display: block; }

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.blog-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow); }
.blog-card-img {
  height: 200px;
  background-color: var(--blue-100);
  background-size: cover;
  background-position: center;
  position: relative;
}
.blog-card-body { padding: 24px; }
.blog-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 8px;
}
.blog-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.blog-card p { font-size: .875rem; margin-bottom: 16px; }
.blog-meta { font-size: .8rem; color: var(--gray-500); }
.read-more { font-size: .875rem; font-weight: 600; color: var(--blue-700); transition: gap var(--transition); display: inline-flex; align-items: center; gap: 4px; }
.read-more:hover { gap: 8px; }

/* ============================================================
   CASE STUDY CARDS
   ============================================================ */
.case-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.case-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow); }
.case-card-header {
  background-color: var(--blue-800);
  background-size: cover;
  background-position: center;
  padding: 28px;
  color: var(--white);
  position: relative;
}
.case-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 63, 111, 0.82);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.case-card-header > * { position: relative; z-index: 1; }
.case-card-header .result-number {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.case-card-header .result-label { font-size: .85rem; opacity: .75; }
.case-card-body { padding: 28px; }
.case-detail { margin-bottom: 16px; }
.case-detail-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); margin-bottom: 4px; }
.case-detail-value { font-size: .9rem; color: var(--gray-700); }

/* ============================================================
   UTILITY
   ============================================================ */
.bg-gray { background: var(--gray-50); }
.bg-blue-dark { background: var(--blue-800); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.body-offset { padding-top: var(--header-h); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-form-card { max-width: 500px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner .contact-left { max-width: 560px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { padding: calc(var(--nav-h) + 48px) 0 48px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .problem-solution-inner { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 72px 0; }
  .carriers-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none; }
  .bg-overlay { background: rgba(10, 28, 54, 0.88); }
}

/* ---------- Solid stat band (Deloitte-style navy color block) ---------- */
.stat-band { background: var(--blue-900); padding: 88px 0; }
.stat-band .stat-row { max-width: 960px; margin: 0 auto; }

/* ---------- Video stats band (legacy) ---------- */
.video-band {
  position: relative; overflow: hidden; height: 280px;
}
.video-band video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-transform: translateZ(0); transform: translateZ(0);
}
.video-band-overlay {
  position: absolute; inset: 0; background: rgba(15,34,64,0.72);
}
.video-band-content {
  position: relative; z-index: 1; height: 100%;
  display: flex; align-items: center; justify-content: center;
  max-width: 900px; margin: 0 auto; padding: 0 24px;
}
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; text-align: center; width: 100%; }
.big-stat { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: #fff; line-height: 1; }
.stat-lbl { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.65); margin-top: 8px; }
@media (max-width: 768px) {
  .stat-row { grid-template-columns: 1fr; gap: 24px; }
  .video-band { height: auto; padding: 48px 0; }
  .big-stat { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .video-band video { display: none; }
  .video-band-overlay { background: rgba(15,34,64,0.92); }
}

/* ============================================================
   NOI ESTIMATOR  (homepage centerpiece lead magnet)
   ============================================================ */
.estimator-section { background: var(--gray-50); }
.estimator {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.estimator-controls { padding: 40px; background: var(--white); }
.estimator-result {
  padding: 40px;
  background: var(--blue-900);
  color: var(--white);
  position: relative;
}
.est-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin: 0 0 12px;
}
.est-label + .est-label { margin-top: 28px; }
.est-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--gray-200);
  outline: none;
}
.est-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.est-slider::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.est-units-row { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.est-units-row span { font-size: .9rem; color: var(--gray-500); font-weight: 600; }
.est-units-input {
  width: 120px;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}
.est-units-input:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(26,63,111,.1); }
.est-type {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--gray-900);
  background: var(--white);
}
.est-type:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(26,63,111,.1); }
.est-result-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}
.est-result-value {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 8px 0 6px;
  color: var(--white);
}
.est-breakdown { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 24px; min-height: 1.2em; }
.est-form-prompt { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.92); margin-bottom: 12px; }
.est-form-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
.est-form-row input {
  padding: 12px 14px;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  font-size: .92rem;
  background: rgba(255,255,255,.08);
  color: var(--white);
  width: 100%;
}
.est-form-row input::placeholder { color: rgba(255,255,255,.55); }
.est-form-row input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.14); }
.est-submit { width: 100%; justify-content: center; background: var(--gold); color: var(--blue-900); }
.est-submit:hover { background: #d8ba63; }
.est-success {
  display: none;
  font-size: .95rem;
  color: rgba(255,255,255,.9);
  line-height: 1.6;
}
.est-success.visible { display: block; }
.est-success .btn { display: inline-flex; }
.est-disclaimer { font-size: .72rem; color: rgba(255,255,255,.5); margin-top: 18px; line-height: 1.5; }
.estimator .form-error { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #FECACA; }
@media (max-width: 768px) {
  .estimator { grid-template-columns: 1fr; }
  .estimator-controls, .estimator-result { padding: 28px; }
}

/* ============================================================
   LAZY VIDEO ACCENTS (process cards, problem/solution, band)
   ============================================================ */
.band-text { text-align: center; }
.band-text h2 { color: var(--white); margin-bottom: 8px; }
.band-text h2::after { content: ''; display: block; width: 52px; height: 3px; background: var(--gold); margin: 16px auto 0; }
.band-text p { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 600px; margin: 16px auto 0; }

/* Process card video thumbs */
.process-card .process-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--blue-800);
}
.process-card .process-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  -webkit-transform: translateZ(0); transform: translateZ(0);
}
.process-card { padding-top: 0; }

/* Problem/solution framed accent */
.ps-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
}
.ps-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Contact section cinematic background */
.contact-section { position: relative; overflow: hidden; }
.contact-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  -webkit-transform: translateZ(0); transform: translateZ(0);
}
.contact-bg-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15,34,64,.86) 0%, rgba(15,34,64,.90) 100%);
}
.contact-section .container { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .contact-bg, .process-media video, .ps-media video { display: none; }
}

/* ============================================================
   VIDEO MODAL (hero "watch how it works")
   ============================================================ */
.video-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(10,18,34,.86); }
.video-modal-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
}
.video-modal-inner video {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #000;
}
.video-modal-close {
  position: absolute;
  top: -44px; right: 0;
  width: 36px; height: 36px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--white);
  background: none;
}
.video-modal-close:hover { color: var(--gold); }
.btn .play-tri { font-size: .8rem; }

/* Sticky CTA: mobile becomes a full-width bottom bar */
@media (max-width: 768px) {
  .sticky-cta {
    left: 16px; right: 16px; bottom: 16px;
    justify-content: center;
  }
  /* Estimator unit field shouldn't stay pinned to a fixed pixel width */
  .est-units-input { max-width: 120px; width: 100%; }
}

/* Phone refinements */
@media (max-width: 480px) {
  /* Keep the utility bar one tidy line (height unchanged, so the fixed-header
     content offset --header-h stays correct) */
  .nav-utility-inner { gap: 16px; padding: 0 16px; }
  .nav-utility a { font-size: .72rem; white-space: nowrap; }
  /* Keep the modal close button on-screen in landscape / short viewports */
  .video-modal-inner { padding-top: 44px; }
  .video-modal-close { top: 8px; right: 8px; }
}

/* ============================================================
   CREATIVE DIRECTION — site-wide (Newsreader + warm paper + navy/gold)
   Promoted from the homepage preview; applies to every page.
   ============================================================ */
:root {
  --paper: #F3EDE2;          /* warm cream for alternating sections */
  --navy-grad: linear-gradient(165deg, #0F2240 0%, #16294C 58%, #0F2240 100%);
}
body { background: var(--paper); }

/* --- Type: a grounded, authoritative serif --- */
h1, h2, h3, h4, h5,
.big-stat, .hero-stat-value, .est-result-value {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
}
h1 { font-weight: 600; letter-spacing: -0.022em; }
h2 { font-weight: 600; letter-spacing: -0.016em; }
h3 { font-weight: 600; }
.video-hero h1 { font-weight: 600; text-shadow: 0 2px 28px rgba(0,0,0,.28); }
/* Engineered, consistent numerals */
.big-stat, .hero-stat-value, .est-result-value, .stat-value {
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
}

/* --- Warm-neutral section rhythm (replaces cool gray) --- */
.bg-gray, .estimator-section { background: var(--paper); }

/* --- Navy bands get subtle depth instead of a flat fill --- */
.bg-navy, .stat-band, .contact-section { background: var(--navy-grad); }
.estimator-result { background: var(--navy-grad); }
/* contact section keeps its video; deepen the overlay so type stays crisp */
.contact-bg-overlay {
  background: linear-gradient(180deg, rgba(15,34,64,.88) 0%, rgba(15,34,64,.93) 100%);
}

/* --- Disciplined palette: retire the SaaS green --- */
.check-item::before { background: var(--blue-900); }     /* navy checks on light */
.contact-feature::before { background: var(--gold); }    /* gold checks on navy */

/* --- A touch more breathing room on major sections --- */
.section { padding-top: 132px; padding-bottom: 132px; }
@media (max-width: 768px) {
  .section { padding-top: 72px; padding-bottom: 72px; }
}
