/* =========================================================
   Snow Academy — Design System
   Mobile-first, responsive. Single shared stylesheet.
   Colors live in :root so they are easy to fine-tune.
   ========================================================= */

:root {
  /* Brand palette (approximate — easy to adjust after review) */
  --ink:        #0f1b2d;   /* near-black navy for headings/text */
  --ink-soft:   #41506a;   /* secondary text */
  --accent:     #15b6cf;   /* Snow Academy cyan */
  --accent-deep:#0e8fa6;
  --gold:       #f3b340;   /* warm secondary accent */
  --paper:      #ffffff;
  --mist:       #f4f7fa;   /* light section background */
  --mist-2:     #e9eef4;
  --line:       #dde4ec;
  --overlay:    rgba(10,18,30,0.55); /* hero image scrim */

  --maxw: 1160px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(15,27,45,0.10);
  --shadow-lg: 0 22px 60px rgba(15,27,45,0.18);

  --font-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
p  { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin: 0 0 .6rem;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 64px 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #dfe7f1; }
.section--ink h1,.section--ink h2,.section--ink h3 { color:#fff; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.center .lead { margin-left:auto; margin-right:auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(21,182,207,.35); }
.btn--primary:hover { background: var(--accent-deep); }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 20px rgba(243,179,64,.35); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--ink); color:#fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px;
  height: var(--header-h);
}
.nav__logo { flex-shrink: 0; display: inline-flex; align-items: center; }
.nav__logo img { height: 36px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav__links a {
  font-family: var(--font-head); font-weight: 500; font-size: .93rem;
  color: var(--ink); white-space: nowrap;
}
.nav__links a:hover { color: var(--accent-deep); text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
/* Compact pill sizing for the Sign In button in the nav */
.nav__signin.btn { padding: 9px 22px; font-size: .92rem; width: auto; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { display:block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition:.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: clamp(70px, 12vw, 130px) 0;
  background: var(--ink); background-size: cover; background-position: center;
}
.hero::before { content:""; position:absolute; inset:0; background: var(--overlay); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color:#fff; max-width: 16ch; margin-inline:auto; }
.hero p { font-size: 1.2rem; max-width: 56ch; margin-inline:auto; color: #eef3f8; }
.hero__actions { margin-top: 28px; display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.hero__logos { margin-top: 34px; }
.hero__logos img { margin: 0 auto; max-height: 46px; width:auto; opacity:.95; }

/* ---------- Award / trusted-by logos ---------- */
.award-logos { margin-top: 46px; }
.award-logos__label {
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .14em; font-size: .82rem; font-weight: 600;
  color: var(--ink-soft); margin: 0 0 18px;
}
.award-logos img {
  margin: 0 auto; width: 100%; max-width: 960px; height: auto;
}

/* ---------- Promo / feature blocks ---------- */
.promo {
  position: relative; color: #fff; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--ink); background-size: cover; background-position: center;
  padding: clamp(40px, 7vw, 80px) clamp(24px,5vw,56px);
}
.promo::before { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(10,18,30,.72), rgba(10,18,30,.35)); }
.promo > * { position: relative; z-index:1; }
.promo h2 { color:#fff; max-width: 18ch; }
.promo h2 a { color:#fff; }
.promo p { color:#e7eef6; max-width: 48ch; }

.stack > * + * { margin-top: 28px; }

/* ---------- Card grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 16/10; background: var(--mist-2) center/cover no-repeat; }
.card__body { padding: 22px 22px 26px; display:flex; flex-direction:column; flex:1; }
.card__body h3 { margin-bottom:.35em; }
.card__tag { font-size:.74rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color: var(--accent-deep); margin-bottom:.5rem; }
.card__body .btn { margin-top: auto; align-self:flex-start; }

/* ---------- Split feature (text + image) ---------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,60px); align-items:center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color:#9fb0c6; padding: 56px 0 34px; }
.site-footer a { color:#cdd8e6; }
.site-footer a:hover { color:#fff; }
.footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__col h4 { color:#fff; font-size:1rem; margin-bottom:.8rem; }
.footer__col ul { list-style:none; margin:0; padding:0; }
.footer__col li { margin-bottom:.5rem; }
.footer__logo img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top:1px solid rgba(255,255,255,.12); font-size:.85rem; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }

/* ---------- Utility ---------- */
.text-center{text-align:center}
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.section-head{ max-width: 62ch; margin: 0 auto 42px; text-align:center; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Collapse the nav to a hamburger before the links can crowd the logo / Sign In */
@media (max-width: 1080px) {
  .site-header { position: relative; } /* allow absolute dropdown to anchor here */
  .nav { position: relative; }
  .nav__links { display: none; }
  .nav__signin.btn { display: inline-block; } /* keep Sign In visible beside the menu button */
  .nav__toggle { display: block; }

  .nav[data-open="true"] .nav__links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 22px 22px; box-shadow: var(--shadow); z-index: 60;
  }
  .nav[data-open="true"] .nav__links a { padding: 10px 0; width: 100%; font-size: 1.05rem; }
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

@media (min-width: 561px) and (max-width: 820px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .btn { width: 100%; }
  .hero__actions .btn { width: auto; }
  .footer__grid { grid-template-columns: 1fr; }
}
