:root {
  --primary: #123d7a;
  --primary-dark: #0d2950;
  --cream: #f7ecd9;
  --text: #18263b;
  --muted: #526177;
  --surface: rgba(255,255,255,.9);
  --line: rgba(18,61,122,.14);
  --shadow: 0 22px 55px rgba(12, 29, 49, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfcff 0%, #f1f6ff 100%);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
p { color: var(--muted); margin-bottom: 1rem; }
h1, h2, h3, h4 { letter-spacing: -.02em; line-height: 1.1; }
h1 { font-size: clamp(2.75rem, 5vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3vw, 3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(248,250,255,.86);
  border-bottom: 1px solid rgba(18,61,122,.08);
  backdrop-filter: blur(18px);
  transition: box-shadow .35s ease, background-color .35s ease;
}
.site-header.is-scrolled {
  background: rgba(248,250,255,.94);
  box-shadow: 0 12px 34px rgba(12,29,49,.08);
}
.navbar { min-height: 96px; transition: min-height .35s ease; }
.site-header.is-scrolled .navbar { min-height: 74px; }
.brand-logo { width: 190px; height: auto; display: block; transition: width .35s ease; }
.site-header.is-scrolled .brand-logo { width: 150px; }
.nav-link { color: var(--muted); font-weight: 700; }
.nav-link:hover { color: var(--primary); }
.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(18,61,122,.08);
}
.language-switch a {
  min-width: 46px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
  text-align: center;
}
.language-switch a.active { background: #fff; color: var(--primary-dark); box-shadow: 0 8px 18px rgba(12,29,49,.08); }

.btn {
  --bs-btn-border-radius: 999px;
  --bs-btn-padding-x: 1.35rem;
  --bs-btn-padding-y: .85rem;
  --bs-btn-font-weight: 800;
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease, transform .5s ease;
  border-radius: 999px !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-color: var(--cream);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-hover-color: #fff;
  box-shadow: 0 18px 34px rgba(18,61,122,.18);
}
.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: rgba(18,61,122,.28);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-hover-color: #fff;
}
.btn-cream {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--primary) !important;
  box-shadow: 0 18px 34px rgba(3,10,22,.16);
}
.btn-cream:hover {
  background: #fff;
  border-color: #fff;
  color: #000 !important;
}

.eyebrow, .badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(18,61,122,.12);
  background: rgba(18,61,122,.08);
  color: var(--primary);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.eyebrow-light, .eyebrow-hero, .hero-photo .badge-soft {
  background: rgba(247,236,217,.14);
  border-color: rgba(247,236,217,.22);
  color: var(--cream);
}

.hero-photo {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  isolation: isolate;
  background: #0d2950;
}
.hero-photo-bg {
  position: absolute;
  inset: -7% 0;
  z-index: -2;
  background-image: url('/assets/img/hero-couple-sixties.png');
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--hero-parallax-y, 0px), 0);
  will-change: transform;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8,23,46,.88) 0%, rgba(11,31,61,.72) 35%, rgba(13,41,80,.32) 60%, rgba(13,41,80,.08) 100%);
}
.min-vh-hero { min-height: 690px; }
.hero-photo h1, .hero-photo .lead, .hero-microcopy { color: #fff; }
.hero-photo .lead { color: rgba(255,255,255,.88); max-width: 42rem; }
.hero-microcopy { color: rgba(255,255,255,.78); font-weight: 700; }

.section { padding: 84px 0; }
.section-light { background: linear-gradient(180deg, #f8faff 0%, #eef4ff 100%); }
.section-soft { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(233,239,255,.65)); }
.section-contrast { background: rgba(255,255,255,.58); }
.section-darkband { background: linear-gradient(135deg, #0f223f, #123d7a); }
.section-darkquote { background: linear-gradient(180deg, #eef4ff 0%, #dfe8fb 100%); }
.section-heading { max-width: 760px; margin-bottom: 1.75rem; }
.section-heading.left { margin-bottom: 0; }
.section-heading-light h2, .section-heading-light p { color: #fff; }
.section-heading p { color: #465872; }

.info-card, .step, .pricing-card, .contact-card, .content-page, .language-card, .cta-panel {
  border: 1px solid rgba(255,255,255,.72);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.info-card, .step, .pricing-card, .contact-card, .content-page { padding: 28px; }
.info-card p, .step p, .contact-card p { color: #485a73; }
.bullet-list { color: #485a73; line-height: 1.8; padding-left: 1.25rem; margin-bottom: 0; }
.bullet-list li + li { margin-top: 6px; }
.bullet-list.compact li + li { margin-top: 2px; }
.emphasis-card { display: flex; align-items: center; justify-content: center; }
.emphasis-card p { margin: 0; font-size: 1.12rem; color: var(--text); font-weight: 700; }
.emphasis-strong { background: linear-gradient(180deg, #123d7a, #0f223f); }
.emphasis-strong p { color: #fff; }
.step span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #edf3ff;
  color: var(--primary);
  font-weight: 800;
}
.image-card { margin: 0; padding: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.image-card img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; display: block; }
.content-stack { max-width: 620px; }
.pricing-card { background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(245,249,255,.94)); }
.pricing-amount { font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 800; color: var(--primary-dark); line-height: 1; }
.pricing-period { margin: 10px 0 18px; color: #4b5d75; }
.cta-panel { padding: 40px; }
.cta-panel-strong { background: linear-gradient(135deg, rgba(18,61,122,.98), rgba(12,34,66,.98)); }
.cta-panel-dark-soft { background: linear-gradient(135deg, rgba(18,61,122,.92), rgba(47,89,155,.92)); }
.cta-panel-strong h2, .cta-panel-strong p, .cta-panel-dark-soft h2, .cta-panel-dark-soft p { color: rgba(255,255,255,.96); }
.stat-label { display: block; margin-bottom: 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); font-weight: 800; }
.support-card { display: grid; gap: 18px; }
.support-details { padding-top: 12px; border-top: 1px solid var(--line); }
.support-details p:last-child { margin-bottom: 0; }

.site-footer { padding: 28px 0 40px; background: #0f1d31; }
.footer-shell { padding: 30px; border-radius: 32px; background: linear-gradient(180deg, #0f1d31, #11243d); color: rgba(255,255,255,.9); box-shadow: 0 30px 60px rgba(8,16,28,.24); }
.footer-shell h3, .footer-shell h4 { color: #fff; }
.footer-shell p, .footer-shell a { color: rgba(255,255,255,.82); }
.footer-shell a:hover { color: #fff; }
.footer-bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.09); color: #d3dcea; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.page-simple { padding: 72px 0 96px; }
.content-page h1 { font-size: clamp(2rem, 3vw, 2.75rem); }
.content-page h2 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); margin-top: 28px; }
.content-page p, .content-page li { font-size: .98rem; line-height: 1.75; }
.language-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 0; }
.language-card { padding: 42px; }

.js .reveal-on-scroll { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--reveal-delay, 0ms); }
.js .reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.info-card, .step, .pricing-card, .contact-card, .cta-panel { transition: transform .35s ease, box-shadow .35s ease; }
.info-card:hover, .step:hover, .pricing-card:hover, .contact-card:hover, .cta-panel:hover { transform: translateY(-3px); box-shadow: 0 26px 65px rgba(12, 29, 49, .15); }

@media (max-width: 991.98px) {
  .navbar { min-height: auto; padding: 14px 0; }
  .brand-logo, .site-header.is-scrolled .brand-logo { width: 160px; }
  .hero-photo, .min-vh-hero { min-height: 620px; }
  .image-card img { min-height: 420px; }
}
@media (max-width: 767.98px) {
  h1 { font-size: 2.55rem; }
  .hero-photo, .min-vh-hero { min-height: 620px; }
  .hero-photo-bg { inset: 0; transform: none; background-position: 67% center; }
  .section { padding: 64px 0; }
  .info-card, .step, .pricing-card, .contact-card, .content-page { padding: 22px; }
  .cta-panel, .language-card, .footer-shell { padding: 24px; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .hero-photo-bg { transform: none !important; }
}

/* Targeted contrast fixes */
.btn.btn-cream.btn-sm:hover,
.btn.btn-cream.btn-sm:focus,
.btn.btn-cream.btn-sm:active {
  background-color: #fff !important;
  border-color: #fff !important;
  color: var(--primary) !important;
}

.info-card.emphasis-card.emphasis-strong,
.info-card.emphasis-card.emphasis-strong h1,
.info-card.emphasis-card.emphasis-strong h2,
.info-card.emphasis-card.emphasis-strong h3,
.info-card.emphasis-card.emphasis-strong h4,
.info-card.emphasis-card.emphasis-strong h5,
.info-card.emphasis-card.emphasis-strong h6,
.info-card.emphasis-card.emphasis-strong p,
.info-card.emphasis-card.emphasis-strong li,
.info-card.emphasis-card.emphasis-strong a,
.info-card.emphasis-card.emphasis-strong span,
.info-card.emphasis-card.emphasis-strong strong,
.info-card.emphasis-card.emphasis-strong em {
  color: #fff !important;
}


.btn,
.btn-sm,
.btn-lg,
.btn-primary,
.btn-outline-primary,
.btn-cream {
  border-radius: 999px !important;
}

/* Dark section intro contrast fix */
.section-darkband .section-heading-light p,
.section-darkband .section-heading-light h2,
.section-darkband .section-heading-light .eyebrow,
.section-heading.section-heading-light p {
  color: #fff !important;
}
