/* Xfi-cap website styles — mobile-first, warm, photography-forward */
@import url('/static/colors_and_type.css');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-muted);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) {
  .container, .container-narrow { padding: 0 32px; }
  body { font-size: 18px; }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.005em;
  padding: 14px 24px;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 180ms var(--ease-standard), color 180ms var(--ease-standard), transform 120ms var(--ease-standard), box-shadow 180ms var(--ease-standard), border-color 180ms var(--ease-standard);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-primary { background: var(--cap-blue); color: #fff; box-shadow: 0 6px 16px rgba(95,168,229,0.35); }
.btn-primary:hover { background: var(--compass-blue); box-shadow: 0 10px 22px rgba(46,111,190,0.35); text-decoration: none; color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: #fff; color: var(--xfi-navy); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--xfi-navy); color: var(--xfi-navy); text-decoration: none; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.btn-lg { padding: 16px 28px; font-size: 17px; border-radius: 16px; }
.btn-block { width: 100%; }

/* ========== Header ========== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  display: flex; align-items: center; gap: 16px;
  height: 68px; padding: 0 20px;
  max-width: 1160px; margin: 0 auto;
}
@media (min-width: 768px) { .site-header-inner { padding: 0 32px; height: 76px; } }
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.site-logo:hover { text-decoration: none; }
.site-logo-img { height: 36px; width: auto; display: block; }
@media (min-width: 768px) { .site-logo-img { height: 42px; } }
.wordmark { font-family: var(--font-heading); font-weight: 900; font-style: italic; font-size: 22px; letter-spacing: -0.02em; line-height: 1; }
.wordmark .w-navy { color: var(--xfi-navy); }
.wordmark .w-blue { color: var(--cap-blue); }
.wordmark-light .w-navy { color: #fff; }
.site-nav { display: none; gap: 32px; flex: 1; margin-left: 24px; align-items: center; }
.site-nav > a, .site-nav .nav-dropdown-trigger { color: var(--fg); font-size: 15px; font-weight: 600; text-decoration: none; }
.site-nav > a:hover, .site-nav .nav-dropdown-trigger:hover { color: var(--compass-blue); text-decoration: none; }
.site-nav > a.active, .site-nav .nav-dropdown.active .nav-dropdown-trigger { color: var(--compass-blue); }
@media (min-width: 900px) { .site-nav { display: flex; } }

/* Desktop dropdown */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 0;
}
.nav-caret { transition: transform 220ms var(--ease-standard); flex-shrink: 0; opacity: 0.7; }
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  min-width: 248px;
  box-shadow:
    0 22px 48px rgba(31, 42, 58, 0.16),
    0 6px 14px rgba(31, 42, 58, 0.06);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transform-origin: top center;
  transition:
    opacity 200ms var(--ease-standard),
    transform 240ms var(--ease-standard),
    visibility 0s linear 240ms;
  z-index: 60;
}
/* Invisible hover bridge so the gap between trigger and menu doesn't break hover */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 200ms var(--ease-standard),
    transform 240ms var(--ease-standard);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
  transition: background 140ms var(--ease-standard), color 140ms var(--ease-standard), padding 200ms var(--ease-standard);
}
.nav-dropdown-menu a:hover {
  background: var(--cloud);
  color: var(--compass-blue);
  text-decoration: none;
  padding-left: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-menu { transition: opacity 120ms linear, visibility 0s linear 120ms; transform: none; }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu { transform: none; transition: opacity 120ms linear; }
}

/* Mobile dropdown */
.mobile-dropdown { border-bottom: 1px solid var(--border); }
.mobile-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--fg);
  cursor: pointer;
  text-align: left;
}
.mobile-dropdown-trigger .nav-caret { transition: transform 240ms var(--ease-standard); }
.mobile-dropdown.open .mobile-dropdown-trigger .nav-caret { transform: rotate(180deg); }

