/* ==========================================================================
   Inwood Academy for Leadership — Modern Redesign 2026
   Brand: IAL Blue #2A397C + IAL Green #54B948 (official palette).
   Fluid type, motion-on-scroll, glass nav.
   ========================================================================== */

:root {
  /* Official IAL brand colors:
     IAL Blue  #2A397C (Pantone 2147 CP) · IAL Green #54B948 */
  --green: #54b948;
  --green-dark: #3d8f35;
  --green-light: #e9f7e6;
  --navy: #2a397c;
  --navy-soft: #3a4c9e;
  --gold: #54b948; /* accent = IAL Green (no off-brand colors) */
  --ink: #1d2733;
  --muted: #5b6b7c;
  --bg: #ffffff;
  --bg-soft: #f5f8f6;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(42, 57, 124, .07);
  --shadow-md: 0 12px 32px rgba(42, 57, 124, .12);
  --shadow-lg: 0 24px 60px rgba(42, 57, 124, .18);
  --ease: cubic-bezier(.22, .8, .26, .99);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.15; color: var(--navy); margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p  { margin: 0 0 1em; }

a { color: var(--green-dark); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--green); }

.container { width: min(1180px, 92vw); margin-inline: auto; }
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-light);
  padding: .4rem 1rem; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 65ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.7rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(84, 185, 72, .35); }
.btn-primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-3px); box-shadow: 0 16px 32px rgba(84, 185, 72, .4); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px rgba(84, 185, 72, .35); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(84, 185, 72, .45); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-3px); }
.btn-outline { border-color: var(--green); color: var(--green-dark); }
.btn-outline:hover { background: var(--green); color: #fff; transform: translateY(-3px); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy); color: #d7e2f1; font-size: .85rem;
  padding: .45rem 0; position: relative; z-index: 60;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--gold); }
.topbar-links { display: flex; gap: 1.25rem; align-items: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 57, 124, .06);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, .95); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; gap: 1rem; }

.brand { display: flex; align-items: center; }
/* Full school logo (assets/img/logo.svg — overwrite with the official
   export to swap in the real artwork everywhere at once) */
.brand-logo { height: 62px; width: auto; display: block; transition: transform .25s var(--ease); }
.brand:hover .brand-logo { transform: scale(1.04); }
.brand-logo-footer { height: 96px; }
@media (max-width: 560px) { .brand-logo { height: 52px; } }

.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  padding: .55rem .9rem; border-radius: 999px; font-weight: 600; color: var(--navy); font-size: .95rem;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.main-nav a:hover { background: var(--green-light); color: var(--green-dark); }
.main-nav a.active { background: var(--green); color: #fff; }
.main-nav .btn { margin-left: .6rem; padding: .6rem 1.3rem; font-size: .92rem; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem; z-index: 70;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 3px;
  margin: 5px 0; transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: .8rem;
    background: rgba(42, 57, 124, .97); backdrop-filter: blur(10px);
    opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
  }
  .main-nav.open { opacity: 1; pointer-events: auto; }
  .main-nav a { color: #fff; font-size: 1.3rem; }
  .main-nav a.active { background: var(--green); }
  .main-nav .btn { margin: 1rem 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-soft) 45%, var(--green-dark) 100%);
  padding: clamp(4.5rem, 11vw, 8.5rem) 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 20%, rgba(84, 185, 72, .18), transparent 55%);
  pointer-events: none;
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; pointer-events: none;
  animation: float 14s ease-in-out infinite alternate;
}
.hero-blob.b1 { width: 480px; height: 480px; background: var(--green); top: -160px; right: -120px; }
.hero-blob.b2 { width: 380px; height: 380px; background: var(--gold); bottom: -180px; left: -100px; opacity: .25; animation-delay: -7s; }
@keyframes float { from { transform: translateY(0) scale(1); } to { transform: translateY(45px) scale(1.08); } }

.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold); position: relative; white-space: nowrap; }
.hero h1 .accent svg { position: absolute; left: 0; bottom: -.18em; width: 100%; height: .35em; }
.hero .lead { color: rgba(255, 255, 255, .82); }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-eyebrow {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2);
}
.hero-eyebrow::before { background: var(--gold); }

