/* ============================================================
   ST. BART'S BRAND SYSTEM — carried over from the school site
   navy / off-white / red-accent / gold / slate
   Playfair Display (headings) + DM Sans (body & UI)
   Ski-specific addition: the trail-rating palette
   ============================================================ */
:root{
  /* Hero photograph. Swap the filename to change it; nothing else moves. */
  /* JPEG first so any browser that does not understand image-set() still gets
     a hero. The @supports block below upgrades it to WebP where available. */
  --hero-image:url("../img/group.jpg");

  --navy:#0A1F3F;
  --navy-light:#132E5B;
  --white:#FFFFFF;
  --off-white:#F7F8FA;
  --red:#C41E3A;
  --red-hover:#A01830;
  --gold:#C9A84C;
  --slate:#4A5568;
  --slate-light:#718096;
  --line:#E2E8F0;

  /* trail ratings */
  --green:#2F8F4E;
  --blue:#2B6CB0;
  --diamond:#0A1F3F;

  --serif:"Playfair Display",Georgia,serif;
  --sans:"DM Sans","Helvetica Neue",Arial,sans-serif;
  --wrap:1200px;
  --gut:clamp(20px,5vw,56px);
}
*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  /* iOS inflates text when a phone is rotated to landscape unless this is set.
     Android Chrome honours the unprefixed property. */
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
*{-webkit-tap-highlight-color:rgba(10,31,63,.12)}
body{
  margin:0;background:var(--white);color:var(--slate);
  font-family:var(--sans);font-size:clamp(16px,1vw,17.5px);line-height:1.7;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
/* Nothing may push the viewport sideways on a narrow phone. */
html,body{max-width:100%}
h1,h2,h3{font-family:var(--serif);color:var(--navy);margin:0;line-height:1.15;text-wrap:balance}
h1{font-weight:700;font-size:clamp(2.3rem,5.6vw,4.1rem);line-height:1.06}
h2{font-weight:700;font-size:clamp(1.85rem,3.6vw,2.85rem)}
h3{font-weight:600;font-size:clamp(1.12rem,1.5vw,1.35rem)}
p{margin:0 0 1.1em}
a{color:inherit}
.wrap{max-width:var(--wrap);margin:0 auto;padding-inline:var(--gut)}
section{padding-block:clamp(56px,7.5vw,104px)}
.alt{background:var(--off-white)}
.dark{background:var(--navy);color:#C3D0E2}
.dark h2,.dark h3{color:#fff}

.eyebrow{
  font-family:var(--sans);font-size:.73rem;font-weight:600;letter-spacing:.16em;
  text-transform:uppercase;color:var(--red);margin:0 0 1rem;
}
.dark .eyebrow{color:var(--gold)}
.lede{font-size:clamp(1.05rem,1.35vw,1.22rem);color:var(--slate);max-width:62ch;line-height:1.66}
.dark .lede{color:#C3D0E2}
.center{text-align:center;margin-inline:auto}
.rule{width:56px;height:3px;background:var(--gold);border-radius:2px;margin:1.4rem 0}
.center .rule{margin-inline:auto}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:var(--sans);font-weight:600;font-size:.95rem;
  padding:.95rem 1.7rem;border-radius:.6rem;text-decoration:none;border:2px solid transparent;
  transition:all .3s ease;cursor:pointer;min-height:48px;
}
.btn-red{background:var(--red);color:#fff}
.btn-red:hover{background:var(--red-hover);transform:scale(1.04)}
.btn-outline{border-color:var(--navy);color:var(--navy)}
.btn-outline:hover{background:var(--navy);color:#fff;transform:scale(1.04)}
.btn-light{border-color:rgba(255,255,255,.5);color:#fff}
.btn-light:hover{background:#fff;color:var(--navy);transform:scale(1.04)}
.cta-row{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:2rem}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:4px}

/* ---------- NAV ---------- */
header{position:sticky;top:0;z-index:80;background:var(--navy);box-shadow:0 2px 16px rgba(10,31,63,.18)}
.bar{max-width:var(--wrap);margin:0 auto;padding:.75rem var(--gut);display:flex;align-items:center;gap:1.5rem}
.brand{display:flex;align-items:center;gap:.75rem;text-decoration:none;margin-right:auto}
.crest{
  width:42px;height:42px;border-radius:50%;flex:none;
  background:var(--navy-light);border:2px solid var(--gold);
  display:grid;place-items:center;color:var(--gold);
  font-family:var(--serif);font-weight:700;font-size:.9rem;letter-spacing:.02em;
}
.brand b{color:#fff;font-weight:600;font-size:1.02rem;line-height:1.2;display:block}
.brand small{color:#8FA3C0;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}
nav.main{display:flex;gap:1.7rem}
nav.main a{color:#DCE5F0;text-decoration:none;font-size:.9rem;font-weight:500;transition:color .2s}
nav.main a:hover{color:var(--gold)}
.bar .btn{padding:.62rem 1.15rem;font-size:.86rem;min-height:0}
.burger{display:none;background:none;border:0;color:#fff;padding:.5rem;cursor:pointer}
.burger svg{width:26px;height:26px}
#drawer{display:none;background:var(--navy-light);border-top:1px solid rgba(255,255,255,.12)}
#drawer.open{display:block}
#drawer a{display:block;padding:.95rem var(--gut);color:#DCE5F0;text-decoration:none;font-weight:500;border-bottom:1px solid rgba(255,255,255,.08)}
@media(max-width:1000px){nav.main,.bar .btn{display:none}.burger{display:block}}

/* ---------- HERO ---------- */
.hero{position:relative;min-height:min(88vh,760px);display:flex;align-items:center;padding-block:clamp(60px,9vw,110px);overflow:hidden}

/* One rule, one selector. The gradient sits under the photo, so if the image
   is ever missing the hero degrades to solid navy rather than to white. */
.hero .fallback{position:absolute;inset:0;width:100%;height:100%;background:var(--hero-image) center 42%/cover no-repeat,linear-gradient(160deg,#132E5B,#0A1F3F 60%,#050F20)}
@supports (background-image:image-set(url("x.webp") type("image/webp"))){
  :root{--hero-image:image-set(url("../img/group.webp") type("image/webp"),
                               url("../img/group.jpg") type("image/jpeg"))}
}
.hero .scrim{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(10,31,63,.90),rgba(10,31,63,.78) 45%,rgba(3,10,22,.92))}
.hero .wrap{position:relative;z-index:2}
.hero h1{color:#fff;max-width:16ch}
.hero .eyebrow{color:var(--gold);display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.hero .lede{color:#D6E0EE;margin-top:1.5rem}
.hero .rule{background:var(--gold)}

/* trail chips in the hero eyebrow */
.chips{display:inline-flex;gap:.4rem;align-items:center;vertical-align:middle}
.chip{width:12px;height:12px;flex:none}
.chip.c{border-radius:50%;background:#48BB78}
.chip.s{background:#63B3ED}
.chip.d{background:#fff;transform:rotate(45deg);border-radius:2px}

/* ---------- QUICK FACTS ---------- */
.facts{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-top:-3.2rem;position:relative;z-index:5}
.fact{
  background:#fff;border-radius:1rem;padding:1.6rem 1.3rem;text-align:center;
  box-shadow:0 4px 24px rgba(10,31,63,.1);border:1px solid var(--line);
}
.fact b{display:block;font-family:var(--serif);font-weight:700;color:var(--navy);font-size:clamp(1.7rem,3vw,2.3rem);line-height:1}
.fact span{display:block;margin-top:.55rem;font-size:.79rem;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--slate-light);line-height:1.45}
@media(max-width:820px){.facts{grid-template-columns:1fr 1fr;margin-top:-2rem}}
/* Small phones: 360-400px is the real floor (iPhone SE, most Androids). */
@media(max-width:400px){
  .facts{gap:.7rem}
  .fact{padding:1.2rem .9rem}
  .fact span{font-size:.72rem;letter-spacing:.06em}
  .btn{width:100%;padding:1rem 1.2rem}
  .cta-row{gap:.65rem}
  .grades{gap:.4rem}
  .g{width:44px;height:44px;font-size:.92rem}
}
/* Tablet portrait: the hamburger is already showing by 1000px, so give the
   content room rather than leaving desktop gutters on a 768px screen. */
@media(min-width:621px) and (max-width:900px){
  .cards{grid-template-columns:1fr 1fr}
  .two-up{grid-template-columns:1fr}
}

/* ---------- CARDS ---------- */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.4rem;margin-top:2.8rem}
.card{
  background:#fff;border:1px solid var(--line);border-radius:1rem;padding:1.9rem;
  box-shadow:0 1px 3px rgba(10,31,63,.06);transition:all .3s ease;
}
.card:hover{box-shadow:0 12px 34px rgba(10,31,63,.13);transform:translateY(-3px)}
.card h3{margin-bottom:.6rem}
.card p{margin:0;font-size:.96rem}
.card .tag{display:block;font-size:.72rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--red);margin-bottom:.85rem}

/* ---------- SPLIT ---------- */
.split{display:grid;grid-template-columns:1.02fr 1fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}
.split.flip>*:first-child{order:2}
@media(max-width:900px){.split{grid-template-columns:1fr}.split.flip>*:first-child{order:0}}

/* ---------- PHOTO SLOTS ---------- */
.photo{
  position:relative;aspect-ratio:4/3;border-radius:1rem;overflow:hidden;
  background:var(--off-white);border:2px dashed var(--line);
  display:grid;place-items:center;text-align:center;padding:1.5rem;
  box-shadow:0 4px 20px rgba(10,31,63,.06);
}
.photo.tall{aspect-ratio:3/4}
.photo span{font-size:.76rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--slate-light);max-width:26ch;line-height:1.7}
.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gallery{display:grid;grid-template-columns:1fr 1fr;gap:1.3rem;margin-top:2.8rem;align-items:stretch}
.gallery .photo{aspect-ratio:auto}
.gallery .photo img{position:static;height:auto;width:100%;display:block}
.gallery .photo.is-wide{grid-column:1 / -1;max-width:620px;width:100%;margin-inline:auto}
@media(max-width:620px){
  .gallery{grid-template-columns:1fr}
  .gallery .photo.is-wide{grid-column:auto;max-width:none}
}
/* real photographs: solid frame, no dashed placeholder, caption underneath */
figure.photo{margin:0}
.photo.has-img{border:0;background:transparent;padding:0;aspect-ratio:auto}
.photo.has-img img{position:static;width:100%;height:auto}
.photo.has-img img{border-radius:1rem}
.photo.has-img figcaption{
  position:absolute;left:0;right:0;bottom:0;z-index:2;
  padding:2.6rem 1.1rem .9rem;border-radius:0 0 1rem 1rem;
  background:linear-gradient(to top,rgba(10,31,63,.88),rgba(10,31,63,0));
  color:#fff;font-size:.8rem;font-weight:500;line-height:1.4;text-align:left;
}
.gallery .photo.has-img figcaption{font-size:.74rem;padding:2.2rem .85rem .75rem}

/* ---------- TRAIL PROGRESSION (navy band) ---------- */
.track{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem;margin-top:3rem;position:relative}
.track::before{content:"";position:absolute;left:14%;right:14%;top:31px;height:2px;background:linear-gradient(90deg,#48BB78,#63B3ED 52%,#fff);opacity:.45}
.stop{text-align:center;position:relative}
.sym{width:64px;height:64px;margin:0 auto 1.3rem;border-radius:50%;background:var(--navy);border:2px solid rgba(255,255,255,.22);display:grid;place-items:center}
.sym .circle{width:28px;height:28px;border-radius:50%;background:#48BB78}
.sym .square{width:26px;height:26px;background:#63B3ED;border-radius:2px}
.sym .diamond{width:25px;height:25px;background:#fff;transform:rotate(45deg);border-radius:3px}
.stop .tag{display:block;font-size:.72rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--gold);margin-bottom:.6rem}
.stop h3{margin-bottom:.55rem}
.stop p{font-size:.95rem;color:#B9C7DA;margin:0;max-width:34ch;margin-inline:auto}
@media(max-width:800px){
  .track{grid-template-columns:1fr;gap:2.2rem}
  .track::before{left:31px;right:auto;top:8%;bottom:8%;width:2px;height:auto;background:linear-gradient(180deg,#48BB78,#63B3ED 52%,#fff)}
  .stop{display:grid;grid-template-columns:64px 1fr;gap:1.3rem;text-align:left;align-items:start}
  .sym{margin:0}.stop p{margin-inline:0}
}

/* ---------- TIMELINE ---------- */
.timeline{margin-top:2.8rem;border-top:1px solid var(--line)}
.leg{display:grid;grid-template-columns:180px 1fr;gap:clamp(1rem,3vw,2.6rem);padding:1.6rem 0;border-bottom:1px solid var(--line);align-items:start}
.leg .when{font-weight:700;color:var(--navy);font-size:.92rem;letter-spacing:.02em;padding-top:.2rem}
.leg .when small{display:block;font-weight:500;color:var(--slate-light);font-size:.78rem;margin-top:.3rem;letter-spacing:.04em}
.leg h3{margin-bottom:.4rem;font-size:1.1rem}
.leg p{margin:0;font-size:.96rem;max-width:64ch}
@media(max-width:680px){.leg{grid-template-columns:1fr;gap:.5rem}}

/* ---------- ELIGIBILITY ---------- */
.grades{display:flex;gap:.55rem;flex-wrap:wrap;margin:1.8rem 0 1.4rem}
.g{
  width:52px;height:52px;border-radius:.7rem;display:grid;place-items:center;
  font-weight:700;font-size:1rem;border:2px solid var(--line);color:var(--slate-light);background:var(--off-white);
}
.g.yes{background:var(--navy);border-color:var(--navy);color:#fff}
.g.no{text-decoration:line-through;opacity:.55}
.legend{display:flex;gap:1.6rem;flex-wrap:wrap;font-size:.85rem;font-weight:500}
.legend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:.45rem;vertical-align:-1px}

/* ---------- LISTS ---------- */
.checks h3{font-family:var(--sans);font-size:.83rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--red);margin-bottom:1rem}
.checks ul{list-style:none;margin:0;padding:0}
.checks li{position:relative;padding:.5rem 0 .5rem 1.6rem;border-bottom:1px solid var(--line);font-size:.95rem}
.checks li::before{content:"";position:absolute;left:0;top:1.1em;width:8px;height:8px;background:var(--gold);border-radius:2px}

/* ---------- FAQ ---------- */
.faq{margin-top:2.6rem;border-top:1px solid var(--line);max-width:900px}
details{border-bottom:1px solid var(--line);background:#fff}
summary{
  cursor:pointer;list-style:none;padding:1.3rem 3rem 1.3rem 0;position:relative;
  font-family:var(--serif);font-weight:600;font-size:1.08rem;color:var(--navy);line-height:1.35;
}
summary::-webkit-details-marker{display:none}
summary::after{content:"";position:absolute;right:.5rem;top:1.6rem;width:10px;height:10px;border-right:2px solid var(--red);border-bottom:2px solid var(--red);transform:rotate(45deg);transition:transform .25s}
details[open] summary::after{transform:rotate(-135deg)}
summary:hover{color:var(--red)}
.body{padding:0 3rem 1.5rem 0;font-size:.97rem}
.body p:last-child{margin-bottom:0}

/* ---------- CALLOUT ---------- */
.callout{
  border-left:4px solid var(--gold);background:var(--off-white);
  padding:1.5rem 1.7rem;border-radius:.6rem;margin-top:2rem;
}
.callout p{margin:0;font-size:.96rem}
.callout strong{color:var(--navy)}

/* ---------- FOOTER ---------- */
footer{background:var(--navy);color:#A9BCD4;padding-block:clamp(48px,6vw,72px)}
.fgrid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:2.6rem}
@media(max-width:760px){.fgrid{grid-template-columns:1fr;gap:2rem}}
/* Skip link: every page puts a six-item nav before the content, so a keyboard
   or screen-reader user otherwise tabs through all of it on every page load.
   Hidden until focused. */
.skip{position:absolute;left:-9999px;top:0;z-index:200;background:var(--navy);color:#fff;
  padding:.85rem 1.3rem;border-radius:0 0 .6rem 0;font-weight:600;text-decoration:none}
.skip:focus{left:0}
footer h4,footer .fh{font-family:var(--sans);font-size:.75rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:var(--gold);margin:0 0 1rem}
footer ul{list-style:none;margin:0;padding:0}
footer li{margin-bottom:.6rem}
footer a{color:#A9BCD4;text-decoration:none;font-size:.94rem}
footer a:hover{color:#fff}
.disclaim{margin-top:2.8rem;padding-top:1.6rem;border-top:1px solid rgba(255,255,255,.14);font-size:.85rem;color:#7C8FAC;max-width:80ch}

/* ---------- MOTION ---------- */
.rise{opacity:0;transform:translateY(24px);transition:opacity .65s ease,transform .65s ease}
.rise.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .rise{opacity:1;transform:none;transition:none}
  *{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* ---------- season-config driven states ---------- */
.datelist{list-style:none;margin:0;padding:0}
.datelist li{padding:.35rem 0;border-bottom:1px solid var(--line);font-size:.95rem}
.datelist li:last-child{border-bottom:0}
.cardlink{color:var(--red);font-weight:600;font-size:.9rem;text-decoration:none}
.cardlink:hover{text-decoration:underline}
.is-pending{opacity:.62;font-style:italic;pointer-events:none;font-weight:500}
.btn.is-pending{background:var(--light-gray);color:var(--slate-light);border-color:var(--light-gray);box-shadow:none}


/* ---------- prompt 0011 ---------- */
/* <picture> is inline by default, which leaves a descender gap under every
   photo inside its rounded frame. Prompt 0010 wrapped every image in one. */
.photo picture,figure.photo picture{display:block}
