/* ==========================================================================
   Grace Titilayo Olatile Foundation — Design System & Stylesheet
   Editorial layout inspired by womeninmice.com, harmonized with the
   Foundation's circular emblem (Emerald, Crimson, Marigold Gold & Leaf Green).
   ========================================================================== */

:root {
  /* Brand Palette harmonized with GTO Foundation Logo */
  --brand: #14452F;        /* Deep Forest Emerald — primary editorial anchor */
  --brand-dark: #0C2E1F;   /* Deepest Evergreen — topbar & footer */
  --brand-mid: #1F6344;    /* Mid Emerald — gradient card highlight */
  --crimson: #D92344;      /* Logo Red Dot — accents, underlines, links */
  --crimson-dark: #9B162E; /* Deep Crimson — gradient card shadow */
  --gold: #F2B007;         /* Logo Marigold Arc — CTAs, italic display, bars */
  --gold-dark: #D49600;    /* Rich Gold — hover state & accessible icon tint */
  --leaf: #38A843;         /* Logo Leaf Green — subtle supporting accent */

  /* Light Mode Surfaces & Typography */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --ivory: #FAF7F2;        /* Warm alternating section band */
  --line: #EAE3D8;         /* 1px hairline dividers */
  --text: #1B241E;         /* Primary dark ink */
  --muted: #5A655E;        /* Secondary body copy */

  /* Shadows & Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-lg: 0 24px 50px -20px rgba(12, 46, 31, .32);
  --shadow-md: 0 18px 36px -18px rgba(12, 46, 31, .28);
  --shadow-sm: 0 6px 20px rgba(12, 46, 31, .08);

  --container: min(1200px, 100% - 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101613;
    --surface: #18211C;
    --ivory: #141C18;
    --line: #27342C;
    --text: #EEF3EF;
    --muted: #A9B7AE;
    --shadow-lg: 0 24px 50px -20px rgba(0, 0, 0, .55);
    --shadow-md: 0 18px 36px -18px rgba(0, 0, 0, .48);
    --shadow-sm: 0 6px 20px rgba(0, 0, 0, .35);
  }
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.03rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #1B241E;
  padding: .65rem 1.2rem;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: 999px;
}

/* Accent Bar */
.line-accent {
  width: 56px;
  height: 3px;
  background: var(--gold);
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.75rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: .97rem;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 10px 24px -10px rgba(20, 69, 47, .55);
}

.btn-gold {
  background: var(--gold);
  color: #18211C;
}
.btn-gold:hover {
  background: var(--gold-dark);
  box-shadow: 0 12px 26px -10px rgba(242, 176, 7, .5);
}

.btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, .7);
}
.btn-ghost:hover {
  background: #FFFFFF;
  color: var(--brand-dark);
  border-color: #FFFFFF;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   Top Utility Bar
   ========================================================================== */
.topbar {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, .84);
  font-size: .86rem;
}

.topbar-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .4rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: rgba(255, 255, 255, .84);
  transition: color .2s var(--ease);
}

a.topbar-item:hover {
  color: var(--gold);
}

.topbar-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

.socials {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.socials a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}

.socials a:hover {
  background: var(--gold);
  color: var(--brand-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   Sticky Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.hdr {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: height .3s var(--ease);
}

.site-header.scrolled .hdr {
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .78rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(12, 46, 31, .12);
  transition: transform .3s var(--ease);
}

.brand:hover .brand-logo {
  transform: scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.24rem;
  color: var(--brand);
}

@media (prefers-color-scheme: dark) {
  .brand-title {
    color: #A9E3C1;
  }
}

.brand-sub {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--muted);
  margin-top: .18rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  position: relative;
  font-size: .97rem;
  font-weight: 500;
  color: var(--text);
  padding-block: .3rem;
  transition: color .2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--crimson);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: .68rem 1.45rem;
  font-size: .94rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  animation: kenBurns 24s ease-out forwards;
}

