/* ============================================================
   Lemariku — base / design system  (shared by every page)
   Font: Helvetica (Bold · Regular · Light · Italic)
   Loaded on all pages before the per-page stylesheet.
   ============================================================ */

:root {
  /* ---- brand colour: Halloween Orange (var names kept as --teal* for reuse) ---- */
  --teal:        #E7652F;
  --teal-600:    #C1531D;  /* AA-safe fill / hover */
  --teal-700:    #B14618;  /* AA-safe on white (text/links) */
  --teal-800:    #9E3A1A;  /* deep / gradient depth */
  --teal-900:    #0E0E0E;
  --teal-bright: #F47C42;
  --teal-50:     #FBEDE4;
  --teal-100:    #F7D9C8;

  --green:       #C1531D;
  --green-700:   #9E3A1A;

  --ink:    #0E0E0E;
  --slate:  #5A524C;
  --slate-2:#8A8079;
  --line:   #ECE6E1;
  --line-2: rgba(255, 255, 255, 0.14);

  --bg:     #FFFFFF;
  --bg-soft:#FFFFFF;
  --paper:  #FAFAFA;
  --white:  #FFFFFF;

  /* ---- type ---- */
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:    "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* ---- layout ---- */
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -30px rgba(158, 58, 26, 0.3);
  --shadow-sm: 0 10px 28px -18px rgba(158, 58, 26, 0.35);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

::selection { background: var(--teal); color: #fff; }

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

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--teal-900); color: #fff; padding: 10px 16px; border-radius: 10px;
  font: 600 14px/1 var(--body); transform: translateY(-150%); transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.phero :focus-visible, .banner :focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------- shared layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 124px); position: relative; }
.section--light { background: var(--bg-soft); }

/* ---------------------------------------------------------- eyebrow */
.eyebrow {
  display: inline-block; font-family: var(--body); font-weight: 700;
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-700);
}
.eyebrow--on-teal { color: var(--teal-bright); }

/* ---------------------------------------------------------- headings */
.head__title {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.05; font-size: clamp(2rem, 4.6vw, 3.2rem);
}
.head__title--light { color: #fff; }
.head { max-width: 64ch; }
.head--center { margin-inline: auto; text-align: center; }
.head .eyebrow { margin-bottom: 14px; }
.head__intro { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--slate); margin-top: 18px; width: 55ch;}
.head--center .head__intro { margin-inline: auto; max-width: 56ch; }

/* ---------------------------------------------------------- lead statement */
.lead { text-align: center; max-width: 45ch; margin-inline: auto; font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.lead .mark { color: var(--teal); }

/* ---------------------------------------------------------- mission heading */
.mission-title { text-align: center; font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.02em; }
.mission-title em { font-style: italic; font-weight: 500; }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--body);
  padding: 15px 28px; border-radius: 999px;
  background: var(--teal-600); color: #fff; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), background .18s, color .18s, box-shadow .18s, border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 11px 20px; font-size: 14.5px; }
