/* ==========================================================================
   Sampat Investments — Revamped Site Styles
   ========================================================================== */

:root {
  --navy-900: #0a1a30;
  --navy-800: #0d2444;
  --navy-700: #133162;
  --navy-600: #1c4380;
  --gold-500: #c89b3c;
  --gold-400: #dab55f;
  --gold-100: #f7ecd3;
  --ink: #1c2531;
  --gray-600: #5a6472;
  --gray-300: #e3e7ee;
  --gray-100: #f6f8fb;
  --white: #ffffff;
  --success: #1f9d63;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-btn: 10px;
  --shadow-sm: 0 2px 10px rgba(13, 36, 68, 0.08);
  --shadow-md: 0 10px 30px rgba(13, 36, 68, 0.12);
  --shadow-lg: 0 20px 60px rgba(13, 36, 68, 0.18);
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --header-h: 96px;
}

/* ---------- Icon system ---------- */
.icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--navy-800); }
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}
section.section { padding: 88px 0; }
section.section--alt {
  background: var(--gray-100);
  background-image: radial-gradient(circle, rgba(13,36,68,.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn .icon { width: .95em; height: .95em; }
.btn--primary { background: var(--gold-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--gold-400); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--gray-300); }
.btn--ghost:hover { border-color: var(--navy-800); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn--lg { padding: 15px 32px; font-size: 1rem; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy-900); color: rgba(255,255,255,.85); font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 24px; gap: 12px; flex-wrap: wrap; }
.topbar__reg { margin: 0; }
.topbar__actions { display: flex; gap: 18px; }
.topbar__link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-400); font-weight: 600; }
.topbar__link .icon { width: .95em; height: .95em; }
.topbar__link:hover { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-300);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  height: 52px; width: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.brand--footer .brand__mark { height: 58px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--navy-900); white-space: nowrap; }
.brand__tag { font-size: .72rem; color: var(--gray-600); font-weight: 500; white-space: nowrap; display: none; }

.nav__list { display: flex; gap: 20px; }
.nav__link {
  font-weight: 600; font-size: .88rem; color: var(--ink);
  position: relative; padding-bottom: 4px; white-space: nowrap;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold-500); transition: width .25s ease;
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.header__cta { display: flex; gap: 10px; }

@media (min-width: 1440px) {
  .brand__tag { display: block; }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; padding: 6px;
}
.hamburger span { width: 26px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 80% -10%, var(--navy-700), var(--navy-900) 60%);
  color: var(--white);
  overflow: hidden;
  padding: 90px 0 70px;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(200,155,60,.15), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(200,155,60,.12), transparent 45%);
  pointer-events: none;
}
.hero__chart {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  height: auto;
  opacity: .55;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); font-weight: 800; margin-bottom: .5em; }
.hero h1 span { color: var(--gold-400); }
.hero__sub { font-size: 1.05rem; color: rgba(255,255,255,.82); max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 44px; }

.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 28px; }
.stat { display: flex; flex-direction: column; }
.stat__num, .stat__suffix { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--gold-400); display: inline; }
.stat__label { font-size: .78rem; color: rgba(255,255,255,.68); margin-top: 4px; }

.hero__visual { display: flex; justify-content: center; }
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
}
.hero-card__title { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.hero-card__ring { position: relative; width: 160px; height: 160px; margin: 0 auto 22px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__bg { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 10; }
.ring__fg {
  fill: none; stroke: var(--gold-500); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 90;
}
.hero-card__ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-card__ring-label strong { font-family: var(--font-head); font-size: 1.4rem; color: var(--white); }
.hero-card__ring-label span { font-size: .72rem; color: rgba(255,255,255,.65); }
.hero-card__rows { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; }
.hero-card__row { display: flex; justify-content: space-between; font-size: .9rem; color: rgba(255,255,255,.85); }
.hero-card__row strong { color: var(--white); }
.hero-card__note { font-size: .7rem; color: rgba(255,255,255,.5); margin-top: 16px; margin-bottom: 0; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--navy-800); border-top: 1px solid rgba(255,255,255,.08); }
.trust-strip__inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px;
  padding: 14px 24px; font-size: .78rem; color: rgba(255,255,255,.75); letter-spacing: .02em;
}
.trust-strip__inner span { display: inline-flex; align-items: center; gap: 7px; }
.trust-strip__inner .icon { width: 1rem; height: 1rem; color: var(--gold-500); stroke-width: 2; }

