/* Become Fluent: styles shared by every page of becomefluent.net.
   Page-specific styles stay in each page's own <style> block, which loads after this file. */

/* Fonts are self-hosted so the headline does not wait on Google. */
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-sans-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-sans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/instrument-sans-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/instrument-sans-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/instrument-sans-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/instrument-sans-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/young-serif-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/young-serif-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --fs-xs: 0.8rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 2.4vw, 1.9rem);
  --fs-2xl: clamp(1.9rem, 3.4vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 5vw, 3.25rem);
  --fs-hero: clamp(2.8rem, 5.4vw, 4.2rem);
  --paper: #f7f7f3;
  --tile: #e9eef8;
  --cobalt: #1d3f94;
  --navy: #0f1d44;
  --saffron: #eaa91f;
  --muted: #47517a;
  --rule: #d3d9e8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
}

h1, h2, h3, .brand {
  font-family: 'Young Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: var(--fs-3xl); }

h2 { font-size: var(--fs-2xl); }

h3 { font-size: var(--fs-lg); }

p { margin: 0; max-width: 62ch; }

a:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Buttons and links */

.btn {
  display: inline-block;
  background: var(--saffron);
  color: var(--navy);
  border: 2px solid var(--saffron);
  border-radius: 4px;
  padding: 0.8rem 1.4rem;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover { background: #f3bb43; border-color: #f3bb43; }

.btn-small { padding: 0.45rem 1rem; font-size: var(--fs-base); }

.text-link {
  color: var(--cobalt);
  font-weight: 600;
  text-underline-offset: 0.25em;
}

/* Header */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xl);
  white-space: nowrap;
  color: var(--cobalt);
  text-decoration: none;
}

.logo-mark {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
}

.nav { display: flex; align-items: center; gap: 1.25rem; }

.nav-link {
  color: var(--navy);
  text-decoration: none;
  font-size: var(--fs-base);
  white-space: nowrap;
}

.nav-link:hover { text-decoration: underline; text-underline-offset: 0.25em; }

.nav-login-short { display: none; }
.nav .btn { white-space: nowrap; }

@media (max-width: 520px) {
  .site-header { gap: .75rem; }
  .brand { font-size: var(--fs-lg); }
  .nav { gap: .75rem; }
  .nav .btn { white-space: normal; text-align: center; padding: .4rem .7rem; font-size: var(--fs-sm); }
}

@media (max-width: 1020px) {
  .nav-link:not(.nav-login) { display: none; }
  .nav-login-long { display: none; }
  .nav-login-short { display: inline; }
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.lede {
  margin-top: 1.25rem;
  font-size: var(--fs-lg);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 440px;
  border: 2px solid var(--cobalt);
}

.tile {
  position: relative;
  aspect-ratio: 1;
  background: var(--tile);
}

.tile svg {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--cobalt);
  fill: currentColor;
}

.tile-word {
  display: grid;
  place-items: center;
  padding: 0.25rem;
  background: var(--saffron);
}

.tile-word span {
  font-family: 'Young Serif', Georgia, serif;
  font-size: clamp(0.78rem, 2.4vw, 1.08rem);
  color: var(--navy);
}

.gloss {
  max-width: 440px;
  margin: 1rem 0 0;
  font-size: var(--fs-base);
  color: var(--muted);
}

.gloss-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--rule);
}

.gloss dt {
  flex: 0 0 6.2rem;
  font-weight: 600;
  color: var(--cobalt);
}

.gloss dd { margin: 0; }

/* Generic section spacing */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }

.band { padding-block: clamp(3rem, 7vw, 5.5rem); }

.band-tint { background: var(--tile); }

.band-cobalt { background: var(--cobalt); color: var(--tile); }

/* How lessons work */

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.25rem;
}

.trio-item {
  border-top: 3px solid var(--cobalt);
  padding-top: 1rem;
}

.trio-item p { margin-top: 0.6rem; color: var(--muted); }

/* Services */

.rows {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  border-top: 2px solid var(--navy);
}