.btn--solid { background: var(--teal-600); color: #fff; box-shadow: 0 12px 26px -14px var(--teal-800); }
.btn--solid:hover { background: var(--teal-800); }
.btn--white { background: #fff; color: var(--teal-800); }
.btn--white:hover { background: #fff; box-shadow: 0 12px 28px -12px rgba(0,0,0,.35); }
.btn--ghost { background: transparent; color: var(--teal-700); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal-50); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------------------------------------------------------- link arrow */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--body); color: var(--teal-700); }
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ============================================================ NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav__inner {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo-img { height: 26px; width: auto; }
.nav__logo-img--dark { display: none; }
.nav__links { display: flex; gap: 30px; font: 600 15px/1 var(--body); color: #fff; }
.nav__links a { position: relative; padding: 6px 0; transition: opacity .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: currentColor; transition: width .25s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__lang { display: inline-flex; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; overflow: hidden; }
.nav__lang-btn { font: 600 12px/1 var(--body); padding: 7px 11px; background: none; border: 0; color: #fff; cursor: pointer; transition: background .2s; }
.nav__lang-btn.is-active { background: #fff; color: var(--teal-800); }
.nav__menu { display: none; }
.nav .btn--solid { background: var(--teal-600); color: #fff; box-shadow: none; }
.nav .btn--solid:hover { background: var(--teal-800); }
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px);
  border-bottom-color: var(--line); box-shadow: 0 8px 30px -22px rgba(11,92,92,.5);
}
.nav.is-stuck .nav__logo-img--light { display: none; }
.nav.is-stuck .nav__logo-img--dark { display: block; }
.nav.is-stuck .nav__links { color: var(--ink); }
.nav.is-stuck .nav__lang { border-color: var(--line); }
.nav.is-stuck .nav__lang-btn { color: var(--slate); }
.nav.is-stuck .nav__lang-btn.is-active { background: var(--teal); color: #fff; }
.nav.is-stuck .btn--solid { background: var(--teal); color: #fff; }
.nav.is-stuck .btn--solid:hover { background: var(--teal-600); }

/* ============================================================ PLACEHOLDER MEDIA (empty src) */
/* Photos ship with an empty src; the slot colour lives on the container so no
   broken-image glyph shows. Add a real URL to the <img> and it appears on top. */
.ph { background: #E7E1DA; }
.ph--dark { background: #2a2521; }
img[src=""], img:not([src]) { visibility: hidden; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(247,124,66,.5); }
  70% { box-shadow: 0 0 0 10px rgba(247,124,66,0); }
  100% { box-shadow: 0 0 0 0 rgba(247,124,66,0); }
}

/* ============================================================ FULL-BLEED PHOTO HERO (shared) */
.phero { position: relative; overflow: hidden; color: #fff; background: #2a2521; min-height: 340px; }
.phero__img { display: block; width: 100%; height: auto; }
.phero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,.46) 45%, rgba(0,0,0,.7)); }
.phero__inner {
  position: absolute; inset: 0; z-index: 2; max-width: var(--wrap); margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 100px var(--gutter) 64px;
  text-shadow: 0 1px 0 rgba(255,255,255,.12), 0 2px 8px rgba(0,0,0,.55);
}
.phero__inner .btn, .banner__inner .btn, .banner__pill { text-shadow: none; }
.phero__title { font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 4.8vw, 3.7rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 25ch; margin-inline: auto; }
.phero__lede { margin: 20px auto 0; max-width: 52ch; font-size: clamp(1rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.9); }
.phero__inner .btn { margin-top: 28px; }
/* left-aligned variant (Programs & Careers) */
.phero--left .phero__inner { align-items: flex-start; text-align: left; }
.phero--left .phero__title { margin-inline: 0; }
.phero--left .phero__scrim { background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(107, 107, 107, 0.3) 72%); }

/* ============================================================ PHOTO BANNER (shared) */
.banner { position: relative; overflow: hidden; color: #fff; background: #2a2521; height: clamp(380px, 44vw, 1200px); }
.banner__img { position: absolute; inset: 0; width: 100%; height: 1000px; object-fit: cover; object-position: center; }
.banner__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.64), rgba(0,0,0,.34) 70%); }
.banner__inner {
  position: absolute; inset: 0; z-index: 2; max-width: var(--wrap); margin-inline: auto;
  padding: clamp(30px, 4vw, 64px) var(--gutter);
  display: flex; flex-direction: column;
  text-shadow: 0 1px 0 rgba(255,255,255,.12), 0 2px 8px rgba(0,0,0,.55);
}
.banner__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 22ch; }
.banner__cta { margin-top: 26px; }
/* centred variant (top-centre heading) */
.banner--center { text-align: center; }
.banner--center .banner__scrim { background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.46)); }
.banner--center .banner__inner { align-items: center; justify-content: flex-start; }
.banner--center .banner__title { margin-inline: auto; max-width: 25ch; font-weight: 500; }

