/* ============================================================================
   St Luke's College — chrome.css
   Header, dropdown, mobile drawer, hero, footer, buttons, dialogs.
   Class names keep the shared ThriveEd "wc-" kit namespace because
   scripts/chrome.js (shared with the Waterford College site) targets them.
   Every colour is a token from colors_and_type.css.
   ========================================================================== */

/* ------------------------------------------------------------------ buttons */
.wc-btn {
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: var(--tracking-button); text-transform: uppercase; line-height: 1;
  border-radius: var(--r-pill); padding: 14px 26px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap;
  transition: background var(--dur-med) var(--ease-natural), color var(--dur-med) var(--ease-natural),
              border-color var(--dur-med) var(--ease-natural), transform var(--dur-med) var(--ease-natural);
}
.wc-btn:hover { opacity: 1; transform: translateY(-1px); }
.wc-btn svg { width: 15px; height: 15px; flex: none; }
/* on dark */
.wc-btn--blue  { background: var(--sl-blue); border-color: var(--sl-blue); color: var(--sl-navy); }
.wc-btn--blue:hover { background: var(--sl-white); border-color: var(--sl-white); }
.wc-btn--ghost { background: transparent; color: var(--sl-white); border-color: rgba(255,255,255,.45); }
.wc-btn--ghost:hover { background: rgba(255,255,255,.12); }
/* on light */
.btn-solid { background: var(--sl-navy); border-color: var(--sl-navy); color: var(--sl-white); }
.btn-solid:hover { background: var(--sl-navy-2); border-color: var(--sl-navy-2); }
.btn-outline { background: transparent; border-color: rgba(0,7,90,.3); color: var(--sl-navy); }
.btn-outline:hover { background: var(--sl-navy); border-color: var(--sl-navy); color: var(--sl-white); }
a[data-pending] { cursor: not-allowed; }

/* -------------------------------------------------------------- skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--sl-blue); color: var(--sl-navy);
  padding: 12px 20px; font-weight: 600; font-size: 14px; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------ header */
.wc-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--sl-navy); color: var(--sl-white);
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; padding: 14px 44px;
  box-sizing: border-box;
}
.wc-header__brand { flex: none; display: inline-flex; text-decoration: none; }
.wc-header__brand img { height: 52px; width: auto; display: block; }

.wc-header__nav { display: flex; align-items: center; gap: 26px; }
.wc-header__nav > a:not(.wc-btn),
.wc-nav-group__toggle {
  color: var(--sl-white); text-decoration: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; padding: 8px 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.wc-header__nav > a:not(.wc-btn):hover, .wc-nav-group__toggle:hover { opacity: .72; }
.wc-header__nav > a[aria-current="page"],
.wc-nav-group:has([aria-current="page"]) .wc-nav-group__toggle { box-shadow: inset 0 -2px 0 var(--sl-blue); }
.wc-header__nav .wc-btn { padding: 12px 20px; font-size: 12px; }

.wc-nav-group { position: relative; display: inline-flex; }
.wc-nav-group__toggle svg { width: 12px; height: 12px; transition: transform var(--dur-fast); }
.wc-nav-group__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.wc-nav-group__menu {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%);
  min-width: 290px; z-index: 70; box-sizing: border-box;
  background: var(--sl-white); border-radius: var(--r-md); box-shadow: var(--sh-lift);
  padding: 10px; display: flex; flex-direction: column;
}
.wc-nav-group__menu[hidden] { display: none; }
.wc-nav-group__menu a {
  color: var(--sl-navy); text-decoration: none; font-size: 15px;
  padding: 11px 14px 11px 18px; border-radius: var(--r-sm);
  display: flex; flex-direction: column; gap: 2px; position: relative;
}
.wc-nav-group__menu a::before {
  content: ""; position: absolute; left: 6px; top: 15px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--dot, var(--sl-blue));
}
.wc-nav-group__menu a:hover, .wc-nav-group__menu a[aria-current="page"] { background: var(--sl-sand-pale); opacity: 1; }
.wc-nav-group__menu a span { font-size: 12.5px; color: var(--fg-3); }

/* ------------------------------------------------------------------ burger */
.wc-burger {
  display: none; flex: none; width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer; color: var(--sl-white); border-radius: var(--r-md);
}
.wc-burger:hover { background: rgba(255,255,255,.1); }
.wc-burger .wc-ic-close { display: none; }
.wc-burger[aria-expanded="true"] .wc-ic-menu { display: none; }
.wc-burger[aria-expanded="true"] .wc-ic-close { display: block; }

