/* ============================================================================
   Waterford International: 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 other ThriveEd sites) targets them.
   Every colour is a token from colors_and_type.css.
   ========================================================================== */

/* ------------------------------------------------------------------ buttons */
.wc-btn {
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: .01em;
  border-radius: var(--r-sm); padding: 16px 26px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.wc-btn .arr { width: 16px; height: 16px; flex: none; transition: transform var(--dur) var(--ease); }
.wc-btn:hover .arr { transform: translateX(4px); }
.btn-red { background: var(--wi-red); border-color: var(--wi-red); color: var(--wi-white); }
.btn-red:hover { background: var(--wi-red-dark); border-color: var(--wi-red-dark); color: var(--wi-white); }
.btn-navy { background: var(--wi-navy); border-color: var(--wi-navy); color: var(--wi-white); }
.btn-navy:hover { background: var(--wi-red); border-color: var(--wi-red); color: var(--wi-white); }
.btn-outline { background: transparent; border-color: var(--wi-navy); color: var(--wi-navy); }
.btn-outline:hover { background: var(--wi-navy); color: var(--wi-white); }
.btn-ghost { background: transparent; color: var(--wi-white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: var(--wi-white); border-color: var(--wi-white); color: var(--wi-navy); }
.btn-stone { background: var(--wi-stone); border-color: var(--wi-stone); color: var(--wi-navy); }
.btn-stone:hover { background: var(--wi-white); border-color: var(--wi-white); color: var(--wi-navy); }
a[data-pending] { cursor: not-allowed; }

/* -------------------------------------------------------------- skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--wi-stone); color: var(--wi-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: rgba(255,255,255,.97); backdrop-filter: saturate(1.3) blur(10px);
  color: var(--wi-navy); border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; padding: 16px 40px; box-sizing: border-box;
}
.wc-header__brand { flex: none; display: inline-flex; text-decoration: none; }
.wc-header__brand img { height: 44px; 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(--wi-navy); text-decoration: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font-sans); 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(--wi-red); }
.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: 0; right: 0; bottom: 0; height: 2px; background: var(--wi-red);
}
.wc-header__nav .wc-btn { padding: 13px 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); }
.wc-nav-group__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.wc-nav-group__menu {
  position: absolute; top: calc(100% + 22px); left: 50%; transform: translateX(-50%);
  min-width: 330px; z-index: 70; box-sizing: border-box;
  background: var(--wi-white); border-top: 3px solid var(--wi-red); box-shadow: var(--sh-card);
  padding: 10px; display: flex; flex-direction: column;
}
.wc-nav-group__menu[hidden] { display: none; }
.wc-nav-group__menu a {
  color: var(--wi-navy); text-decoration: none; font-family: var(--font-serif); font-size: 19px;
  padding: 12px 14px 12px 42px; display: flex; flex-direction: column; gap: 2px; position: relative;
}
.wc-nav-group__menu a::before {
  content: ""; position: absolute; left: 14px; top: 17px; width: 14px; height: 18px;
  background: var(--dot, var(--wi-red)); clip-path: var(--chevron);
}
.wc-nav-group__menu a:hover, .wc-nav-group__menu a[aria-current="page"] { background: var(--wi-stone-pale); }
.wc-nav-group__menu a span { font-family: var(--font-sans); font-size: 13px; color: var(--fg-3); }
.phase-pre  { --dot: var(--wi-slate); }
.phase-prep { --dot: var(--wi-red); }
.phase-high { --dot: var(--wi-navy); }
.wc-mobile-nav .phase-high { --dot: var(--wi-stone); }

/* ------------------------------------------------------------------ burger */
.wc-burger {
  display: none; flex: none; width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: var(--wi-stone-pale); border: 0; cursor: pointer; color: var(--wi-navy); border-radius: var(--r-sm);
}
.wc-burger:hover { background: var(--wi-stone); }
.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(--wi-navy); color: var(--wi-white); overflow-y: auto;
}
.wc-header.is-open + .wc-mobile-nav { display: block; animation: wi-fade var(--dur) var(--ease); }
@keyframes wi-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: 38px; display: block; }
.wc-mobile-nav__close {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer;
  color: var(--wi-white); font: 600 14px var(--font-sans); 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(--wi-white); text-decoration: none; font: 400 24px var(--font-serif); padding: 15px 4px;
  border-bottom: 1px solid var(--line-on-dark);
  display: flex; justify-content: space-between; align-items: center;
}
.wc-mobile-nav__inner a.sub { font: 400 16px var(--font-sans); color: var(--fg-on-dark-muted); padding: 11px 4px 11px 22px; }
.wc-mobile-nav__inner a[aria-current="page"] { color: var(--wi-stone); }
.wc-mobile-nav .idx { width: 12px; height: 15px; background: var(--dot, rgba(255,255,255,.28)); clip-path: var(--chevron); }
.wc-mobile-nav .wc-btn { margin-top: 18px; padding: 18px; font-size: 16px; }
.wc-mobile-nav .wc-btn + .wc-btn { margin-top: 10px; }

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

/* -------------------------------------------------------------------- hero */
/* Full-bleed photograph. The bottom edge is cut into a shallow chevron, the
   point of the logo shield, so every page opens on the brand shape. */
