/* English classes, Palma */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand */
  --claret: oklch(0.43 0.16 350);
  --claret-deep: oklch(0.34 0.13 350);
  --claret-soft: oklch(0.955 0.018 350);
  --stone: oklch(0.84 0.1 80);          /* La Seu sandstone, used sparingly */

  /* Neutrals */
  --bg: oklch(1 0 0);
  --surface: oklch(0.972 0.005 350);
  --ink: oklch(0.21 0.02 350);
  --muted: oklch(0.45 0.02 350);
  --line: oklch(0.89 0.01 350);
  --on-claret: oklch(0.99 0.005 350);
  --on-claret-muted: oklch(0.88 0.035 350);

  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step--1: 0.9rem;
  --step-0: 1.125rem;
  --step-1: clamp(1.3rem, 1.1rem + 0.7vw, 1.55rem);
  --step-2: clamp(1.65rem, 1.3rem + 1.4vw, 2.2rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.3rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 4.75rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section: clamp(4rem, 2.5rem + 6vw, 8rem);
  --radius: 10px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --z-header: 100;
  --z-menu: 110;
  --z-skip: 200;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

a { color: var(--claret); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--claret-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--claret); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin: 2.2em 0 0.6em; }
.prose h3 { margin: 1.8em 0 0.4em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.35em; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: var(--z-skip);
  background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* Placeholders: highlighted so they're impossible to miss before launch */
mark.ph {
  background: oklch(0.94 0.14 102);
  color: oklch(0.25 0.04 90);
  outline: 1px dashed oklch(0.6 0.12 90);
  outline-offset: 1px;
  border-radius: 3px;
  padding: 0 0.2em;
  font-style: normal;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--claret); color: var(--on-claret); }
.btn-primary:hover { background: var(--claret-deep); color: var(--on-claret); }
.btn-ghost { border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-light { background: var(--on-claret); color: var(--claret-deep); }
.btn-light:hover { background: var(--stone); color: var(--ink); }
.btn-outline-light { border-color: var(--on-claret-muted); color: var(--on-claret); }
.btn-outline-light:hover { background: var(--on-claret); color: var(--claret-deep); border-color: var(--on-claret); }
.btn-sm { min-height: 2.5rem; padding: 0.45rem 1.05rem; font-size: 0.95rem; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: oklch(1 0 0 / 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand:hover { color: var(--ink); }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.025em; }
.brand-tag { font-size: 0.8rem; color: var(--muted); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  color: var(--ink); text-decoration: none; font-size: 0.98rem; font-weight: 500;
  padding: 0.4rem 0; background: linear-gradient(var(--claret), var(--claret)) left bottom / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}
.site-nav ul a:hover { color: var(--ink); background-size: 100% 2px; }
.site-nav ul a[aria-current="page"] { color: var(--claret); background-size: 100% 2px; }
.lang {
  font-size: 0.9rem; font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 0.3rem 0.6rem; border: 1px solid var(--line); border-radius: 999px;
}
.lang:hover { color: var(--ink); border-color: var(--ink); }

.menu-toggle {
  display: none; margin-left: auto;
  font: 600 0.95rem var(--font-sans); color: var(--ink);
  background: none; border: 1.5px solid var(--ink); border-radius: 999px;
  min-height: 2.5rem; padding: 0 1rem; cursor: pointer;
}

@media (max-width: 62rem) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute; inset: 100% 0 auto 0; z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -18px oklch(0.2 0.03 350 / 0.35);
  }
  .site-nav.is-open { display: flex; animation: drop 0.28s var(--ease-out); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.8rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); background: none; }
  .lang { align-self: flex-start; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(86svh, 780px);
  display: flex; align-items: center;
  color: var(--on-claret);
  overflow: hidden;
  background: oklch(0.3 0.08 255);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  animation: settle 2.4s var(--ease-out) both;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, oklch(0.2 0.06 258 / 0.78) 0%, oklch(0.2 0.06 258 / 0.45) 45%, transparent 72%);
}
.hero-copy { padding-block: var(--section); max-width: 40rem; }
.hero h1 { font-size: var(--step-4); }
.hero-lede { margin-top: 1.4rem; font-size: var(--step-1); line-height: 1.45; max-width: 34ch; color: oklch(0.95 0.01 250); }
.hero .btn-row { margin-top: 2.2rem; }
.hero-copy > * { animation: rise 0.9s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.hero-copy > :nth-child(3) { animation-delay: 0.24s; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle { from { transform: scale(1.06); } }

@media (max-width: 48rem) {
  .hero { align-items: flex-end; min-height: 88svh; }
  .hero-media img { object-position: 78% 50%; }
  .hero::before {
    background: linear-gradient(0deg, oklch(0.18 0.06 258 / 0.92) 0%, oklch(0.2 0.06 258 / 0.7) 50%, oklch(0.2 0.06 258 / 0.1) 100%);
  }
  .hero-copy { padding-block: 3rem 2.5rem; }
}

/* Credentials strip */
.creds { border-bottom: 1px solid var(--line); }
.creds ul {
  list-style: none; margin: 0; padding: 1.4rem 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2.5rem;
  font-weight: 600; font-size: 1rem;
}
.creds li { display: flex; align-items: center; gap: 0.6rem; }
.creds li::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--claret); flex: none; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2rem, 1.5rem + 3vw, 3.5rem); }
.page-head h1 { font-size: var(--step-4); max-width: 18ch; }
.page-head .lede { margin-top: 1.25rem; font-size: var(--step-1); line-height: 1.45; color: var(--muted); max-width: 46ch; }
.page-head .btn-row { margin-top: 2rem; }
.page-head--claret { background: var(--claret); color: var(--on-claret); }
.page-head--claret .lede { color: var(--on-claret-muted); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--surface); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); max-width: 44rem; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.45; }

