/* Little Montessorians — "warm prospectus" marketing redesign */
:root {
  --cream: #faf6f0;
  --linen: #f3ede4;
  --peach: #f0dfd0;
  --terracotta: #c2623d;
  --terracotta-soft: #d4845f;
  --terracotta-ink: #8a472f;
  --sage: #7e9471;
  --sage-soft: #a3b898;
  --sage-ink: #5c6f54;
  --gold: #c49a3c;
  --gold-ink: #8a6a1f;
  --charcoal: #2c2825;
  --ink-soft: #5a514b;
  --warm-gray: #8c8279;
  --border: rgba(44, 40, 37, 0.12);
  --serif: 'Young Serif', Georgia, serif;
  --sans: 'Nunito', 'Avenir Next', 'Segoe UI', sans-serif;
  --container: min(1180px, calc(100vw - 2.5rem));
  --step-0: clamp(1rem, 0.94rem + 0.32vw, 1.12rem);
  --step-1: clamp(1.15rem, 1rem + 0.7vw, 1.4rem);
  --step-2: clamp(1.4rem, 1.16rem + 1.2vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.35rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.2vw, 4rem);
  --step-5: clamp(3rem, 2rem + 4.6vw, 5.4rem);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: var(--step-0);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  position: relative;
}
/* paper grain */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta-ink); }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
.container { width: var(--container); margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ''; width: 2.2rem; height: 2px; background: var(--gold); border-radius: 2px; }

.accent { color: var(--terracotta); font-style: italic; }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 240, 0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 2rem; height: 4.6rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--charcoal); }
.nav-logo img { width: 42px; height: 42px; }
.nav-logo b { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; line-height: 1.1; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: 0.92rem;
  padding: 0.3rem 0; border-bottom: 2px solid transparent; transition: all 160ms ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--terracotta-ink); border-bottom-color: var(--terracotta-soft); }
.nav-cta {
  background: var(--terracotta); color: #fff !important; border-radius: 999px;
  padding: 0.6rem 1.4rem !important; border-bottom: 0 !important;
  box-shadow: 0 10px 22px -10px rgba(194, 98, 61, 0.6);
}
.nav-cta:hover { background: var(--terracotta-soft); transform: translateY(-1px); }
.nav-burger { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; color: var(--charcoal); }
@media (max-width: 880px) {
  .nav-links {
    display: none; position: absolute; top: 4.6rem; left: 0; right: 0;
    background: var(--cream); flex-direction: column; padding: 1.4rem; gap: 1.1rem;
    border-bottom: 1px solid var(--border); box-shadow: 0 30px 40px -20px rgba(44,40,37,0.25);
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--terracotta); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 0.98rem; letter-spacing: 0.01em;
  border: 0; border-radius: 999px; padding: 0.95rem 2rem; cursor: pointer;
  box-shadow: 0 14px 28px -12px rgba(194, 98, 61, 0.55);
  transition: transform 160ms ease, background 160ms ease;
}
.btn:hover { transform: translateY(-2px); background: var(--terracotta-soft); }
.btn.ghost { background: transparent; color: var(--terracotta-ink); border: 2px solid var(--terracotta-soft); box-shadow: none; }
.btn.sage { background: var(--sage); box-shadow: 0 14px 28px -12px rgba(126, 148, 113, 0.55); }
.btn:disabled { opacity: 0.55; pointer-events: none; }

/* ---------------- hero ---------------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5.5rem); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero h1 { font-size: var(--step-5); letter-spacing: -0.01em; }
.hero .lede { font-size: var(--step-1); color: var(--ink-soft); margin: 1.4rem 0 2.2rem; max-width: 34rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 2.2rem; margin-top: 2.8rem; flex-wrap: wrap; }
.hero-facts div b { font-family: var(--serif); font-size: 1.5rem; display: block; color: var(--terracotta-ink); }
.hero-facts div span { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warm-gray); }

.hero-art { position: relative; }
.arch {
  border-radius: 999px 999px 28px 28px;
  overflow: hidden; aspect-ratio: 4/5;
  box-shadow: 0 40px 80px -30px rgba(73, 52, 31, 0.4);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .arch-back {
  position: absolute; inset: -1.4rem 4rem 4.5rem -1.4rem; z-index: -1;
  border-radius: 999px 999px 28px 28px; background: var(--peach);
}
.hero-art .float-card {
  position: absolute; bottom: -1.2rem; left: -2.2rem;
  background: #fff; border-radius: 1.2rem; padding: 0.9rem 1.3rem;
  box-shadow: 0 24px 50px -20px rgba(73, 52, 31, 0.35);
  display: flex; gap: 0.8rem; align-items: center;
  border: 1px solid var(--border);
  animation: bob 5s ease-in-out infinite;
}
.float-card .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--sage); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.float-card b { display: block; font-size: 0.95rem; }
.float-card span { font-size: 0.8rem; color: var(--warm-gray); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 1rem auto 0; }
  .hero-art .float-card { left: 0; }
}

/* ---------------- sections ---------------- */
.section { padding: clamp(3.4rem, 7vw, 6.5rem) 0; }
.section.linen { background: var(--linen); }
.section.charcoal { background: var(--charcoal); color: var(--cream); }
.section h2 { font-size: var(--step-4); max-width: 22ch; }
.section .sub { color: var(--ink-soft); max-width: 56ch; margin-top: 1.1rem; font-size: var(--step-1); }
.section.charcoal .sub { color: rgba(250, 246, 240, 0.75); }
.center { text-align: center; }
.center h2, .center .sub { margin-left: auto; margin-right: auto; }

