/* =========================================================
   SPOTTERFOX INSURANCE GROUP
   Design System — Navy + Orange + White
   ========================================================= */

:root {
  /* Brand colors — pulled directly from the logo */
  --navy: #1B2A4A;
  --navy-deep: #0F1B33;
  --navy-soft: #2D3F62;
  --orange: #D86B2C;
  --orange-bright: #E87722;
  --orange-soft: #F4E4D4;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --gray-50: #F7F8FA;
  --gray-100: #EEF1F5;
  --gray-200: #DDE3EB;
  --gray-400: #8A95A8;
  --gray-600: #5A6577;
  --gray-800: #2A3142;

  /* Type scale */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;

  /* Spacing */
  --container: 1240px;
  --container-narrow: 920px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-quick: cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.06), 0 1px 2px rgba(27, 42, 74, 0.04);
  --shadow-md: 0 4px 12px rgba(27, 42, 74, 0.08), 0 2px 4px rgba(27, 42, 74, 0.04);
  --shadow-lg: 0 12px 32px rgba(27, 42, 74, 0.12), 0 4px 8px rgba(27, 42, 74, 0.06);
  --shadow-xl: 0 24px 64px rgba(27, 42, 74, 0.16), 0 8px 16px rgba(27, 42, 74, 0.08);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--orange);
}

p { color: var(--gray-600); }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--gray-600); max-width: 56ch; }

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

section { padding: 6rem 0; }
@media (max-width: 768px) { section { padding: 4rem 0; } }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.3s var(--ease);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo .logo-mark {
  height: 80px;
  width: auto;
  display: block;
}
.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo .logo-name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-transform: uppercase;
}
.nav-logo .logo-sub {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-top: 5px;
}
@media (max-width: 540px) {
  .nav-logo .logo-mark { height: 52px; }
  .nav-logo .logo-name { font-size: 1.125rem; line-height: 1.1; }
  .nav-logo .logo-sub { font-size: 0.625rem; letter-spacing: 0.12em; }
}
@media (max-width: 380px) {
  .nav-logo .logo-mark { height: 44px; }
  .nav-logo .logo-name { font-size: 1rem; }
  .nav-logo .logo-sub { font-size: 0.5625rem; }
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--orange); }
.nav-menu a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
}
.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover { background: var(--orange); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-inner { gap: 0.75rem; padding: 0 1rem; }
  .nav-menu { display: none; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--navy);
    border-radius: 1px;
    transition: all 0.3s var(--ease);
  }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav.open .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .nav.open .nav-menu li { list-style: none; }
  .nav.open .nav-menu a {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    padding: 0.5rem 0;
  }
  .nav.open .nav-menu::after {
    content: 'Get a Quote';
    display: block;
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 0.875rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    margin-top: 0.5rem;
  }
}
@media (max-width: 900px) {
  .nav-logo .logo-mark { height: 60px; }
  .nav-logo .logo-name { font-size: 1.375rem; }
  .nav-logo .logo-sub { font-size: 0.6875rem; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-bright); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--gray-200); }
.btn-ghost:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.btn-lg { padding: 1.125rem 2.25rem; font-size: 1rem; }

.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 5rem 0 7rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(216, 107, 44, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(27, 42, 74, 0.04) 0%, transparent 50%),
    var(--white);
}
.hero-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding: 3rem 0 5rem; }
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  line-height: 1.02;
  margin: 1.5rem 0 1.5rem;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--orange); font-style: italic; font-weight: 400; }
.hero p.lead {
  font-size: 1.1875rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  max-width: 52ch;
}
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.zip-form {
  display: flex;
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 1.5rem;
  max-width: 460px;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s var(--ease);
  margin-bottom: 1.5rem;
}
.zip-form:focus-within { border-color: var(--orange); box-shadow: var(--shadow-lg); }
.zip-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  color: var(--navy);
  outline: none;
}
.zip-form input::placeholder { color: var(--gray-400); }
.zip-form button {
  background: var(--orange);
  color: var(--white);
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s var(--ease);
}
.zip-form button:hover { background: var(--orange-bright); }
.zip-form button svg { width: 16px; height: 16px; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gray-600);
  font-size: 0.9375rem;
}
.hero-trust .stars { color: var(--orange); letter-spacing: 2px; }