/* Offer rows: the list of class types */
.offers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.offers li { border-bottom: 1px solid var(--line); }
.offer {
  display: grid; grid-template-columns: minmax(12rem, 1fr) 2fr auto; gap: 0.5rem 2.5rem;
  align-items: baseline; padding: 1.6rem 0;
  color: inherit; text-decoration: none;
}
.offer:hover { color: inherit; }
.offer h3 { transition: color 0.2s var(--ease-out); }
.offer p { color: var(--muted); }
.offer .arrow {
  font-size: 1.5rem; color: var(--claret); line-height: 1;
  transition: transform 0.3s var(--ease-out);
}
.offer:hover h3 { color: var(--claret); }
.offer:hover .arrow { transform: translateX(6px); }
div.offer:hover h3 { color: inherit; }
.pt-0 { padding-top: 0 !important; }
.offer--feature h3::after {
  content: attr(data-badge); margin-left: 0.6rem; vertical-align: 0.2em;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em;
  background: var(--claret); color: var(--on-claret); padding: 0.2rem 0.6rem; border-radius: 999px;
}
@media (max-width: 44rem) {
  .offer { grid-template-columns: 1fr auto; }
  .offer p { grid-column: 1 / -1; grid-row: 2; }
}

/* Split: image/figure + text */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.split--flip { grid-template-columns: 7fr 5fr; }
.split--flip > :first-child { order: 2; }
@media (max-width: 52rem) {
  .split, .split--flip { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}

.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  display: grid; place-items: center; text-align: center; padding: 2rem;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, oklch(0.93 0.01 350) 14px 15px),
    var(--surface);
  border: 1.5px dashed oklch(0.75 0.03 350);
  color: var(--muted); font-size: 0.95rem;
}
.photo { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.quote {
  font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.35;
  font-weight: 400; letter-spacing: -0.01em; text-wrap: pretty;
}
.quote em { font-style: italic; }
.signoff { margin-top: 1.5rem; color: var(--muted); }
.text-link { display: inline-block; margin-top: 1.75rem; font-weight: 600; }

/* Aviation band */
.band {
  background: var(--claret); color: var(--on-claret);
  padding-block: var(--section);
  position: relative; overflow: hidden; isolation: isolate;
}
.band::after {
  /* a runway centreline, drawn in type-weight strokes */
  content: ""; position: absolute; z-index: -1;
  right: -4rem; top: 50%; width: 55%; height: 6px; transform: translateY(-50%) rotate(-8deg);
  background: repeating-linear-gradient(90deg, oklch(1 0 0 / 0.14) 0 64px, transparent 64px 104px);
}
.band a:not(.btn) { color: var(--on-claret); }
.band h2 { max-width: 16ch; }
.band .lede { margin-top: 1.25rem; font-size: var(--step-1); line-height: 1.45; color: var(--on-claret-muted); max-width: 44ch; }
.band .btn-row { margin-top: 2rem; }
.ticks { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.6rem; max-width: 40rem; }
.ticks li { display: flex; gap: 0.8rem; }
.ticks li::before { content: "✓"; font-weight: 700; color: var(--stone); flex: none; }
.band .ticks li::before { color: var(--stone); }
.section .ticks li::before { color: var(--claret); }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.5rem; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; margin-bottom: 1.1rem; border-radius: 50%;
  border: 1.5px solid var(--claret); color: var(--claret); font-weight: 700;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--muted); }

