/* =============================================================
   Tree Montessori — short AIDA landing
   Palette and typography inherited from the previous site.
   ============================================================= */

:root {
  /* Brand palette */
  --purple: #C377FD;
  --pink:   #FE88F6;
  --teal:   #4EC9D8;

  /* Text */
  --dark:  #1A1A2E;
  --text:  #2C3E50;
  --muted: #8B9BB4;

  /* Surfaces */
  --bg-grad: linear-gradient(160deg, #F3E8FF 0%, #FFF0FE 50%, #E8F9FB 100%);
  --bg-warm: linear-gradient(135deg, #F3E8FF, #FFF0FE);
  --border:  #EDE8F5;
  --white:   #FFFFFF;

  /* Effects */
  --grad-cta:    linear-gradient(135deg, #C377FD, #FE88F6);
  --grad-cta-hv: linear-gradient(135deg, #B266F0, #ED7AE3);
  --shadow-md:   0 6px 24px rgba(195,119,253,0.13);
  --shadow-lg:   0 20px 60px rgba(195,119,253,0.18);
  --shadow-cta:  0 8px 28px rgba(195,119,253,0.30);

  /* Layout */
  --container: 1080px;
  --gutter:    22px;
  --r-md:      20px;
  --r-lg:      28px;
  --r-pill:    999px;

  /* Type */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-grad);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; color: var(--dark); line-height: 1.15; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}
.brand__logo { width: 30px; height: 30px; }
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
}
.lang-switch a { padding: 7px 14px; color: var(--muted); }
.lang-switch a.is-active { background: var(--grad-cta); color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 30px;
  border-radius: var(--r-pill);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--wa {
  background: var(--grad-cta);
  color: var(--white);
  box-shadow: var(--shadow-cta);
}
.btn--wa:hover { background: var(--grad-cta-hv); transform: translateY(-2px); box-shadow: 0 12px 34px rgba(195,119,253,0.38); }
.btn--wa svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.btn--lg { padding: 20px 38px; font-size: 19px; }
.btn-note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--alt { background: rgba(255,255,255,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.section--dark { background: linear-gradient(135deg, #1A1A2E 0%, #2D2A4E 100%); color: var(--white); }
.section--dark h2 { color: var(--white); }
.h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 14px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text); }

/* ---------- Hero (Attention) ---------- */
.hero { padding: 46px 0 40px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--bg-warm);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.hero__title { font-size: clamp(32px, 5vw, 54px); line-height: 1.06; margin-bottom: 18px; }
.hero__title em { font-style: normal; background: var(--grad-cta); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: clamp(16px, 1.8vw, 20px); color: var(--text); margin-bottom: 26px; }
.hero__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 34px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-cta); flex: none; }

/* ---------- Cards (Interest) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--bg-warm);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; stroke: var(--purple); }
.card__title { font-size: 20px; margin-bottom: 8px; }
.card__text { font-size: 15.5px; color: var(--text); }

.disciplines {
  margin-top: 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.disciplines__title { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.disciplines__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.disciplines__list li {
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--bg-warm);
  color: var(--text);
}

/* ---------- Desire ---------- */
.desire-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-md);
}
.panel__title { font-family: var(--font-serif); font-size: 21px; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.included__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  padding: 7px 0;
}
.included__list svg { width: 19px; height: 19px; flex: none; margin-top: 3px; stroke: var(--teal); stroke-width: 2.5; fill: none; }

.price-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.price-row__value { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 38px); font-weight: 800; color: var(--dark); }
.price-row__unit { font-size: 15px; color: var(--muted); padding-bottom: 6px; }
.price-note { font-size: 15px; color: var(--text); margin-bottom: 18px; }
.price-compare { display: flex; gap: 10px; }
.price-compare div {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(139,155,180,0.09);
}
.price-compare strong { display: block; font-size: 15px; color: var(--dark); }
.price-compare span { font-size: 12.5px; color: var(--muted); }

.review {
  margin-top: 22px;
  background: var(--bg-warm);
  border-radius: var(--r-md);
  padding: 24px 26px;
  text-align: center;
}
.review__stars { color: #FFB74D; letter-spacing: 2px; font-size: 17px; }
.review__text { font-family: var(--font-serif); font-size: clamp(18px, 2.2vw, 23px); color: var(--dark); margin: 10px 0 10px; line-height: 1.35; }
.review__meta { font-size: 14px; color: var(--muted); }

/* ---------- Action ---------- */
.final { text-align: center; }
.final__sub { font-size: clamp(16px, 1.8vw, 19px); color: rgba(255,255,255,0.82); max-width: 620px; margin: 0 auto 28px; }
.final .btn-note { color: rgba(255,255,255,0.6); }
.final__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
  margin-top: 34px;
  font-size: 15px;
  color: rgba(255,255,255,0.78);
}
.final__contacts li { display: inline-flex; align-items: center; gap: 9px; }
.final__contacts svg { width: 18px; height: 18px; stroke: var(--purple); stroke-width: 2; fill: none; flex: none; }
.final__contacts a { border-bottom: 1px solid rgba(195,119,253,0.5); }

/* ---------- Footer ---------- */
.footer {
  background: #14142a;
  color: rgba(255,255,255,0.55);
  padding: 24px 0 88px;
  font-size: 14px;
}
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: none;
  transform: translateY(115%);
  transition: transform .3s ease;
}
.sticky-cta.is-shown { transform: none; }
/* Without JS the bar simply stays visible */
html:not(.js) .sticky-cta { transform: none; }
.sticky-cta .btn { width: 100%; padding: 15px 20px; font-size: 16px; }

/* ---------- Reveal ----------
   Hidden only when JS is running (html.js is set by an inline script in <head>),
   so the page is fully readable without JavaScript. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__media { order: -1; }
  .grid-3 { grid-template-columns: 1fr; }
  .desire-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 42px 0; }
  .hero { padding: 20px 0 26px; }
  /* Keep the headline and the CTA on the first screen */
  .hero__media img { max-height: 230px; object-fit: cover; }
  .eyebrow { margin-bottom: 14px; padding: 6px 13px; font-size: 11px; }
  .hero__title { margin-bottom: 14px; }
  .hero__sub { margin-bottom: 20px; }
  .btn--lg { padding: 17px 24px; font-size: 17px; width: 100%; }
  .hero__trust { justify-content: flex-start; gap: 8px 18px; font-size: 13.5px; }
  .sticky-cta { display: block; }
  .header .btn { display: none; }
  .header__inner { min-height: 56px; }
  .panel, .disciplines { padding: 22px 18px; }
  .final__contacts { flex-direction: column; align-items: center; gap: 10px; }
}