/* Hero visual side */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}
.hero-fox-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-fox-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(216, 107, 44, 0.08) 0%, transparent 60%);
  z-index: 0;
}
.hero-fox-frame::after {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1.5px dashed var(--gray-200);
  border-radius: 50%;
  z-index: 0;
  animation: rotate 60s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.hero-fox-frame img {
  position: relative;
  z-index: 1;
  width: 90%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(27, 42, 74, 0.15));
}
.hero-fox-frame img.hero-fox-linework {
  width: auto;
  height: 520px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(27, 42, 74, 0.12));
}
@media (max-width: 768px) {
  .hero-fox-frame img.hero-fox-linework { height: 380px; }
}

/* Floating badges in hero */
.hero-badge {
  position: absolute;
  background: var(--white);
  border-radius: 14px;
  padding: 0.75rem 1.1rem 0.75rem 0.75rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
  border: 1px solid var(--gray-100);
}
.hero-badge-icon {
  width: 40px;
  height: 44px;
  background: var(--orange);
  color: #ffffff;
  /* shield silhouette */
  clip-path: path('M20 0 L40 6 L40 24 C40 36 30 42 20 44 C10 42 0 36 0 24 L0 6 Z');
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(216, 107, 44, 0.25));
}
.hero-badge-icon svg { width: 20px; height: 20px; stroke: #ffffff; }
.hero-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.hero-badge-text strong { font-size: 0.9375rem; color: var(--navy); font-weight: 600; }
.hero-badge-text span { font-size: 0.75rem; color: var(--gray-600); }

.hero-badge-1 { top: 12%; left: -6%; animation: float 6s ease-in-out infinite; }
.hero-badge-2 { bottom: 18%; right: -4%; animation: float 6s ease-in-out infinite 2s; }
.hero-badge-3 { bottom: 8%; left: 4%; animation: float 6s ease-in-out infinite 4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (max-width: 900px) {
  .hero-badge-1, .hero-badge-2, .hero-badge-3 { display: none; }
}

/* ===== Trust Bar ===== */
.trust-bar {
  padding: 3rem 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.trust-bar-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 2rem;
}
.carrier-marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.carrier-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: carrier-scroll 60s linear infinite;
}
.carrier-track:hover { animation-play-state: paused; }
.carrier-track .carrier {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--gray-400);
  letter-spacing: -0.01em;
  opacity: 0.75;
  white-space: nowrap;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}
.carrier-track .carrier:hover { opacity: 1; color: var(--navy); }
@keyframes carrier-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .carrier-track { animation: none; }
}

/* ===== Section header ===== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.section-header .eyebrow { margin-bottom: 1.25rem; justify-content: center; }
.section-header .eyebrow::before { content: ''; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.0625rem; color: var(--gray-600); }

/* ===== Features (Why SpotterFox) ===== */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-bright) 100%);
  color: var(--white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 16px rgba(216, 107, 44, 0.25);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h4 { margin-bottom: 0.5rem; color: var(--navy); }
.feature-card p { font-size: 0.9375rem; line-height: 1.55; }

/* ===== Services grid (homepage preview) ===== */
.services-section { background: var(--gray-50); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid var(--gray-100);
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service-icon {
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon { background: var(--orange); transform: rotate(-6deg); }
.service-card h3 { font-size: 1.5rem; }
.service-card p { font-size: 0.9375rem; line-height: 1.55; flex: 1; }
.service-card .service-link {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.service-card:hover .service-link { color: var(--orange); gap: 0.75rem; }

/* ===== Self-service teaser ===== */
.self-service-section {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.self-service-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(216, 107, 44, 0.15) 0%, transparent 60%);
  border-radius: 50%;
}
.self-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) { .self-service-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.self-service-section h2 { color: var(--white); }
.self-service-section .eyebrow { color: var(--orange-bright); }
.self-service-section .eyebrow::before { background: var(--orange-bright); }
.self-service-section p { color: rgba(255, 255, 255, 0.75); font-size: 1.0625rem; }

.portal-mockup {
  background: var(--white);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: var(--shadow-xl);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}
.portal-mockup:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }
.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}
.portal-title { color: var(--navy); font-weight: 600; font-size: 1rem; }
.portal-dots { display: flex; gap: 6px; }
.portal-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-200); }
.portal-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.portal-tile {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s var(--ease);
  cursor: pointer;
}
.portal-tile:hover { background: var(--orange-soft); }
.portal-tile-icon {
  width: 32px;
  height: 32px;
  background: var(--orange-soft);
  color: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-tile-icon svg { width: 16px; height: 16px; }
.portal-tile-label { font-size: 0.8125rem; color: var(--navy); font-weight: 500; }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-bright) 100%);
  border-radius: 32px;
  padding: 4rem 3rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before, .cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.cta-banner::before { width: 300px; height: 300px; top: -100px; left: -100px; }