.mobile-dropdown-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 0 0 0;
  transition:
    max-height 320ms var(--ease-standard),
    opacity 240ms var(--ease-standard),
    padding 320ms var(--ease-standard);
}
.mobile-dropdown.open .mobile-dropdown-menu {
  max-height: 480px;
  opacity: 1;
  padding: 4px 0 12px;
}
.mobile-dropdown-menu .mobile-sub-link {
  display: block;
  padding: 11px 0 11px 18px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--fg-muted);
  border-bottom: 0;
  text-decoration: none;
  transform: translateY(-4px);
  opacity: 0;
  transition: transform 280ms var(--ease-standard), opacity 240ms var(--ease-standard), color 140ms var(--ease-standard);
}
.mobile-dropdown.open .mobile-dropdown-menu .mobile-sub-link {
  transform: translateY(0);
  opacity: 1;
}
.mobile-dropdown.open .mobile-dropdown-menu .mobile-sub-link:nth-child(1) { transition-delay: 60ms; }
.mobile-dropdown.open .mobile-dropdown-menu .mobile-sub-link:nth-child(2) { transition-delay: 100ms; }
.mobile-dropdown.open .mobile-dropdown-menu .mobile-sub-link:nth-child(3) { transition-delay: 140ms; }
.mobile-dropdown.open .mobile-dropdown-menu .mobile-sub-link:nth-child(4) { transition-delay: 180ms; }
.mobile-dropdown.open .mobile-dropdown-menu .mobile-sub-link:nth-child(5) { transition-delay: 220ms; }
.mobile-dropdown-menu .mobile-sub-link:hover { color: var(--compass-blue); }

@media (prefers-reduced-motion: reduce) {
  .mobile-dropdown-menu, .mobile-dropdown-menu .mobile-sub-link { transition-duration: 0ms !important; transform: none !important; }
}
.site-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-cta .btn { padding: 10px 18px; font-size: 15px; }
.site-mobile-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; color: var(--xfi-navy); cursor: pointer;
}
@media (min-width: 900px) { .site-mobile-toggle { display: none; } }
.site-mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 12px 20px 20px;
}
.site-mobile-menu.open { display: block; }
.site-mobile-menu a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.site-mobile-menu a:last-of-type { border-bottom: 0; }
.site-mobile-menu .btn { margin-top: 16px; width: 100%; }

/* ========== Sections ========== */
.section { padding: 56px 0; }
.section-lg { padding: 72px 0; }
.section-alt { background: var(--cloud); }
.section-dark { background: linear-gradient(180deg, var(--xfi-navy) 0%, var(--midnight) 100%); color: var(--fg-inverse); }
.section-tint { background: linear-gradient(180deg, var(--sky-mist) 0%, #fff 100%); }
@media (min-width: 900px) {
  .section { padding: 88px 0; }
  .section-lg { padding: 112px 0; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--compass-blue);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--cap-blue); }

.h-display {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.25rem, 6vw + 0.5rem, 4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0 0 18px;
  text-wrap: balance;
}
.section-dark .h-display,
.section-dark h1, .section-dark h2 { color: #fff; }
.accent-italic { font-family: var(--font-heading); font-style: italic; font-weight: 800; color: var(--cap-blue); }

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.section-dark .lead { color: rgba(255,255,255,0.82); }
@media (min-width: 768px) { .lead { font-size: 20px; } }

.h-section {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  text-wrap: balance;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 48px 0 64px;
}
.hero-dark {
  background: linear-gradient(180deg, var(--xfi-navy) 0%, var(--midnight) 100%);
  color: var(--fg-inverse);
  overflow: hidden;
}
.hero-watermark {
  position: absolute; right: -80px; bottom: -80px;
  width: 420px; height: 420px;
  opacity: 0.07; pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-proof {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  font-size: 14px; color: var(--fg-subtle);
}
.hero-dark .hero-proof { color: rgba(255,255,255,0.72); }
.hero-proof-item { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cap-blue); }
.hero-proof b { color: var(--fg); font-weight: 700; }
.hero-dark .hero-proof b { color: #fff; }

.hero-photo {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: var(--sky-mist);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(31,42,58,0.18);
}

/* Hero variant: wider photo column for a square/landscape art image with no chrome */
.hero-grid-wide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid-wide { grid-template-columns: 1fr 1.35fr; gap: 48px; }
}
.hero-art {
  width: 100%;
  position: relative;
}
.hero-art img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}
.hero-photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--sky-mist) 0%, #fff 100%);
  color: var(--compass-blue);
  text-align: center; padding: 24px;
}
.hero-photo-placeholder .label {
  font-family: var(--font-heading); font-weight: 800; font-size: 14px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-photo-placeholder .hint { font-size: 14px; color: var(--slate); max-width: 240px; line-height: 1.5; }
.hero-photo-badge {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 14px rgba(31,42,58,0.08);
  display: flex; align-items: center; gap: 12px;
}
.hero-photo-badge-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--sky-mist);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; color: var(--xfi-navy);
  flex-shrink: 0;
}
.hero-photo-badge-text { font-size: 14px; line-height: 1.4; color: var(--slate); }
.hero-photo-badge-text b { color: var(--xfi-navy); display: block; font-family: var(--font-heading); font-weight: 700; }

