/* =========================================================
   The Literacy Academy — site styles
   Palette and type come from the academy's own flyers:
   navy ink, heart pink, sunny yellow brush strokes.
   ========================================================= */

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Kalam";
  src: url("/assets/fonts/kalam-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1e3170;
  --navy-deep: #16245a;
  --ink: #26304f;
  --ink-soft: #4a5578;
  --pink: #e5408a;
  --pink-strong: #d12a6e;
  --pink-dark: #b81d5d;
  --yellow: #ffd54a;
  --teal: #129994;
  --purple: #7646c2;
  --green: #2e9e50;
  --sky: #eaf5fe;
  --butter: #fff6da;
  --blush: #fdeaf2;
  --line: #d9e3f2;
  --field: #7a86ab;
  --white: #ffffff;

  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -22px rgba(30, 49, 112, 0.45);
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 104px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  font-variant-numeric: lining-nums;
}

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

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 900;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.55rem + 3.6vw, 4rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 1.45rem + 2vw, 2.65rem); }
h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 850; letter-spacing: -0.005em; }

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pink-dark); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

[hidden] { display: none !important; }

/* ---------- Brush-stroke labels (the flyer's signature) ---------- */
.brush {
  --brush: var(--yellow);
  position: relative;
  display: inline-block;
  isolation: isolate;
  font-family: var(--font-hand);
  font-weight: 700;
  line-height: 1.2;
  padding: 0.22em 0.95em 0.28em;
  color: var(--navy);
}
.brush::before {
  content: "";
  position: absolute;
  inset: 0 -0.15em;
  z-index: -1;
  background: var(--brush);
  -webkit-mask: url("/assets/img/brush.svg") center / 100% 100% no-repeat;
  mask: url("/assets/img/brush.svg") center / 100% 100% no-repeat;
}
.brush--pink { --brush: var(--pink-strong); color: var(--white); }
.brush--blush { --brush: #f9cfe0; }


.hand {
  font-family: var(--font-hand);
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 850;
  font-size: 1.06rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-pink { background: var(--pink-strong); color: var(--white); }
.btn-pink:hover { background: var(--pink-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
@supports (backdrop-filter: blur(6px)) {
  .site-header { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.5) blur(10px); }
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(30, 49, 112, .5); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--navy);
  text-decoration: none;
  min-width: 0;
}
.brand img { width: 48px; height: 45px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-weight: 900;
  font-size: 1.12rem;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.3;
  color: var(--pink-strong);
}
.brand:hover { color: var(--navy); }

.main-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy);
  text-decoration: none;
}
.main-nav a:hover { background: var(--sky); color: var(--navy); }

.lang-switch {
  display: inline-flex;
  flex: none;
  padding: 4px;
  gap: 2px;
  border-radius: 999px;
  background: var(--sky);
  border: 1px solid var(--line);
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 38px;
  padding: 6px 13px;
  border-radius: 999px;
  font-weight: 850;
  font-size: .95rem;
  color: var(--navy);
  text-decoration: none;
}
.lang-switch a:hover { background: var(--white); color: var(--navy); }
.lang-switch a[aria-current="true"] { background: var(--navy); color: var(--white); }