.cta-banner::after { width: 220px; height: 220px; bottom: -80px; right: -80px; }
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-banner p { color: rgba(255, 255, 255, 0.9); font-size: 1.0625rem; margin-bottom: 2rem; position: relative; z-index: 1; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-banner .btn {
  position: relative;
  z-index: 1;
  background: var(--white);
  color: var(--navy);
}
.cta-banner .btn:hover { background: var(--navy); color: var(--white); }
@media (max-width: 640px) { .cta-banner { padding: 3rem 1.5rem; } }

/* ===== Footer ===== */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .logo-block {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}
.footer-brand .logo-block img {
  height: 56px;
  width: auto;
  background: var(--white);
  padding: 0.5rem;
  border-radius: 12px;
}
.footer-brand .logo-block .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.footer-brand .logo-block .logo-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
}
.footer-brand .logo-block .logo-sub {
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-top: 4px;
}
.footer-brand p { color: rgba(255, 255, 255, 0.6); max-width: 28ch; font-size: 0.9375rem; }
.footer h5 {
  color: var(--white);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer ul a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color 0.2s var(--ease);
}
.footer ul a:hover { color: var(--orange-bright); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}
.footer-social a:hover { background: var(--orange); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }

/* ===== Page Header (interior pages) ===== */
.page-header {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(ellipse at top right, rgba(216, 107, 44, 0.05) 0%, transparent 50%),
    var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header .eyebrow { margin-bottom: 1rem; justify-content: center; }
.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}
.page-header p { font-size: 1.125rem; max-width: 600px; margin: 0 auto; color: var(--gray-600); }

/* ===== Services Page detail cards ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.service-detail:last-child { border-bottom: none; }
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }
@media (max-width: 900px) {
  .service-detail { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
  .service-detail:nth-child(even) { direction: ltr; }
}
.service-detail-content .eyebrow { margin-bottom: 1rem; }
.service-detail-content h2 { margin-bottom: 1rem; }
.service-detail-content > p { margin-bottom: 1.5rem; font-size: 1.0625rem; }
.coverage-list { list-style: none; margin-bottom: 2rem; }
.coverage-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--gray-800);
}
.coverage-list .check {
  width: 22px;
  height: 22px;
  background: var(--orange-soft);
  color: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.coverage-list .check svg { width: 12px; height: 12px; }

.service-detail-visual {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--orange-soft) 100%);
  border-radius: 32px;
  padding: 3rem;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.service-detail-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6) 0%, transparent 60%);
}
.service-detail-visual .big-icon {
  width: 200px;
  height: 200px;
  color: var(--navy);
  position: relative;
  z-index: 1;
}
.service-detail-visual .big-icon svg { width: 100%; height: 100%; }

/* ===== Self-service portal page ===== */
.portal-section { padding: 4rem 0 6rem; background: var(--gray-50); min-height: 60vh; }
.portal-intro {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  border: 1px solid var(--gray-100);
}
@media (max-width: 768px) { .portal-intro { flex-direction: column; text-align: center; gap: 1.5rem; padding: 2rem; } }
.portal-intro img { width: 100px; height: 100px; object-fit: contain; flex-shrink: 0; }
.portal-intro h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.portal-intro p { font-size: 1rem; }

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .portal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .portal-grid { grid-template-columns: 1fr; } }

