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

/* ------------------------------------------------------------------ buttons */
.wc-btn {
  font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1;
  border-radius: var(--r-pill); padding: 15px 26px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  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-bounce);
}
.wc-btn:hover { transform: translateY(-2px); }
.wc-btn svg { width: 22px; height: 10px; flex: none; transition: transform var(--dur-med) var(--ease-bounce); }
.wc-btn:hover svg { transform: translateX(3px); }
/* primary everywhere: coral */
.btn-coral, .wc-btn--coral { background: var(--sk-coral); border-color: var(--sk-coral); color: var(--sk-white); }
.btn-coral:hover, .wc-btn--coral:hover { background: var(--sk-coral-dark); border-color: var(--sk-coral-dark); color: var(--sk-white); }
/* on light */
.btn-solid { background: var(--sk-navy); border-color: var(--sk-navy); color: var(--sk-white); }
.btn-solid:hover { background: var(--sk-ink); border-color: var(--sk-ink); color: var(--sk-white); }
.btn-outline { background: transparent; border-color: var(--sk-navy); color: var(--sk-navy); }
.btn-outline:hover { background: var(--sk-navy); color: var(--sk-white); }
/* on dark */
.wc-btn--sun { background: var(--sk-sun); border-color: var(--sk-sun); color: var(--sk-ink); }
.wc-btn--sun:hover { background: var(--sk-white); border-color: var(--sk-white); color: var(--sk-ink); }
.wc-btn--ghost { background: transparent; color: var(--sk-white); border-color: rgba(255,255,255,.6); }
.wc-btn--ghost:hover { background: var(--sk-white); border-color: var(--sk-white); color: var(--sk-navy); }
a[data-pending] { cursor: not-allowed; }

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

/* ------------------------------------------------------------------ header */
/* White, so the full-colour logo sits on the background it was drawn for. */
.wc-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(10px);
  color: var(--sk-navy); border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; padding: 14px 40px; box-sizing: border-box;
}
/* the four primary colours as a thin ribbon along the top edge */
.wc-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--sk-navy) 0 25%, var(--sk-blue) 25% 50%, var(--sk-coral) 50% 75%, var(--sk-sun) 75%);
}
.wc-header__brand { flex: none; display: inline-flex; text-decoration: none; }
.wc-header__brand img { height: 40px; width: auto; display: block; }

.wc-header__nav { display: flex; align-items: center; gap: 24px; }
.wc-header__nav > a:not(.wc-btn),
.wc-nav-group__toggle {
  color: var(--sk-navy); text-decoration: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-size: 15px; font-weight: 500;
  padding: 8px 0; display: inline-flex; align-items: center; gap: 6px; position: relative;
}
.wc-header__nav > a:not(.wc-btn):hover, .wc-nav-group__toggle:hover { color: var(--sk-coral-dark); }
.wc-header__nav > a:not(.wc-btn)[aria-current="page"]::after,
.wc-nav-group:has([aria-current="page"]) .wc-nav-group__toggle::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; background: var(--sk-coral);
}
.wc-header__nav .wc-btn { padding: 12px 20px; font-size: 14.5px; }

.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% + 20px); left: 50%; transform: translateX(-50%);
  min-width: 300px; z-index: 70; box-sizing: border-box;
  background: var(--sk-white); border-radius: var(--r-lg); box-shadow: var(--sh-lift);
  padding: 10px; display: flex; flex-direction: column; border: 1px solid var(--line-soft);
}
.wc-nav-group__menu[hidden] { display: none; }
.wc-nav-group__menu a {
  color: var(--sk-navy); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 16px;
  padding: 12px 14px 12px 46px; border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 1px; position: relative;
}
.wc-nav-group__menu a::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 6px 6px 6px 14px; background: var(--dot, var(--sk-blue));
}
.wc-nav-group__menu a:hover, .wc-nav-group__menu a[aria-current="page"] { background: var(--sk-mist); color: var(--sk-navy); }
.wc-nav-group__menu a span { font-family: var(--font-sans); font-weight: 400; font-size: 13px; color: var(--fg-3); }
.phase-preschool { --dot: var(--phase-preschool); }
.phase-junior    { --dot: var(--phase-junior); }
.phase-senior    { --dot: var(--phase-senior); }
.phase-high      { --dot: var(--phase-high); }