/* ----------------------------------------------------------- mobile drawer */
.wc-mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 80;
  background: var(--sl-navy); color: var(--sl-white); overflow-y: auto;
}
.wc-header.is-open + .wc-mobile-nav { display: block; animation: sl-fade var(--dur-med) var(--ease-natural); }
@keyframes sl-fade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
body.wc-nav-open { overflow: hidden; }
.wc-mobile-nav__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 8px; }
.wc-mobile-nav__brand img { height: 44px; display: block; }
.wc-mobile-nav__close {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer;
  color: var(--sl-white); font: 600 12px var(--font-sans); letter-spacing: var(--tracking-button);
  text-transform: uppercase; padding: 10px 4px;
}
.wc-mobile-nav__close svg { width: 20px; height: 20px; }
.wc-mobile-nav__inner { display: flex; flex-direction: column; padding: 10px 24px 40px; max-width: 720px; margin: 0 auto; }
.wc-mobile-nav__inner a:not(.wc-btn) {
  color: var(--sl-white); text-decoration: none; font-size: 17px; padding: 15px 4px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: baseline;
}
.wc-mobile-nav__inner a[aria-current="page"] { color: var(--sl-blue); }
.wc-mobile-nav .idx { font-size: 12px; letter-spacing: .12em; color: rgba(255,255,255,.42); }
.wc-mobile-nav .wc-btn { margin-top: 18px; padding: 16px; font-size: 13px; }
.wc-mobile-nav .wc-btn + .wc-btn { margin-top: 10px; }

@media (max-width: 1240px) {
  .wc-header__nav { display: none; }
  .wc-burger { display: inline-flex; }
}
@media (max-width: 700px) {
  .wc-header { padding: 10px 16px; }
  .wc-header__brand img { height: 42px; }
}

/* -------------------------------------------------------------------- hero */
.wc-hero { position: relative; overflow: hidden; background: var(--sl-navy); color: var(--sl-white); }
/* Home fills the screen below the header (matches Waterford, 88%). */
.wc-hero--photo { min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; }
/* Every page hero is one height, photo or solid, so moving between pages
   never makes the header jump. Home is the one taller exception. */
/* Inner pages: 70% of the window, so the photo has room but the start of the
   first section still shows on a laptop. */
.wc-hero--page, .wc-hero--solid { min-height: clamp(460px, 70vh, 760px); min-height: clamp(460px, 70svh, 760px); display: flex; align-items: flex-end; }
.wc-hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--hero-focus, 50% 45%);
  animation: sl-drift 28s var(--ease-natural) both infinite alternate;
}
@keyframes sl-drift { from { transform: scale(1.02); } to { transform: scale(1.09); } }
.wc-hero--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  /* Words sit bottom-left, so the shade does too: dark under the copy, clear
     across the rest of the photograph so the stone and the faces stay warm. */
  background:
    linear-gradient(90deg, rgba(0,7,90,.66) 0%, rgba(0,7,90,.38) 38%, rgba(0,7,90,0) 66%),
    linear-gradient(180deg, rgba(0,7,90,.42) 0%, rgba(0,7,90,0) 22%, rgba(0,7,90,0) 55%, rgba(0,7,90,.62) 100%);
}
@media (max-width: 700px) {
  .wc-hero--photo::after {
    background: linear-gradient(180deg, rgba(0,7,90,.4) 0%, rgba(0,7,90,0) 25%, rgba(0,7,90,.35) 50%, rgba(0,7,90,.88) 100%);
  }
}
.wc-hero__inner {
  position: relative; z-index: 3; width: 100%; box-sizing: border-box;
  max-width: 1200px; margin: 0 auto; padding: 120px 48px 84px;
}
.wc-hero--solid .wc-hero__inner { padding: 96px 48px 88px; }
.wc-hero__eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--sl-blue); margin: 0 0 18px;
}
.wc-hero__title {
  font-family: var(--font-serif); font-weight: 400; color: var(--sl-white);
  font-size: var(--fs-display-xl); line-height: 1.04; margin: 0; max-width: 19ch; text-wrap: balance;
}
.wc-hero__title em { font-style: italic; color: var(--sl-blue); }
.wc-hero__lead { font-size: var(--fs-lead); color: var(--fg-on-dark-muted); max-width: 54ch; margin: 22px 0 0; }
.wc-hero .btn-row { margin-top: 34px; }

