/* ============================================================
   Faros Costa Rica — design system
   Colour scheme from the Faros logo:
   white · #fde303 (yellow) · #dd0313 (red) · #053672 (navy)
   Structure & rhythm adapted from the Clay design guide,
   recoloured warm & hopeful on a white canvas.
   ============================================================ */

:root {
  /* Brand */
  --yellow: #fde303;
  --yellow-soft: #fffbe6;
  --red: #dd0313;
  --red-soft: #fdecec;
  --navy: #053672;
  --navy-deep: #04264f;
  --navy-soft: #eef3fa;

  /* Ink & surface */
  --ink: #0f1b2d;
  --body: #3a4756;
  --muted: #6a7684;
  --hairline: #e7ebf0;
  --canvas: #ffffff;
  --surface-soft: #f7f9fc;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 9999px;

  /* Spacing */
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-2xl: 48px;
  --s-section: 88px;

  --maxw: 1200px;
  --nav-h: 76px;

  --shadow-soft: 0 6px 24px rgba(5, 54, 114, 0.08);
  --shadow-card: 0 10px 34px rgba(5, 54, 114, 0.10);

  --font-display: "Montserrat", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--canvas);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.4em;
  letter-spacing: -0.5px;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -0.3px; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -0.2px; }

p { margin: 0 0 1em; }

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

.section { padding: var(--s-section) 0; }
.section-tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.lead { font-size: 1.18rem; color: var(--body); }

.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: var(--shadow-card); }
.btn-red { background: var(--red); color: #fff; box-shadow: var(--shadow-soft); }
.btn-red:hover { background: #b80210; }
.btn-yellow { background: var(--yellow); color: var(--navy-deep); box-shadow: var(--shadow-soft); }
.btn-yellow:hover { background: #ecd400; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy-soft); }
.btn-lg { padding: 18px 34px; font-size: 1.08rem; }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 52px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  display: block;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--navy-soft); }
.nav-links a.active { color: var(--navy); background: var(--navy-soft); font-weight: 600; }

/* Language button */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding: 7px 12px 7px 8px;
  background: #fff;
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-pill);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lang-btn:hover { border-color: var(--navy); box-shadow: var(--shadow-soft); }
.lang-btn .flag { width: 26px; height: 18px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,0.06); flex-shrink: 0; }
.lang-btn .flag svg { display: block; width: 100%; height: 100%; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: #fff;
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-md);
  width: 46px; height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--hairline);
    padding: 12px 16px 20px;
    box-shadow: var(--shadow-card);
    transform: translateY(-140%);
    transition: transform 0.25s ease;
    margin-left: 0;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; font-size: 1.05rem; }
  .lang-btn { align-self: flex-start; margin: 8px 0 0 14px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 22px; font-size: clamp(1.5rem, 2.7vw, 2.1rem); line-height: 1.22; }
.hero .lead { margin-bottom: 30px; max-width: 34ch; }
.hero-photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 3 / 2;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .lead { max-width: none; }
}