.row {
  display: grid;
  grid-template-columns: 12rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--rule);
}

.row p { color: var(--muted); }

/* Immersion trips */

.immersion {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.immersion-photo {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--cobalt);
}

.immersion p { margin-top: 1rem; color: var(--muted); }

.immersion .btn { margin-top: 1.75rem; }

.gallery {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid var(--cobalt);
}

/* Who teaches */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.portrait {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 1;
  margin-top: 1.5rem;
  border: 2px solid var(--cobalt);
}

.portrait-name {
  margin-top: 0.6rem;
  font-weight: 600;
  color: var(--cobalt);
}

/* Student stories */

.featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
  margin-top: 2.25rem;
}

.quote {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--cobalt);
}

.quote blockquote { margin: 0; }

.quote p { max-width: none; }

.quote figcaption {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--cobalt);
}

.more-heading { margin-top: 4rem; font-size: var(--fs-xl); }

.shorts {
  columns: 3 15rem;
  column-gap: 2.5rem;
  margin-top: 1.5rem;
}

.quote-short {
  break-inside: avoid;
  margin-bottom: 1.6rem;
  border-left-width: 2px;
  border-left-color: var(--rule);
  font-size: var(--fs-base);
}

.note {
  margin-top: 2rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* Contact */

.contact p { margin-top: 1rem; color: #d6def2; }

.contact .btn { margin-top: 1.75rem; }

.contact a:focus-visible { outline-color: var(--saffron); }

.contact .mail { margin-top: 1.25rem; }

.contact .mail-link { color: #fff; font-weight: 600; text-underline-offset: 0.25em; }

/* Footer */

.footer {
  background: var(--navy);
  color: #b8c3e3;
  font-size: var(--fs-sm);
  padding-block: 1.5rem;
}

/* Smaller screens */

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav-link { display: none; }
  .nav { gap: 1rem; }
  .nav-link.nav-login { display: inline; white-space: nowrap; }
  .nav-login-long { display: none; }
  .nav-login-short { display: inline; }
  .nav .btn { white-space: nowrap; }
  .trio { grid-template-columns: 1fr; gap: 1.75rem; }
  .row { grid-template-columns: 1fr; gap: 0.4rem; }
  .two-col { grid-template-columns: 1fr; gap: 1.25rem; }
  .immersion { grid-template-columns: 1fr; gap: 1.75rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .featured { grid-template-columns: 1fr; }
}


/* Phone number */
.phone-line { margin-top: 1rem; font-size: var(--fs-base); color: var(--navy); }
.phone-line a { color: var(--cobalt); font-weight: 600; white-space: nowrap; }
.phone-big { margin-top: 1.5rem; font-size: var(--fs-md); }
.phone-big span { display: block; opacity: .85; }
.phone-big a { color: #fff; font-family: 'Young Serif', Georgia, serif; font-size: var(--fs-3xl); text-decoration: none; white-space: nowrap; }
.phone-big a:hover, .phone-big a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }


/* ---- Trust redesign (2026-11-05) ---- */

/* Hero photo with a tile-strip border */
.hero-photo { margin: 0; max-width: 480px; justify-self: end; width: 100%; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.05; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--cobalt); border-bottom: 0; }
.tile-strip { display: grid; grid-template-columns: repeat(6, 1fr); border: 2px solid var(--cobalt); }
.hero-photo figcaption { margin-top: 0.75rem; font-size: var(--fs-base); color: var(--muted); }
.hero-photo figcaption strong { font-family: 'Young Serif', Georgia, serif; font-weight: 400; color: var(--cobalt); margin-right: 0.4rem; }
.proof-line { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; font-size: var(--fs-base); font-weight: 600; color: var(--cobalt); }
.proof-line li + li::before { content: "\00b7"; margin-right: 1.1rem; color: var(--saffron); font-weight: 700; }

/* Secondary button used on every service card */
.btn-line { display: inline-block; border: 2px solid var(--cobalt); border-radius: 4px; padding: 0.6rem 1.1rem; font-weight: 600; color: var(--cobalt); text-decoration: none; background: transparent; }
.btn-line:hover { background: var(--cobalt); color: #fff; }

/* Services cards */
.section-lede { margin-top: 0.9rem; color: var(--muted); }
.cards { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.card { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; padding: 1.5rem; background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--cobalt); border-radius: 4px; }
.card-core { grid-column: span 3; border-top-color: var(--saffron); }
.card p { margin-top: 0.6rem; color: var(--muted); }
.card .card-price { margin-top: 0.9rem; font-weight: 600; color: var(--navy); }
.card .btn-line { margin-top: auto; }
.card > p:nth-last-child(2) { margin-bottom: 1.4rem; }

/* Photos: one consistent treatment */
.photo { display: block; width: 100%; height: auto; border: 0; border-radius: 6px; box-shadow: 0 6px 20px rgba(15, 29, 68, 0.14); aspect-ratio: 4 / 3; object-fit: cover; }
.gallery { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.gallery img { border: 0; aspect-ratio: 4 / 3; }

/* Reviews on deep blue */
.band-navy { background: var(--navy); color: #f7f7f3; }
.band-navy h2 { color: #fff; }
.pulls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; margin-top: 2.5rem; }
.pull { margin: 0; padding-top: 1.1rem; border-top: 3px solid var(--saffron); }
.pull blockquote { margin: 0; }
.pull blockquote p { max-width: none; font-family: 'Young Serif', Georgia, serif; font-size: var(--fs-xl); line-height: 1.3; color: #fff; }
.pull figcaption { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.1rem; color: #b8c3e3; line-height: 1.35; font-size: var(--fs-base); }
.pull figcaption strong { color: #fff; }
.avatar { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--saffron); color: var(--navy); font-weight: 600; font-size: var(--fs-base); letter-spacing: 0.03em; }
.pull details { margin-top: 1rem; color: #d6def2; }
.pull summary { cursor: pointer; font-weight: 600; color: var(--saffron); }
.pull summary:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.pull details p { max-width: none; margin-top: 0.75rem; font-size: var(--fs-base); }
.band-navy .more-heading { color: #fff; margin-top: 4rem; }
.minis { columns: 3 15rem; column-gap: 1.25rem; margin-top: 1.5rem; }
.mini { break-inside: avoid; margin: 0 0 1.25rem; padding: 1.1rem 1.25rem; background: rgba(255, 255, 255, 0.07); border-radius: 6px; }
.mini blockquote { margin: 0; }
.mini p { max-width: none; font-size: var(--fs-base); color: #eaeefa; }
.mini figcaption { margin-top: 0.6rem; font-weight: 600; font-size: var(--fs-sm); color: var(--saffron); }

/* Full footer */
.site-footer { background: var(--navy); color: #b8c3e3; font-size: var(--fs-base); padding-top: clamp(2.5rem, 6vw, 4rem); }
.site-footer a { color: #d6def2; text-underline-offset: 0.25em; }
.site-footer a:hover { color: #fff; }
.site-footer a:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer .brand { color: #fff; }
.footer-brand p { margin-top: 1rem; max-width: 30ch; }
.site-footer h2 { font-family: 'Instrument Sans', system-ui, sans-serif; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--saffron); }
.site-footer ul { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: 2.5rem; padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: var(--fs-sm); }

@media (max-width: 820px) {
  .hero-photo { justify-self: start; }
  .proof-line { flex-direction: column; }
  .proof-line li + li::before { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card, .card-core { grid-column: auto; }
  .pulls { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

.immersion-solo { display: block; max-width: 62ch; }

/* Tighter hand-off from hero to first section */
.home .hero { padding-bottom: clamp(1rem, 2vw, 1.5rem); }
#method { padding-top: clamp(2rem, 4vw, 3rem); }

/* Stat strip under the hero */
.stats { padding-block: 0 clamp(1rem, 2vw, 1.5rem); }
.stats-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--saffron); border-bottom: 1px solid var(--rule); }
.stats-row li { display: flex; flex-direction: column; gap: 0.15rem; padding: 1.1rem 1.25rem; }
.stats-row li + li { border-left: 1px solid var(--rule); }
.stats-row strong { font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: var(--fs-2xl); line-height: 1.1; color: var(--cobalt); }
.stats-row span { font-size: var(--fs-sm); color: var(--muted); }
.trip-photo { margin: 0; }
.trip-photo figcaption { margin-top: 0.75rem; font-size: var(--fs-base); color: var(--muted); }
.trip-photo figcaption strong { font-family: 'Young Serif', Georgia, serif; font-weight: 400; color: var(--cobalt); margin-right: 0.4rem; }
@media (max-width: 820px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row li:nth-child(odd) { border-left: 0; }
  .stats-row li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* Smaller hero portrait: headline leads, photo supports */
.home .hero { grid-template-columns: 1fr 300px; gap: 3rem; }
.hero-photo { max-width: 300px; }
.hero-photo img { aspect-ratio: 1 / 1.08; }
@media (max-width: 820px) {
  .home .hero { grid-template-columns: 1fr; }
  .hero-photo { max-width: 260px; }
}

/* Who teaches now: line under the tutors lede, and the tutor card (copy a card to add a tutor) */
.who-now { margin-top: 1rem; font-weight: 600; }
.who-now a { color: var(--cobalt); text-underline-offset: 0.25em; }
.tutors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 1.5rem; margin-top: 2rem; }
.tutor-card { display: grid; grid-template-columns: 150px 1fr; gap: 1.5rem; align-items: start; padding: 1.5rem; background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--saffron); border-radius: 4px; }
.tutor-photo { display: block; width: 150px; height: 150px; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--cobalt); }
.tutor-card h3 { font-size: var(--fs-xl); }
.tutor-role { margin-top: 0.15rem; font-weight: 600; color: var(--cobalt); }
.tutor-card p + p, .tutor-card .tutor-facts { margin-top: 0.75rem; }
.tutor-card p { color: var(--muted); }
.tutor-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; font-size: var(--fs-base); }
.tutor-facts strong { color: var(--navy); }
@media (max-width: 520px) { .tutor-card { grid-template-columns: 1fr; } }

/* Azulejo texture: the tile motif as a faint suggestion behind the top of the page.
   Strongest behind the portrait (top right), fading out toward the text. Change --texture to adjust. */
:root { --texture: 0.09; }
body.home, body.lang { position: relative; }
body.home::before, body.lang::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  opacity: var(--texture);
  background-image: var(--texture-img, url("/azulejo-tile.svg"));
  background-size: 110px 110px;
  -webkit-mask-image: radial-gradient(ellipse 70% 85% at 88% 18%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 85% at 88% 18%, #000 0%, transparent 100%);
}
@media (max-width: 820px) { body.home::before, body.lang::before { height: 600px; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); } }

/* Hero strip: the star azulejo tile, five tiles across the portrait */
.tile-strip { display: block; height: 60px; background: url("/azulejo-tile.svg") 0 0 / 60px 60px repeat-x; }
.tile-strip .tile { display: none; }

/* The Become Fluent method: three solid azulejo tiles, joined like a wall (no thin lines) */
.steps { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.step { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 22rem; padding: 2rem 1.75rem 2.25rem; color: #f7f7f3; background: var(--cobalt); }
.step:nth-child(2) { background: var(--saffron); color: var(--navy); }
.step:nth-child(3) { background: #2b7a5a; }
.step::after { content: ""; position: absolute; right: -22%; bottom: -22%; width: 78%; aspect-ratio: 1; background: url("/logo-mark-light.svg") center / contain no-repeat; opacity: 0.16; pointer-events: none; }
.step:nth-child(2)::after { background-image: url("/logo-mark.svg"); opacity: 0.2; }
.step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin-bottom: 3rem; background: #f7f7f3; color: var(--cobalt); font-family: 'Young Serif', Georgia, serif; font-size: var(--fs-xl); clip-path: polygon(50% 0, 61% 21%, 85% 15%, 79% 38%, 100% 50%, 79% 62%, 85% 85%, 62% 79%, 50% 100%, 38% 79%, 15% 85%, 21% 62%, 0 50%, 21% 38%, 15% 15%, 38% 21%); }
.step:nth-child(2) .step-num { background: var(--navy); color: #f7f7f3; }
.step:nth-child(3) .step-num { color: #2b7a5a; }
.step h3 { position: relative; z-index: 1; margin-top: 0; font-size: var(--fs-2xl); color: inherit; }
.step p { position: relative; z-index: 1; margin-top: 0.75rem; max-width: 30ch; color: inherit; opacity: 0.95; }
.immersion h3 { margin-top: 1.5rem; }
.immersion h3 + p { margin-top: 0.5rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } .step-num { margin-bottom: 1.5rem; } }

.steps-note { margin-top: 1.5rem; max-width: 60ch; color: var(--muted); }
.steps-note strong { color: var(--cobalt); }
.price-list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 10px; max-width: 46rem; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.1rem 1.5rem; background: var(--tile); }
.price-list li:first-child { background: var(--saffron); }
.price-list strong { font-weight: 600; }
.price-list span { font-family: 'Young Serif', Georgia, serif; font-size: var(--fs-lg); color: var(--cobalt); white-space: nowrap; }
.price-list li:first-child span { color: var(--navy); }
@media (max-width: 560px) { .price-list li { flex-direction: column; gap: .25rem; } }
.lede-sub { margin-top: 0.75rem; font-weight: 600; color: var(--cobalt); }

/* Hero photo is now a landscape group shot */
.hero-photo { max-width: 520px; }
.hero-photo img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
@media (max-width: 900px) { .hero-photo { max-width: 100%; } }

/* Hero photo framed in the logo's 16-point star */
.hero-photo .star-frame { position: relative; aspect-ratio: 1; background: var(--cobalt); clip-path: polygon(50% 0%,61.86% 21.36%,85.36% 14.64%,78.64% 38.14%,100% 50%,78.64% 61.86%,85.36% 85.36%,61.86% 78.64%,50% 100%,38.14% 78.64%,14.64% 85.36%,21.36% 61.86%,0% 50%,21.36% 38.14%,14.64% 14.64%,38.14% 21.36%); }
.hero-photo .star-frame img { position: absolute; inset: 3%; width: 94%; height: 94%; aspect-ratio: auto; border: 0; object-fit: cover; object-position: 50% 30%; clip-path: polygon(50% 0%,61.86% 21.36%,85.36% 14.64%,78.64% 38.14%,100% 50%,78.64% 61.86%,85.36% 85.36%,61.86% 78.64%,50% 100%,38.14% 78.64%,14.64% 85.36%,21.36% 61.86%,0% 50%,21.36% 38.14%,14.64% 14.64%,38.14% 21.36%); }
.hero-photo { max-width: 600px; }
@media (max-width: 900px) { .hero-photo { max-width: 100%; } }

/* Bigger star frame */
.home .hero { grid-template-columns: 0.9fr 1.1fr; gap: 2rem; }
.hero-photo { max-width: 680px; }
.hero-photo .star-frame img { inset: 2.2%; width: 95.6%; height: 95.6%; object-position: 50% 24%; }
@media (max-width: 900px) { .home .hero { grid-template-columns: 1fr; } .hero-photo { max-width: 100%; } }

/* Smaller star, with headroom so the head is not clipped by the top point */
.home .hero { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
.hero-photo { max-width: 500px; }
.hero-photo .star-frame img { inset: 14% 2.2% 2.2% 2.2%; width: 95.6%; height: 83.8%; object-position: 50% 0%; }
@media (max-width: 900px) { .home .hero { grid-template-columns: 1fr; } .hero-photo { max-width: 100%; } }

/* Photo smaller inside the same-size star */
.hero-photo .star-frame img { transform: scale(0.82); transform-origin: 50% 43%; }

/* Back to the full-size star where the head sits fully inside; photo shrunk inside the same-size star */
.home .hero { grid-template-columns: 0.9fr 1.1fr; gap: 2rem; }
.hero-photo { max-width: 680px; }
.hero-photo .star-frame img { inset: 2.2%; width: 95.6%; height: 95.6%; object-position: 50% 24%; transform: scale(0.86); transform-origin: 50% 50%; }
@media (max-width: 900px) { .home .hero { grid-template-columns: 1fr; } .hero-photo { max-width: 100%; } }

/* Smaller photo so the whole head clears the star's top point */
.hero-photo .star-frame img { transform: scale(0.72); transform-origin: 50% 50%; }

/* Thin outline again (as before), photo extended above the head so the head clears the top point */
.hero-photo .star-frame img { inset: 2.2%; width: 95.6%; height: 95.6%; object-position: 50% 50%; transform: none; }

/* ===== Tile rooms (2026-11-08): the student app's look on the marketing pages =====
   Colour bands (rooms) with paper cards on them and a strip of star tiles between bands. Visual only.
   Prepare = cobalt, Connect = saffron, Immerse = green. The strip is the cobalt star tile (azulejo-strip.svg);
   the French and Portuguese pages use their own tile through --strip-img. */
:root { --strip-img: url("/azulejo-strip.svg"); --green: #2b7a5a; }
body.lang { --strip-img: var(--texture-img, url("/azulejo-strip.svg")); }
html, body { overflow-x: clip; }

/* Strip between bands: sits just above every band, full width of the window */
.band, .cta-band { position: relative; margin-top: 40px; }
.band::before, .cta-band::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 40px;
  background: var(--strip-img) 0 0 / 40px 40px repeat-x; pointer-events: none;
}
.band-tint { background: var(--tile); }

/* Content pages: the opening block becomes a cobalt room band, followed by a strip */
main .intro {
  position: relative; margin-top: 40px; margin-bottom: 40px;
  padding-block: clamp(2rem, 5vw, 3.25rem);
  background: var(--cobalt); color: #f7f7f3;
  box-shadow: 0 0 0 100vmax var(--cobalt);
  clip-path: inset(-40px -100vmax -40px -100vmax);
}
main .intro::before,
main .intro::after {
  content: ""; position: absolute; left: 50%; width: 100vw; margin-left: -50vw; height: 40px;
  background: var(--strip-img) 0 0 / 40px 40px repeat-x; pointer-events: none;
}
main .intro::before { bottom: 100%; }
main .intro::after { top: 100%; }
main .intro h1, main .intro h2 { color: #fff; }
main .intro .lede, main .intro p { color: #e9eef8; }
main .intro .byline, main .intro .note { color: #c4cff0; }
main .intro a:not(.btn):not(.btn-line) { color: #fff; }
main .intro .btn-line { color: #f7f7f3; border-color: #f7f7f3; }
main .intro .btn-line:hover { background: #f7f7f3; color: var(--cobalt); }
main .intro a:focus-visible, main .intro .btn:focus-visible { outline: 3px solid var(--saffron); }
/* Breadcrumb above the band keeps a small gap */
main .crumbs { padding-bottom: 1rem; }
/* The how-long page's quick answer is a paper card on the band */
main .intro .quick-answer, main .intro .quick-answer p { color: var(--navy); }
main .intro .quick-answer { border: 0; border-top: 4px solid var(--navy); border-radius: 4px; }
main .intro .quick-answer .qa-label, main .intro .quick-answer .qa-sub { color: var(--muted); }
main .intro .quick-answer .qa-big { color: var(--cobalt); }
main .intro .quick-answer a { color: var(--cobalt); }

/* The closing call to action keeps its cobalt band; its strip comes from .cta-band::before above */

/* Paper cards: white, 4px navy top edge, 4px corners */
.card, .tutor-card, .plan, .quick-answer { border-radius: 4px; }
.card, .tutor-card { border-top-color: var(--navy); }
.plan { border: 1px solid var(--rule); border-top: 4px solid var(--navy); }

/* Home page: the two tinted bands become rooms. Connect (saffron) for the tutors, with paper cards on it. */
#tutors.band { background: var(--saffron); color: var(--navy); }
#tutors.band p, #tutors.band .section-lede, #tutors.band .who-now { color: var(--navy); }
#tutors.band .who-now a { color: var(--navy); }
#tutors.band .tutor-card p, #tutors.band .tutor-card .tutor-facts { color: var(--muted); }
#tutors.band .tutor-card .tutor-role { color: var(--cobalt); }
#teachers.band { background: var(--tile); }
#teachers.band::before, #tutors.band::before { bottom: 100%; }

/* Footer sits straight under the last band with a strip, same as the app */
.footer, .site-footer { position: relative; margin-top: 0; }

@media (max-width: 520px) {
  .band, .cta-band { margin-top: 32px; }
  .band::before, .cta-band::before { height: 32px; background-size: 32px 32px; }
  main .intro { margin-top: 32px; margin-bottom: 32px; clip-path: inset(-32px -100vmax -32px -100vmax); }
  main .intro::before, main .intro::after { height: 32px; background-size: 32px 32px; }
}

/* Phone header: the 820px rule above forced the button to one line and pushed it past the screen edge at 390px */
@media (max-width: 520px) {
  .site-header .nav .btn { white-space: normal; text-align: center; padding: .4rem .7rem; font-size: var(--fs-sm); line-height: 1.2; }
  .site-header .brand { font-size: var(--fs-md); }
  .site-header .nav { gap: .6rem; }
}

/* Saffron room: the saffron button would vanish, so buttons turn cobalt there */
#tutors.band .btn { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
#tutors.band .btn:hover { background: #163382; border-color: #163382; }
#tutors.band .text-link, #tutors.band .trio-item p a { color: var(--navy); }
#tutors.band .trio-item { border-top-color: var(--navy); }

/* Home hero: smaller star (photo scales with it, ratio kept) and set further to the right, past the text column's edge */
@media (min-width: 901px) {
  .home .hero-photo { max-width: 420px; margin-right: -20px; }
}
@media (min-width: 1200px) {
  .home .hero-photo { margin-right: -64px; }
}
@media (max-width: 900px) {
  .hero-photo .star-frame { max-width: 340px; }
}

/* Home hero: caption centred under the star; text column takes the free space and the headline grows to fill it */
.home .hero-photo figcaption { text-align: center; }
@media (min-width: 901px) {
  .home .hero { grid-template-columns: minmax(0, 1fr) 420px; gap: 4rem; }
  .home .hero h1 { font-size: var(--fs-hero); }
  .home .hero .lede { max-width: 34rem; font-size: var(--fs-lg); }
}

/* Home hero: the full photo (no star cut-out) framed directly by the site's cobalt star-tile strip, no gap between */
.home .tile-square { padding: 40px; background: url("/azulejo-strip.svg") 0 0 / 40px 40px round; box-shadow: 0 6px 20px rgba(15, 29, 68, .14); }
.home .tile-square-in { padding: 0; background: none; line-height: 0; }
.home .hero-photo .star-frame { aspect-ratio: auto; background: none; clip-path: none; }
.home .hero-photo .star-frame img { position: static; inset: auto; width: 100%; height: auto; aspect-ratio: 2000 / 1740; clip-path: none; transform: none; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 901px) { .home .hero-photo { max-width: 480px; } }
@media (max-width: 520px) { .home .tile-square { padding: 28px; background-size: 28px 28px; } }

/* ===== Site restructure (2026-11): four-step path, forms, trips, tutors, policies ===== */
.todo { background: #fff3c4; color: #5c4400; border: 1px dashed #b7860b; padding: 0 .35em; font-size: .92em; font-weight: 600; border-radius: 3px; }
.band-cobalt .todo, .band-navy .todo { background: #fff3c4; color: #5c4400; }
.stats-row.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .stats-row.three { grid-template-columns: 1fr; } .stats-row.three li + li { border-left: 0; border-top: 1px solid var(--rule); } }
.also-offered { margin-top: 1rem; color: var(--muted); }

/* Four-step path */
.steps.four { grid-template-columns: repeat(4, 1fr); }
.steps.four .step { min-height: 19rem; padding: 1.75rem 1.4rem 2rem; }
.steps.four .step:nth-child(3) { background: #2b7a5a; color: #f7f7f3; }
.steps.four .step:nth-child(3) .step-num { color: #2b7a5a; background: #f7f7f3; }
.steps.four .step:nth-child(4) { background: var(--navy); color: #f7f7f3; }
.steps.four .step:nth-child(4) .step-num { color: var(--navy); background: #f7f7f3; }
.steps.four .step h3 { font-size: var(--fs-2xl); }
.steps.four .step p { max-width: none; }
.steps.four .step .gets { margin-top: 1rem; font-size: var(--fs-base); }
.steps.four .step a { color: inherit; font-weight: 600; text-underline-offset: .25em; }
.steps.four .step a:focus-visible { outline-color: currentColor; }
@media (max-width: 1020px) { .steps.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .steps.four { grid-template-columns: 1fr; } .steps.four .step { min-height: 0; } }

.problem { max-width: 40rem; }
.problem p + p { margin-top: .75rem; }
.problem p { font-size: var(--fs-lg); color: var(--navy); }

/* Featured trip */
.trip-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.trip-feature p { margin-top: 1rem; color: var(--muted); }
.facts { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .4rem; }
.facts strong { color: var(--navy); }
@media (max-width: 820px) { .trip-feature { grid-template-columns: 1fr; gap: 1.75rem; } }

/* Pricing */
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; margin-top: 1.75rem; }
.price-cards .card { grid-column: auto; }

/* Policies */
.policy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.policy-grid h3 { border-top: 3px solid var(--cobalt); padding-top: .8rem; margin-bottom: .5rem; }

/* Specialized programs */
.program-links { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .6rem; }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 36rem; margin-top: 1.5rem; text-align: left; }
.form label { display: grid; gap: .3rem; font-weight: 600; }
.form .opt { font-weight: 400; opacity: .85; }
.form input, .form select, .form textarea { font: inherit; padding: .65rem .8rem; border: 2px solid var(--cobalt); border-radius: 4px; background: #fff; color: var(--navy); width: 100%; }
.form textarea { min-height: 6rem; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; margin-top: 0; }
.form-status { margin-top: .5rem; font-weight: 600; }
.contact .form label, .contact .form-status { color: #fff; }
.contact .form .btn { margin-top: .25rem; }
.page-section .form label { color: var(--navy); }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .5rem; }
.contact-list a { color: #fff; font-weight: 600; }
.contact .contact-list li { margin: 0; }
.js-only { display: none; }
.js .js-only { display: revert; }
.js .no-js-only { display: none; }
.page-section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-section h2 { margin-bottom: 1.25rem; }
.page-section p + p, .page-section p + ul, .page-section ul + p { margin-top: 1rem; }
.checklist { margin: 0; padding-left: 1.2rem; max-width: 62ch; }
.checklist li { margin-bottom: .5rem; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }
.program-card { margin-top: 1.25rem; }
.program-card h3 { color: var(--cobalt); }
.program-card p { color: var(--muted); }
.program-card .facts { margin-top: .75rem; }

/* Booking qualification gate (booking-gate.js) */
.booking-gate { position: relative; }
.gate-step { font-weight: 600; margin-top: 1rem; }
.band-cobalt .gate-step, .band-cobalt .booking-gate label { color: #fff; }
.gate-cal { margin-top: 1rem; background: #fff; border-radius: 6px; }