/* pillar cards */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.pillar {
  background: #fff; border: 1px solid var(--border); border-radius: 1.8rem;
  padding: 2rem 1.8rem; box-shadow: 0 16px 36px -26px rgba(73, 52, 31, 0.4);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(73, 52, 31, 0.45); }
.pillar .glyph {
  width: 58px; height: 58px; border-radius: 999px 999px 12px 12px;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  margin-bottom: 1.3rem;
}
.pillar h3 { font-size: var(--step-2); margin-bottom: 0.7rem; }
.pillar p { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }

/* split rows */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; margin-top: 3rem;
}
.split.flip > .split-art { order: 2; }
.split-art .arch { aspect-ratio: 1/1.05; }
.split h3 { font-size: var(--step-3); margin-bottom: 1rem; }
.split p { color: var(--ink-soft); margin-bottom: 1rem; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split.flip > .split-art { order: 0; } }

/* day rhythm timeline */
.rhythm { margin-top: 3rem; display: grid; gap: 0; max-width: 740px; }
.rhythm-row {
  display: grid; grid-template-columns: 7rem 1fr; gap: 1.6rem;
  padding: 1.3rem 0; border-bottom: 1px dashed var(--border);
  align-items: baseline;
}
.rhythm-row:last-child { border-bottom: 0; }
.rhythm-row time { font-family: var(--serif); color: var(--terracotta-ink); font-size: 1.1rem; white-space: nowrap; }
.rhythm-row b { display: block; font-size: 1.05rem; }
.rhythm-row span { color: var(--ink-soft); font-size: 0.95rem; }

/* educators */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; margin-top: 3rem; }
.team-card { text-align: center; }
.team-card .arch { aspect-ratio: 3/3.6; margin-bottom: 1.1rem; }
.team-card h3 { font-size: 1.25rem; }
.team-card .role { color: var(--gold-ink); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0.25rem 0 0.5rem; }
.team-card p { font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 880px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; } }

/* gallery strip */
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.9rem; margin-top: 3rem; }
.strip .shot { border-radius: 1.1rem; overflow: hidden; aspect-ratio: 1; }
.strip .shot:nth-child(2n) { border-radius: 999px 999px 1.1rem 1.1rem; }
.strip .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.strip .shot:hover img { transform: scale(1.06); }
@media (max-width: 880px) { .strip { grid-template-columns: repeat(3, 1fr); } }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--terracotta-ink), var(--terracotta));
  color: #fff; border-radius: 2.4rem; padding: clamp(2.5rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2rem; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; right: -6rem; top: -6rem; width: 22rem; height: 22rem;
  border-radius: 50%; background: rgba(250, 246, 240, 0.09);
}
.cta-band h2 { font-size: var(--step-3); max-width: none; }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: 0.8rem; }
.cta-band .btn { background: var(--cream); color: var(--terracotta-ink); justify-self: end; }
@media (max-width: 880px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn { justify-self: start; } }

/* page hero (inner pages) */
.page-hero { padding: clamp(3rem, 6vw, 5rem) 0 0; }
.page-hero h1 { font-size: var(--step-4); max-width: 20ch; }
.page-hero .sub { font-size: var(--step-1); color: var(--ink-soft); max-width: 54ch; margin-top: 1rem; }

/* forms */
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: 2rem;
  padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: 0 26px 60px -34px rgba(73, 52, 31, 0.4);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
.form-grid .wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warm-gray); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 1rem;
  padding: 0.85rem 1.1rem; font: inherit; background: var(--cream);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta-soft); box-shadow: 0 0 0 4px rgba(194, 98, 61, 0.13); background: #fff;
}
.form-note { font-size: 0.85rem; color: var(--warm-gray); margin-top: 1rem; }

/* tour slots */
.slot-day { margin-bottom: 1.4rem; }
.slot-day h4 { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; margin-bottom: 0.6rem; }
.slot-times { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.slot {
  border: 1.5px solid var(--border); background: #fff; border-radius: 999px;
  padding: 0.55rem 1.3rem; font-weight: 800; font-size: 0.92rem; cursor: pointer;
  transition: all 150ms ease; color: var(--ink-soft);
}
.slot:hover { border-color: var(--terracotta-soft); color: var(--terracotta-ink); }
.slot.selected { background: var(--terracotta); border-color: var(--terracotta); color: #fff; box-shadow: 0 10px 20px -10px rgba(194,98,61,0.6); }

/* success state */
.success-card { text-align: center; padding: 3rem 2rem; }
.success-card .mark {
  width: 76px; height: 76px; border-radius: 999px 999px 16px 16px; background: var(--sage);
  color: #fff; font-size: 34px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.4rem;
}
.success-card h3 { font-size: var(--step-3); margin-bottom: 0.8rem; }
.success-card p { color: var(--ink-soft); max-width: 44ch; margin: 0 auto; }

/* footer */
.footer { background: var(--charcoal); color: rgba(250, 246, 240, 0.82); margin-top: clamp(3rem, 7vw, 6rem); }
.footer-inner {
  width: var(--container); margin: 0 auto; padding: 3.6rem 0 2.4rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
}
.footer h4 { font-family: var(--serif); font-weight: 400; color: var(--cream); font-size: 1.15rem; margin-bottom: 0.9rem; }
.footer a { color: rgba(250, 246, 240, 0.82); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; font-size: 0.95rem; }
.footer .brand { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 1rem; }
.footer .brand img { width: 52px; height: 52px; }
.footer .brand b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--cream); }
.footer .fine {
  width: var(--container); margin: 0 auto; padding: 1.3rem 0 2rem;
  border-top: 1px solid rgba(250, 246, 240, 0.15);
  font-size: 0.82rem; color: rgba(250, 246, 240, 0.5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
}
@media (max-width: 880px) { .footer-inner { grid-template-columns: 1fr; } }

/* reveal animations */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
}
