/* ═══════════════════════════════════════════════════
   SFH MARKETING SITE — SHARED DESIGN SYSTEM
   ═══════════════════════════════════════════════════ */
/* Font loaded via <link> in HTML head for better LCP — see preconnect + stylesheet links */

svg { overflow: visible; }

:root {
  --navy: #073243;
  --navy-light: #0a4a63;
  --navy-dark: #041e29;
  --white: #FFFFFF;
  --red: #F83148;
  --red-dark: #d62a3d;
  --teal: #0199B9;
  --sky: #8AC6E2;
  --gold: #FAB416;
  --orange: #F38020;
  --gray: #869194;
  --gray-light: #b8bfc2;
  --text-secondary: #4a5568;
  --light-bg: #f5f7f8;
  --teal-dark: #016375;
  --teal-light: #e5f4f7;
  --card-shadow: 0 2px 16px rgba(7,50,67,0.08);
  --card-shadow-hover: 0 8px 32px rgba(7,50,67,0.14);
  --content-width: 1140px;
}

/* ─── Scroll-reveal animations (#2) ─── */
@keyframes sfh-reveal-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sfh-reveal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes sfh-reveal-scale {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
.reveal {
  opacity: 0;
  will-change: opacity, transform;
}
.reveal.visible {
  animation: sfh-reveal-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal.reveal-fade.visible {
  animation-name: sfh-reveal-fade;
}
.reveal.reveal-scale.visible {
  animation-name: sfh-reveal-scale;
}
/* Stagger children: use data-delay="1" through data-delay="8" */
.reveal[data-delay="1"].visible { animation-delay: 0.08s; }
.reveal[data-delay="2"].visible { animation-delay: 0.16s; }
.reveal[data-delay="3"].visible { animation-delay: 0.24s; }
.reveal[data-delay="4"].visible { animation-delay: 0.32s; }
.reveal[data-delay="5"].visible { animation-delay: 0.40s; }
.reveal[data-delay="6"].visible { animation-delay: 0.48s; }
.reveal[data-delay="7"].visible { animation-delay: 0.56s; }
.reveal[data-delay="8"].visible { animation-delay: 0.64s; }

/* ─── Noise texture overlay (used on heroes, dark sections) (#3) ─── */
.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}
.noise-overlay > * { position: relative; z-index: 1; }

/* ─── Dot-grid texture for alternating sections (#4) ─── */
section.alt {
  background:
    radial-gradient(circle, rgba(7,50,67,0.04) 1px, transparent 1px),
    var(--light-bg);
  background-size: 24px 24px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', -apple-system, sans-serif;
  color: var(--navy);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--content-width); margin: 0 auto; padding: 0 24px; }

