/* ========== Agape Learning Academy ========== */
:root {
  /* Palette — forest (default, derived from logo) */
  --cream: #FAF6F0;
  --cream-2: #F3ECE0;
  --cream-3: #E8DECE;
  --ink: #23281F;
  --ink-2: #4A5149;
  --ink-3: #7A8075;
  --line: #D9CFBE;
  --line-soft: #EADFCB;

  --forest: #2F5233;
  --forest-deep: #1E3621;
  --forest-soft: #E6EDE4;
  --teal: #3BA9A0;
  --teal-deep: #2A7D76;
  --teal-soft: #E2F0EE;
  --warm-brown: #6B4423;
  --heart: #C8342C;

  --primary: var(--forest);
  --primary-deep: var(--forest-deep);
  --accent: var(--teal);
  --accent-deep: var(--teal-deep);

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 6px;
  --radius-lg: 14px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Palette variants applied via body[data-palette] */
body[data-palette="sage"] {
  --primary: #5E7A5A;
  --primary-deep: #3D5339;
  --accent: #C97A5A;
  --accent-deep: #A05A3C;
}
body[data-palette="clay"] {
  --primary: #8B4513;
  --primary-deep: #5E2F0A;
  --accent: #3BA9A0;
  --accent-deep: #2A7D76;
}

/* Font pair variants */
body[data-fontpair="dm-dm"] {
  --font-display: 'DM Sans', system-ui, sans-serif;
}
body[data-fontpair="playfair-playfair"] {
  --font-body: 'Playfair Display', Georgia, serif;
}

/* ====== Reset ====== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* ====== Type ====== */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.06;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.lede {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 58ch;
}

h1 { font-size: clamp(42px, 6vw, 82px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); }

/* ====== Container & section ====== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: clamp(64px, 8vw, 120px) 0;
}
.section-tight { padding: clamp(48px, 6vw, 88px) 0; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: var(--cream);
}
.btn-primary:hover { background: var(--primary-deep); }

.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover { background: var(--accent-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(0,0,0,0.02); }

.btn-link {
  background: transparent;
  padding: 4px 0;
  border-radius: 0;
  color: var(--primary);
  font-weight: 500;
}
.btn-link::after {
  content: "→";
  transition: transform .2s var(--ease);
}
.btn-link:hover::after { transform: translateX(4px); }

/* ====== Header ====== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.scrolled { border-bottom-color: var(--line-soft); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-sub {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-top: 2px;
}
.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link.active {
  color: var(--primary-deep);
  background: var(--forest-soft);
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.phone-link {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 1080px) {
  .phone-link { display: none; }
}
@media (max-width: 1060px) {
  .brand-sub { display: none; }
}
@media (max-width: 980px) {
  .brand-sub { display: none; }
}
.phone-link:hover { color: var(--primary); }

.mobile-nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav, .phone-link { display: none; }
  .mobile-nav-toggle {
    display: inline-flex;
    padding: 10px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 999px;
  }
  .mobile-nav-open .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 12px var(--gutter);
    border-bottom: 1px solid var(--line-soft);
    align-items: stretch;
  }
  .mobile-nav-open .nav-link { padding: 14px; }
}

/* ====== Hero ====== */
.home-crest + .hero{padding-top:clamp(20px,2.4vw,36px)}
.hero {
  position: relative;
  padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 8vw, 120px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin: 16px 0 20px; }
.hero-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.hero-meta-item .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-2);
}
.hero-visual-badge {
  position: absolute;
  left: 20px; bottom: 20px;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(35,40,31,0.08);
}
.hero-visual-badge .num {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  font-weight: 600;
  color: var(--primary-deep);
}
.hero-visual-badge .lbl {
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink-2);
}

/* ====== Placeholder images ====== */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      var(--cream-2) 0 14px,
      var(--cream-3) 14px 28px
    );
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: var(--ink-2);
  overflow: hidden;
}
.ph[data-tone="green"] {
  background:
    repeating-linear-gradient(
      135deg,
      #E6EDE4 0 14px,
      #D7E2D3 14px 28px
    );
}
.ph[data-tone="teal"] {
  background:
    repeating-linear-gradient(
      135deg,
      #E2F0EE 0 14px,
      #CBE4E1 14px 28px
    );
}
.ph[data-tone="warm"] {
  background:
    repeating-linear-gradient(
      135deg,
      #F0E5D4 0 14px,
      #E4D5BB 14px 28px
    );
}
.ph-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 12px;
  background: rgba(250, 246, 240, 0.88);
  margin: 12px;
  border-radius: 4px;
  max-width: calc(100% - 24px);
}
.ph-image {
  background-color: var(--cream-2);
}
.ph-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(30,54,33,0.06));
  pointer-events: none;
}