.hero-badges { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-badges span {
  font-size: .82rem; font-weight: 600; padding: .45rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
}

/* hero visual card stack */
.hero-visual { position: relative; min-height: 360px; }
.hero-card {
  position: absolute; background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.2rem 1.4rem; max-width: 270px;
  animation: cardFloat 7s ease-in-out infinite alternate;
}
.hero-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.hero-card p { font-size: .85rem; color: var(--muted); margin: 0; }
.hero-card .big { font-size: 2.1rem; font-weight: 800; color: var(--green-dark); line-height: 1; }
.hero-card.c1 { top: 6%; right: 8%; animation-delay: 0s; }
.hero-card.c2 { top: 42%; left: 0; animation-delay: -2.5s; }
.hero-card.c3 { bottom: 0; right: 16%; animation-delay: -5s; }
@keyframes cardFloat { from { transform: translateY(-8px); } to { transform: translateY(10px); } }
@media (max-width: 880px) {
  .hero-visual { min-height: 300px; margin-top: 1rem; }
}

/* marquee strip */
.marquee {
  background: var(--gold); color: var(--navy); overflow: hidden; padding: .7rem 0;
  font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 3rem; animation: marquee 28s linear infinite; padding-right: 3rem; }
.marquee-track span { display: inline-flex; align-items: center; gap: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 880px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(42, 57, 124, .05);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat-num { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; color: var(--green-dark); line-height: 1; }
.stat-num .suffix { color: var(--gold); }
.stat-label { margin-top: .5rem; color: var(--muted); font-weight: 600; font-size: .92rem; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 880px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(42, 57, 124, .06);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card-media {
  height: 190px; position: relative; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--navy-soft), var(--green-dark));
  overflow: hidden;
}
.card-media.alt1 { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.card-media.alt2 { background: linear-gradient(135deg, var(--navy-soft), var(--green)); }
.card-media .grade-pill {
  position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,.92); color: var(--navy);
  font-size: .78rem; font-weight: 700; padding: .3rem .85rem; border-radius: 999px;
}
.card-media svg.icon-lg { width: 64px; height: 64px; opacity: .9; transition: transform .4s var(--ease); }
.card:hover .card-media svg.icon-lg { transform: scale(1.12) rotate(-4deg); }
.card-body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-link { font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.card-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }

/* ---------- Values ---------- */
.values { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.values::before {
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 28px 28px;
}
.values h2, .values h3 { color: #fff; }
.values .lead { color: rgba(255,255,255,.75); }
.values .container { position: relative; }
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 2.5rem; }
@media (max-width: 1000px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1.6rem 1.3rem; text-align: center;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.value-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.12); }
.value-card .v-icon {
  width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: grid; place-items: center;
}
.value-card .v-icon svg { width: 26px; height: 26px; color: #fff; }
.value-card h3 { font-size: 1.05rem; }
.value-card p { font-size: .85rem; color: rgba(255,255,255,.7); margin: 0; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split-visual {
  border-radius: calc(var(--radius) * 1.4); min-height: 380px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--green-light), #d6efd0);
  display: grid; place-items: center;
}
.split-visual .ring {
  position: absolute; border: 2px dashed rgba(84, 185, 72, .35); border-radius: 50%;
  animation: spin 40s linear infinite;
}
.split-visual .ring.r1 { width: 320px; height: 320px; }
.split-visual .ring.r2 { width: 440px; height: 440px; animation-direction: reverse; animation-duration: 60s; }
@keyframes spin { to { transform: rotate(360deg); } }
.split-visual .center-badge {
  width: 180px; height: 180px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md);
  display: grid; place-items: center; text-align: center; padding: 1rem; position: relative; z-index: 2;
}
.split-visual .center-badge strong { font-size: 2rem; color: var(--green-dark); line-height: 1; display: block; }
.split-visual .center-badge span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.orbit-chip {
  position: absolute; background: #fff; border-radius: 999px; padding: .5rem 1.1rem;
  font-size: .82rem; font-weight: 700; color: var(--navy); box-shadow: var(--shadow-sm); z-index: 2;
  animation: cardFloat 6s ease-in-out infinite alternate;
}

.checklist { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink); }
.checklist li svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; margin-top: .15rem; }
.checklist li strong { color: var(--navy); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-soft); overflow: hidden; }
.slider { position: relative; max-width: 820px; margin: 2.5rem auto 0; }
.slide {
  display: none; background: #fff; border-radius: calc(var(--radius) * 1.3);
  box-shadow: var(--shadow-md); padding: clamp(1.8rem, 4vw, 3rem); text-align: center;
}
.slide.active { display: block; animation: slideIn .55s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.slide blockquote { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--navy); font-weight: 600; margin: 0 0 1.4rem; line-height: 1.5; }
.slide .quote-mark { font-size: 3.5rem; color: var(--gold); line-height: 1; font-family: Georgia, serif; }
.slide cite { font-style: normal; color: var(--muted); font-weight: 600; font-size: .92rem; }
.slide cite strong { color: var(--green-dark); display: block; font-size: 1rem; }
.slider-dots { display: flex; justify-content: center; gap: .6rem; margin-top: 1.6rem; }
.slider-dots button {
  width: 11px; height: 11px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(42,57,124,.18); transition: all .3s var(--ease); padding: 0;
}
.slider-dots button.active { background: var(--green); width: 30px; }