@keyframes kenBurns {
  from { transform: scale(1.13); }
  to   { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(12, 46, 31, .95) 0%,
    rgba(20, 69, 47, .80) 48%,
    rgba(20, 69, 47, .34) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 5.5rem 7.5rem;
}

.hero-content > * {
  max-width: 660px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .42rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .24);
  color: rgba(255, 255, 255, .92);
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 176, 7, .25);
}

.hero h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.1rem);
  color: #FFFFFF;
  margin-bottom: 1.35rem;
  letter-spacing: -.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .88);
  max-width: 36rem;
  margin-bottom: 2.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .95rem;
}

.photo-credit {
  position: absolute;
  right: 1.25rem;
  bottom: 4.3rem;
  z-index: 2;
  font-size: .74rem;
  color: rgba(255, 255, 255, .62);
  transition: color .2s var(--ease);
}

.photo-credit:hover {
  color: #FFFFFF;
}

/* Hero Staggered Entrance */
.hero-anim {
  opacity: 0;
  transform: translateY(20px);
  animation: heroRise .8s var(--ease) forwards;
}
.hero-anim:nth-child(1) { animation-delay: .12s; }
.hero-anim:nth-child(2) { animation-delay: .24s; }
.hero-anim:nth-child(3) { animation-delay: .38s; }
.hero-anim:nth-child(4) { animation-delay: .52s; }

@keyframes heroRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   4-Column Overlap Bar (Hope · Dignity · Equity · Well-Being)
   ========================================================================== */
.pillars-wrap {
  position: relative;
  z-index: 4;
  margin-top: -3.5rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.pillar-item {
  padding: 2rem 1.7rem;
  border-right: 1px solid var(--line);
  transition: background-color .32s var(--ease), color .32s var(--ease);
}

.pillar-item:last-child {
  border-right: none;
}

.pillar-ltr {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 3.1rem;
  line-height: 1;
  color: var(--brand);
  margin-bottom: .55rem;
  transition: color .32s var(--ease), transform .32s var(--ease);
}

@media (prefers-color-scheme: dark) {
  .pillar-ltr {
    color: #A9E3C1;
  }
}

.pillar-item h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: .45rem;
  transition: color .32s var(--ease);
}

.pillar-item p {
  font-size: .94rem;
  line-height: 1.55;
  transition: color .32s var(--ease);
}

.pillar-item:hover {
  background: var(--brand);
}

.pillar-item:hover .pillar-ltr {
  color: var(--gold);
  transform: translateY(-3px);
}

.pillar-item:hover h3 {
  color: #FFFFFF;
}

.pillar-item:hover p {
  color: rgba(255, 255, 255, .85);
}

/* ==========================================================================
   Sections Common
   ========================================================================== */
.section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.band-ivory {
  background: var(--ivory);
}

.sec-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

.sec-head-center {
  margin-inline: auto;
  text-align: center;
}

.sec-head-center .line-accent {
  margin-inline: auto;
}

.sec-head h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: .8rem;
}

.sec-head p {
  font-size: 1.08rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-media {
  position: relative;
  padding-left: 1.25rem;
  padding-bottom: 1.25rem;
}

.about-frame {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 62%;
  height: 62%;
  border: 3px solid var(--gold);
  border-radius: 14px;
  pointer-events: none;
}

.about-photo-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 4.3;
  box-shadow: var(--shadow-md);
}

.about-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founded-badge {
  position: absolute;
  top: 1.4rem;
  right: -1rem;
  background: var(--brand);
  color: #FFFFFF;
  padding: 1.05rem 1.35rem;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(12, 46, 31, .32);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.founded-year {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold);
}

.founded-label {
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .86);
  margin-top: .25rem;
}

.about-body h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-block: 1.4rem 1.65rem;
}

.pill-list span {
  padding: .38rem .95rem;
  border-radius: 999px;
  background: var(--ivory);
  border: 1px solid var(--line);
  font-size: .86rem;
  font-weight: 500;
  color: var(--text);
}

.reg-callout {
  display: flex;
  align-items: flex-start;
  gap: .95rem;
  padding: 1.15rem 1.3rem;
  background: var(--ivory);
  border-left: 4px solid var(--crimson);
  border-radius: 0 12px 12px 0;
}