/* ------------------------------------------------------------------ burger */
.wc-burger {
  display: none; flex: none; width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: var(--sk-mist); border: 0; cursor: pointer; color: var(--sk-navy); border-radius: 50%;
}
.wc-burger:hover { background: var(--sk-cloud); }
.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(--sk-navy); color: var(--sk-white); overflow-y: auto;
}
.wc-header.is-open + .wc-mobile-nav { display: block; animation: sk-fade var(--dur-med) var(--ease-natural); }
@keyframes sk-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: 16px 20px 8px; }
.wc-mobile-nav__brand img { height: 36px; display: block; }
.wc-mobile-nav__close {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer;
  color: var(--sk-white); font: 600 14px var(--font-display); padding: 10px 4px;
}
.wc-mobile-nav__close svg { width: 22px; height: 22px; }
.wc-mobile-nav__inner { display: flex; flex-direction: column; padding: 10px 20px 40px; max-width: 720px; margin: 0 auto; }
.wc-mobile-nav__inner a:not(.wc-btn) {
  color: var(--sk-white); text-decoration: none; font: 600 20px var(--font-display); padding: 15px 4px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; align-items: center;
}
.wc-mobile-nav__inner a[aria-current="page"] { color: var(--sk-sun); }
.wc-mobile-nav .idx { width: 12px; height: 12px; border-radius: 4px 4px 4px 10px; background: var(--dot, rgba(255,255,255,.3)); }
.wc-mobile-nav .wc-btn { margin-top: 18px; padding: 17px; font-size: 16px; }
.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: 12px 16px; }
  .wc-header__brand img { height: 32px; }
}

/* -------------------------------------------------------------------- hero */
/* Full-bleed photograph with the guide's big quarter-curve cut out of the
   bottom-right corner, words bottom-left on a navy shade. */
.wc-hero { position: relative; overflow: hidden; background: var(--sk-navy); color: var(--sk-white); }
.wc-hero--photo { min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; }
.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--page.wc-hero--tall { min-height: 88vh; min-height: 88svh; }
.wc-hero--photo, .wc-hero--page { border-bottom-right-radius: var(--r-swoop); }
.wc-hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--hero-focus, 50% 45%);
  animation: sk-drift 28s var(--ease-natural) both infinite alternate;
}
@keyframes sk-drift { from { transform: scale(1.02); } to { transform: scale(1.08); } }
.wc-hero--photo::after, .wc-hero--page::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(30,32,56,.62) 0%, rgba(30,32,56,.3) 40%, rgba(30,32,56,0) 68%),
    linear-gradient(180deg, rgba(30,32,56,.25) 0%, rgba(30,32,56,0) 22%, rgba(30,32,56,0) 52%, rgba(30,32,56,.66) 100%);
}
@media (max-width: 700px) {
  .wc-hero--photo, .wc-hero--page { border-bottom-right-radius: 90px; }
  .wc-hero--photo::after, .wc-hero--page::after {
    background: linear-gradient(180deg, rgba(30,32,56,.3) 0%, rgba(30,32,56,0) 25%, rgba(30,32,56,.35) 50%, rgba(30,32,56,.9) 100%);
  }
}
.wc-hero__inner {
  position: relative; z-index: 3; width: 100%; box-sizing: border-box;
  max-width: var(--content-w); margin: 0 auto; padding: 120px 48px 88px;
}
.wc-hero--solid .wc-hero__inner { padding: 104px 48px 92px; }
.wc-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 14px var(--font-display); letter-spacing: .02em; color: var(--sk-sun); margin: 0 0 18px;
}
.wc-hero__title {
  font-family: var(--font-display); font-weight: 700; color: var(--sk-white);
  font-size: var(--fs-display-xl); line-height: .98; letter-spacing: -.03em;
  margin: 0; max-width: 15ch; text-wrap: balance;
}
.wc-hero__title em { color: var(--sk-sun); }
.wc-hero__lead { font-size: var(--fs-lead); color: rgba(255,255,255,.9); max-width: 52ch; margin: 24px 0 0; }
.wc-hero .btn-row { margin-top: 34px; }

/* "Thrive in life." with each letter of "life." in a brand colour, the way
   the cover of the guide sets it. */
.rainbow > span:nth-child(4n+1) { color: var(--sk-coral); }
.rainbow > span:nth-child(4n+2) { color: var(--sk-sun); }
.rainbow > span:nth-child(4n+3) { color: var(--sk-blue); }
.rainbow > span:nth-child(4n+4) { color: var(--sk-coral); }
.rainbow > span:last-child { color: var(--sk-white); }

/* floating devices in a hero */
.hero-dv { position: absolute; z-index: 2; pointer-events: none; }
.hero-dv svg { width: 100%; height: 100%; display: block; }
.hero-dv--asterisk { right: 7%; top: 16%; width: clamp(90px, 13vw, 200px); color: var(--sk-sun); animation: sk-spin 40s linear infinite; }
.hero-dv--dots { right: 4%; bottom: 7%; width: clamp(60px, 7vw, 110px); color: var(--sk-sun); opacity: .9; }
.hero-dv--star { right: 24%; top: 9%; width: clamp(34px, 3.5vw, 56px); color: var(--sk-coral); animation: sk-bob 6s ease-in-out infinite; }
@keyframes sk-spin { to { transform: rotate(360deg); } }
@keyframes sk-bob { 50% { transform: translateY(-12px) rotate(12deg); } }
@media (max-width: 700px) {
  .hero-dv--asterisk { top: 13%; right: 5%; }
  .hero-dv--star, .hero-dv--dots { display: none; }
}