/* ========== Cards ========== */
.card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(31,42,58,0.04);
  transition: transform 200ms var(--ease-standard), box-shadow 200ms var(--ease-standard);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31,42,58,0.08); }
.card h3 { margin: 0 0 8px; font-size: 20px; color: var(--fg); letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 16px; color: var(--fg-muted); line-height: 1.6; }

.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--sky-mist); color: var(--xfi-navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

/* ========== Grids ========== */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ========== Steps ========== */
.step-n {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 42px;
  color: var(--cap-blue);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

/* ========== Reason stack (numbered prose, no card chrome) ========== */
.reason-stack { display: flex; flex-direction: column; gap: 56px; }
@media (min-width: 768px) { .reason-stack { gap: 64px; } }
.reason-stack .reason { max-width: 720px; }
.reason-stack .reason p { font-size: 17px; line-height: 1.65; color: var(--fg-muted); margin: 0; }
.reason-stack .reason p + p { margin-top: 14px; }

/* Benefit heading with green check icon */
.benefit-h3 {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 14px;
}
.benefit-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========== FAQ (always-open list, no accordion) ========== */
.faq { border-top: 1px solid var(--border); margin-top: 24px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-q {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.faq-item p { margin: 0; font-size: 16px; color: var(--fg-muted); line-height: 1.65; }
.faq-item p + p { margin-top: 8px; }

/* ========== CTA band ========== */
.cta-band { background: var(--gradient-compass); padding: 72px 0; text-align: center; color: #fff; }
.cta-band h2 { color: #fff; font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.82); font-size: 18px; margin: 0 auto 24px; max-width: 520px; }

/* ========== Footer ========== */
.site-footer { background: var(--midnight); color: rgba(255,255,255,0.72); padding-top: 56px; }
.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
@media (min-width: 640px) { .site-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .site-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.site-footer-brand .wordmark { font-size: 24px; }
.site-footer p { font-size: 15px; max-width: 320px; color: rgba(255,255,255,0.65); }
.site-footer h5 { font-family: var(--font-heading); font-weight: 800; font-size: 14px; color: #fff; margin: 0 0 14px; letter-spacing: 0.02em; }
.site-footer a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 15px; padding: 6px 0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer-legal { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; font-size: 13px; color: rgba(255,255,255,0.4); }
.site-footer-legal .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }

/* ========== Utility ========== */
.text-center { text-align: center; }
.max-prose { max-width: 680px; margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }

/* Image placeholder */
.img-placeholder {
  background: linear-gradient(135deg, var(--sky-mist) 0%, var(--fog) 100%);
  border-radius: 20px;
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--compass-blue);
  border: 1px dashed rgba(46,111,190,0.3);
  padding: 20px;
  text-align: center;
}
.img-placeholder .label { font-family: var(--font-heading); font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.img-placeholder .hint { font-size: 13px; color: var(--slate); }

/* ========== Real hero photo (overrides the placeholder pattern) ========== */
.hero-photo img.hero-photo-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== Image band (full-width single image inside container) ========== */
.image-band {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(31,42,58,0.14);
  aspect-ratio: 21 / 9;
  background: var(--sky-mist);
}
.image-band img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.image-band-tall { aspect-ratio: 16 / 9; }
@media (max-width: 768px) {
  .image-band, .image-band-tall { aspect-ratio: 4 / 3; border-radius: 20px; }
}
.image-band-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 28px 24px;
  background: linear-gradient(180deg, rgba(18,26,38,0) 0%, rgba(18,26,38,0.78) 100%);
  color: #fff;
}
.image-band-caption .eyebrow { color: var(--cap-blue); margin: 0 0 6px; }
.image-band-caption h3 { color: #fff; font-size: 22px; margin: 0; font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.01em; }

/* ========== Photo strip (2/3/4-up image grid) ========== */
.photo-strip {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .photo-strip-2 { grid-template-columns: 1fr 1fr; }
  .photo-strip-3 { grid-template-columns: 1fr 1fr; }
  .photo-strip-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .photo-strip-3 { grid-template-columns: 1fr 1fr 1fr; }
  .photo-strip-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.photo-strip figure {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 6px 14px rgba(31,42,58,0.08);
  background: var(--sky-mist);
}
.photo-strip figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 520ms var(--ease-standard);
}
.photo-strip figure:hover img { transform: scale(1.045); }
.photo-strip figcaption {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(180deg, rgba(18,26,38,0) 0%, rgba(18,26,38,0.85) 100%);
  color: #fff;
  padding: 28px 18px 16px;
  font-size: 14px;
  line-height: 1.45;
}
.photo-strip figcaption b {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.005em;
  margin-bottom: 2px;
  color: #fff;
}

/* ========== Card with photo on top ========== */
.card-photo {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-photo-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--sky-mist);
}
.card-photo-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 520ms var(--ease-standard);
}
.card-photo:hover .card-photo-media img { transform: scale(1.045); }
.card-photo-body { padding: 26px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.card-photo-body .btn { align-self: flex-start; }

/* ========== Split with photo (alternating side-by-side content + image) ========== */
.split-photo {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .split-photo { grid-template-columns: 1fr 1.05fr; gap: 64px; }
  .split-photo-reverse { grid-template-columns: 1.05fr 1fr; }
  .split-photo-reverse > .split-photo-media { order: -1; }
}
.split-photo-media {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 16px 40px rgba(31,42,58,0.14);
  background: var(--sky-mist);
}
.split-photo-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.split-photo-media-portrait { aspect-ratio: 4 / 5; }

/* ========== Brand-voice quote card with photo ========== */
.photo-quote {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(31,42,58,0.08);
}
@media (min-width: 720px) {
  .photo-quote { grid-template-columns: 1fr 1fr; }
}
.photo-quote-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sky-mist);
}
@media (min-width: 720px) {
  .photo-quote-media { aspect-ratio: auto; min-height: 100%; }
}
.photo-quote-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-quote-body {
  padding: 40px 44px;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, var(--cloud) 0%, #fff 100%);
}
@media (min-width: 1000px) {
  .photo-quote-body { padding: 48px 56px; }
}
.photo-quote-body .q-eyebrow {
  font-family: var(--font-heading);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--compass-blue);
  margin: 0 0 12px;
}
.photo-quote-body .quote {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.375rem, 1.2vw + 1rem, 1.85rem);
  line-height: 1.28;
  color: var(--fg);
  margin: 0 0 16px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.photo-quote-body .attr { font-size: 14px; color: var(--fg-subtle); }
.photo-quote-body .attr b { color: var(--fg); font-weight: 700; }

/* Dark variant for photo quote (sits on navy sections) */
.section-dark .photo-quote { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.12); }
.section-dark .photo-quote-body { background: transparent; }
.section-dark .photo-quote-body .quote { color: #fff; }
.section-dark .photo-quote-body .attr { color: rgba(255,255,255,0.55); }
.section-dark .photo-quote-body .attr b { color: #fff; }

/* ========== Plan card with vehicle photo on top ========== */
.plan-card {
  padding: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.plan-card-vehicle {
  background: linear-gradient(180deg, var(--cloud) 0%, #fff 100%);
  padding: 18px 20px 6px;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--fog);
}
.plan-card-vehicle img {
  max-width: 92%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.plan-card-body { padding: 26px 30px 32px; flex: 1; display: flex; flex-direction: column; }
.plan-card-featured { border-color: var(--cap-blue); box-shadow: 0 14px 28px rgba(95,168,229,0.2); }
.plan-card-featured .plan-card-vehicle { background: linear-gradient(180deg, #EAF3FB 0%, #fff 100%); }

/* ========== Hero background photo (soft wash behind hero text) ========== */
.hero-with-bg { position: relative; overflow: hidden; }
.hero-with-bg > .container, .hero-with-bg > .container-narrow { position: relative; z-index: 2; }
.hero-bg-photo {
  position: absolute; inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.18;
}
.hero-bg-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.95) 100%);
}

/* ========== Audience-split card variants with embedded photo ========== */
.audience-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 8px 20px rgba(31,42,58,0.06);
  display: flex; flex-direction: column;
  transition: transform 260ms var(--ease-standard), box-shadow 260ms var(--ease-standard);
}
.audience-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(31,42,58,0.12); }
.audience-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky-mist); }
.audience-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 560ms var(--ease-standard); }
.audience-card:hover .audience-card-media img { transform: scale(1.04); }
.audience-card-body { padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.audience-card-dark {
  background: linear-gradient(135deg, var(--xfi-navy) 0%, var(--midnight) 100%);
  color: #fff;
  border: 0;
}
.audience-card-dark .audience-card-body p { color: rgba(255,255,255,0.78); }
.audience-card-dark .audience-card-body h3 { color: #fff; }
.audience-card-dark .audience-card-body .eyebrow { color: var(--cap-blue); }

/* Pill / badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 13px; letter-spacing: 0.02em;
  background: var(--sky-mist); color: var(--xfi-navy);
}
.badge-light { background: rgba(255,255,255,0.12); color: #fff; }

/* Section dark variants */
.section-dark .eyebrow { color: var(--cap-blue); }
.section-dark p { color: rgba(255,255,255,0.78); }
.section-dark .card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.82); }
.section-dark .card h3 { color: #fff; }
.section-dark .card p { color: rgba(255,255,255,0.72); }
.section-dark .card-icon { background: rgba(255,255,255,0.08); color: #fff; }

/* ---------- PeakCMS: build-time nav active states (replaces chrome.js currentPage logic) ---------- */
body.page-learn .nav-dropdown[data-nav-group="lease"] .nav-dropdown-trigger,
body.page-lease-plans .nav-dropdown[data-nav-group="lease"] .nav-dropdown-trigger,
body.page-lease-vs-finance .nav-dropdown[data-nav-group="resources"] .nav-dropdown-trigger,
body.page-trade-options .nav-dropdown[data-nav-group="resources"] .nav-dropdown-trigger,
body.page-inventory .nav-dropdown[data-nav-group="shop"] .nav-dropdown-trigger,
body.page-partner-dealers .nav-dropdown[data-nav-group="shop"] .nav-dropdown-trigger,
body.page-gig-drivers .site-nav a[data-nav="gig-drivers"] {
  color: var(--compass-blue);
}

/* PeakCMS: dealer logo slot */
.dealer-card-logo {
  max-height: 48px;
  max-width: 200px;
  object-fit: contain;
  align-self: flex-start;
}
