/* =========================================================
   IFG Mockup — Design System
   Palette: Navy authority + Orange energy + Blue accent
   Replaces childish hearts/squiggles with clean geometry.
   ========================================================= */

:root {
  --navy-900: #002A4F;  /* IFG brand navy — rgb(0,42,79) from ifgsd.com */
  --navy-800: #043B63;
  --navy-700: #0A4A78;
  --navy-50:  #F2F6FA;

  --orange-600: #D46640;  /* IFG brand orange (dark) */
  --orange-500: #F47F4F;  /* IFG brand orange — #f47f4f from ifgsd.com CSS */
  --orange-100: #FDEAE0;

  --blue-700: #044F7C;  /* IFG brand blue — from IFG logo circle */
  --blue-600: #0A6699;
  --blue-500: #2A80C0;
  --blue-100: #E0EEF7;

  --ink:       #0E1B2C;
  --ink-soft:  #3A4A5E;
  --muted:     #6B7A8C;
  --line:      #E2E8EE;
  --bg:        #FFFFFF;
  --bg-soft:   #F7F9FC;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0,42,79,.06), 0 1px 1px rgba(0,42,79,.04);
  --shadow:    0 8px 24px rgba(0,42,79,.08);
  --shadow-lg: 0 24px 60px rgba(0,42,79,.14);

  --container: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--orange-600); }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: .9rem;
}
.eyebrow.blue { color: var(--blue-700); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--orange-500);
  color: #fff;
  box-shadow: 0 6px 16px rgba(244,127,79,.35);
}
.btn-primary:hover { background: var(--orange-600); color: #fff; box-shadow: 0 10px 22px rgba(244,127,79,.45); }
.btn-secondary {
  background: var(--navy-900);
  color: #fff;
}
.btn-secondary:hover { background: var(--navy-800); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  padding: 10px 12px;
}
.btn-ghost:hover { color: var(--orange-600); }
.btn-on-dark {
  background: #fff;
  color: var(--navy-900);
}
.btn-on-dark:hover { background: var(--orange-500); color: #fff; }
.btn-lg { padding: 18px 28px; font-size: 1.05rem; }
.btn-sm { padding: 10px 16px; font-size: .9rem; }

.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy-900);
  font-size: 1.1rem;
  letter-spacing: -.01em;
}
.brand-mark {
  width: 36px; height: 36px;
  background: transparent url('../img/brand/ifg-logo.png') center/contain no-repeat;
  position: relative;
  flex: 0 0 auto;
}
.brand-mark::after { display: none; }
/* On dark backgrounds (footer), give the navy logo a white chip backing so it stays visible */
.site-footer .brand-mark,
.dark .brand-mark {
  background: #fff url('../img/brand/ifg-logo.png') center/82% no-repeat;
  border-radius: 50%;
  padding: 0;
}
.brand small {
  display: block;
  font-weight: 500;
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--navy-900);
  font-weight: 500;
  font-size: .95rem;
  padding: 8px 12px;
  border-radius: 6px;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--orange-600); }
.nav-cta {
  display: flex; align-items: center; gap: 10px;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  color: var(--navy-900);
  cursor: pointer;
}
@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-outline, .hide-mobile { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  background:
    radial-gradient(1200px 500px at 90% -20%, rgba(255,107,53,.10), transparent 60%),
    radial-gradient(900px 480px at -10% 110%, rgba(0,119,200,.10), transparent 55%),
    linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0; }
}
.hero h1 strong { color: var(--orange-600); font-weight: 700; }
.hero p.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 540px;
}
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
/* .hero-trust removed — stats band below hero handles this */