.header-call { display: none; white-space: nowrap; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile: nav drops down under the header */
@media (max-width: 979px) {
  .main-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -24px rgba(30, 49, 112, .6);
    padding: 8px var(--gutter) 18px;
  }
  .main-nav:not(.is-open) { display: none; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { width: 100%; font-size: 1.1rem; padding: 12px 14px; }
}
@media (min-width: 980px) {
  .menu-toggle { display: none; }
  .header-call { min-height: 46px; padding: 10px 18px; font-size: 1rem; }
  .main-nav { margin-right: 4px; }
  .brand-name { max-width: 9.5em; }
}
/* The phone button joins the header only when there's room for it (the hero always has one). */
@media (min-width: 1240px) { html[lang="en"] .header-call { display: inline-flex; } }
@media (min-width: 1640px) { html[lang="es"] .header-call { display: inline-flex; } }
/* Pages without the main menu always have room */
@media (min-width: 700px) { .site-header:not(:has(.main-nav)) .header-call { display: inline-flex; } }
@media (max-width: 420px) {
  .brand img { width: 40px; height: 38px; }
  .brand-name { font-size: .98rem; }
  .brand-sub { display: none; }
  .lang-switch a { padding: 6px 10px; font-size: .9rem; }
  .header-inner { gap: 8px; }
}

/* Spanish-speaking browser suggestion */
.lang-banner {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}
.lang-banner .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding-block: 8px;
}
.lang-banner p { margin: 0; }
.lang-banner a { color: var(--yellow); font-weight: 850; }
.lang-banner button {
  margin-left: auto;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lang-banner button:focus-visible { outline-color: var(--yellow); }

/* ---------- Hero: the academy's banner ---------- */
.hero {
  position: relative;
  padding-block: clamp(10px, 3vw, 32px) clamp(44px, 6vw, 80px);
}
.banner {
  max-width: 1100px;
  margin: 0 auto clamp(18px, 3vw, 30px);
  line-height: 0;
}
.banner img { width: 100%; height: auto; }
.hero-intro { max-width: 780px; margin-inline: auto; text-align: center; }
.hero-lead {
  font-size: clamp(1.12rem, 1.04rem + .4vw, 1.3rem);
  color: var(--ink);
  max-width: 50ch;
  margin: 0 auto 24px;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 24px; }

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
  color: var(--navy);
}
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { width: 22px; height: 22px; flex: none; }

/* Phones: let the banner use the full screen width */
@media (max-width: 599px) {
  .banner { margin-inline: calc(-1 * var(--gutter)); }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Pillars band ---------- */
.band { padding-block: var(--section); }
.band--butter { background: var(--butter); }
.band--sky { background: var(--sky); }
.band--blush { background: var(--blush); }
.band--tight { padding-block: clamp(44px, 6vw, 72px); }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pillar { text-align: center; }
.pillar-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 0 0 6px var(--white);
}
.pillar-icon svg { width: 38px; height: 38px; }
.pillar-icon--pink { background: var(--pink-strong); }
.pillar-icon--teal { background: var(--teal); }
.pillar-icon--purple { background: var(--purple); }
.pillar-icon--green { background: var(--green); }
.pillar h3 { margin-bottom: 6px; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; max-width: 26ch; margin-inline: auto; }

.motto {
  margin: clamp(30px, 4vw, 48px) 0 0;
  text-align: center;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  color: var(--navy);
}

@media (max-width: 859px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
}

/* ---------- Section heads ---------- */
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; margin: 0; }

/* ---------- Focus skills ---------- */
.focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.skills li {
  position: relative;
  padding-left: 36px;
}
.skills li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 22px;
  height: 20px;
  background: var(--pink);
  -webkit-mask: url("/assets/img/heart.svg") center / contain no-repeat;
  mask: url("/assets/img/heart.svg") center / contain no-repeat;
}
.skills strong { display: block; color: var(--navy); font-weight: 850; font-size: 1.12rem; line-height: 1.3; margin-bottom: 2px; }
.skills span { display: block; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55; }

.bilingual {
  position: relative;
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--radius-xl);
  background: var(--blush);
  border: 2px dashed #f2a9c8;
}
.bilingual h3 { font-size: 1.55rem; margin-bottom: 12px; }
.bilingual p { margin-bottom: .7em; }
.bilingual p:last-child { margin-bottom: 0; }
.bubbles { display: flex; gap: 14px; margin-bottom: 18px; }
.bubble {
  position: relative;
  display: grid;
  place-items: center;
  width: 66px;
  height: 56px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--white);
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: -9px;
  width: 16px; height: 16px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 30% 100%);
}
.bubble--en { background: var(--teal); }
.bubble--en::after { left: 16px; }
.bubble--es { background: var(--pink-strong); }
.bubble--es::after { right: 16px; clip-path: polygon(0 0, 100% 0, 70% 100%); }