.portal-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.4s var(--ease);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.portal-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.portal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.portal-card:hover::after { transform: scaleX(1); }
.portal-card-icon {
  width: 56px;
  height: 56px;
  background: var(--orange-soft);
  color: var(--orange);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.portal-card-icon svg { width: 26px; height: 26px; }
.portal-card h3 {
  font-family: var(--font-sans);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.portal-card p { font-size: 0.9375rem; line-height: 1.55; flex: 1; }
.portal-card-action {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s var(--ease);
}
.portal-card:hover .portal-card-action { gap: 0.75rem; }

/* ===== EZLynx Quote Form Placeholder ===== */
.quote-section { padding: 5rem 0; background: var(--white); }
.quote-wrap {
  max-width: 880px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.quote-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.quote-header h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 0.25rem; }
.quote-header p { color: rgba(255, 255, 255, 0.75); font-size: 0.9375rem; margin: 0; }
.quote-powered {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}
.quote-powered span {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  color: var(--white);
  font-weight: 600;
}

.quote-iframe-wrap {
  position: relative;
  min-height: 580px;
  background: var(--gray-50);
}
.quote-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(27, 42, 74, 0.02) 20px, rgba(27, 42, 74, 0.02) 40px);
}
.quote-placeholder-icon {
  width: 72px;
  height: 72px;
  background: var(--white);
  color: var(--orange);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}
.quote-placeholder-icon svg { width: 32px; height: 32px; }
.quote-placeholder h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.quote-placeholder p {
  max-width: 480px;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}
.quote-placeholder .btn { background: var(--navy); color: var(--white); }
.quote-placeholder small {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}

/* ===== About / Story ===== */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  padding: 4rem 0;
}
@media (max-width: 900px) { .about-story { grid-template-columns: 1fr; gap: 3rem; } }
.about-story-image {
  background: linear-gradient(135deg, var(--orange-soft) 0%, var(--gray-50) 100%);
  border-radius: 28px;
  padding: 3rem;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 100px;
}
.about-story-image img { max-width: 100%; max-height: 100%; }
.about-story-content h2 { margin-bottom: 1.5rem; }
.about-story-content p { font-size: 1.0625rem; line-height: 1.75; margin-bottom: 1.25rem; color: var(--gray-800); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 768px) { .values-grid { grid-template-columns: 1fr; } }
.value-item h4 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}
.value-item h4 .num {
  width: 28px;
  height: 28px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  font-weight: 600;
}
.value-item p { font-size: 0.9375rem; }

/* ===== Licensed states bar ===== */
.states-bar {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}
.states-bar .eyebrow { color: var(--orange-bright); justify-content: center; margin-bottom: 1.5rem; }
.states-bar .eyebrow::before { background: var(--orange-bright); }
.states-list {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.state-item {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--white);
}
.state-item small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p.lead { margin-bottom: 2.5rem; }
.contact-method {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.contact-method:last-child { border-bottom: none; }
.contact-method-icon {
  width: 48px;
  height: 48px;
  background: var(--orange-soft);
  color: var(--orange);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-method-icon svg { width: 22px; height: 22px; }
.contact-method h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.contact-method a, .contact-method span { color: var(--gray-600); font-size: 0.9375rem; }
.contact-method a:hover { color: var(--orange); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  font-size: 0.9375rem;
  color: var(--navy);
  background: var(--white);
  transition: all 0.2s var(--ease);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(216, 107, 44, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.form-submit { width: 100%; margin-top: 0.5rem; }

/* ===== Notice / placeholder banner ===== */
.notice {
  background: var(--orange-soft);
  border-left: 3px solid var(--orange);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.875rem;
  color: var(--navy);
}
.notice strong { color: var(--orange); }

/* ===== Animations ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  .reveal.in-view { opacity: 1; transform: translateY(0); }
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
