/* ==========================================================================
   Students & Teachers — public site palette, header and homepage hero.
   Client design, Nov 2026. Plain CSS: no build step.

   Ivory  #FAF6F0  page background
   Navy   #132238  header, footer, headings, body text
   Coral  #F26A4B  primary buttons, highlight pill, calls to action
   Lavender #E6E0F8 / Mint #D4F1E4  feature cards and badges
   White  #FFFFFF  cards and panels

   Admin → Settings → Identity brand colour still overrides --coral
   (partials/brand-colors loads after this file).
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&display=swap');

:root {
  --ink: #132238;
  --ink-2: #1d3150;
  --cream: #FAF6F0;
  --cream-2: #F2EBDF;
  --coral: #F26A4B;
  --mint: #D4F1E4;
  --lilac: #E6E0F8;
  --muted: #5d6b80;
  --st-white: #FFFFFF;
  --st-line: rgba(19, 34, 56, .12);
  --st-head: 'Poppins', var(--font-ui, 'DM Sans'), ui-sans-serif, system-ui, sans-serif;
}

.tutot-theme .hairline { border-color: rgba(19, 34, 56, .12); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.tutot-theme .st-navbar {
  background: var(--ink);
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .08) !important;
}
.st-navbar .st-logo {
  align-self: stretch;
  position: relative;
  background: var(--cream);
  padding-right: 1.25rem;
  margin-right: .5rem;
  flex-shrink: 0;
}
.st-navbar .st-logo::before {          /* ivory panel runs to the left edge */
  content: "";
  position: absolute; top: 0; bottom: 0; right: 100%;
  width: 100vw;
  background: var(--cream);
}
.st-navbar .st-logo-img { height: 34px; width: auto; max-width: none; display: block; }
@media (min-width: 420px) { .st-navbar .st-logo-img { height: 40px; } }
@media (min-width: 640px) { .st-navbar .st-logo-img { height: 46px; } }
@media (min-width: 1500px) { .st-navbar .st-logo { padding-right: 1.75rem; } .st-navbar .st-logo-img { height: 48px; } }

