/* ============================================
   1. GOOGLE FONTS
   ============================================ */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Great+Vibes&family=Manrope:wght@300;400;500;600&display=swap");

/* ============================================
   2. VARIABLES
   ============================================ */
:root {
  --primary: #5b2a86;
  --secondary: #7e5a9b;
  --gold: #c8a46a;
  --ivory: #f8f5f0;
  --charcoal: #1f1a33;
  --plum: #5a234f;
  --white: #ffffff;

  --text-main: #1f1a33;
  --text-muted: #6d6670;

  --gold-soft: rgba(200, 164, 106, 0.12);
  --purple-soft: rgba(126, 90, 155, 0.1);

  --border-soft: rgba(31, 26, 51, 0.08);
  --shadow-soft: 0 12px 40px rgba(31, 26, 51, 0.045);

  --surface: #ffffff;
  --surface-muted: #f3eee7;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: Manrope, "Segoe UI", sans-serif;
  --font-script: "Great Vibes", "Cormorant Garamond", serif;

  --container: 1200px;
  --header-h: 78px;
  --radius: 16px;
  --radius-pill: 999px;
  --section-y: 80px;
  --ease: 280ms ease;
}

[data-theme="dark"] {
  --ivory: #1c1720;
  --surface: #241d29;
  --surface-elevated: #2b2232;
  --surface-muted: #2b2232;
  --text-main: #f5eff5;
  --text-muted: #beb5c0;
  --gold: #d0af73;
  --primary: #986eb8;
  --plum: #7a3a6a;
  --charcoal: #f5eff5;
  --border-soft: rgba(245, 239, 245, 0.1);
  --shadow-soft: 0 12px 40px rgba(8, 6, 12, 0.28);
  --purple-soft: rgba(152, 110, 184, 0.12);
  --gold-soft: rgba(208, 175, 115, 0.14);
}

/* ============================================
   3. RESET
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

html,
body {
  margin: 0;
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* ============================================
   4. BASE
   ============================================ */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.85rem);
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
}

h3 {
  font-weight: 500;
}

p {
  color: var(--text-muted);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.55rem 0.9rem;
  background: var(--plum);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================
   5. UTILITIES
   ============================================ */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.section-head {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 2.6rem;
}

.section-head p {
  margin-top: 0.75rem;
  font-size: 0.98rem;
  line-height: 1.75;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.section-head .ornament {
  margin-bottom: 0.7rem;
}

.section-head h2 + .ornament {
  margin: 0.7rem 0 0;
}

.ornament span {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.85;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.82rem 1.45rem;
  transition: transform var(--ease), background-color var(--ease), border-color var(--ease), color var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--plum);
  color: #fff;
  border: none;
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--plum) 88%, #fff);
}

.btn--outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--text-main);
}

.btn--outline:hover {
  background: var(--gold-soft);
}

.btn--gold {
  background: var(--gold);
  color: #fff;
  border: none;
}

.btn--gold:hover {
  background: color-mix(in srgb, var(--gold) 86%, #fff);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--gold);
  transition: color var(--ease), transform var(--ease);
}

.text-link:hover {
  color: var(--plum);
  transform: translateY(-1px);
}

.image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, #f3eee6 0%, #ebe4d8 100%);
  border: 1px solid var(--border-soft);
}

.image-placeholder--cta {
  min-height: 210px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.12));
  border-color: rgba(255, 255, 255, 0.08);
}

/* ============================================
   6. HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 22px rgba(31, 26, 51, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: max-content;
}

.logo img {
  width: 26px;
  height: 26px;
}

.logo span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__name {
  font-family: var(--font-script);
  font-size: 1.55rem;
  color: var(--text-main);
}

.logo__tag {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.18rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0.62rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--gold);
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0.62rem;
  right: 0.62rem;
  bottom: 0.12rem;
  height: 1px;
  background: var(--gold);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-header__cta {
  padding: 0.68rem 1.15rem;
  font-size: 0.8rem;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: transparent;
  color: var(--text-main);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--ease), background-color var(--ease);
}

.theme-toggle:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.theme-toggle__moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__moon {
  display: block;
}

[data-theme="dark"] .logo img {
  filter: brightness(1.55) saturate(0.8);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.4px;
  background: var(--text-main);
  transition: transform var(--ease), opacity var(--ease), top var(--ease);
}

.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }

.nav-toggle.is-open span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

.nav__mobile-cta {
  display: none;
}

/* ============================================
   7. HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: stretch;
  padding: 1.5rem 0 0;
  background-color: var(--ivory);
  /* Waiting for final design asset */
  background-image: url("../assets/images/backgrounds/hero-bg.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  align-items: end;
  gap: 1.5rem;
  width: min(1280px, calc(100% - 48px));
  min-height: calc(100vh - var(--header-h) - 1.5rem);
}