@media (max-width: 899px) {
  .focus-grid { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .skills { grid-template-columns: 1fr; }
}

/* ---------- Founder ---------- */
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.portrait {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--sky);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 10px var(--white), 0 0 0 14px var(--yellow), var(--shadow);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.portrait-initials {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(4.5rem, 3rem + 6vw, 7.5rem);
  line-height: 1;
  color: var(--navy);
  letter-spacing: .02em;
}
.portrait .heart-badge {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pink-strong);
  color: var(--white);
  box-shadow: 0 0 0 6px var(--white);
}
.portrait .heart-badge svg { width: 30px; height: 30px; }

.founder-name {
  font-size: clamp(1.55rem, 1.3rem + 1.2vw, 2.1rem);
  margin-bottom: 4px;
}
.founder-role { font-weight: 800; color: var(--pink-dark); margin-bottom: 18px; }
.creds {
  display: grid;
  gap: 12px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}
.creds li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
}
.creds .cred-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--butter);
  color: var(--navy);
}
.creds .cred-icon svg { width: 22px; height: 22px; }
.creds small { display: block; font-weight: 600; color: var(--ink-soft); font-size: .98rem; }

.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #dfe6fb;
}
.callout svg { width: 40px; height: 40px; flex: none; color: var(--yellow); }
.callout strong { display: block; color: var(--white); font-size: 1.2rem; font-weight: 900; margin-bottom: 2px; }
.callout strong em { font-style: normal; color: var(--yellow); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.callout p { margin: 0; font-size: 1.02rem; }

@media (max-width: 859px) {
  .founder-grid { grid-template-columns: 1fr; }
  .portrait { width: min(70%, 280px); }
}

/* ---------- Steps + tuition ---------- */
.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 22px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy);
  color: var(--navy);
  font-weight: 900;
  font-size: 1.35rem;
}
.steps h3 { margin: 6px 0 4px; }
.steps p { margin: 0; color: var(--ink-soft); }
.steps a { font-weight: 800; }

.ticket {
  position: relative;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 3px solid var(--navy);
  box-shadow: 10px 10px 0 var(--yellow);
  text-align: center;
}
.ticket .brush { font-size: 1.5rem; margin-bottom: 8px; }
.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--navy);
}
.price-amount { font-size: clamp(3.6rem, 3rem + 3vw, 5rem); font-weight: 1000; line-height: 1; letter-spacing: -0.03em; }
.price-per { font-weight: 850; font-size: 1.2rem; }
.ticket-list {
  display: grid;
  gap: 8px;
  margin: 0 auto 24px;
  padding: 18px 0 0;
  list-style: none;
  border-top: 2px dashed var(--line);
  max-width: 300px;
  text-align: left;
  font-weight: 800;
  color: var(--navy);
}
.ticket-list li { display: flex; gap: 10px; align-items: center; }
.ticket-list svg { width: 20px; height: 20px; flex: none; color: var(--green); }
.ticket .btn { width: 100%; max-width: 300px; }

@media (max-width: 859px) {
  .start-grid { grid-template-columns: 1fr; }
  .ticket { max-width: 460px; width: 100%; margin-inline: auto; }
}

/* ---------- Reviews ---------- */
.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: clamp(26px, 4vw, 40px);
}
.reviews-head .section-head { margin-bottom: 0; }
.section-head .rating-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 14px 0 0;
  font-weight: 800;
  color: var(--navy);
}
.section-head .rating-summary[hidden] { display: none; }
.rating-number { font-size: 1.35rem; font-weight: 900; }
.rating-summary .stars { font-size: 1.35rem; }