/* ====== Cards ====== */
.card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(35,40,31,0.08);
  border-color: var(--line);
}
.card-tinted {
  background: var(--cream-2);
  border-color: transparent;
}

/* ====== Feature grid ====== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
  align-items: stretch;
}
.features > * { display: flex; }
.features .card { width: 100%; display: flex; flex-direction: column; }
@media (max-width: 880px) {
  .features { grid-template-columns: 1fr; grid-auto-rows: auto; }
}
.feature-num {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 16px;
}
.feature h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 500; }
.feature p { margin: 0; color: var(--ink-2); }

/* ====== Programs grid ====== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .programs-grid { grid-template-columns: 1fr; }
}
.program-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(35,40,31,0.1);
}
.program-card .ph { aspect-ratio: 4/3; }
.program-card .body { padding: 24px 24px 28px; }
.program-card .age {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.program-card h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 500; }
.program-card p { margin: 0 0 18px; color: var(--ink-2); }

/* ====== Section header ====== */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}
.section-head .eyebrow { margin-bottom: 16px; display: block; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 52ch; }

/* ====== Testimonials ====== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonials > * { display: flex; }
.testimonials .reveal { height: 100%; }
.testimonials .testimonial { width: 100%; flex-direction: column; }
.testimonials-2 { grid-template-columns: repeat(2, 1fr); }
.testimonial-featured { margin-bottom: 20px; }
.testimonial-lg { padding: clamp(32px, 4vw, 48px); background: var(--cream); }
.testimonial-lg .testimonial-quote { font-size: clamp(20px, 1.9vw, 26px); columns: 2; column-gap: 48px; }
.testimonial-lg .testimonial-quote p+p { margin-top: 0; }
@media (max-width: 880px) {
  .testimonial-lg .testimonial-quote { columns: 1; }
  .testimonial-lg .testimonial-quote p+p { margin-top: 12px; }
}
@media (max-width: 880px) {
  .testimonials { grid-template-columns: 1fr; }
}
.testimonial {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial-quote{font-family:var(--font-display);font-size:20px;line-height:1.45;font-weight:400;color:var(--ink);margin:0;text-wrap:pretty}
.testimonial-quote p{margin:0}
.testimonial-quote p+p{margin-top:12px}
.testimonial-quote p:first-child::before { content: "\201C"; color: var(--accent); font-size: 28px; line-height: 0; position: relative; top: 6px; margin-right: 2px; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--forest-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary-deep);
  font-size: 14px;
}
.testimonial-name { font-weight: 500; font-size: 14px; }
.testimonial-role { font-size: 13px; color: var(--ink-3); }

/* ====== CTA band ====== */
.cta-band {
  background: var(--forest-deep);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 880px) {
  .cta-band { grid-template-columns: 1fr; }
}
.cta-band h2 { margin: 0 0 16px; }
.cta-band p { color: rgba(250,246,240,0.78); margin: 0; max-width: 52ch; }
.cta-band .eyebrow { color: rgba(250,246,240,0.6); }
.cta-band .btn-primary {
  background: var(--cream);
  color: var(--primary-deep);
}
.cta-band .btn-primary:hover { background: white; }
.cta-band .btn-ghost {
  color: var(--cream);
  border-color: rgba(250,246,240,0.3);
}
.cta-band .btn-ghost:hover { border-color: var(--cream); background: rgba(250,246,240,0.08); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ====== FAQ ====== */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 0;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.faq-q .plus {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--ink-2);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  flex-shrink: 0;
}
.faq-item.open .faq-q .plus {
  transform: rotate(45deg);
  background: var(--primary);
  color: var(--cream);
  border-color: var(--primary);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--ink-2);
  transition: max-height .4s var(--ease), padding .4s var(--ease);
  padding: 0 0 0;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 0 24px;
}

/* ====== Footer ====== */
.footer {
  background: var(--cream-2);
  padding: 72px 0 32px;
  margin-top: 80px;
  border-top: 1px solid var(--line-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  display: block;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.footer a:hover { color: var(--primary); }
.home-crest{display:flex;flex-direction:column;align-items:center;gap:14px;padding:44px 24px 0;text-align:center}
.home-crest img{width:min(420px,70vw);height:auto;display:block}
.home-crest-line{font-size:14px;letter-spacing:.18em;text-transform:uppercase;color:var(--ink-2)}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-3);
  flex-wrap: wrap;
}