/* ---------- News / events ---------- */
.news-card .date-chip {
  display: inline-block; background: var(--green-light); color: var(--green-dark);
  font-size: .78rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; margin-bottom: .8rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-soft));
  border-radius: calc(var(--radius) * 1.6); color: #fff; position: relative; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08);
}
.cta-band::before { width: 300px; height: 300px; top: -120px; left: -80px; }
.cta-band::after { width: 380px; height: 380px; bottom: -180px; right: -100px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 55ch; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; position: relative; z-index: 2; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft) 60%, var(--green-dark));
  color: #fff; padding: clamp(3.5rem, 8vw, 5.5rem) 0; position: relative; overflow: hidden;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.8); }
.page-hero .breadcrumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 1rem; font-weight: 600; }
.page-hero .breadcrumb a { color: var(--gold); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 3rem 0 0; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(var(--green), var(--navy)); border-radius: 3px; }
.timeline-item { position: relative; padding: 0 0 2.2rem 1.4rem; }
.timeline-item::before {
  content: ""; position: absolute; left: -2rem; top: 6px; width: 19px; height: 19px;
  border-radius: 50%; background: #fff; border: 4px solid var(--green);
}
.timeline-item h3 { margin-bottom: .25rem; }
.timeline-item .year { color: var(--gold); font-weight: 800; font-size: .9rem; letter-spacing: .08em; }
.timeline-item p { color: var(--muted); margin: 0; max-width: 60ch; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { display: grid; gap: .9rem; margin-top: 2rem; }
.acc-item { background: #fff; border: 1px solid rgba(42,57,124,.08); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.acc-head {
  width: 100%; background: none; border: 0; cursor: pointer; font-family: inherit;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 1.5rem; font-size: 1.02rem; font-weight: 700; color: var(--navy); text-align: left;
}
.acc-head .acc-icon {
  width: 30px; height: 30px; border-radius: 50%; background: var(--green-light); color: var(--green-dark);
  display: grid; place-items: center; flex-shrink: 0; font-size: 1.2rem; font-weight: 700;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.acc-item.open .acc-icon { transform: rotate(45deg); background: var(--green); color: #fff; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.acc-body-inner { padding: 0 1.5rem 1.4rem; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  counter-increment: step; background: #fff; border-radius: var(--radius); padding: 1.8rem 1.4rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(42,57,124,.06); position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 2rem; font-weight: 800; color: var(--green);
  display: block; margin-bottom: .6rem; line-height: 1;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(42,57,124,.06); margin-bottom: 1rem;
}
.contact-card .c-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--green-light); color: var(--green-dark);
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-card .c-icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.form-card { background: #fff; border-radius: calc(var(--radius)*1.3); box-shadow: var(--shadow-md); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .85rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .95rem; padding: .85rem 1rem; border-radius: 12px;
  border: 1.5px solid rgba(42,57,124,.15); background: var(--bg-soft);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(84,185,72,.12); background: #fff;
}
.map-embed { border: 0; width: 100%; height: 340px; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c7da; padding: 4rem 0 0; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: #b9c7da; font-size: .92rem; }
.site-footer a:hover { color: var(--gold); }
.footer-brand p { font-size: .9rem; max-width: 32ch; }
.social-row { display: flex; gap: .7rem; margin-top: 1.2rem; }
.social-row a {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; transition: background .3s var(--ease), transform .3s var(--ease);
}
.social-row a:hover { background: var(--green); transform: translateY(-4px); }
.social-row svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: #fff; border: 0; cursor: pointer; z-index: 40;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--green-dark); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* ---------- Utility ---------- */
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.bg-soft { background: var(--bg-soft); }
.mt-2 { margin-top: 2rem; }

/* skip link for accessibility */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy);
  padding: .8rem 1.4rem; font-weight: 700; z-index: 100; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Chatbot (IA Guide) ---------- */
.chatbot-fab {
  position: fixed; left: 1.4rem; bottom: 1.4rem; z-index: 45;
  display: flex; align-items: center; gap: .6rem;
  background: var(--navy); color: #fff; border: 0; cursor: pointer;
  padding: .8rem 1.2rem; border-radius: 999px; font-family: inherit;
  font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease), background .25s var(--ease);
  animation: fabPulse 3s ease-in-out infinite;
}
.chatbot-fab:hover { transform: translateY(-3px); background: var(--navy-soft); }
.chatbot-fab svg { width: 22px; height: 22px; }
@keyframes fabPulse {
  0%, 100% { box-shadow: var(--shadow-md), 0 0 0 0 rgba(84, 185, 72, .45); }
  50% { box-shadow: var(--shadow-md), 0 0 0 12px rgba(84, 185, 72, 0); }
}
.chatbot.open .chatbot-fab { animation: none; }