/* ---------- Section headings ---------- */
.section__head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section__head h2 span { color: var(--gold-500); }
.section__sub { color: var(--gray-600); font-size: 1.02rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about__frame {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about__icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: var(--gold-400);
}
.about__icon .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.about__frame-title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 6px; }
.about__frame-text { color: rgba(255,255,255,.75); margin: 0; }
.about__content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.about__content h2 span { color: var(--gold-500); }
.about__content p { color: var(--gray-600); }
.link-arrow { display: inline-block; font-weight: 700; color: var(--navy-800); border-bottom: 2px solid var(--gold-500); padding-bottom: 2px; }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gold-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-800); margin-bottom: 18px;
}
.card__icon .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--gray-600); font-size: .93rem; margin: 0; }

/* Goal calculator tiles */
.goal-grid { grid-template-columns: repeat(6, 1fr); }
.goal-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius-md);
  padding: 26px 12px; text-align: center; font-weight: 600; font-size: .85rem; color: var(--navy-800);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.goal-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); background: var(--gold-100); }
.goal-tile__icon { color: var(--navy-800); }
.goal-tile__icon .icon { width: 28px; height: 28px; stroke-width: 1.6; }

/* Value cards */
.value-card {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  position: relative;
}
.value-card__num { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--gold-500); }
.value-card h3 { margin-top: 10px; font-size: 1.05rem; }
.value-card p { color: var(--gray-600); font-size: .9rem; margin: 0; }

.ethics { margin-top: 56px; background: var(--navy-800); color: var(--white); border-radius: var(--radius-lg); padding: 40px; }
.ethics h3 { color: var(--white); text-align: center; margin-bottom: 22px; }
.ethics__list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.ethics__list li { position: relative; padding-left: 28px; color: rgba(255,255,255,.85); }
.ethics__list li .icon { position: absolute; left: 0; top: .2em; width: 18px; height: 18px; color: var(--gold-400); stroke-width: 2.2; }

/* ---------- Calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.calc__inputs { padding: 44px 40px; display: flex; flex-direction: column; gap: 30px; }
.calc__field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 10px; color: var(--navy-800); }
.calc__field input[type="range"] {
  width: 100%; accent-color: var(--gold-500); height: 6px;
}
.calc__value { margin-top: 8px; font-family: var(--font-head); color: var(--navy-800); }
.calc__value strong { font-size: 1.1rem; }

.calc__result {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  padding: 44px 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.calc__result-label { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.calc__result-value { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--gold-400); margin-bottom: 20px; }
.calc__bars { display: flex; gap: 34px; align-items: flex-end; height: 140px; margin-bottom: 10px; }
.calc__bar-group { display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; }
.calc__bar { width: 46px; border-radius: 8px 8px 0 0; transition: height .4s ease; }
.calc__bar--invested { background: rgba(255,255,255,.35); }
.calc__bar--gain { background: var(--gold-500); }
.calc__bar-group span { font-size: .75rem; color: rgba(255,255,255,.75); }
.calc__bar-group strong { color: var(--white); font-size: .82rem; }
.calc__disclaimer { display: flex; align-items: flex-start; gap: 8px; text-align: left; font-size: .68rem; color: rgba(255,255,255,.5); margin: 18px 0 0; max-width: 340px; }
.calc__disclaimer .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--gold-400); }

/* ---------- Testimonials ---------- */
.testimonials { max-width: 780px; margin: 0 auto; text-align: center; }
.testimonial-track { position: relative; min-height: 220px; }
.testimonial {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .5s ease;
  margin: 0; padding: 0;
}
.testimonial.active { opacity: 1; position: relative; }
.testimonial__stars { display: flex; justify-content: center; gap: 4px; color: var(--gold-500); margin-bottom: 14px; }
.testimonial__stars .icon { width: 17px; height: 17px; }
.testimonial p { font-size: 1.15rem; color: var(--navy-800); font-style: italic; max-width: 640px; margin-inline: auto; }
.testimonial footer { margin-top: 16px; font-weight: 700; color: var(--gray-600); font-size: .88rem; font-style: normal; }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.testimonial-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--gray-300);
  transition: background .2s ease, transform .2s ease;
}
.testimonial-dots button.active { background: var(--gold-500); transform: scale(1.2); }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; margin-bottom: 36px; }
.contact-info__item { display: flex; gap: 16px; margin-bottom: 30px; }
.contact-info__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--gold-100);
  display: flex; align-items: center; justify-content: center; color: var(--navy-800); flex-shrink: 0;
}
.contact-info__icon .icon { width: 22px; height: 22px; stroke-width: 1.7; }
.contact-info__item h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-info__item p { color: var(--gray-600); margin: 0; font-size: .92rem; }
.contact-info__item a:hover { color: var(--gold-500); }
.contact-info__socials { display: flex; gap: 12px; margin-top: 12px; }
.contact-info__socials a {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center; color: var(--navy-800);
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.contact-info__socials a .icon { width: 18px; height: 18px; stroke-width: 1.8; }
.contact-info__socials a:hover { background: var(--gold-100); color: var(--navy-900); transform: translateY(-3px); }

.contact-form {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: .82rem; font-weight: 600; color: var(--navy-800); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  padding: 11px 14px; font-family: inherit; font-size: .92rem; background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(200,155,60,.18);
}
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--gray-600); }
.contact-form__success { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--success); font-weight: 600; text-align: center; margin-top: 8px; }
.contact-form__success .icon { width: 18px; height: 18px; }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }

/* ---------- Closing CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); padding: 80px 0; }
.cta-band__inner { text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 32px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding-top: 64px; font-size: .88rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand p { color: rgba(255,255,255,.6); font-size: .85rem; }
.brand--footer .brand__name { color: var(--white); }
.footer__col h4 { color: var(--white); font-size: .95rem; margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { display: inline-flex; align-items: center; gap: 6px; }
.footer__col a .icon { width: .85em; height: .85em; opacity: .7; }
.footer__col a:hover { color: var(--gold-400); }
.footer__risk { padding: 30px 24px; font-size: .74rem; color: rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__risk p { margin-bottom: 10px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; flex-wrap: wrap; gap: 12px; }
.footer__socials { display: flex; gap: 14px; }
.footer__socials a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.75);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer__socials a .icon { width: 16px; height: 16px; stroke-width: 1.8; }
.footer__socials a:hover { background: rgba(255,255,255,.12); color: var(--gold-400); transform: translateY(-2px); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 400;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-400); border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.back-to-top .icon { width: 20px; height: 20px; stroke-width: 2; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-500); color: var(--navy-900); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 380px; margin: 0 auto 20px; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; margin: 0 auto; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--6, .goal-grid { grid-template-columns: repeat(3, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .hamburger { display: flex; }
  .nav.open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-300); box-shadow: var(--shadow-md);
    padding: 20px 24px;
  }
  .nav.open .nav__list { flex-direction: column; gap: 16px; }
  .header__cta.open { display: flex; position: absolute; top: calc(100% + 1px); left: 0; right: 0; background: var(--white); padding: 0 24px 20px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .topbar__inner { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  section.section { padding: 60px 0; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--6, .goal-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Gallery page — page hero + carousel
   ========================================================================== */
.page-hero {
  background: radial-gradient(1200px 500px at 80% -10%, var(--navy-700), var(--navy-900) 60%);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero__inner { max-width: 700px; margin: 0 auto; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: .4em; }
.page-hero h1 span { color: var(--gold-400); }
.page-hero__sub { color: rgba(255,255,255,.8); font-size: 1.02rem; margin: 0; }

.carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-900);
}
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  transition: transform .5s ease;
}
.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--navy-900);
}
.carousel__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.carousel__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 32px 22px;
  background: linear-gradient(to top, rgba(10,26,48,.92), rgba(10,26,48,0));
  color: var(--white);
}
.carousel__caption h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 6px; }
.carousel__caption p { color: rgba(255,255,255,.82); font-size: .92rem; margin: 0; max-width: 560px; }

.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: background .2s ease, transform .2s ease;
}
.carousel__arrow .icon { width: 22px; height: 22px; stroke-width: 2; }
.carousel__arrow:hover { background: rgba(255,255,255,.3); }
.carousel__arrow--prev { left: 16px; }
.carousel__arrow--next { right: 16px; }

.carousel__dots {
  position: absolute; bottom: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 9px;
  z-index: 2;
}
.carousel__dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.4);
  transition: background .2s ease, transform .2s ease;
}
.carousel__dots button.active { background: var(--gold-500); transform: scale(1.25); }

.gallery__note {
  text-align: center;
  color: var(--gray-600);
  font-size: .9rem;
  max-width: 560px;
  margin: 28px auto 0;
}

@media (max-width: 640px) {
  .carousel__slide { aspect-ratio: 4 / 5; }
  .carousel__caption { padding: 20px 18px 16px; }
  .carousel__caption h3 { font-size: 1.05rem; }
  .carousel__arrow { width: 36px; height: 36px; font-size: 1.3rem; }
}