.reg-icon {
  color: var(--crimson);
  flex-shrink: 0;
  margin-top: .15rem;
}

.reg-callout strong {
  display: block;
  font-size: .98rem;
  color: var(--text);
  margin-bottom: .18rem;
}

.reg-callout span {
  display: block;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ==========================================================================
   Mission, Vision & Values
   ========================================================================== */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mvv-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--c);
  border-radius: 14px;
  padding: 2.1rem 1.85rem;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease);
}

.mvv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.mvv-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: var(--c);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
}

@media (prefers-color-scheme: dark) {
  .mvv-card[style*="#14452F"] .mvv-icon {
    color: #7EDB9E;
    background: rgba(126, 219, 158, .14);
  }
}

.mvv-card h3 {
  font-size: 1.72rem;
  margin-bottom: .85rem;
}

.mvv-dots,
.mvv-values {
  list-style: none;
  padding: 0;
  margin: .85rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.mvv-dots li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .95rem;
  color: var(--muted);
}

.mvv-dots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
}

.mvv-values li {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.5;
}

.mvv-values strong {
  color: var(--text);
}

/* ==========================================================================
   Focus Areas / What We Do (3x2 Grid)
   ========================================================================== */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.focus-card {
  position: relative;
  min-height: 310px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--brand-dark);
}

.focus-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.focus-card:hover img {
  transform: scale(1.07);
}

.focus-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 46, 31, .94) 0%,
    rgba(12, 46, 31, .56) 52%,
    rgba(12, 46, 31, .16) 100%
  );
  transition: background .35s var(--ease);
}

.focus-body {
  position: relative;
  z-index: 2;
  padding: 1.65rem;
  width: 100%;
}

.focus-tag {
  display: inline-block;
  padding: .26rem .78rem;
  border-radius: 999px;
  background: var(--gold);
  color: #18211C;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}

.focus-card h3 {
  font-size: 1.52rem;
  color: #FFFFFF;
  margin-bottom: .45rem;
}

.focus-card p {
  font-size: .94rem;
  color: rgba(255, 255, 255, .88);
  line-height: 1.55;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .42s var(--ease), opacity .35s var(--ease), margin-top .35s var(--ease);
}

.focus-card:hover p,
.focus-card:focus-within p {
  max-height: 140px;
  opacity: 1;
  margin-top: .35rem;
}

/* Solid Gradient Editorial Cards (Matching womeninmice.com Industry & Education) */
.focus-plain {
  background: linear-gradient(140deg, var(--brand), var(--brand-mid));
  align-items: flex-end;
}

.focus-crimson {
  background: linear-gradient(140deg, var(--crimson), var(--crimson-dark));
}

.focus-plain p {
  max-height: none;
  opacity: 1;
  margin-top: .35rem;
}

.focus-ring {
  position: absolute;
  top: -42px;
  right: -42px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, .1);
  pointer-events: none;
}

/* ==========================================================================
   Quote Band
   ========================================================================== */
.quote-band {
  background: var(--brand);
  padding-block: clamp(4.2rem, 8vw, 6rem);
  text-align: center;
}

.quote-inner {
  max-width: 860px;
}

.quote-band blockquote {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.65rem, 3.6vw, 2.55rem);
  line-height: 1.3;
  color: #FFFFFF;
  margin: 0 0 1.25rem;
}

.quote-band blockquote em {
  font-style: italic;
  color: var(--gold);
}

.quote-attr {
  font-size: .95rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .74);
}

/* ==========================================================================
   Programs Grid (2x2 Horizontal Split Cards)
   ========================================================================== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.program-card {
  display: grid;
  grid-template-columns: 185px 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.program-visual {
  background: linear-gradient(140deg, var(--ivory), color-mix(in srgb, var(--crimson) 15%, var(--ivory)));
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.program-body {
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.program-body h3 {
  font-size: 1.42rem;
  margin-bottom: .55rem;
}

.program-body p {
  font-size: .96rem;
}

/* ==========================================================================
   Get Involved (4-Column Grid)
   ========================================================================== */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.involve-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease);
}

.involve-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.involve-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.involve-card h3 {
  font-size: 1.36rem;
  margin-bottom: .6rem;
}