/* The window arch from the logo, drawn as a thin outline in the solid hero. */
.wc-hero--solid::before {
  content: ""; position: absolute; right: -60px; bottom: -40px; z-index: 1;
  width: 380px; height: 480px; border: 1.5px solid rgba(174,193,255,.35);
  border-radius: 190px 190px 0 0;
}
.wc-hero--solid::after {
  content: ""; position: absolute; right: 40px; bottom: -40px; z-index: 1;
  width: 380px; height: 480px; border: 1.5px solid rgba(174,193,255,.16);
  border-radius: 190px 190px 0 0;
}
@media (max-width: 700px) {
  .wc-hero__inner, .wc-hero--solid .wc-hero__inner { padding: 88px 20px 56px; }
  .wc-hero--solid::before, .wc-hero--solid::after { width: 220px; height: 280px; border-radius: 110px 110px 0 0; right: -90px; }
  .wc-hero--solid::after { right: -30px; }
}
@media (prefers-reduced-motion: reduce) { .wc-hero__photo { animation: none; } }

/* ------------------------------------------------------------------ footer */
.wc-footer {
  position: relative; overflow: hidden;
  background: var(--sl-navy); color: var(--sl-white); padding: 80px 48px 36px;
}
.wc-footer__crest {
  position: absolute; right: -40px; bottom: -60px; width: 340px; opacity: .05; pointer-events: none;
}
.wc-footer__grid {
  position: relative; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 56px;
}
.wc-footer__brand img { height: 70px; width: auto; display: block; margin-bottom: 20px; }
.wc-footer__tag {
  font-family: var(--font-serif); font-size: 22px; color: var(--sl-white); margin: 0 0 8px;
}
.wc-footer__tag em { color: var(--sl-blue); }
.wc-footer__blurb { font-size: 14px; color: var(--fg-on-dark-muted); max-width: 34ch; margin: 0; }
.wc-footer__col h4 {
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--sl-blue); margin: 6px 0 16px;
}
.wc-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wc-footer__col li { font-size: 14px; color: rgba(255,255,255,.82); line-height: 1.55; }
.wc-footer__col a { color: rgba(255,255,255,.86); text-decoration: none; }
.wc-footer__col a:hover { color: var(--sl-white); opacity: 1; }
.wc-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.wc-footer__social a {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-on-dark); color: var(--sl-white);
}
.wc-footer__social a:hover { background: rgba(255,255,255,.1); opacity: 1; }
.wc-footer__social svg { width: 18px; height: 18px; }
.wc-footer__legal {
  position: relative; max-width: 1200px; margin: 56px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: rgba(255,255,255,.66);
}
.wc-footer__legal a { color: inherit; }
@media (max-width: 900px) { .wc-footer__grid { grid-template-columns: 1fr 1fr; } .wc-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .wc-footer { padding: 60px 20px 30px; }
  .wc-footer__grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ------------------------------------------------------------------ dialog */
.sl-modal { border: 0; padding: 0; background: transparent; max-width: 460px; width: calc(100% - 32px); }
.sl-modal::backdrop { background: rgba(0,7,90,.6); }
.sl-modal__card {
  position: relative; background: var(--sl-white); border-radius: 24px; overflow: hidden;
  text-align: center; padding: 42px 32px 32px; box-shadow: var(--sh-lift);
}
.sl-modal__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--sl-navy-2); }
.sl-modal__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sl-navy-2); margin: 0 0 10px; }
.sl-modal__title { font-size: 1.9rem; margin: 0 0 12px; }
.sl-modal__body { color: var(--fg-2); font-size: 15.5px; margin: 0 0 24px; }
.sl-modal__close {
  position: absolute; right: 12px; top: 12px; background: none; border: 0; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--fg-3); padding: 4px 10px; border-radius: 8px;
}
.sl-modal__later {
  display: block; margin: 16px auto 0; background: none; border: 0; cursor: pointer;
  color: var(--fg-3); font: 14px var(--font-sans); text-decoration: underline; text-underline-offset: 3px;
}

@media print {
  .wc-header, .wc-mobile-nav, .wc-footer, .subnav { display: none !important; }
}

/* Hero film (home). Sits over the photo, invisible until it is playing. */
.wc-hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  object-fit: cover; object-position: 50% 35%;
  opacity: 0; transition: opacity 1.2s var(--ease-natural);
}
.wc-hero__video.is-playing { opacity: 1; }

/* Phase pages are landing pages for each phase: full height, like Home. */
.wc-hero--page.wc-hero--tall { min-height: 88vh; min-height: 88svh; }
/* The poster is the film's first frame: no slow zoom on it, or the film would
   visibly jump when it takes over. The film can show at once. */
.wc-hero__poster { animation: none; }
.wc-hero__video { opacity: 1; transition: none; }

/* "Phases" is a <button>, and buttons do not inherit line-height, so its label
   sat a pixel or two lower than the links beside it. Match the links exactly. */
.wc-nav-group__toggle { line-height: inherit; font-family: inherit; }