.hero__content {
  max-width: 34rem;
  padding-bottom: 4.5rem;
  align-self: center;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.hero__lead {
  margin-top: 1.15rem;
  font-size: 0.98rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.social-proof__avatars {
  display: flex;
}

.social-proof__avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ivory);
  margin-left: -9px;
}

.social-proof__avatars img:first-child {
  margin-left: 0;
}

.social-proof p {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-main);
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 560px;
}

.hero__portrait {
  width: min(100%, 560px);
  height: min(86vh, 740px);
  object-fit: contain;
  object-position: center bottom;
}

.quote-card {
  position: absolute;
  right: 0;
  top: 42%;
  width: min(236px, 72%);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1.25rem 1.15rem 1.1rem;
  box-shadow: var(--shadow-soft);
  z-index: 2;
}

.quote-card__mark {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 0.35;
  color: var(--gold);
  display: block;
  margin-bottom: 0.55rem;
}

.quote-card p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-main);
}

.quote-card__leaf {
  width: 24px;
  height: 24px;
  margin-left: auto;
  margin-top: 0.7rem;
}

/* ============================================
   8. HELP SECTION
   ============================================ */
.help {
  padding: 70px 0 50px;
  background: var(--ivory);
}

.help__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.help-card {
  background: var(--surface);
  border: 1px solid rgba(31, 26, 51, 0.06);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(31, 26, 51, 0.035);
  padding: 1.55rem 1.25rem 1.4rem;
}

.help-card img {
  width: 34px;
  height: 34px;
  margin-bottom: 0.95rem;
}

.help-card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.help-card p {
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ============================================
   9. STATS
   ============================================ */
.stats {
  padding: 0 0 70px;
}

.stats__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 18px;
  padding: 1.35rem 0.6rem;
  background: linear-gradient(
    90deg,
    rgba(126, 90, 155, 0.07),
    rgba(126, 90, 155, 0.12),
    rgba(126, 90, 155, 0.07)
  );
}

.stats__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.35rem 0.8rem;
  border-right: 1px solid rgba(126, 90, 155, 0.18);
}

.stats__item:last-child {
  border-right: 0;
}

.stats__item svg {
  width: 28px;
  height: 28px;
  color: var(--secondary);
  flex-shrink: 0;
}

.stats__item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-main);
}

.stats__item span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================
   10. ABOUT
   ============================================ */
