:root {
  --ink: #082922;
  --forest: #0d4638;
  --forest-deep: #072f28;
  --leaf: #2f7357;
  --gold: #e9aa19;
  --gold-soft: #f6d988;
  --cream: #f7f3e9;
  --paper: #fffdf8;
  --mist: #e8f0eb;
  --line: rgba(8, 41, 34, .15);
  --white: #fff;
  --shadow: 0 24px 70px rgba(7, 47, 40, .14);
  --radius: 26px;
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.page-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 999; left: 16px; top: -60px; padding: 10px 14px; background: var(--gold); color: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(7, 47, 40, .96); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.12); }
.nav-shell { width: min(1260px, calc(100% - 32px)); min-height: 84px; margin: auto; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; }
.brand img { width: 220px; height: 66px; object-fit: contain; object-position: left center; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 10px 12px; color: rgba(255,255,255,.84); text-decoration: none; font-size: .88rem; font-weight: 700; border-radius: 999px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.11); }
.main-nav .nav-cta { margin-left: 8px; color: var(--ink); background: var(--gold); }
.main-nav .nav-cta:hover { color: var(--ink); background: #f2bd3f; }
.menu-toggle { display: none; margin-left: auto; color: white; border: 1px solid rgba(255,255,255,.3); background: transparent; padding: 9px 13px; border-radius: 10px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; text-decoration: none; cursor: pointer; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--gold); box-shadow: 0 12px 28px rgba(233,170,25,.22); }
.button-secondary { color: var(--forest); background: white; border-color: var(--line); }
.button-ghost { color: white; border-color: rgba(255,255,255,.48); background: rgba(0,0,0,.08); }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow-green { color: var(--leaf); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(3rem, 7vw, 6.7rem); }
h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
h3 { line-height: 1.25; }
.section { padding: 92px 0; }
.section-heading { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-heading p:last-child { color: #44635b; font-size: 1.08rem; }

.hero { min-height: calc(100vh - 84px); position: relative; display: grid; align-items: center; overflow: hidden; color: white; background: var(--forest-deep); }
.hero-media, .page-hero-media { position: absolute; inset: 0; background: center/cover no-repeat url('/wildwisdom/assets/campus-aerial.jpg'); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,27,23,.92) 0%, rgba(3,27,23,.68) 52%, rgba(3,27,23,.14) 100%), linear-gradient(0deg, rgba(3,27,23,.3), transparent 55%); }
.hero-content { position: relative; z-index: 1; padding: 80px 0; }
.hero-content-inner { max-width: 830px; }
.hero h1 { max-width: 940px; margin-bottom: 22px; }
.hero h1 em { color: var(--gold-soft); font-weight: 500; }
.hero-lead { max-width: 760px; color: rgba(255,255,255,.88); font-size: clamp(1.1rem, 2vw, 1.34rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 12px; margin-top: 46px; padding: 13px 17px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: rgba(5,37,31,.45); }
.hero-kicker span { color: var(--gold); }

.vision { background: var(--cream); }
.vision-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px, 8vw, 110px); align-items: start; }
.vision-mark { position: sticky; top: 120px; padding: 28px; border-radius: var(--radius); color: white; background: var(--forest); }
.vision-mark strong { display: block; color: var(--gold-soft); font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; }
.vision-copy > p { color: #3d5f56; font-size: 1.16rem; }
.vision-quote { margin-top: 34px; padding: 28px 0 0 28px; border-top: 1px solid var(--line); border-left: 4px solid var(--gold); font-family: var(--serif); font-size: 1.6rem; line-height: 1.35; }

.journeys { background: white; }
.journey-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.journey-card { position: relative; min-height: 340px; overflow: hidden; border-radius: var(--radius); color: white; text-decoration: none; box-shadow: var(--shadow); }
.journey-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.journey-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,34,28,.92), rgba(3,34,28,.02) 70%); }
.journey-card:hover img { transform: scale(1.05); }
.journey-card-content { position: absolute; z-index: 1; inset: auto 24px 22px; }
.journey-card small { color: var(--gold-soft); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.journey-card h3 { margin: 8px 0; font-family: var(--serif); font-size: 1.65rem; }
.journey-card p { margin: 0; color: rgba(255,255,255,.82); font-size: .94rem; }

.promise { color: white; background: var(--forest-deep); }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.promise-card { padding: 28px 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(255,255,255,.055); }
.promise-card span { color: var(--gold); font-family: var(--serif); font-size: 2rem; }
.promise-card h3 { margin: 16px 0 8px; }
.promise-card p { margin-bottom: 0; color: rgba(255,255,255,.7); }

.gallery-preview { background: var(--cream); }
.gallery-mosaic { display: grid; grid-template-columns: 1.25fr .75fr .75fr; grid-template-rows: 250px 250px; gap: 12px; }
.gallery-mosaic a, .gallery-grid button { overflow: hidden; border-radius: 18px; }
.gallery-mosaic a:first-child { grid-row: span 2; }
.gallery-mosaic img, .gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-mosaic a:hover img, .gallery-grid button:hover img { transform: scale(1.04); }
.center-actions { margin-top: 28px; text-align: center; }

.final-cta { padding: 90px 0; color: white; text-align: center; background: linear-gradient(rgba(5,42,34,.72), rgba(5,42,34,.84)), center/cover url('/wildwisdom/assets/children-outdoors.jpg'); }
.final-cta h2 { max-width: 800px; margin-inline: auto; }
.final-cta p { max-width: 760px; margin: 0 auto 28px; color: rgba(255,255,255,.85); font-size: 1.12rem; }

.admissions { color: white; background: #0a3a30; }
.admissions-grid { display: grid; grid-template-columns: .76fr 1.24fr; gap: 64px; align-items: start; }
.contact-card { margin-top: 30px; padding: 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; }
.contact-card a { color: var(--gold-soft); font-weight: 800; text-decoration: none; }
.lead-form { padding: clamp(24px, 5vw, 44px); color: var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.form-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.form-heading strong { font-family: var(--serif); font-size: 1.8rem; }
.form-heading span { color: #61786f; font-size: .85rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; font-size: .84rem; font-weight: 800; }
.field-full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #bdcbc5; border-radius: 12px; color: var(--ink); background: white; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(47,115,87,.12); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; color: #60766e; font-size: .84rem; }
.lead-form .submit-button { width: 100%; }
.form-status { min-height: 1.5em; margin: 14px 0 0; text-align: center; font-size: .9rem; }
.form-status.success { color: #13704c; }.form-status.error { color: #b42d2d; }.honeypot { position: absolute; left: -9999px; }

.page-hero { position: relative; min-height: 480px; display: grid; align-items: end; overflow: hidden; color: white; background: var(--forest); }
.page-hero-media { background-image: url('/wildwisdom/assets/pyramid-exterior.jpg'); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,30,25,.91), rgba(3,30,25,.32)), linear-gradient(0deg, rgba(3,30,25,.76), transparent 70%); }
.page-hero-content { position: relative; z-index: 1; max-width: 900px; padding: 90px 0 64px; }
.page-hero h1 { margin-bottom: 18px; font-size: clamp(3rem, 6vw, 5.5rem); }
.page-hero p:last-child { max-width: 760px; color: rgba(255,255,255,.84); font-size: 1.18rem; }
.page-intro { padding: 76px 0; background: var(--cream); }
.intro-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.intro-grid p { color: #426259; font-size: 1.1rem; }

.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.content-card { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 12px 35px rgba(7,47,40,.06); }
.content-card .number { color: var(--gold); font-family: var(--serif); font-size: 2.1rem; }
.content-card p { color: #526d65; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 62px; align-items: center; }
.split-section img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-list { display: grid; gap: 15px; margin-top: 28px; }
.feature-list div { padding: 18px 20px; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; color: var(--ink); background: var(--cream); }
.feature-list strong { display: block; color: var(--forest-deep); }

.pathway { padding: 92px 0; background: var(--forest-deep); color: white; }
.pathway-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 38px; }
.path-step { min-height: 210px; padding: 20px 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.055); }
.path-step span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink); background: var(--gold); font-weight: 900; }
.path-step h3 { margin: 28px 0 8px; font-size: 1rem; }
.path-step p { color: rgba(255,255,255,.66); font-size: .82rem; }
.centers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.center-card { padding: 28px; border-radius: 22px; background: white; border: 1px solid var(--line); }
.center-card small { color: var(--leaf); font-weight: 900; text-transform: uppercase; }
.center-card ul { padding-left: 20px; color: #536f66; }
.foundation-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; }
.foundation-strip div { padding: 20px; border-radius: 16px; background: var(--cream); }

.levels-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.level-card { display: grid; grid-template-columns: 190px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; }
.level-card img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.level-card div { padding: 28px; }
.level-card small { color: var(--leaf); font-weight: 900; text-transform: uppercase; }
.level-card p { color: #536e66; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 12px; }
.gallery-grid button { padding: 0; border: 0; cursor: zoom-in; background: #ddd; }
.gallery-grid button:nth-child(1), .gallery-grid button:nth-child(8) { grid-column: span 2; }
.gallery-grid button:nth-child(3) { grid-row: span 2; }
.lightbox { position: fixed; z-index: 100; inset: 0; display: none; place-items: center; padding: 28px; background: rgba(1,18,15,.92); }
.lightbox.open { display: grid; }
.lightbox figure { margin: 0; max-width: min(1100px, 96vw); }
.lightbox img { max-height: 82vh; border-radius: 16px; }
.lightbox figcaption { margin-top: 12px; color: white; text-align: center; }
.lightbox-close { position: absolute; right: 26px; top: 20px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: white; background: transparent; font-size: 1.5rem; cursor: pointer; }

.draft-banner { margin-bottom: 28px; padding: 14px 18px; border: 1px solid #d79b17; border-radius: 14px; color: #60470d; background: #fff4d5; font-weight: 700; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.team-card img { width: 100%; aspect-ratio: 4/4.5; object-fit: cover; object-position: center top; }
.team-card-content { padding: 26px; }
.team-card small { color: var(--leaf); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.team-card h2 { margin: 8px 0 4px; font-size: 2rem; }
.team-card .role { color: #6e807a; font-weight: 700; }
.team-contact { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.team-contact a { color: var(--forest); font-weight: 800; text-decoration: none; }
.belief-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.belief-card { padding: 28px; border-radius: 20px; color: white; background: var(--forest); }
.belief-card:nth-child(2), .belief-card:nth-child(3) { background: #184f74; }
.belief-card h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 1.55rem; }
.belief-card p { margin: 0; color: rgba(255,255,255,.76); }
.whatsapp-float { position: fixed; z-index: 70; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 19px; border-radius: 999px; color: white; background: #1f9d5a; box-shadow: 0 14px 32px rgba(2,55,30,.28); text-decoration: none; font-weight: 900; }
.whatsapp-float::before { content: "WA"; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid white; border-radius: 50%; font-size: .72rem; }
.whatsapp-float:hover { background: #16834a; transform: translateY(-2px); }

.floating-contact-panel { position: fixed; z-index: 65; right: 14px; bottom: 108px; width: 330px; max-height: calc(100vh - 126px); overflow-y: auto; border: 1px solid rgba(233,170,25,.56); border-radius: 16px; background: var(--paper); box-shadow: 0 18px 42px rgba(3,31,26,.3); scrollbar-width: thin; transition: transform .25s ease; }
.floating-contact-panel .lead-form { padding: 11px 12px 12px; border-radius: 15px; box-shadow: none; }
.contact-panel-head { position: relative; display: flex; align-items: center; gap: 9px; min-height: 43px; margin-bottom: 7px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.contact-panel-logo { width: 105px; height: 39px; object-fit: contain; object-position: left center; }
.contact-panel-title { margin-left: auto; text-align: right; }
.contact-panel-title strong { display: block; font-family: var(--serif); font-size: .95rem; line-height: 1.05; }
.contact-panel-title span { color: #6a7d76; font-size: .57rem; line-height: 1.1; }
.contact-panel-close { display: none; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: white; cursor: pointer; }
.compact-lead-form .form-grid { gap: 6px 7px; }
.compact-lead-form .field { gap: 3px; font-size: .72rem; line-height: 1.08; }
.compact-lead-form .field input, .compact-lead-form .field select, .compact-lead-form .field textarea { min-height: 34px; padding: 6px 8px; border-radius: 8px; font-size: .82rem; }
.compact-lead-form .field textarea { min-height: 50px; resize: vertical; }
.compact-lead-form .consent { gap: 6px; margin: 7px 0; font-size: .68rem; line-height: 1.2; }
.compact-lead-form .consent input { width: 13px; height: 13px; margin: 1px 0 0; flex: 0 0 auto; }
.compact-lead-form .submit-button { min-height: 37px; padding: 0 11px; font-size: .78rem; }
.compact-lead-form .form-status { min-height: 0; margin-top: 5px; font-size: .68rem; line-height: 1.15; }
.contact-tab { display: none; position: fixed; z-index: 64; right: 0; top: 50%; transform: translateY(-50%); padding: 16px 9px; border: 0; border-radius: 12px 0 0 12px; color: var(--ink); background: var(--gold); box-shadow: 0 10px 28px rgba(3,31,26,.24); font-size: .72rem; font-weight: 900; letter-spacing: .08em; writing-mode: vertical-rl; cursor: pointer; }
.contact-floating-active .admissions-grid { grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; }

@media (max-width: 1279px) {
  .floating-contact-panel { top: 12px; right: 8px; bottom: auto; max-height: calc(100vh - 24px); transform: translateX(calc(100% + 24px)); }
  .floating-contact-panel.open { transform: translateX(0); }
  .floating-contact-panel .contact-panel-close { display: block; flex: 0 0 auto; }
  .contact-tab { display: block; }
  body.contact-panel-open { overflow: hidden; }
}

.site-footer { padding: 44px 0; color: rgba(255,255,255,.76); background: #041f1a; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 40px; }
.footer-grid img { width: 210px; margin-bottom: 15px; }
.footer-grid h3 { color: white; }
.footer-grid a { display: block; margin: 6px 0; color: inherit; text-decoration: none; }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-bottom { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 84px; left: 16px; right: 16px; display: none; padding: 14px; border-radius: 16px; background: var(--forest-deep); box-shadow: var(--shadow); }
  .main-nav.open { display: grid; }
  .main-nav .nav-cta { margin-left: 0; text-align: center; }
  .journey-grid, .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .pathway-grid { grid-template-columns: repeat(4, 1fr); }
  .centers-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .page-shell { width: min(100% - 28px, 1180px); }
  .brand img { width: 180px; }
  .section { padding: 68px 0; }
  .hero { min-height: 760px; }
  .hero-shade { background: linear-gradient(0deg, rgba(3,27,23,.94), rgba(3,27,23,.38)); }
  .vision-grid, .admissions-grid, .intro-grid, .split-section { grid-template-columns: 1fr; gap: 36px; }
  .vision-mark { position: static; }
  .journey-grid, .promise-grid, .content-grid, .centers-grid, .levels-grid { grid-template-columns: 1fr; }
  .journey-card { min-height: 300px; }
  .gallery-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 180px 180px; }
  .gallery-mosaic a:first-child { grid-column: span 2; grid-row: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .pathway-grid { grid-template-columns: repeat(2, 1fr); }
  .foundation-strip { grid-template-columns: repeat(2, 1fr); }
  .level-card { grid-template-columns: 1fr; }
  .level-card img { min-height: 220px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery-grid button:nth-child(1), .gallery-grid button:nth-child(8) { grid-column: auto; }
  .gallery-grid button:nth-child(3) { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-grid, .belief-grid { grid-template-columns: 1fr; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 54px; padding: 0; justify-content: center; font-size: 0; }
  .floating-contact-panel { left: 8px; right: 8px; width: auto; top: 8px; max-height: calc(100vh - 16px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