.stars {
  display: inline-flex;
  gap: 2px;
  color: #f2b400;
  line-height: 1;
  letter-spacing: 0;
}
.stars .off { color: #d5dbe9; }

.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.review {
  position: relative;
  margin: 0;
  padding: 26px 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}
.review::before {
  content: "\201C";
  position: absolute;
  right: 18px;
  top: -6px;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: #f7c1d6;
}
.review blockquote { margin: 14px 0 16px; }
.review blockquote p { margin: 0; white-space: pre-line; }
.review figcaption { font-weight: 850; color: var(--navy); line-height: 1.35; }
.review figcaption span { display: block; font-weight: 600; color: var(--ink-soft); font-size: .95rem; }

.reviews-empty, .reviews-status {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 2px dashed #f2a9c8;
  max-width: 640px;
}
.reviews-empty p, .reviews-status p { margin: 0; }
.reviews-more { margin-top: 24px; }

.reviews-note {
  margin: 28px 0 0;
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 70ch;
}

.review-form-wrap {
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
  max-width: 820px;
}
.review-form-wrap h3 { font-size: 1.6rem; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend {
  font-weight: 850;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.3;
  padding: 0;
}
.field .optional { font-weight: 600; color: var(--ink-soft); }
.field .hint { font-size: .95rem; color: var(--ink-soft); margin: 0; line-height: 1.4; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--field);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.08rem;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 6 5-6' fill='none' stroke='%231e3170' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}
.field [aria-invalid="true"] { border-color: var(--pink-strong); background: #fff7fa; }
.field-error {
  margin: 0;
  font-size: .98rem;
  font-weight: 750;
  color: #b0154f;
}
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative;
  display: inline-flex;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--field);
  font-weight: 800;
  color: var(--navy);
  background: var(--white);
}
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 3px; }

.check {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 1.02rem;
  line-height: 1.5;
}
.check input {
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: var(--navy);
}