/* Solid hero (articles, 404): navy with devices scattered on the right */
.wc-hero--solid .hero-dv--asterisk { top: auto; bottom: -40px; right: 6%; width: clamp(140px, 20vw, 300px); opacity: .95; }
.wc-hero--solid .hero-dv--star { top: 20%; right: 30%; }
@media (max-width: 700px) {
  .wc-hero__inner, .wc-hero--solid .wc-hero__inner { padding: 92px 20px 60px; }
  .wc-hero--solid .hero-dv--asterisk { width: 120px; bottom: -30px; right: -20px; }
}
@media (prefers-reduced-motion: reduce) { .wc-hero__photo, .hero-dv { animation: none !important; } }

/* ------------------------------------------------------------------ footer */
.wc-footer {
  position: relative; overflow: hidden;
  background: var(--sk-ink); color: var(--sk-white); padding: 84px 48px 36px;
  border-top-left-radius: var(--r-swoop);
}
.wc-footer__grid {
  position: relative; max-width: var(--content-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 56px;
}
.wc-footer__brand img { height: 92px; width: auto; display: block; margin-bottom: 22px; }
.wc-footer__tag { font: 700 30px/1 var(--font-display); letter-spacing: -.02em; margin: 0 0 8px; }
.wc-footer__devices { display: flex; gap: 12px; margin: 16px 0 0; }
.wc-footer__devices svg { width: 22px; height: 22px; }
.wc-footer__col h4 {
  font: 700 15px var(--font-display); letter-spacing: 0; color: var(--sk-sun); 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: 15px; color: rgba(255,255,255,.82); line-height: 1.55; }
.wc-footer__col a { color: rgba(255,255,255,.88); text-decoration: none; }
.wc-footer__col a:hover { color: var(--sk-sun); }
.wc-footer__social { display: flex; gap: 10px; margin-top: 22px; }
.wc-footer__social a {
  width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: var(--sk-white);
}
.wc-footer__social a:hover { background: var(--sk-coral); color: var(--sk-white); }
.wc-footer__social svg { width: 18px; height: 18px; }
.wc-footer__legal {
  position: relative; max-width: var(--content-w); margin: 60px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.62);
}
.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: 64px 20px 30px; border-top-left-radius: 80px; }
  .wc-footer__grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ------------------------------------------------------------------ dialog */
.sk-modal { border: 0; padding: 0; background: transparent; max-width: 460px; width: calc(100% - 32px); }
.sk-modal::backdrop { background: rgba(30,32,56,.62); }
.sk-modal__card {
  position: relative; background: var(--sk-white); border-radius: var(--r-lg) var(--r-xl) var(--r-lg) var(--r-lg); overflow: hidden;
  text-align: center; padding: 44px 32px 32px; box-shadow: var(--sh-lift);
}
.sk-modal__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--sk-navy) 0 25%, var(--sk-blue) 25% 50%, var(--sk-coral) 50% 75%, var(--sk-sun) 75%); }
.sk-modal__eyebrow { font: 700 14px var(--font-display); color: var(--sk-coral); margin: 0 0 10px; }
.sk-modal__title { font-size: 1.9rem; margin: 0 0 12px; }
.sk-modal__body { color: var(--fg-2); font-size: 16px; margin: 0 0 24px; }
.sk-modal__close {
  position: absolute; right: 12px; top: 14px; background: none; border: 0; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--fg-3); padding: 4px 10px; border-radius: 8px;
}
.sk-modal__later {
  display: block; margin: 16px auto 0; background: none; border: 0; cursor: pointer;
  color: var(--fg-3); font: 15px var(--font-sans); text-decoration: underline; text-underline-offset: 3px;
}

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

/* News: no star, it lands on the children in the photo */
.hero--star-low .hero-dv--star { display: none; }

/* Phones: the asterisk sits small in the empty top corner of every hero,
   clear of the words, which are anchored to the bottom. */
@media (max-width: 700px) {
  .hero-dv--asterisk, .wc-hero--solid .hero-dv--asterisk { top: 18px; bottom: auto; right: 18px; width: 58px; height: 58px; opacity: 1; }
  .wc-hero__inner, .wc-hero--solid .wc-hero__inner { padding-top: 96px; }
}
@media (max-width: 700px) { .wc-hero__title { font-size: min(9.2vw, 2.9rem); } }