/* Rolling banner phrase */
.rollband {
  background: var(--navy);
  overflow: hidden;
  padding: 26px 0;
}
.rollband .phrase {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  text-align: center;
  font-size: clamp(1.3rem, 4vw, 2.6rem);
  letter-spacing: -0.3px;
  margin: 0;
  padding: 0 20px;
  opacity: 0;
  transform: translateX(-30px);
  clip-path: inset(0 100% 0 0);
}
.rollband .phrase .hl { color: var(--yellow); }
.rollband.in .phrase { animation: rollIn 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@keyframes rollIn {
  from { opacity: 0; transform: translateX(-30px); clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; transform: translateX(0);     clip-path: inset(0 0 0 0); }
}

/* ---------- Two-column USTED / SU HIJO ---------- */
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 780px) { .twocol { grid-template-columns: 1fr; } }
.info-card {
  border-radius: var(--r-xl);
  padding: 36px;
  border: 1px solid var(--hairline);
}
.info-card.blue { background: var(--navy-soft); }
.info-card.yellow { background: var(--yellow-soft); }
.info-card h3 { margin-bottom: 18px; }
.info-card ul { margin: 0; padding-left: 0; list-style: none; }
.info-card li {
  position: relative;
  padding: 8px 0 8px 34px;
  border-bottom: 1px dashed rgba(5,54,114,0.14);
}
.info-card li:last-child { border-bottom: none; }
.info-card li::before {
  content: "";
  position: absolute;
  left: 4px; top: 15px;
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dd0313' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ---------- Generic prose blocks ---------- */
.prose p { color: var(--body); }
.prose .big { font-size: 1.3rem; color: var(--ink); font-weight: 500; font-family: var(--font-display); }

.panel {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 52px);
}
.panel.navy { background: var(--navy); color: #fff; border-color: transparent; }
.panel.navy h2, .panel.navy h3 { color: #fff; }
.panel.yellow { background: var(--yellow-soft); border-color: #f4e79a; }

/* ---------- Speller quote gallery (carousel) ---------- */
.quote-gallery { position: relative; }
.quote-stage {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(34px, 5vw, 60px);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-card);
}
.quote-stage .mark { font-size: 3rem; line-height: 0.5; color: var(--yellow); font-family: var(--font-display); margin-bottom: 10px; }
.quote-slide { display: none; }
.quote-slide.active { display: block; animation: fade 0.4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.quote-slide blockquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.55rem); line-height: 1.45; margin: 0 0 18px; }
.quote-slide .who { color: var(--yellow); font-weight: 600; }
.quote-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.quote-nav button {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-size: 1.3rem;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: 0.15s ease;
}
.quote-nav button:hover { background: var(--navy); color: #fff; }
.quote-dots { display: flex; gap: 8px; }
.quote-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline); border: none; padding: 0; cursor: pointer; }
.quote-dots .dot.active { background: var(--red); }

/* ---------- Testimonials (parents) ---------- */
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}
.testi-card .who { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1.15rem; margin-bottom: 12px; }
.testi-card blockquote { margin: 0; color: var(--body); font-size: 1.02rem; }
.testi-card .thumb { margin: 20px auto 0; border-radius: var(--r-md); overflow: hidden; max-width: 300px; }
.testi-card .thumb img { width: 100%; height: auto; }

/* ---------- Availability strip ---------- */
.availability {
  text-align: center;
  border-radius: var(--r-xl);
  padding: clamp(30px, 4vw, 46px);
  background: var(--red-soft);
  border: 1px solid #f4c4c4;
}
.availability .booked {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--red);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 8px;
}
.availability .open {
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 500;
  margin-bottom: 22px;
}

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.faq-item.open { border-color: var(--navy); box-shadow: var(--shadow-soft); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-q .chev {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--navy-soft);
  color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-item.open .faq-q .chev { transform: rotate(45deg); background: var(--navy); color: #fff; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner { padding: 0 24px 22px; color: var(--body); }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* ---------- Contact form ---------- */
.form-card {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-soft);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: 0.98rem; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 14px 16px;
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-md);
  background: #fff;
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }
.form-success {
  display: none;
  background: var(--navy-soft);
  border: 1px solid #bcd0ea;
  border-radius: var(--r-md);
  padding: 16px 18px;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 18px;
}

/* ---------- Photos / captions ---------- */
.photo-frame { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-card); }
.photo-frame img { width: 100%; height: auto; }
.caption { font-size: 0.92rem; color: var(--muted); margin-top: 10px; text-align: center; }
figure { margin: 0; }
.img-round { border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.split.narrow-img { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 820px) { .split, .split.narrow-img { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--yellow-soft), #fff);
  border: 1px solid #f4e79a;
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 40px;
  background: var(--surface-soft);
}
.footer-mark { max-width: 46%; min-width: 280px; margin: 0 auto 26px; }
.footer-mark img { width: 100%; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 22px; }
.footer-nav a { color: var(--body); text-decoration: none; font-size: 0.96rem; }
.footer-nav a:hover { color: var(--navy); text-decoration: underline; }
.footer-fine { text-align: center; color: var(--muted); font-size: 0.86rem; }

/* Utility */
.mt-0 { margin-top: 0; }
.hl-red { color: var(--red); }
.hl-navy { color: var(--navy); }
[hidden] { display: none !important; }