.about {
  position: relative;
  padding: 20px 0 80px;
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(1.8rem, 4vw, 4.2rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.about__image {
  min-height: 420px;
}

.about__content {
  max-width: 32rem;
}

.about__content h2 {
  margin-bottom: 1.1rem;
}

.about__content p {
  margin-bottom: 0.85rem;
  font-size: 0.98rem;
}

.about__content .btn {
  margin-top: 0.55rem;
}

.about__leaf {
  position: absolute;
  right: -1%;
  bottom: -6%;
  width: min(340px, 32vw);
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}

/* ============================================
   11. TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 10px 0 80px;
}

.carousel {
  position: relative;
  padding: 0 2.8rem;
}

.carousel__viewport {
  overflow: hidden;
  container-type: inline-size;
}

.carousel__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.15rem;
  transition: transform 400ms ease;
}

.testimonial-card {
  flex: 0 0 calc((100cqi - 2.3rem) / 3);
  background: var(--surface);
  border: 1px solid rgba(31, 26, 51, 0.06);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(31, 26, 51, 0.035);
  padding: 1.5rem 1.3rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 248px;
}

.testimonial-card__mark {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 0.45;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.testimonial-card > p {
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
}

.testimonial-card__person {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.testimonial-card__person img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__person strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
}

.testimonial-card__person span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.carousel__btn {
  position: absolute;
  top: 40%;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-main);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease), background-color var(--ease);
}

.carousel__btn:hover {
  transform: translateY(-2px);
  background: var(--gold-soft);
}

.carousel__btn svg {
  width: 16px;
  height: 16px;
}

.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.carousel__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(200, 164, 106, 0.32);
  cursor: pointer;
}

.carousel__dots button.is-active {
  background: var(--gold);
  width: 16px;
  border-radius: 99px;
}

/* ============================================
   12. PROGRAMS
   ============================================ */
.programs {
  padding: 0 0 80px;
}

.programs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.program-card {
  display: grid;
  grid-template-columns: 42% 58%;
  background: var(--surface);
  border: 1px solid rgba(31, 26, 51, 0.06);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(31, 26, 51, 0.035);
  overflow: hidden;
  min-height: 148px;
}

.program-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.program-card__body {
  padding: 0.95rem 0.95rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.program-card h3 {
  font-size: 1.28rem;
  margin-bottom: 0.3rem;
}

.program-card p {
  font-size: 0.8rem;
  line-height: 1.55;
  margin-bottom: 0.55rem;
}

/* ============================================
   13. CTA
   ============================================ */
.final-cta {
  padding: 0 0 80px;
}

.final-cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 0.9fr;
  align-items: center;
  gap: 1.4rem;
  min-height: 240px;
  padding: 1.8rem 1.8rem 1.8rem 2.2rem;
  border-radius: 22px;
  overflow: hidden;
  background-color: var(--plum);
  /* Waiting for final design asset */
  background-image: url("../assets/images/backgrounds/cta-bg.png");
  background-size: cover;
  background-position: center;
  color: #f8f5f0;
}

.final-cta__inner::before {
  content: "";
  position: absolute;
  width: 0;
}

.final-cta h2 {
  color: #f8f5f0;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.final-cta__center {
  text-align: left;
}

.final-cta__center p {
  color: rgba(248, 245, 240, 0.84);
  margin-bottom: 1.15rem;
  font-size: 0.98rem;
}

.final-cta__media {
  justify-self: end;
  width: min(100%, 280px);
}

/* ============================================
   14. BLOG + FOOTER
   ============================================ */
.blog {
  padding: 0 0 80px;
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.76rem;
  margin-bottom: 0.45rem;
}

.blog-card__meta time {
  color: var(--text-muted);
}

.blog-card__meta span {
  color: var(--gold);
  font-weight: 600;
}

.blog-card h3 {
  font-size: 1.32rem;
  margin-bottom: 0.55rem;
}

.blog__more {
  display: flex;
  justify-content: center;
  margin-top: 2.2rem;
}

.site-footer {
  position: relative;
  padding-top: 3.6rem;
  overflow: hidden;
  background: var(--ivory);
  border-top: 1px solid var(--border-soft);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.9fr 1.2fr;
  gap: 2.2rem 1.8rem;
  position: relative;
  z-index: 1;
  padding-bottom: 2.6rem;
}

.site-footer__brand p {
  margin: 0.95rem 0 1.1rem;
  max-width: 17.5rem;
  font-size: 0.9rem;
}

.site-footer h3 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.95rem;
}

.site-footer ul {
  display: grid;
  gap: 0.48rem;
}

.site-footer ul a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--ease);
}

.site-footer ul a:hover {
  color: var(--gold);
}

.site-footer__social {
  display: flex;
  gap: 0.5rem;
}

.site-footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--plum);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform var(--ease), background-color var(--ease);
}

.site-footer__social a:hover {
  transform: translateY(-2px);
}

.site-footer__social svg {
  width: 15px;
  height: 15px;
}

.site-footer__connect p {
  font-size: 0.86rem;
  margin-bottom: 0.9rem;
}

.newsletter {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  overflow: hidden;
  padding: 4px 4px 4px 0.95rem;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-main);
  outline: none;
  padding: 0.5rem 0.35rem;
}

.newsletter input::placeholder {
  color: var(--text-muted);
}

.newsletter .btn {
  padding: 0.65rem 1.05rem;
  font-size: 0.8rem;
}

.newsletter__note {
  margin-top: 0.6rem;
  font-size: 0.84rem;
  color: var(--primary);
}