.wc-hero {
  --notch: clamp(28px, 4.5vw, 64px);
  position: relative; overflow: hidden; background: var(--wi-navy); color: var(--wi-white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), 50% 100%, 0 calc(100% - var(--notch)));
  display: flex; align-items: flex-end;
  min-height: clamp(480px, 74vh, 780px); min-height: clamp(480px, 74svh, 780px);
}
.wc-hero--home { min-height: 90vh; min-height: 90svh; }
.wc-hero--short { min-height: clamp(380px, 52vh, 520px); }
.wc-hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--hero-focus, 50% 45%);
  animation: wi-drift 30s var(--ease) both infinite alternate;
}
@keyframes wi-drift { from { transform: scale(1.02); } to { transform: scale(1.07); } }
.wc-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,13,51,.78) 0%, rgba(0,13,51,.45) 38%, rgba(0,13,51,0) 70%),
    linear-gradient(180deg, rgba(0,13,51,.3) 0%, rgba(0,13,51,0) 25%, rgba(0,13,51,0) 50%, rgba(0,13,51,.6) 100%);
}
.wc-hero--solid::after { display: none; }
.wc-hero__inner {
  position: relative; z-index: 3; width: 100%; box-sizing: border-box;
  max-width: var(--content-w); margin: 0 auto; padding: 130px 40px calc(96px + var(--notch));
}
.wc-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12.5px var(--font-sans); letter-spacing: .24em; text-transform: uppercase;
  color: var(--wi-stone); margin: 0 0 20px;
}
.wc-hero__eyebrow::before { content: ""; width: 12px; height: 15px; background: var(--wi-red); clip-path: var(--chevron); }
.wc-hero__title {
  font-family: var(--font-serif); font-weight: 400; color: var(--wi-white);
  font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.015em;
  margin: 0; max-width: 16ch; text-wrap: balance;
}
.wc-hero__title em { color: var(--wi-stone); }
.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; }

/* the big red chevron that sits behind the words on solid heroes */
.hero-chevron {
  position: absolute; z-index: 2; right: 7%; top: 50%; transform: translateY(-50%);
  width: clamp(160px, 22vw, 320px); aspect-ratio: 611 / 811; background: var(--wi-red); clip-path: var(--chevron);
  opacity: .95;
}
@media (max-width: 700px) {
  .wc-hero::after { background: linear-gradient(180deg, rgba(0,13,51,.3) 0%, rgba(0,13,51,.1) 30%, rgba(0,13,51,.55) 60%, rgba(0,13,51,.92) 100%); }
  .wc-hero__inner { padding: 100px 20px calc(60px + var(--notch)); }
  .wc-hero__title { font-size: min(10vw, 2.9rem); }
  .hero-chevron { right: -40px; top: 26%; width: 140px; opacity: .5; }
}
@media (prefers-reduced-motion: reduce) { .wc-hero__photo { animation: none !important; } }

/* ------------------------------------------------------------------ footer */
.wc-footer { position: relative; overflow: hidden; background: var(--wi-navy); color: var(--wi-white); padding: 90px 0 36px; }
.wc-footer__grid {
  position: relative; max-width: var(--content-w); margin: 0 auto; padding: 0 40px; box-sizing: border-box;
  display: grid; grid-template-columns: 1.5fr 1fr 1.4fr; gap: 56px;
}
.wc-footer__brand img { height: 100px; width: auto; display: block; margin-bottom: 24px; }
.wc-footer__tag { font: italic 300 32px/1.1 var(--font-serif); color: var(--wi-stone); margin: 0 0 18px; }
.wc-footer__col h4 {
  font: 600 12px var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--wi-slate); margin: 8px 0 18px;
}
.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,.9); text-decoration: none; }
.wc-footer__col a:hover { color: var(--wi-stone); text-decoration: underline; }
.wc-footer__social { display: flex; gap: 10px; margin-top: 8px; }
.wc-footer__social a {
  width: 42px; height: 42px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-on-dark); color: var(--wi-white);
}
.wc-footer__social a:hover { background: var(--wi-red); border-color: var(--wi-red); color: var(--wi-white); }
.wc-footer__social svg { width: 18px; height: 18px; }
.wc-footer__legal {
  position: relative; max-width: calc(var(--content-w) - 80px); margin: 64px auto 0; padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 30px;
  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 0 30px; } .wc-footer__grid { padding: 0 20px; } .wc-footer__legal { margin-left: 20px; margin-right: 20px; }
  .wc-footer__grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ------------------------------------------------------------------ dialog */
.wi-modal { border: 0; padding: 0; background: transparent; max-width: 460px; width: calc(100% - 32px); }
.wi-modal::backdrop { background: rgba(0,13,51,.66); }
.wi-modal__card {
  position: relative; background: var(--wi-white); border-top: 4px solid var(--wi-red);
  text-align: center; padding: 44px 32px 32px; box-shadow: var(--sh-card);
}
.wi-modal__eyebrow { font: 600 12px var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--wi-red); margin: 0 0 12px; }
.wi-modal__title { font-size: 2rem; margin: 0 0 12px; }
.wi-modal__body { color: var(--fg-2); font-size: 16px; margin: 0 0 24px; }
.wi-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;
}
.wi-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 { display: none !important; }
  .wc-hero { clip-path: none; min-height: 0; }
}