.chatbot-panel {
  position: fixed; left: 1.4rem; bottom: 5.4rem; z-index: 46;
  width: min(360px, calc(100vw - 2.8rem));
  background: #fff; border-radius: calc(var(--radius) * 1.1);
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; flex-direction: column; max-height: min(540px, 75vh);
  animation: chatIn .35s var(--ease);
}
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }

.chatbot-head {
  background: linear-gradient(120deg, var(--navy), var(--navy-soft));
  color: #fff; padding: .9rem 1.1rem; display: flex; align-items: center; gap: .7rem;
}
.chatbot-head strong { display: block; font-size: 1rem; }
.chatbot-head small { color: rgba(255,255,255,.75); font-size: .75rem; }
.chatbot-head-leaf {
  width: 38px; height: 38px; border-radius: 10px; background: var(--green);
  display: grid; place-items: center; flex-shrink: 0;
}
.chatbot-head-leaf svg { width: 20px; height: 20px; fill: #fff; }
.chatbot-close {
  margin-left: auto; background: rgba(255,255,255,.15); color: #fff; border: 0;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; line-height: 1;
  transition: background .25s var(--ease);
}
.chatbot-close:hover { background: rgba(255,255,255,.3); }

.chatbot-msgs { padding: 1rem; overflow-y: auto; flex: 1; display: grid; gap: .7rem; align-content: start; background: var(--bg-soft); }
.chatbot-msg { max-width: 88%; padding: .7rem .95rem; border-radius: 16px; font-size: .9rem; line-height: 1.45; }
.chatbot-msg p { margin: 0 0 .5rem; }
.chatbot-msg p:last-child { margin-bottom: 0; }
.chatbot-msg.bot { background: #fff; color: var(--ink); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); justify-self: start; }
.chatbot-msg.user { background: var(--green); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }

.chatbot-card {
  display: flex; gap: .6rem; align-items: center; background: var(--green-light);
  border-radius: 12px; padding: .6rem .8rem; margin-top: .45rem;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.chatbot-card:hover { transform: translateX(4px); background: #dbf2d5; }
.chatbot-card-emoji { font-size: 1.3rem; }
.chatbot-card-txt strong { display: block; color: var(--navy); font-size: .88rem; }
.chatbot-card-txt small { color: var(--muted); font-size: .76rem; }

.chatbot-suggest { padding: .6rem 1rem; background: #fff; border-top: 1px solid rgba(42,57,124,.08); }
.chatbot-suggest-label { font-size: .76rem; font-weight: 700; color: var(--navy); display: block; margin-bottom: .4rem; }
.chatbot-suggest-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chatbot-chip {
  background: var(--green-light); color: var(--green-dark); font-size: .8rem; font-weight: 700;
  padding: .35rem .8rem; border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.chatbot-chip:hover { background: var(--green); color: #fff; transform: translateY(-2px); }

.chatbot-input { display: flex; gap: .5rem; padding: .7rem; background: #fff; border-top: 1px solid rgba(42,57,124,.08); }
.chatbot-input input {
  flex: 1; font-family: inherit; font-size: .9rem; padding: .7rem .9rem;
  border-radius: 999px; border: 1.5px solid rgba(42,57,124,.15); background: var(--bg-soft);
}
.chatbot-input input:focus { outline: none; border-color: var(--green); background: #fff; }
.chatbot-input button {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green); color: #fff; display: grid; place-items: center; flex-shrink: 0;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.chatbot-input button:hover { background: var(--green-dark); transform: scale(1.06); }
.chatbot-input button svg { width: 18px; height: 18px; }

@media (max-width: 560px) {
  .chatbot-fab .chatbot-fab-badge { display: none; }
  .chatbot-fab { padding: .9rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