.involve-card p {
  font-size: .94rem;
  margin-bottom: 1.15rem;
  flex-grow: 1;
}

.involve-link {
  font-weight: 600;
  font-size: .95rem;
  color: var(--crimson);
  transition: transform .2s var(--ease), color .2s var(--ease);
}

.involve-link:hover {
  color: var(--brand);
  transform: translateX(3px);
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.2rem, 8vw, 5.8rem);
  background: var(--brand-dark);
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 46, 31, .94), rgba(20, 69, 47, .76));
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-copy {
  max-width: 660px;
}

.cta-copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  color: #FFFFFF;
  margin-bottom: .75rem;
}

.cta-copy p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .86);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: .8rem;
}

.contact-lead {
  margin-bottom: 1.8rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.8rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

.contact-val {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

a.contact-val:hover {
  color: var(--crimson);
}

.map-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 250px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.2rem;
}

.contact-form-card h3 {
  font-size: 1.65rem;
  margin-bottom: .4rem;
}

.form-sub {
  font-size: .95rem;
  margin-bottom: 1.5rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .42rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .97rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .78rem .95rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.field textarea {
  min-height: 124px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(217, 35, 68, .14);
}

.form-status {
  margin-top: 1rem;
  font-size: .93rem;
  font-weight: 500;
  min-height: 1.4em;
}

.form-status.ok {
  color: var(--brand);
}

.form-status.err {
  color: var(--crimson);
}

@media (prefers-color-scheme: dark) {
  .form-status.ok {
    color: #7EDB9E;
  }
}

/* ==========================================================================
   Footer & Back-to-Top
   ========================================================================== */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, .82);
  padding-top: 4.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}

.footer-logo-row img {
  border-radius: 50%;
  background: #FFFFFF;
}

.footer-brand h4 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
}

.footer-brand h4 span {
  color: var(--gold);
}

.footer-reg {
  font-size: .8rem;
  color: rgba(255, 255, 255, .66);
  margin: .2rem 0 0;
}

.footer-desc {
  font-size: .94rem;
  color: rgba(255, 255, 255, .74);
  margin-bottom: 1.25rem;
  max-width: 340px;
}

.footer-col h5 {
  font-family: "Outfit", sans-serif;
  font-size: .92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  margin: 0 0 1.1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.footer-col li {
  font-size: .94rem;
  color: rgba(255, 255, 255, .78);
}

.footer-col a {
  transition: color .2s var(--ease);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.4rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  text-align: center;
}

.footer-bottom p {
  font-size: .86rem;
  color: rgba(255, 255, 255, .72);
  margin: 0;
}

.footer-bottom .footer-credits {
  font-size: .76rem;
  color: rgba(255, 255, 255, .52);
}

/* Back to Top */
.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 40;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: #18211C;
  box-shadow: 0 10px 24px rgba(12, 46, 31, .35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s, background-color .22s var(--ease);
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
}

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}

.rv.in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillar-item:nth-child(2) {
    border-right: none;
  }
  .pillar-item:nth-child(1),
  .pillar-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .mvv-grid,
  .focus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .involve-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: 1.25rem 1.5rem 1.6rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    padding: .7rem .25rem;
  }

  .nav-cta {
    margin-top: .75rem;
    text-align: center;
  }

  .about-grid,
  .programs-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .founded-badge {
    right: .8rem;
  }
}

@media (max-width: 760px) {
  .topbar-loc,
  .topbar-reg {
    display: none;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .focus-card p {
    max-height: none;
    opacity: 1;
    margin-top: .35rem;
  }
}

@media (max-width: 600px) {
  .pillars-grid,
  .mvv-grid,
  .focus-grid,
  .involve-grid,
  .form-row-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .pillar-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .pillar-item:last-child {
    border-bottom: none;
  }

  .program-card {
    grid-template-columns: 1fr;
  }
  .program-visual {
    padding: 1.4rem;
  }

  .brand-title {
    font-size: 1.06rem;
  }
  .brand-logo {
    width: 42px;
    height: 42px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-img,
  .hero-anim {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