.site-footer__geometry {
  position: absolute;
  right: -36px;
  bottom: 58px;
  width: min(250px, 26vw);
  opacity: 0.28;
  pointer-events: none;
}

.site-footer__bottom {
  border-top: 1px solid var(--border-soft);
  position: relative;
  z-index: 1;
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 58px;
  padding-block: 0.7rem;
}

.site-footer__bottom p,
.site-footer__legal a,
.site-footer__legal span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.site-footer__legal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-footer__legal a:hover {
  color: var(--gold);
}

.back-to-top {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--plum);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform var(--ease);
}

.back-to-top:hover {
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   15. THEME
   ============================================ */
[data-theme="dark"] .btn--primary,
[data-theme="dark"] .site-footer__social a,
[data-theme="dark"] .back-to-top {
  color: #f5eff5;
}

[data-theme="dark"] .image-placeholder {
  background: linear-gradient(160deg, #2b2232, #241d29);
}

[data-theme="dark"] .final-cta__inner {
  background-color: #4a1d42;
}

/* ============================================
   16. ANIMATIONS
   ============================================ */
.will-reveal {
  opacity: 0;
  transform: translateY(14px);
}

.will-reveal.is-visible {
  animation: reveal-up 500ms ease forwards;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .will-reveal,
  .will-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   17. TABLET
   ============================================ */
@media (max-width: 1200px) {
  .quote-card {
    right: 4%;
  }
}

@media (max-width: 992px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--border-soft);
    padding: 0.5rem 1.4rem 1rem;
    box-shadow: var(--shadow-soft);
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav__link {
    padding: 0.7rem 0.3rem;
  }

  .nav__link.is-active::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-header__cta {
    display: none;
  }

  .nav__mobile-cta {
    display: block;
    padding: 0.5rem 0 0.6rem;
  }

  .hero__grid,
  .about__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__visual {
    min-height: 460px;
  }

  .hero__portrait {
    height: 520px;
  }

  .help__grid,
  .stats__row {
    grid-template-columns: 1fr 1fr;
  }

  .stats__item:nth-child(2) {
    border-right: 0;
  }

  .stats__item:nth-child(1),
  .stats__item:nth-child(2) {
    padding-bottom: 0.8rem;
  }

  .testimonial-card {
    flex-basis: calc((100cqi - 1.15rem) / 2);
  }

  .programs__grid,
  .blog__grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    grid-template-columns: 34% 66%;
    min-height: 160px;
  }

  .final-cta__inner {
    grid-template-columns: 1fr 1fr;
  }

  .final-cta__media {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   18. MOBILE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --header-h: 70px;
  }

  .container,
  .hero__grid {
    width: calc(100% - 32px);
  }

  .hero {
    min-height: unset;
    padding-top: 1.2rem;
  }

  .hero__grid,
  .about__grid,
  .final-cta__inner {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .hero__content {
    order: 1;
    padding-bottom: 1.2rem;
    align-self: start;
  }

  .hero__visual {
    order: 2;
    min-height: unset;
    flex-direction: column;
  }

  .hero__portrait {
    height: min(72vw, 460px);
  }

  .quote-card {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin-top: -1.2rem;
  }

  .help__grid {
    grid-template-columns: 1fr;
  }

  .stats__row {
    grid-template-columns: 1fr 1fr;
    row-gap: 0.9rem;
  }

  .testimonial-card {
    flex-basis: 100cqi;
    min-height: 220px;
  }

  .carousel {
    padding: 0 2.4rem;
  }

  .program-card {
    grid-template-columns: 1fr;
  }

  .program-card img {
    height: 180px;
  }

  .final-cta__inner {
    padding: 1.6rem 1.2rem;
    text-align: center;
  }

  .final-cta__center {
    text-align: center;
  }

  .about__image,
  .image-placeholder {
    min-height: 280px;
  }

  .about__leaf {
    width: 210px;
    opacity: 0.35;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }

  .site-footer__bottom-inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-proof {
    flex-wrap: wrap;
  }

  .stats__item {
    justify-content: flex-start;
  }

  .newsletter {
    flex-direction: column;
    border-radius: 16px;
    padding: 0.45rem;
    gap: 0.4rem;
  }

  .newsletter .btn {
    width: 100%;
  }
}