/* ====== Modal ====== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 54, 33, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
  animation: fadeIn .25s var(--ease);
}
.modal {
  background: var(--cream);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  animation: slideUp .35s var(--ease);
}
.modal-head {
  padding: 28px 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.modal-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  font-size: 26px;
}
.modal-close {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--ink-2);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--cream-2); }
.modal-body { padding: 20px 32px 32px; }

/* ====== Forms ====== */
.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 8px;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 82, 51, 0.12);
}
.field textarea { min-height: 100px; resize: vertical; }
.field .err { color: var(--heart); font-size: 12px; }
.field input.invalid,
.field textarea.invalid,
.field select.invalid { border-color: var(--heart); }

.form-success {
  padding: 28px;
  text-align: center;
  background: var(--forest-soft);
  border-radius: 10px;
}
.form-success h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 8px 0;
  color: var(--primary-deep);
}
.form-success p { margin: 0; color: var(--ink-2); }
.check-icon {
  width: 48px; height: 48px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--primary);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 22px;
}

/* ====== Animations ====== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ====== Page transitions ====== */
.page {
  animation: pageIn .5s var(--ease);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== Tweaks panel ====== */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  padding: 18px 20px;
  z-index: 200;
  font-size: 14px;
}
.tweaks-panel h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 14px;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweaks-row { margin-bottom: 14px; }
.tweaks-row:last-child { margin-bottom: 0; }
.tweaks-row > label {
  display: block;
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.tweaks-row select,
.tweaks-row textarea {
  width: 100%;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cream);
}
.tweaks-row textarea { min-height: 60px; resize: vertical; }
.swatch-row { display: flex; gap: 6px; }
.swatch {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s var(--ease);
}
.swatch.active { border-color: var(--ink); }

/* ====== About page specific ====== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 880px) { .story-grid { grid-template-columns: 1fr; } }

.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 700px) { .values-list { grid-template-columns: 1fr; } }

.value-item {
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
}
.value-item h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 10px;
}
.value-item .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}

/* ====== Safety page ====== */
.safety-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .safety-pillars { grid-template-columns: 1fr; } }

.safety-pillar {
  padding: 28px;
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.safety-pillar .icon {
  width: 44px; height: 44px;
  background: var(--forest-soft);
  color: var(--primary);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.safety-pillar h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 22px; }
.safety-pillar p { margin: 0; color: var(--ink-2); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  padding: 14px 0 14px 32px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--forest-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F5233' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ====== Programs page schedule ====== */
.schedule {
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
}
.schedule-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row:first-child { padding-top: 0; }
.schedule-time {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}
.schedule-activity h5 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 4px;
}
.schedule-activity p { margin: 0; color: var(--ink-2); font-size: 14px; }
@media (max-width: 600px) {
  .schedule-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ====== Contact page ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-info-item:last-of-type { border-bottom: none; }
.contact-info-item .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.contact-info-item .val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  display: block;
}
.contact-info-item a.val:hover { color: var(--primary); }

.map-placeholder {
  margin-top: 32px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line-soft);
}
.map-open {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: transform .15s var(--ease);
}
.map-open:hover { transform: translateY(-1px); }

/* ====== Utility ====== */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-prose { max-width: 60ch; }
.hidden { display: none !important; }
.mt-sm { margin-top: 12px; } .mt-md { margin-top: 24px; } .mt-lg { margin-top: 40px; } .mt-xl { margin-top: 64px; }


/* ====== Photo Studio ====== */
.ps-toolbar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  font-family: var(--font-body);
}
.program-detail-age{font-family:var(--font-mono);font-size:clamp(17px,1.5vw,22px);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--primary)}
.ps-fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  padding: 12px 20px 12px 14px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform .15s var(--ease), background .15s var(--ease);
}
.ps-fab:hover { transform: translateY(-1px); background: #000; }
.ps-fab-icon {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 999px;
  font-size: 14px;
}
.ps-bar {
  background: var(--ink);
  color: var(--cream);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 18px 50px -10px rgba(0,0,0,0.45), 0 4px 14px rgba(0,0,0,0.2);
  max-width: min(calc(100vw - 48px), 720px);
  flex-wrap: wrap;
}
.ps-bar-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}
.ps-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #7BC47F;
  box-shadow: 0 0 0 4px rgba(123, 196, 127, 0.2);
  animation: ps-pulse 2s ease-in-out infinite;
}
@keyframes ps-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(123, 196, 127, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(123, 196, 127, 0.05); }
}
.ps-bar-hint {
  font-size: 12px;
  font-family: var(--font-mono);
  color: rgba(250,246,240,0.6);
  flex: 1;
  min-width: 200px;
}
.ps-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ps-btn-ghost,
.ps-btn-primary {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.ps-btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250,246,240,0.2);
}
.ps-btn-ghost:hover { border-color: rgba(250,246,240,0.5); background: rgba(250,246,240,0.06); }
.ps-btn-ghost:disabled { opacity: 0.5; cursor: not-allowed; }
.ps-btn-primary {
  background: var(--cream);
  color: var(--ink);
}
.ps-btn-primary:hover { background: white; }
.ps-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Image swap-affordance overlay (when studio is active) */
.ph-studio-active {
  cursor: pointer;
  outline: 2px dashed transparent;
  outline-offset: -4px;
  position: relative;
  transition: outline-color .15s var(--ease), filter .15s var(--ease);
}
.ph-studio-active:hover {
  outline-color: var(--cream);
  filter: brightness(0.85);
}
.ph-studio-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.9;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  z-index: 2;
}