.st-nav { gap: 0; font-size: 13.5px; font-weight: 500; }
@media (min-width: 1280px) { .st-nav { gap: .2rem; font-size: 14.5px; } }
.st-nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .5rem .55rem;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.st-nav-link:hover { background: rgba(255, 255, 255, .1); }
.st-nav-link.is-active { background: #fff; color: var(--ink); font-weight: 600; }
.st-nav-link.is-current { color: #ffc9bb; }
@media (max-width: 1279px) { .st-nav-extra { display: none; } }

.st-dd {
  width: 290px; padding: .5rem;
  border-radius: 16px; background: #fff;
  border: 1px solid var(--st-line);
  box-shadow: 0 24px 50px -24px rgba(19, 34, 56, .45);
  white-space: normal; color: var(--ink);
}
.st-dd-item { display: block; padding: .7rem .8rem; border-radius: 12px; text-decoration: none; }
.st-dd-item:hover { background: var(--cream); }
.st-dd-title { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.st-dd-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }

/* Controls on the navy bar */
.st-navbar .chip-shadow { color: var(--ink); }
.st-navbar [class*="hover:bg-black/5"]:hover { background-color: rgba(255, 255, 255, .1) !important; }
.st-navbar #thfavNavBadge { border-color: var(--ink) !important; }
.st-navbar .th-nav-lang { color: #fff; }
.st-navbar .st-login { display: none !important; }
@media (min-width: 768px) { .st-navbar .st-login { display: inline-flex !important; } }
@media (max-width: 1279px) { .st-navbar .st-login { padding: .55rem .85rem; } .st-navbar .st-cta { padding: .6rem 1rem; } }
/* 1024–1199px: not enough room for the full menu, so the phone menu stays. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .st-navbar .st-nav { display: none !important; }
  .st-navbar .st-burger { display: grid !important; }
  .st-navbar .st-mmenu:not([style*="display: none"]) { display: flex !important; }
}
@media (max-width: 479px) { .st-navbar #th-theme-toggle-btn, .st-navbar #thfavNavLink { display: none !important; } }
@media (max-width: 359px) { .st-navbar .th-nav-lang { display: none; } }
.st-navbar .st-login {
  border: 1.5px solid rgba(255, 255, 255, .85);
  color: #fff; padding: .6rem 1.1rem; gap: .45rem;
}
.st-navbar .st-login:hover { background: rgba(255, 255, 255, .1) !important; }
html body .st-navbar .st-cta {
  background: var(--coral) !important;
  color: #fff !important;
  padding: .65rem 1.2rem; gap: .45rem;
}
html body .st-navbar .st-cta:hover { background: color-mix(in oklab, var(--coral) 88%, black) !important; }
.st-navbar .st-logout { border-color: rgba(255, 255, 255, .35) !important; color: #ffb4a8 !important; }
.st-navbar .st-logout:hover { background: rgba(255, 255, 255, .08) !important; }
.st-navbar .st-burger { border-color: rgba(255, 255, 255, .35) !important; color: #fff !important; }
.st-navbar .st-burger:hover { border-color: #fff !important; }
.st-free { color: var(--coral); font-weight: 800; }

/* Dark mode keeps the navy bar; the logo panel stays ivory so the logo reads. */
html[data-theme="dark"] .tutot-theme .st-navbar,
html[data-theme="dark"] .st-navbar { background: #0e192b !important; }

/* ── Homepage hero ──────────────────────────────────────────────────────── */
.st-wrap {
  max-width: 1360px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 1024px) { .st-wrap { padding-left: 48px; padding-right: 48px; } }

.st-hero { position: relative; background: var(--cream); color: var(--ink); overflow: hidden; isolation: isolate; }

.st-hero-photo { position: absolute; inset: 0 0 auto 0; z-index: -1; display: none; }
.st-hero-photo img { width: 100%; height: auto; max-height: 820px; object-fit: cover; object-position: right top; display: block; }
.st-hero-photo::after {               /* keeps copy readable on mid widths */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--cream) 0%, rgba(250, 246, 240, .92) 30%, rgba(250, 246, 240, .35) 52%, rgba(250, 246, 240, 0) 66%),
              linear-gradient(0deg, var(--cream) 0%, rgba(250, 246, 240, 0) 22%);
}
@media (min-width: 768px) { .st-hero-photo { display: block; } }

.st-hero-top { position: relative; padding-top: 2rem; padding-bottom: 1.5rem; }
@media (min-width: 768px) { .st-hero-top { padding-top: 3.25rem; padding-bottom: 2.5rem; min-height: 520px; } }

.st-hero-copy { max-width: 720px; min-width: 0; }
@media (min-width: 768px) and (max-width: 1099px) { .st-hero-copy { max-width: 560px; } }

.st-h1 {
  font-family: var(--st-head);
  font-weight: 800;
  color: var(--ink);
  font-size: clamp(2.1rem, 4.3vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
.st-h1 span { display: block; }

.st-pill {
  display: inline-block;
  margin: 1.1rem 0 0;
  padding: .45rem 1.15rem;
  border-radius: 12px;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--st-head);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.6vw, 1.75rem);
  line-height: 1.25;
  box-shadow: 0 10px 24px -14px rgba(242, 106, 75, .9);
}
.st-lead {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.st-reg {
  max-width: 680px;
  margin-top: 1.5rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.25rem;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 24px 48px -28px rgba(19, 34, 56, .8);
}
.st-reg-icon { width: 52px; height: 52px; flex-shrink: 0; padding-right: 1rem; border-right: 1px solid rgba(255, 255, 255, .35); box-sizing: content-box; }
.st-reg-text { flex: 1 1 220px; min-width: 0; }
.st-reg-title { margin: 0; font-family: var(--st-head); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.st-reg-sub { margin: .2rem 0 0; font-size: .92rem; color: rgba(255, 255, 255, .82); line-height: 1.4; }
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--st-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s, background-color .15s;
}
.st-btn:hover { background: color-mix(in oklab, var(--coral) 90%, white); transform: translateY(-1px); }
.st-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 520px) {
  .st-reg { padding: 1rem; }
  .st-reg-icon { width: 44px; height: 44px; padding-right: .75rem; }
  .st-btn { width: 100%; }
}
.st-already { margin: .85rem 0 0; font-size: .95rem; text-align: center; max-width: 680px; }
.st-already a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.st-map {
  display: none;
  position: absolute;
  right: 40px;
  bottom: -2.5rem;
  width: 200px; height: auto;
  pointer-events: none;
  filter: drop-shadow(0 10px 24px rgba(19, 34, 56, .25));
}
@media (min-width: 1100px) { .st-map { display: block; } }

.st-hero-photo-m { display: block; margin-top: .5rem; }
.st-hero-photo-m img { width: 100%; height: auto; display: block; }
@media (min-width: 768px) { .st-hero-photo-m { display: none; } }

/* Countries */
.st-countries { display: flex; align-items: center; gap: 1.25rem; padding-top: 1.25rem; padding-bottom: 1.75rem; position: relative; }
.st-countries-label {
  margin: 0; flex-shrink: 0;
  font-family: var(--st-head); font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  color: var(--ink);
  max-width: 7rem;
  padding-right: 1.25rem;
  border-right: 2px solid var(--ink);
}
.st-flags { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .75rem; }
.st-flag {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  height: 100%;
  padding: .85rem .5rem .7rem;
  border-radius: 14px;
  background: var(--st-white);
  border: 1px solid var(--st-line);
  box-shadow: 0 10px 22px -18px rgba(19, 34, 56, .6);
  color: var(--ink); font-weight: 600; font-size: .95rem;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.st-flag:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -18px rgba(19, 34, 56, .7); }
.st-flag img { width: 72px; height: 48px; object-fit: contain; display: block; }
@media (max-width: 1099px) {
  .st-countries { flex-direction: column; align-items: stretch; }
  .st-countries-label { max-width: none; border-right: 0; padding-right: 0; }
  .st-flags { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .st-flags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-flag { flex-direction: row; justify-content: flex-start; padding: .65rem .75rem; }
  .st-flag img { width: 48px; height: 32px; }
}

/* Feature band */
.st-band { background: var(--ink); padding: 1.1rem 0; }
.st-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.st-feature {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  transition: transform .15s;
}
.st-feature:hover { transform: translateY(-2px); }
.st-feature-lav { background: var(--lilac); }
.st-feature-mint { background: var(--mint); }
.st-feature img { width: 48px; height: 48px; flex-shrink: 0; }
.st-feature-title { display: block; font-family: var(--st-head); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.st-feature-text { display: block; font-size: .93rem; line-height: 1.35; margin-top: .15rem; color: #26374f; }
@media (max-width: 1099px) { .st-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .st-features { grid-template-columns: 1fr; } }

/* Dark mode: keep the hero's designed light look readable */
html[data-theme="dark"] .st-hero { background: var(--cream); color: var(--ink); }
html[data-theme="dark"] .st-hero .st-h1,
html[data-theme="dark"] .st-hero .st-lead,
html[data-theme="dark"] .st-hero .st-countries-label,
html[data-theme="dark"] .st-hero .st-already,
html[data-theme="dark"] .st-hero .st-already a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .st-btn, .st-flag, .st-feature { transition: none; }
  .st-btn:hover, .st-flag:hover, .st-feature:hover { transform: none; }
}

/* ── Wide screens (MacBook 1440–1728, desktops 1920+, 2K/4K) ─────────────
   16 Nov: the public site's 1360px column left wide empty sides. The column
   grows with the screen; header, hero and every public section stay aligned. */
@media (min-width: 1536px) {
  /* 16 Nov (2): no empty ivory band on the left — the hero and header run
     edge to edge with a 5% gutter instead of a centred column. */
  .st-wrap { max-width: none; padding-left: 48px; padding-right: 48px; }
  .st-navbar .max-w-\[1360px\] { max-width: none; padding-left: 48px; padding-right: 48px; }
  .tutot-theme .max-w-\[1360px\], main .max-w-\[1360px\], footer .max-w-\[1360px\] { max-width: 1480px; }
  .st-h1 { font-size: 4rem; }
  .st-hero-copy { max-width: 760px; }
}
@media (min-width: 1800px) {
  .tutot-theme .max-w-\[1360px\], main .max-w-\[1360px\], footer .max-w-\[1360px\] { max-width: 1640px; }
  .st-h1 { font-size: 4.4rem; }
  .st-pill { font-size: 1.95rem; }
  .st-lead { font-size: 1.3rem; max-width: 38rem; }
  .st-hero-copy { max-width: 820px; }
  .st-reg { max-width: 740px; }
  .st-hero-top { min-height: 600px; }
  .st-hero-photo img { max-height: 940px; }
  .st-map { width: 240px; }
}
@media (min-width: 2200px) {
  .tutot-theme .max-w-\[1360px\], main .max-w-\[1360px\], footer .max-w-\[1360px\] { max-width: 1840px; }
  .st-h1 { font-size: 5rem; }
  .st-hero-copy { max-width: 920px; }
  .st-reg { max-width: 820px; }
  .st-hero-top { min-height: 680px; }
  .st-hero-photo img { max-height: 1080px; }
  .st-map { width: 280px; }
}
@media (min-width: 1280px) {
  .st-wrap { max-width: none; padding-left: 48px; padding-right: 48px; }
  .st-navbar .max-w-\[1360px\] { max-width: none; padding-left: 48px; padding-right: 48px; }
}
/* the decorative map only where it sits clear of the copy and faces */
@media (min-width: 1100px) and (max-width: 1279px) { .st-map { display: none; } }

/* ── Teacher tickets (homepage) ───────────────────────────────────────── */
.st-tickets { background: var(--cream); color: var(--ink); padding: 4rem 0 1rem; }
.st-tickets-head { max-width: 46rem; }
.st-tickets-eyebrow { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.st-tickets-title { margin: .4rem 0 0; font-family: var(--st-head); font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.1; color: var(--ink); text-wrap: balance; }
.st-tickets-sub { margin: .8rem 0 0; font-size: 1.02rem; line-height: 1.55; color: var(--muted); }
.st-tickets-grid { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.st-ticket { position: relative; min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(19, 34, 56, .1); border-radius: 22px; padding: 1.6rem 1.5rem 1.5rem; box-shadow: 0 18px 40px -30px rgba(19, 34, 56, .45); }
.st-ticket-hot { background: var(--ink); color: #fff; border-color: var(--ink); }
.st-ticket-badge { position: absolute; top: -.75rem; right: 1.25rem; background: var(--coral); color: #fff; border-radius: 999px; padding: .3rem .8rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.st-ticket-name { margin: 0; font-family: var(--st-head); font-weight: 700; font-size: 1.2rem; }
.st-ticket-price { margin: .55rem 0 0; font-family: var(--st-head); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1; color: var(--coral); }
.st-ticket-per { margin: .5rem 0 0; font-size: .9rem; color: var(--muted); }
.st-ticket-hot .st-ticket-per { color: rgba(255, 255, 255, .7); }
.st-ticket-btn { margin-top: 1.4rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: 999px; padding: .8rem 1.1rem; font-weight: 700; font-size: .95rem; background: var(--ink); color: #fff; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.st-ticket-hot .st-ticket-btn { background: var(--coral); }
.st-ticket-btn:hover { transform: translateY(-1px); background: var(--coral); color: #fff; }
.st-ticket-btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
@media (max-width: 899px) { .st-tickets-grid { grid-template-columns: 1fr; max-width: 520px; } .st-tickets { padding-top: 3rem; } }
html[data-theme="dark"] .st-tickets { background: var(--cream) !important; color: var(--ink) !important; }