/* ─── Nav ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(7,50,67,0.97); backdrop-filter: blur(12px);
  padding: 0 40px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.2); }
nav .logo { display: flex; align-items: center; }
nav .logo svg { height: 42px; width: auto; display: block; }
nav .nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
nav .nav-links a {
  color: var(--sky); text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: 0.3px; padding: 8px 14px; border-radius: 6px; transition: all 0.2s;
}
nav .nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
nav .nav-links a.active { color: var(--white); background: rgba(1,153,185,0.2); }
nav .nav-cta {
  background: var(--orange) !important; color: var(--white) !important;
  padding: 10px 24px !important; font-weight: 700 !important;
}
nav .nav-cta:hover { background: #d96d1a !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 6px 0; }
/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 10px; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--navy); border: 1px solid rgba(138,198,226,0.15);
  border-radius: 8px; padding: 8px 0; min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3); margin-top: 4px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 10px 20px !important; font-size: 13px !important;
  border-radius: 0 !important;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.08) !important; }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange); color: var(--white);
  padding: 16px 36px; border-radius: 8px; font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 15px; text-decoration: none; border: none;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%); transition: none;
}
.btn-primary:hover { background: #d96d1a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(243,128,32,0.3); }
.btn-primary:hover::after { transform: translateX(100%); transition: transform 0.6s ease; }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--white);
  padding: 16px 36px; border-radius: 8px; font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 2px solid rgba(138,198,226,0.4); transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--sky); background: rgba(138,198,226,0.08); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--navy);
  padding: 14px 32px; border-radius: 8px; font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 14px; text-decoration: none;
  border: 2px solid var(--navy); transition: all 0.2s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-teal {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: var(--white);
  padding: 14px 32px; border-radius: 8px; font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative; overflow: hidden;
}
.btn-teal::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%); transition: none;
}
.btn-teal:hover { background: #017d96; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(1,153,185,0.3); }
.btn-teal:hover::after { transform: translateX(100%); transition: transform 0.6s ease; }

/* ─── Section styles ─── */
section { padding: 100px 0; }
section.alt { background: var(--light-bg); }
section.dark {
  background: var(--navy); color: var(--white);
  position: relative; overflow: hidden;
}
section.dark::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px 256px;
  pointer-events: none; z-index: 0;
}
section.dark > * { position: relative; z-index: 1; }
section.navy-gradient {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: var(--white);
  position: relative; overflow: hidden;
}
section.navy-gradient::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px 256px;
  pointer-events: none; z-index: 0;
}
section.navy-gradient > * { position: relative; z-index: 1; }
.section-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--teal); margin-bottom: 12px;
}
.section-title {
  font-size: 40px; font-weight: 900; line-height: 1.15;
  margin-bottom: 20px; letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 18px; font-weight: 300; color: var(--text-secondary);
  max-width: 640px; line-height: 1.7;
}
.dark .section-subtitle, .navy-gradient .section-subtitle { color: var(--sky); }
.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ─── Page Hero ─── */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, #0c5a78 60%, var(--navy-light) 100%);
  color: var(--white); padding: 140px 0 80px; position: relative; overflow: hidden;
}
/* Noise texture on all page heroes (#3) */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}
.page-hero::after {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 70%; height: 200%;
  background: radial-gradient(ellipse, rgba(1,153,185,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: 48px; font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.page-hero h1 .accent { color: var(--red); }
.page-hero .subtitle { font-size: 20px; font-weight: 300; color: var(--sky); max-width: 640px; line-height: 1.7; }
.page-hero .hero-ctas { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* ─── Cards ─── */
.card {
  background: var(--white); border-radius: 12px; box-shadow: var(--card-shadow);
  padding: 36px 28px; transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--sky));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ─── Accordion ─── */
.accordion-item {
  background: var(--white); border-radius: 12px; box-shadow: var(--card-shadow);
  margin-bottom: 12px; overflow: hidden;
}
.accordion-q {
  padding: 24px 28px; font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.accordion-q::after {
  content: '+'; font-size: 24px; font-weight: 300; color: var(--teal);
  flex-shrink: 0; transition: transform 0.2s;
}
.accordion-item.open .accordion-q::after { content: '−'; }
.accordion-a {
  display: none; padding: 0 28px 24px; font-size: 15px;
  color: #4a5568; line-height: 1.8;
}
.accordion-item.open .accordion-a { display: block; }
.accordion-a strong { color: var(--navy); }

/* ─── Grid helpers ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ─── Feature icon cards ─── */
.icon-card { text-align: center; padding: 32px 24px; }
.icon-card .icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.icon-card .icon.teal { background: rgba(1,153,185,0.12); }
.icon-card .icon.red { background: rgba(248,49,72,0.1); }
.icon-card .icon.green { background: rgba(1,153,185,0.1); }
.icon-card .icon.gold { background: rgba(250,180,22,0.1); }
.icon-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.icon-card p { font-size: 14px; color: var(--text-secondary); }

/* ─── Numbered steps ─── */
.step { display: flex; gap: 24px; margin-bottom: 40px; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--teal);
  color: var(--white); font-size: 20px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step-content p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.dark .step-content p { color: var(--sky); }

/* ─── Comparison table ─── */
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: var(--card-shadow);
}
.compare-table thead th {
  background: var(--navy); color: var(--white); padding: 16px 20px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  text-align: center;
}
.compare-table thead th:first-child { text-align: left; }
.compare-table tbody td {
  padding: 14px 20px; border-bottom: 1px solid #eef1f2; font-size: 14px; text-align: center;
}
.compare-table tbody td:first-child { text-align: left; font-weight: 600; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.price-red { color: var(--red); font-weight: 700; }
.price-green { color: var(--teal); font-weight: 800; }
.price-teal { color: var(--teal); font-weight: 700; }
.badge-save {
  display: inline-block; background: var(--teal-light); color: var(--teal-dark);
  font-weight: 800; padding: 4px 10px; border-radius: 4px; font-size: 13px;
}

/* ─── Callout box ─── */
.callout {
  border-radius: 12px; padding: 32px; margin: 32px 0;
}
.callout.navy { background: var(--navy); color: var(--white); }
.callout.teal-light { background: rgba(1,153,185,0.08); border: 1px solid rgba(1,153,185,0.2); }
.callout.green-light { background: var(--teal-light); border: 1px solid rgba(1,153,185,0.2); }
.callout.red-light { background: #fde8eb; border: 1px solid rgba(248,49,72,0.15); }
.callout h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.callout p { font-size: 15px; line-height: 1.7; }
.callout.navy p { color: var(--sky); }

/* ─── Provider card ─── */
.provider-card {
  background: var(--white); border-radius: 12px; box-shadow: var(--card-shadow);
  overflow: hidden; transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border-top: 3px solid transparent;
}
.provider-card:hover {
  box-shadow: var(--card-shadow-hover); transform: translateY(-4px);
  border-top-color: var(--teal);
}
.provider-card-body { padding: 24px; }
.provider-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.provider-card .provider-type {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--teal); margin-bottom: 12px;
}
.provider-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.provider-card .provider-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.provider-card .tag {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 4px;
  background: var(--light-bg); color: var(--navy);
}
.provider-card .tag.green { background: var(--teal-light); color: var(--teal-dark); }

/* ─── CTA Banner ─── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0c5a78 100%);
  padding: 80px 0; text-align: center; color: var(--white);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { font-size: 36px; font-weight: 900; margin-bottom: 16px; }
.cta-banner p { font-size: 18px; font-weight: 300; color: var(--sky); max-width: 600px; margin: 0 auto 32px; }
.cta-banner .cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ─── */
footer {
  background: var(--navy-dark); color: var(--gray); padding: 60px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 16px; color: var(--gray-light); }
.footer-col h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--sky); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: var(--gray-light); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(138,198,226,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; font-size: 12px;
}
.footer-bottom a { color: var(--gray-light); margin-left: 24px; text-decoration: none; }

/* ─── Mobile nav open state ─── */
body.nav-open { overflow: hidden; }
nav .nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100dvh - 72px);
  background: #073243;
  padding: 12px 24px calc(env(safe-area-inset-bottom, 20px) + 20px);
  gap: 2px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 9999;
  align-items: stretch;
}
nav .nav-links.mobile-open a {
  font-size: 15px;
  padding: 11px 16px;
}
nav .nav-links.mobile-open .nav-cta {
  text-align: center;
  margin-top: 6px;
  justify-content: center;
}
nav .nav-links.mobile-open .nav-dropdown-menu {
  position: static;
  display: none;
  box-shadow: none;
  border: none;
  padding: 0 0 0 20px;
  margin-top: 0;
  min-width: unset;
}
nav .nav-links.mobile-open .nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

/* ─── Table responsive wrapper ─── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ─── Color bars (brand accent stripe) ─── */
.color-bars {
  display: flex; height: 4px; width: 100%; overflow: hidden;
}
.color-bars span { display: block; height: 100%; }
.color-bars--thick { height: 6px; }

/* ─── Aligned dash lists (Pillar 2/3 on plan page) ─── */
.align-dash li {
  display: grid !important;
  grid-template-columns: 16px auto 1fr !important;
  gap: 0 8px !important;
  align-items: baseline !important;
}

/* ─── Nav medium breakpoint (900–1400px) ─── */
@media (max-width: 1400px) and (min-width: 901px) {
  nav { padding: 0 20px; }
  nav .nav-links { gap: 1px; }
  nav .nav-links a { font-size: 11px; padding: 6px 7px; letter-spacing: 0.1px; }
  nav .nav-cta { padding: 8px 14px !important; font-size: 11px !important; }
  nav .logo svg { height: 34px; }
  .nav-dropdown-menu { min-width: 190px; }
  .nav-dropdown-menu a { font-size: 11px !important; padding: 8px 16px !important; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  nav .nav-links { gap: 0; }
  nav .nav-links a { font-size: 10px; padding: 5px 5px; }
  nav .nav-cta { padding: 7px 10px !important; font-size: 10px !important; }
  nav .logo svg { height: 30px; }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 32px; }
  .page-hero { padding: 120px 0 60px; }
  .section-title { font-size: 30px; }
  nav .nav-links { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom a { margin-left: 0; margin-right: 12px; }
  .step { flex-direction: column; gap: 12px; }
  nav { padding: 0 20px; }
  .container { padding: 0 16px; }
  .cta-banner h2 { font-size: 28px; }
  .cta-banner p { font-size: 16px; }
  .compare-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 600px) {
  .page-hero h1 { font-size: 28px; }
  .hero-ctas { flex-direction: column; }
  section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; }
  .section-subtitle { font-size: 16px; }
  .grid-2-mobile { grid-template-columns: 1fr !important; }
}

/* ── Form Components ── */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.form-group label .required {
  color: var(--red);
  margin-left: 2px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid #c8d0d4;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: var(--navy);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(1,153,185,0.12);
}
.form-group input.error,
.form-group select.error {
  border-color: var(--red);
}
.form-group .error-msg {
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}
.form-group .hint {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Radio/checkbox groups */
.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.35rem;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  cursor: pointer;
}
.radio-group input[type="radio"],
.radio-group input[type="checkbox"] {
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
}

/* File upload */
.file-upload {
  border: 2px dashed #c8d0d4;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.file-upload:hover,
.file-upload.dragover {
  border-color: var(--teal);
  background: rgba(1,153,185,0.04);
}
.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-upload .file-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.file-upload .file-label strong {
  color: var(--teal);
}
.file-list {
  margin-top: 0.5rem;
}
.file-list .file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem;
  background: var(--light-bg);
  border-radius: 6px;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}
.file-list .file-item button {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 0.25rem;
}

/* Multi-step form */
.form-steps {
  max-width: 720px;
  margin: 0 auto;
}
.form-step {
  display: none;
}
.form-step.active {
  display: block;
}
.form-step h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.form-step .step-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Progress bar */
.form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}
.form-progress::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 3px;
  background: #e2e8f0;
  z-index: 0;
}
.form-progress .progress-fill {
  position: absolute;
  top: 15px;
  left: 0;
  height: 3px;
  background: var(--teal);
  z-index: 1;
  transition: width 0.3s;
}
.form-progress .step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
  transition: background 0.3s, color 0.3s;
}
.form-progress .step-dot.active {
  background: var(--teal);
  color: #fff;
}
.form-progress .step-dot.completed {
  background: var(--navy);
  color: #fff;
}

/* Form nav buttons */
.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}
.form-nav .btn-back {
  background: none;
  border: 1.5px solid #c8d0d4;
  color: var(--navy);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.2s;
}
.form-nav .btn-back:hover {
  border-color: var(--navy);
}
.form-nav .btn-back:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 3rem 1rem;
}
.form-success .check-circle {
  width: 64px;
  height: 64px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #fff;
}