/* Star rating input */
.star-input {
  display: flex;
  gap: 6px;
}
.star-input input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.star-input .star {
  display: block;
  width: 48px;
  height: 48px;
  cursor: pointer;
  background: #c3cbe0;
  -webkit-mask: url("/assets/img/star.svg") center / 40px 40px no-repeat;
  mask: url("/assets/img/star.svg") center / 40px 40px no-repeat;
  transition: background-color .12s ease;
}
.star-input:has(input:nth-of-type(1):checked) .star:nth-of-type(-n+1),
.star-input:has(input:nth-of-type(2):checked) .star:nth-of-type(-n+2),
.star-input:has(input:nth-of-type(3):checked) .star:nth-of-type(-n+3),
.star-input:has(input:nth-of-type(4):checked) .star:nth-of-type(-n+4),
.star-input:has(input:nth-of-type(5):checked) .star:nth-of-type(-n+5) { background: #f2b400; }
/* Hover preview: clear, then fill up to the hovered star */
.star-input:has(.star:hover) .star { background: #c3cbe0 !important; }
.star-input:has(.star:hover) .star:hover,
.star-input:has(.star:hover) .star:has(~ .star:hover) { background: #f2b400 !important; }
.star-input-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.star-input-wrap:focus-within { outline: 3px solid var(--navy); outline-offset: 4px; border-radius: 12px; }
.star-text { font-weight: 800; color: var(--navy); min-height: 1.5em; }

.honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 8px; }
.form-note { margin: 0; font-size: .98rem; color: var(--ink-soft); }

.form-status {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  font-weight: 750;
}
.form-status:empty { display: none; }
.form-status.is-success { background: #e6f6ec; color: #1b5e33; border: 2px solid #9fd6b2; }
.form-status.is-error { background: #fdecef; color: #9b1340; border: 2px solid #f3b3c6; }
.form-status:focus { outline: 3px solid var(--navy); outline-offset: 3px; }

@media (max-width: 599px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.contact-list {
  display: grid;
  gap: 18px;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .c-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--navy);
}
.contact-list .c-icon svg { width: 24px; height: 24px; }
.contact-list .c-label { display: block; font-size: .95rem; font-weight: 700; color: var(--ink-soft); line-height: 1.3; }
.contact-list a, .contact-list .c-value { font-weight: 850; font-size: 1.15rem; color: var(--navy); line-height: 1.35; word-break: break-word; }
.contact-list .c-sub { display: inline-block; margin-top: 4px; font-weight: 800; font-size: 1rem; }

.polaroid {
  margin: 0;
  width: min(100%, 320px);
  padding: 12px 12px 14px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  transform: rotate(-2deg);
}
.polaroid img { width: 100%; aspect-ratio: 236 / 148; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { font-family: var(--font-hand); font-weight: 700; color: var(--navy); text-align: center; padding-top: 8px; font-size: 1.1rem; line-height: 1.3; }

.contact-card {
  padding: clamp(22px, 4vw, 38px);
  border-radius: var(--radius-xl);
  background: var(--sky);
}
.contact-card h3 { font-size: 1.55rem; }

@media (max-width: 899px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c9d3f0;
  padding-block: clamp(44px, 6vw, 72px) 28px;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--yellow); }
.site-footer :focus-visible { outline-color: var(--yellow); }
.goal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding-bottom: clamp(28px, 4vw, 40px);
  margin-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid rgba(201, 211, 240, .25);
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.3;
  color: var(--white);
}
.goal strong { color: var(--yellow); font-weight: 700; }
.goal svg { width: 34px; height: 34px; color: var(--pink); flex: none; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand .mark {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--white);
  flex: none;
}
.footer-brand .mark img { width: 44px; height: 41px; }
.footer-brand p { margin: 0; color: var(--white); font-weight: 900; font-size: 1.15rem; line-height: 1.25; }
.footer-brand p span { display: block; font-weight: 600; color: #c9d3f0; font-size: 1rem; }
.site-footer h2 {
  font-size: 1.05rem;
  color: var(--yellow);
  margin-bottom: 12px;
  letter-spacing: 0;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer address { font-style: normal; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(201, 211, 240, .25);
  font-size: .95rem;
}
.footer-bottom p { margin: 0; }
.site-footer .lang-switch { background: rgba(255, 255, 255, .08); border-color: rgba(201, 211, 240, .3); }
.site-footer .lang-switch a { color: var(--white); }
.site-footer .lang-switch a:hover { background: rgba(255, 255, 255, .15); }
.site-footer .lang-switch a[aria-current="true"] { background: var(--yellow); color: var(--navy); }

@media (max-width: 859px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 859px) {
  .action-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px -18px rgba(30, 49, 112, .55);
  }
  .action-bar .btn { min-height: 50px; padding: 10px 12px; font-size: 1rem; }
  .has-action-bar { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
}

/* ---------- Simple pages (legal, thanks, 404) ---------- */
.page-hero { padding-block: clamp(36px, 6vw, 72px) clamp(20px, 3vw, 32px); background: var(--sky); }
.page-hero h1 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.2rem); margin-bottom: 10px; }
.page-hero p { margin: 0; color: var(--ink-soft); }
.prose { padding-block: clamp(32px, 5vw, 56px) var(--section); }
.prose .wrap { max-width: 780px; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose .box {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--butter);
  margin: 0 0 1.2em;
}

.center-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--section);
}
.center-page .wrap { max-width: 640px; }
.center-page img { width: 120px; margin: 0 auto 18px; }
.center-page .btn { margin: 6px; }

@media print {
  .site-header, .action-bar, .lang-banner, .site-footer .lang-switch { display: none !important; }
  body { font-size: 12pt; }
}

/* ---------- Late additions ---------- */
.stars svg { width: 1.15em; height: 1.15em; }
.stars svg.off { color: #d5dbe9; }
.reviews-empty .btn { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
a[href^="tel:"] { white-space: nowrap; }

/* Phones: the language control becomes one clear button for the other language */
@media (max-width: 480px) {
  .site-header .lang-switch { padding: 0; gap: 0; background: transparent; border: 0; }
  .site-header .lang-switch a[aria-current="true"] { display: none; }
  .site-header .lang-switch a {
    min-height: 44px;
    padding: 6px 14px;
    border: 2px solid var(--navy);
    background: var(--white);
    font-size: .98rem;
  }
  .brand-name { font-size: .98rem; line-height: 1.1; }
}

/* Bigger tap areas on touch screens */
.brand { min-height: 44px; }
.site-footer ul a { display: inline-block; padding-block: 10px; }
.site-footer ul { gap: 0; }
@media (pointer: coarse) {
  .lang-switch a { min-height: 44px; }
}

/* ---------- Enrollment card ---------- */
.enroll-card p { margin-bottom: .8em; }
.enroll-ask { font-weight: 850; color: var(--navy); margin-bottom: 8px !important; }
.enroll-list { border-top: 0; padding-top: 0; margin: 0 0 22px; max-width: none; }
.btn-block { display: flex; width: 100%; text-align: center; }
.enroll-card .btn-block { margin-bottom: 14px; }
.enroll-card .form-note { margin-bottom: .6em; }
.ticket-alt { margin: 14px 0 0; font-weight: 800; }
@media (max-width: 599px) {
  .enroll-card .btn-block { padding-inline: 16px; }
}

/* ---------- Friday Reading Facts ---------- */
.friday { background: var(--sky); }
.friday-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.friday-head h2 { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2rem); margin: 0 0 6px; }
.friday-head p { margin: 0; color: var(--ink-soft); }
.friday-bulb { flex: none; width: 58px; height: 58px; padding: 10px; border-radius: 50%; background: var(--yellow); color: var(--navy); }
.brush--navy { --brush: var(--navy); color: var(--white); }
.fact-card {
  max-width: 900px;
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: var(--radius-xl);
  box-shadow: 10px 10px 0 var(--yellow);
  padding: clamp(20px, 4vw, 34px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.fact-card[hidden] { display: none; }
.fact-week, .fact-card h3 { grid-column: 1 / -1; margin: 0; }
.fact-week {
  justify-self: start;
  font-weight: 900;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 999px;
  padding: 4px 16px;
}
.fact-week span { font-weight: 700; }
.fact-card h3 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.1rem); }
.fact-box { border-radius: var(--radius-lg); padding: 18px 20px; }
.fact-box--know { background: var(--sky); }
.fact-box--try { background: var(--blush); }
.fact-box h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1.12rem; font-weight: 900; color: var(--navy); }
.fact-box h4 svg { width: 24px; height: 24px; flex: none; }
.fact-box--try h4 svg { color: var(--pink-dark); }
.fact-box p { margin: 0 0 .6em; }
.fact-box p:last-child { margin-bottom: 0; }
.fact-box ul { margin: 0; padding-left: 1.2em; }
@media (max-width: 699px) {
  .fact-card { grid-template-columns: 1fr; box-shadow: 6px 6px 0 var(--yellow); }
  .friday-bulb { width: 48px; height: 48px; padding: 8px; }
}
/* Friday facts: own background, centered, tidy on phones */
.friday { background: var(--butter); }
.friday .wrap { max-width: 960px; }
.friday-head { justify-content: center; text-align: left; }
.fact-card { margin-inline: auto; box-shadow: 10px 10px 0 #f7b3cf; }
@media (max-width: 699px) { .fact-card { box-shadow: 6px 6px 0 #f7b3cf; } }
@media (max-width: 520px) {
  .friday-bulb { display: none; }
  .friday-head { justify-content: flex-start; }
  .friday-head h2 { font-size: 1.35rem; }
}

/* Hero goal line and contact closing line */
.hero-goal {
  margin: -8px auto 24px;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  color: var(--pink-dark);
}
.hero-goal strong { color: var(--navy); font-weight: 700; }
.contact-closing { font-weight: 850; color: var(--navy); }
.enroll-card .enroll-ask + p { margin-bottom: 18px; }

/* Header: the logo never squishes; the longer Spanish menu uses the menu button until it fits */
@media (min-width: 980px) { .brand { flex: none; } }
@media (min-width: 980px) and (max-width: 1319px) {
  html[lang="es"] .menu-toggle { display: inline-flex; }
  html[lang="es"] .main-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    margin: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -24px rgba(30, 49, 112, .6);
    padding: 8px var(--gutter) 18px;
  }
  html[lang="es"] .main-nav:not(.is-open) { display: none; }
  html[lang="es"] .main-nav ul { flex-direction: column; max-width: var(--maxw); margin-inline: auto; }
  html[lang="es"] .main-nav a { width: 100%; font-size: 1.1rem; padding: 12px 14px; }
  html[lang="es"] .lang-switch { margin-left: auto; }
}