/* Testimonials */
.voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: clamp(2rem, 1rem + 3vw, 4rem); }
.voice blockquote { margin: 0; font-family: var(--font-serif); font-size: var(--step-1); line-height: 1.45; }
.voice figcaption { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }
.voice figcaption strong { color: var(--ink); }

/* Closing CTA */
.closer { padding-block: var(--section); text-align: left; }
.closer h2 { font-size: var(--step-4); max-width: 16ch; }
.closer p { margin-top: 1.25rem; font-size: var(--step-1); color: var(--muted); max-width: 42ch; }
.closer .btn-row { margin-top: 2rem; }

/* Class detail blocks */
.detail { display: grid; grid-template-columns: minmax(14rem, 1fr) 2fr; gap: 1rem clamp(2rem, 1rem + 4vw, 5rem); padding-block: 2.75rem; border-top: 1px solid var(--line); }
.detail:first-child { border-top-color: var(--ink); }
.detail h2 { font-size: var(--step-2); }
.detail .meta { margin-top: 0.75rem; color: var(--muted); font-size: 0.95rem; }
.detail .body > * + * { margin-top: 1rem; }
.detail ul { margin: 0; padding-left: 1.2em; }
.detail li + li { margin-top: 0.3em; }
@media (max-width: 48rem) { .detail { grid-template-columns: 1fr; } }

/* Prices */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); border-top: 1px solid var(--ink); }
.price { padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--line); }
.price + .price { padding-left: 2rem; border-left: 1px solid var(--line); }
@media (max-width: 52rem) { .price + .price { padding-left: 0; border-left: 0; } }
.price h3 { font-size: 1.1rem; font-weight: 600; }
.price .amount { margin-top: 0.6rem; font-size: var(--step-3); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.price .note { margin-top: 0.5rem; color: var(--muted); font-size: 0.95rem; }
.price--free { background: var(--claret-soft); padding-left: 2rem !important; }
.price--free .amount { color: var(--claret); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem 3rem; }
.facts h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.facts p { color: var(--muted); }

/* FAQ */
.faq { max-width: 50rem; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--claret); transition: transform 0.25s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 1.4rem; color: var(--muted); max-width: 65ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; } }
.channels { display: grid; gap: 1.5rem; }
.channel h2 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.channel p { color: var(--muted); }
.channel a { font-weight: 600; font-size: 1.15rem; }

.form { display: grid; gap: 1.25rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--surface); border-radius: var(--radius); }
.form h2 { font-size: var(--step-2); }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.98rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid oklch(0.78 0.015 350); border-radius: 8px;
  padding: 0.75rem 0.9rem; min-height: 3rem; width: 100%;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--claret); box-shadow: 0 0 0 3px oklch(0.43 0.16 350 / 0.18);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.form-note { font-size: 0.9rem; color: var(--muted); }
.form .btn { justify-self: start; }

/* Notice (e.g. "preparation, not official assessment") */
.notice {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 1.5rem; border-radius: var(--radius);
  background: var(--claret-soft); border: 1px solid oklch(0.85 0.05 350);
  max-width: 50rem;
}
.notice::before { content: "i"; flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--claret); color: var(--on-claret); font: italic 700 0.95rem var(--font-serif); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: oklch(0.86 0.01 350); padding-top: 3.5rem; font-size: 0.98rem; }
.site-footer a { color: oklch(0.97 0 0); text-decoration: none; }
.site-footer a:hover { color: var(--stone); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 2rem 3rem; padding-bottom: 2.5rem; }
@media (max-width: 52rem) { .footer-grid { grid-template-columns: 1fr; } }
.footer-name { font-weight: 800; font-size: 1.25rem; color: oklch(0.99 0 0); letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.footer-contact, .footer-legal { display: grid; gap: 0.5rem; align-content: start; }
.footer-base { border-top: 1px solid oklch(0.35 0.02 350); padding-block: 1.25rem 2rem; font-size: 0.85rem; color: oklch(0.75 0.01 350); }
.footer-base a { text-decoration: underline; }
.site-footer mark.ph { color: oklch(0.25 0.04 90); }

/* Floating WhatsApp button (mobile) */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: var(--z-header);
  display: none; box-shadow: 0 10px 24px -8px oklch(0.2 0.05 350 / 0.5);
}
@media (max-width: 48rem) { .wa-float { display: inline-flex; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