/* Hero visual block — premium editorial card */
.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(0,0,0,.18);
  background: var(--navy-900);
  /* Let the portrait image drive natural height, capped so it doesn't dominate */
  max-height: 540px;
}
.hero-photo {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* Gradient overlay — strong dark band at bottom */
.hero-photo-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 72px 16px 18px;
  background: linear-gradient(to top,
    rgba(5,15,38,1) 0%,
    rgba(5,15,38,.82) 40%,
    rgba(5,15,38,.35) 70%,
    transparent 100%);
}
/* Stat chips row */
.hero-photo-stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.hero-stat-chip {
  /* solid fallback for Android — backdrop-filter unreliable */
  background: rgba(12,28,60,.72);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 8px 10px;
  flex: 1 1 auto;
  min-width: 0;
}
.hero-stat-chip .chip-num {
  font-size: .88rem;
  font-weight: 800;
  display: block;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.hero-stat-chip .chip-label {
  font-size: .62rem;
  color: rgba(255,255,255,.70);
  display: block;
  margin-top: 2px;
  line-height: 1.3;
}
/* Mobile hero adjustments */
@media (max-width: 900px) {
  /* On mobile the card stacks full-width — constrain height so image isn't huge */
  .hero-visual { max-height: 380px; }
  .hero-photo { max-height: 380px; }
  .hero-photo-overlay { padding: 56px 12px 14px; }
  .hero-photo-stats { gap: 5px; }
  .hero-stat-chip { padding: 7px 9px; }
  .hero-stat-chip .chip-num { font-size: .95rem; }
  .hero-stat-chip .chip-label { font-size: .7rem; }
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
section.dark {
  background: var(--navy-900);
  color: #E6EEF6;
}
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.dark p { color: #B7C5D6; }
section.dark .eyebrow { color: var(--orange-500); }
section.soft { background: var(--bg-soft); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D6E1EC; }
.card .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  margin-bottom: 18px;
  font-size: 1.2rem;
}
.card .icon.orange { background: var(--orange-100); color: var(--orange-600); }
.card h3 { margin-bottom: .35em; }
.card p { margin-bottom: 0; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; gap: 24px; } }
.stat { text-align: center; padding: 8px 12px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
@media (max-width: 800px) { .stat { border-right: 0; } }
.stat .num {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy-900);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat .num em { color: var(--orange-600); font-style: normal; }
.stat .label { color: var(--muted); font-size: .85rem; }

/* ---------- Pillars (icon row) ---------- */
.pillar {
  display: flex; gap: 18px;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.pillar .num {
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--orange-600);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--orange-100);
  border-radius: 8px;
}
.pillar h4 { margin: 0 0 4px; }
.pillar p { margin: 0; font-size: .95rem; }

/* ---------- Video / Media ---------- */
.video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-700));
  box-shadow: var(--shadow);
  cursor: pointer;
  isolation: isolate;
}
.video-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px 180px at 70% 30%, rgba(244,127,79,.45), transparent 60%);
}
.video-card .thumb-meta {
  position: absolute; left: 18px; bottom: 16px; right: 18px;
  color: #fff; z-index: 2;
}
.video-card .thumb-meta small { opacity: .85; }
.video-card .thumb-meta h4 { color: #fff; margin: 4px 0 0; font-size: 1.05rem; }
.play-btn {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  z-index: 3;
}
.play-btn span {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: rgba(255,107,53,.95);
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  transition: transform .15s ease, background .2s ease;
}
.play-btn span::before {
  content: "";
  border-left: 22px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}
.video-card:hover .play-btn span { transform: scale(1.06); background: var(--orange-600); }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.quote::before {
  content: "“";
  position: absolute;
  top: -10px; left: 18px;
  font-size: 4rem;
  line-height: 1;
  color: var(--orange-500);
  font-family: Georgia, serif;
  background: #fff;
  padding: 0 6px;
}
.quote p { font-size: 1.02rem; color: var(--ink); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--navy-900));
  color: #fff; font-weight: 700;
  display: grid; place-items: center;
}
.quote .who strong { color: var(--navy-900); display: block; font-size: .95rem; }
.quote .who small { color: var(--muted); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background:
    radial-gradient(800px 240px at 90% 10%, rgba(255,107,53,.22), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: #B7C5D6; }
.cta-banner .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 800px) {
  .cta-banner { grid-template-columns: 1fr; padding: 36px; text-align: left; }
  .cta-banner .cta-actions { justify-content: flex-start; }
}

/* ---------- Forms ---------- */
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label {
  display: block;
  font-size: .85rem; font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(42,144,217,.18);
}
.form .field { margin-bottom: 14px; }
.form .consent { color: var(--muted); font-size: .82rem; margin-top: 6px; }
.form .success {
  background: #E8F7EE;
  color: #1B6B3A;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 600;
  display: none;
}
.form.submitted .success { display: block; }
.form.submitted .form-body { display: none; }

/* ---------- VSL specific ---------- */
.vsl-stage {
  background: var(--navy-900);
  padding: 56px 0 24px;
  color: #fff;
}
.vsl-stage h1 { color: #fff; text-align: center; max-width: 900px; margin: 0 auto 12px; }
.vsl-stage p.lead { color: #C9D6E6; text-align: center; max-width: 720px; margin: 0 auto 32px; }
.vsl-frame {
  max-width: 920px; margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.vsl-cta {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 24px;
}

/* ---------- Article ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article h1 { margin-bottom: 12px; }
.article .meta { color: var(--muted); font-size: .9rem; margin-bottom: 36px; }
.article h2 { margin-top: 1.6em; }
.article p, .article li { font-size: 1.06rem; color: var(--ink); }
.article ul { padding-left: 1.2em; }
.article blockquote {
  border-left: 4px solid var(--orange-500);
  padding: 8px 0 8px 22px;
  color: var(--navy-900);
  font-weight: 500;
  font-size: 1.1rem;
  background: var(--bg-soft);
  border-radius: 0 8px 8px 0;
  margin: 1.5em 0;
}
.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: .95rem;
}
.toc strong { color: var(--navy-900); display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #B7C5D6;
  padding: 64px 0 28px;
}
.site-footer a { color: #B7C5D6; }
.site-footer a:hover { color: var(--orange-500); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h5 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: .92rem; }
.legal {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  font-size: .82rem;
  color: #8FA0B5;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; }
.mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }

.divider {
  height: 1px; background: var(--line); margin: 0 auto;
  max-width: var(--container);
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: .78rem; font-weight: 600;
}
.badge.orange { background: var(--orange-100); color: var(--orange-600); }
.badge.dark { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Real photo treatments ---------- */
.headshot {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-soft);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(10,37,64,.12);
}
.headshot-lg { width: 72px; height: 72px; }
.quote .who img.headshot { width: 44px; height: 44px; border-width: 1px; }

.photo-tile {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  position: relative;
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-tile:hover img { transform: scale(1.04); }

/* Legacy .hero-photo block removed — .hero-photo is now the <img> itself
   (width/height/object-fit/object-position defined above at line ~270).
   The .hero-visual wrapper handles border-radius, overflow, max-height, and shadow. */

/* ---------- Video embed (real iframe-ready) ---------- */
.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: var(--shadow);
}
.video-embed iframe,
.video-embed video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-embed.placeholder {
  background: linear-gradient(135deg, var(--navy-900), var(--blue-700));
  cursor: pointer;
  isolation: isolate;
}
.video-embed.placeholder::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 200px at 70% 30%, rgba(244,127,79,.45), transparent 60%);
}
.video-embed.placeholder .play-btn { z-index: 3; }
.video-embed.placeholder .v-meta {
  position: absolute; left: 22px; bottom: 18px; right: 22px; z-index: 2;
  color: #fff;
}
.video-embed.placeholder .v-meta small { opacity: .85; }
.video-embed.placeholder .v-meta h4 { color: #fff; margin: 4px 0 0; font-size: 1.1rem; }
.video-embed.placeholder .v-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(255,255,255,.95); color: var(--navy-900);
  padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.video-versions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
}
@media (max-width: 800px) { .video-versions { grid-template-columns: repeat(2, 1fr); } }
.video-versions .v {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .82rem;
  text-align: center;
  cursor: pointer;
  background: #fff;
  color: var(--navy-900);
  font-weight: 500;
  transition: all .15s ease;
}
.video-versions .v.active,
.video-versions .v:hover { border-color: var(--orange-500); background: var(--orange-100); color: var(--orange-600); }

/* ---------- Long-form SEO article ---------- */
.seo-article {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 980px) {
  .seo-article { grid-template-columns: 1fr; }
  .seo-article aside.sidebar { position: static; }
}
.seo-article .body { max-width: 720px; }
.seo-article .body h2 { font-size: 1.6rem; margin-top: 1.6em; }
.seo-article .body h3 { font-size: 1.2rem; color: var(--navy-900); margin-top: 1.4em; }
.seo-article .body p, .seo-article .body li { font-size: 1.06rem; color: var(--ink); line-height: 1.7; }
.seo-article .body ul, .seo-article .body ol { padding-left: 1.3em; }
.seo-article .body li { margin: 6px 0; }
.seo-article .body blockquote {
  border-left: 4px solid var(--orange-500);
  padding: 8px 0 8px 22px;
  color: var(--navy-900);
  font-weight: 500;
  font-size: 1.1rem;
  background: var(--bg-soft);
  border-radius: 0 8px 8px 0;
  margin: 1.5em 0;
}
.seo-article .body figure { margin: 28px 0; }
.seo-article .body figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 8px; }
.seo-article aside.sidebar { position: sticky; top: 90px; align-self: start; }
.seo-article aside .panel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 18px;
}
.seo-article aside .panel-card.cta {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: #fff; border: 0;
}
.seo-article aside .panel-card.cta h4 { color: #fff; }
.seo-article aside .panel-card.cta p { color: #B7C5D6; font-size:.92rem; }
.seo-article aside .panel-card h4 { margin: 0 0 10px; font-size: 1rem; }
.seo-article aside ol { padding-left: 1.2em; font-size: .92rem; }
.seo-article aside ol li { margin: 6px 0; }
.seo-article aside ol li a { color: var(--ink-soft); }
.seo-article aside ol li a:hover { color: var(--orange-600); }

.key-takeaways {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 28px 0;
}
.key-takeaways h4 {
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-600); margin: 0 0 10px;
}
.key-takeaways ul { margin: 0; padding-left: 1.2em; }
.key-takeaways li { color: var(--ink); font-weight: 500; }

/* ---------- Tight squeeze page ---------- */
.squeeze {
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(255,107,53,.10), transparent 65%),
    radial-gradient(800px 400px at -10% 110%, rgba(0,119,200,.10), transparent 60%),
    linear-gradient(180deg, #FBFCFE, #fff);
  min-height: 100vh;
}
.squeeze-wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0;
}
@media (max-width: 980px) { .squeeze-wrap { grid-template-columns: 1fr; padding: 32px 0; } }
.squeeze-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.squeeze-headline em {
  font-style: normal;
  background: linear-gradient(transparent 60%, rgba(255,107,53,.32) 60%);
  padding: 0 4px;
}
.squeeze-lede { font-size: 1.18rem; color: var(--ink-soft); }
.proof-row {
  display:flex; gap: 18px; align-items:center;
  margin: 22px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.proof-row .stat-mini { text-align:center; flex: 1; }
.proof-row .stat-mini strong { display:block; color: var(--navy-900); font-size: 1.25rem; font-weight: 800; }
.proof-row .stat-mini small { color: var(--muted); font-size: .78rem; }

.bullet-list { list-style: none; padding: 0; margin: 18px 0 0; }
.bullet-list li {
  padding: 10px 0 10px 36px;
  position: relative; color: var(--ink); font-weight: 500;
}
.bullet-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 10px;
  width: 24px; height: 24px;
  background: var(--orange-500); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 700;
}