/* ============================================================ WHITE LIVE COUNTER (shared) */
.wcount { text-align: center; }
.wcount__label { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #823F23; }
.wcount__live { background: var(--teal); color: #fff; font-size: 11px; padding: 5px 12px; border-radius: 999px; letter-spacing: 0.08em; display: inline-flex; gap: 7px; align-items: center; }
.wcount__live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: pulse 1.6s var(--ease) infinite; }
.wcount__num { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 8vw, 5rem); line-height: 1; letter-spacing: -0.03em; color: #823F23; font-variant-numeric: tabular-nums; margin-top: 16px; }
.wcount__unit { font-size: 0.3em; color: var(--slate-2); font-weight: 700; letter-spacing: 0.04em; margin-left: 0.45em; }
.wcount__since { margin-top: 16px; font-size: 14px; color: var(--slate-2); }
.wcount__since b { color: var(--teal-700); font-weight: 700; font-variant-numeric: tabular-nums; }
.no-js .wcount__live { display: none; }

/* ============================================================ STATS (shared) */
.stats-section { background: var(--bg); padding-block: clamp(48px, 7vw, 80px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.stat { text-align: center; }
.stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 6vw, 4rem); line-height: 0.95; letter-spacing: -0.03em; color: var(--teal-700); display: inline-flex; align-items: baseline; }
.stat__suffix { color: var(--green-700); font-size: 0.5em; margin-left: 3px; }
.stat__tag { font-family: var(--body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate-2); margin: 14px 0 8px; }
.stat__desc { font-size: 15.5px; color: var(--slate); max-width: 28ch; margin-inline: auto; }
.stats-tagline { text-align: center; max-width: 60ch; margin: clamp(40px, 5vw, 64px) auto 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 1.95rem); line-height: 1.32; letter-spacing: -0.01em; color: var(--ink); }

/* ============================================================ MISSION / PROGRAM CARDS (shared) */
.mcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 28px); margin-top: clamp(38px, 5vw, 56px); }
.mcard { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.mcard__media { aspect-ratio: 16 / 11; overflow: hidden; background: #E7E1DA; }
.mcard__media img { width: 100%; height: 100%; object-fit: cover; }
.mcard__body { padding: clamp(20px, 2.2vw, 28px); }
.mcard__h { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 10px; text-align: center; width: 13ch;margin:auto;}
.mcard__p { font-size: 14.5px; color: var(--slate); }

/* ============================================================ FOOTER (shared) */
.footer { background: #141210; color: #fff; padding-top: clamp(56px, 7vw, 88px); }
.footer__grid {
  display: grid; grid-template-columns: 1.8fr repeat(2, 1fr) 0.9fr 1.1fr;
  gap: clamp(28px, 3vw, 44px); padding-bottom: clamp(40px, 5vw, 60px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__logo { height: 26px; width: auto; }
.footer__tagline { font-family: var(--display); font-weight: 700; font-size: 16px; margin: 16px 0 12px; color: var(--teal-bright); }
.footer__desc { font-size: 14px; color: rgba(255,255,255,.6); max-width: 34ch; margin-bottom: 20px; }
.footer__head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 14.5px; color: rgba(255,255,255,.72); width: fit-content; transition: color .2s; }
.footer__col a:hover { color: var(--teal-bright); }
.footer__social { display: flex; gap: 12px; margin-bottom: 14px; }
.footer__social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; display: grid; place-items: center; color: #fff; transition: border-color .2s, color .2s, transform .2s; }
.footer__social a:hover { border-color: var(--teal-bright); color: var(--teal-bright); transform: translateY(-2px); }
.footer__social svg { width: 19px; height: 19px; }
.footer__note { font-size: 13px; color: rgba(255,255,255,.5); }
.footer__base { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; font-size: 13px; color: rgba(255,255,255,.5); flex-wrap: wrap; }

/* ============================================================ reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* ============================================================ RESPONSIVE (shared) */
@media (max-width: 900px) {
  .mcards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .nav__lang { display: none; }
  .nav__links {
    position: absolute; top: 100%; right: var(--gutter); left: var(--gutter);
    flex-direction: column; gap: 4px; padding: 10px; color: var(--ink) !important;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 24px 48px -24px rgba(0,0,0,.4);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 12px 14px; border-radius: 10px; font-size: 16px; }
  .nav__links a::after { display: none; }
  .nav__links a:hover { background: var(--bg-soft); }
  .nav__menu { display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; background: none; border: 0; cursor: pointer; color: #fff; }
  .nav.is-stuck .nav__menu { color: var(--ink); }
  .nav__menu span { width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
  .no-js .nav__links { position: static; opacity: 1; visibility: visible; transform: none; flex-direction: row; gap: 18px; padding: 0; background: none; border: 0; box-shadow: none; }
  .no-js .nav__menu { display: none; }
  .stats { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__base { justify-content: flex-start; }
}
@media (max-width: 440px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .wcount__live-dot { animation: none; }
}