/* Picker modal */
.ps-modal {
  position: fixed;
  inset: 0;
  background: rgba(35, 40, 31, 0.55);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: ps-fade-in .2s var(--ease);
}
@keyframes ps-fade-in { from { opacity: 0; } to { opacity: 1; } }
.ps-modal-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 880px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
  animation: ps-slide-up .25s var(--ease);
}
@keyframes ps-slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.ps-modal-head {
  padding: 22px 28px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.ps-modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.ps-modal-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  max-width: 60ch;
}
.ps-x {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: grid; place-items: center;
}
.ps-x:hover { background: var(--cream-2); }

.ps-current {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 28px;
  background: var(--cream-2);
  border-bottom: 1px solid var(--line-soft);
}
.ps-current-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ps-current-img {
  width: 80px; height: 60px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-3);
  border: 1px solid var(--line-soft);
  display: grid; place-items: center;
  font-size: 11px;
  font-family: var(--font-mono);
}

.ps-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 28px 0;
  border-bottom: 1px solid var(--line-soft);
}
.ps-tab {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 16px;
  color: var(--ink-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-weight: 500;
}
.ps-tab:hover { color: var(--ink-2); }
.ps-tab.on {
  color: var(--ink);
  border-bottom-color: var(--primary);
}

.ps-tab-body {
  padding: 20px 28px 28px;
  overflow-y: auto;
  flex: 1;
}
.ps-search {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 8px;
  color: var(--ink);
  margin-bottom: 16px;
}
.ps-search:focus { outline: none; border-color: var(--primary); }

.ps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.ps-thumb {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.ps-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--ink-3);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.18);
}
.ps-thumb.on {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}
.ps-thumb-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-2);
}
.ps-thumb-label {
  padding: 8px 10px 10px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.3;
}
.ps-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 13px;
}

.ps-drop {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
  background: var(--cream-2);
}
.ps-drop:hover, .ps-drop.hot {
  border-color: var(--primary);
  background: rgba(0,0,0,0.02);
}
.ps-drop-icon {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--primary);
}
.ps-drop-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
}
.ps-drop-sub {
  font-size: 13px;
  color: var(--ink-3);
}

.ps-url-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
}
.ps-url-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ps-url-input {
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 8px;
  color: var(--ink);
}
.ps-url-input:focus { outline: none; border-color: var(--primary); }
.ps-url-form .ps-btn-primary {
  background: var(--primary);
  color: var(--cream);
  align-self: flex-start;
}
.ps-url-form .ps-btn-primary:hover:not(:disabled) { background: var(--primary-deep); }

/* ====== Mobile header ======
   The brand name is nowrap by default, which on a phone makes the header
   wider than the screen: the tour button lands on top of the name and the
   menu button falls off the right edge. Below 720px the name wraps instead,
   and the logo, button and gaps step down to match. */
@media (max-width: 980px) {
  .header-inner { gap: 12px; }
  .nav-right { gap: 8px; }
}

@media (max-width: 720px) {
  .header-inner {
    height: auto;
    min-height: 68px;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }
  .brand { gap: 10px; min-width: 0; }
  .brand img { width: 36px; height: 36px; flex-shrink: 0; }
  .brand-name {
    font-size: 16px;
    line-height: 1.15;
    white-space: normal;
  }
  .header .btn-primary { padding: 10px 15px; font-size: 13px; }
  .mobile-nav-toggle { padding: 9px; flex-shrink: 0; }
}

@media (max-width: 400px) {
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 15px; }
  .header .btn-primary { padding: 9px 12px; font-size: 12px; }
}