.sticky-cta { position: sticky; top: 88px; }

/* ---------- Image strip ---------- */
.img-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 32px;
}
@media (max-width: 900px) { .img-strip { grid-template-columns: repeat(3, 1fr); } }
.img-strip .photo-tile { aspect-ratio: 1/1; }

/* ---------- Final CTA highlight ---------- */
.final-cta {
  background:
    radial-gradient(700px 300px at 80% 30%, rgba(255,107,53,.25), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: #C9D6E6; max-width: 620px; margin: 0 auto 24px; }

/* Utility */
@media (max-width: 760px) { .hide-sm { display: none; } }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ============================================================
   COMMUNITY SECTION — grid layout fix
   ============================================================ */
.community-section {
  padding: 80px 0;
  background: var(--navy-900);
}
.community-section h2 { color: #fff; margin: 8px 0 0; }
.community-section .eyebrow { color: var(--orange-500); }

.community-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}
.community-lede {
  color: #B7C5D6;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 400px;
  flex: 0 0 auto;
  padding-top: 8px;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.community-grid .photo-tile {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: unset; /* override default 4/3 so grid rows control height */
  height: 100%;
}
.community-grid .photo-tile.tall {
  grid-row: span 2;
}
.community-grid .photo-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

@media (max-width: 768px) {
  .community-header { flex-direction: column; gap: 16px; }
  .community-lede { max-width: 100%; }
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .community-grid .photo-tile.tall { grid-row: span 1; }
}
@media (max-width: 480px) {
  .community-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 130px;
  }
}

/* ============================================================
   VIDEO SECTION — card sizing consistency
   ============================================================ */
.video-card .thumb-meta {
  position: absolute;
  left: 16px; bottom: 14px; right: 16px;
  z-index: 4;
}
/* Ensure the top video card in the nested grid has a fixed height */
section.dark .grid > .video-card {
  min-height: 240px;
}
section.dark .grid-2 .video-card {
  min-height: 140px;
  aspect-ratio: 16/9;
}
/* Prevent horizontal overflow on video section grid */
section.dark .grid[style] { overflow: hidden; }

/* ============================================================
   SECTION SPACING — normalize excessive vertical gaps
   ============================================================ */
section + section { margin-top: 0; }
.community-section + section { margin-top: 0; }

/* Section padding tightening for non-hero sections */
section.soft { padding: 64px 0; }
section.dark { padding: 72px 0; }

@media (max-width: 768px) {
  section { padding: 48px 0; }
  section.dark { padding: 48px 0; }
  section.tight { padding: 36px 0; }
}

/* ============================================================
   SECTION FLOW — eliminate dead gap between community + stories
   ============================================================ */

/* Community section: reduce bottom padding — it bleeds straight into the dark stories section */
.community-section {
  padding-bottom: 0;
}

/* Stories section that immediately follows community — kill its top padding too */
.community-section + section.dark {
  padding-top: 48px;
}

/* ============================================================
   VIDEO CARD PROPORTIONS — right-side media block rebalance
   ============================================================ */

/* Main (featured) video card: shorter, less dominating */
section.dark .grid > .video-card:first-child {
  aspect-ratio: 3/2;
  min-height: unset;
}

/* Bottom two cards: maintain 16/9 but at smaller size */
section.dark .grid-2 .video-card {
  aspect-ratio: 16/9;
  min-height: unset;
}

/* Tighten the gap between the stacked video cards */
section.dark .grid[style] {
  gap: 12px !important;
}
section.dark .grid-2[style] {
  gap: 12px !important;
}

/* Play button: scale down for the smaller cards */
section.dark .grid-2 .play-btn span {
  width: 52px;
  height: 52px;
}
section.dark .grid-2 .play-btn span::before {
  border-left-width: 15px;
  border-top-width: 10px;
  border-bottom-width: 10px;
}

/* ============================================================
   COMMUNITY GRID — tighter, more cohesive feel
   ============================================================ */

/* Reduce row height slightly so the gallery feels tighter */
.community-grid {
  grid-auto-rows: 190px;
  gap: 10px;
}

@media (max-width: 768px) {
  .community-section + section.dark {
    padding-top: 36px;
  }
  .community-grid {
    grid-auto-rows: 140px;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .community-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 110px;
  }
}

/* Mobile: cap the wordmark logo so it doesn't clip when sharing the header
   row with the Talk to Us CTA + hamburger toggle. */
@media (max-width: 600px) {
  .brand img,
  .brand-logo {
    max-width: 110px;
    max-height: 32px;
  }
  .brand small {
    display: none;
  }
}
