/* ============================================================
   Strata — shared components
   Values ported 1:1 from the approved Concept E prototype
   (dark homepage header) and CLAUDE.md header rule (white
   interior header).
   ============================================================ */

/* ---------- Header (shared shell) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease;
}
.site-header__inner {
  max-width: var(--content); margin: 0 auto;
  padding: 0 var(--gutter); height: 72px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
}
.site-header__logo { display: flex; align-items: center; justify-self: start; }
.site-header__logo img { height: 34px; width: auto; }

.site-header__tabs {
  display: flex; gap: 38px; align-items: center;
  font-size: 16px; font-weight: 500; letter-spacing: -0.005em;
  justify-self: center;
}
.site-header__right { display: flex; gap: 24px; align-items: center; justify-self: end; }
.site-header__social { display: flex; gap: 16px; align-items: center; }
.site-header__social a { display: flex; }
.site-header__about { font-size: 16px; font-weight: 500; }

.btn-cta {
  background: var(--st-violet); color: #fff;
  border-radius: var(--radius-md);
  padding: 13px 26px; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center;
  white-space: nowrap;
}
.btn-cta:hover { background: var(--st-violet-press); color: #fff; }

/* Dark variant — HOMEPAGE ONLY (Concept E) */
.site-header--dark { background: transparent; border-bottom: 1px solid transparent; }
.site-header--dark.is-solid {
  background: rgba(11, 20, 36, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--st-bone-hairline);
}
.site-header--dark .site-header__tabs a,
.site-header--dark .site-header__about,
.site-header--dark .site-header__social a { color: var(--st-bone); }
.site-header--dark .site-header__tabs a:hover,
.site-header--dark .site-header__about:hover,
.site-header--dark .site-header__social a:hover { color: var(--st-violet); }

/* White variant — ALL INTERIOR PAGES (CLAUDE.md header rule):
   solid white from the start, blurple wordmark, near-black tabs,
   Midnight social icons (Brian-confirmed C6). */
.site-header--light {
  background: var(--st-white);
  border-bottom: 1px solid var(--st-hairline);
}
.site-header--light .site-header__tabs a,
.site-header--light .site-header__about,
.site-header--light .site-header__social a { color: var(--st-midnight); }
.site-header--light .site-header__tabs a:hover,
.site-header--light .site-header__about:hover,
.site-header--light .site-header__social a:hover { color: var(--st-violet); }
.site-header--light .site-header__tabs a[aria-current="page"] { color: var(--st-violet); }

/* Mobile menu trigger */
.menu-btn {
  width: 44px; height: 44px; border: 1px solid rgba(247, 243, 234, 0.35);
  border-radius: var(--radius-md); background: transparent;
  display: none; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center; cursor: pointer;
  grid-column: 3; justify-self: end; padding: 0;
}
.menu-btn span { width: 18px; height: 2px; background: var(--st-bone); display: block; }
.site-header--light .menu-btn { border-color: var(--st-hairline); background: var(--st-white); }
.site-header--light .menu-btn span { background: var(--st-midnight); }

/* Full-screen mobile menu (Midnight, Concept E) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--st-midnight); color: var(--st-bone);
  display: none; flex-direction: column; padding: 24px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__top img { height: 32px; width: auto; }
.mobile-menu__close {
  width: 44px; height: 44px; border: 1px solid rgba(247, 243, 234, 0.3);
  border-radius: var(--radius-md); background: transparent;
  color: var(--st-bone); font-size: 18px; cursor: pointer;
}
.mobile-menu__services {
  display: flex; flex-direction: column; gap: 8px; margin-top: 56px;
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; font-size: 34px; line-height: 1.15;
}
.mobile-menu__services a { color: var(--st-bone); padding: 8px 0; }
.mobile-menu__utility { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.mobile-menu__utility .mobile-menu__about { color: var(--st-bone); font-size: 17px; font-weight: 500; padding: 8px 0; }
.mobile-menu__utility .btn-cta { padding: 16px 28px; font-size: 16px; text-align: center; justify-content: center; }
.mobile-menu__social { display: flex; gap: 26px; justify-content: center; margin-top: 6px; }
.mobile-menu__social a { color: var(--st-bone); display: flex; }
.mobile-menu__social a:hover { color: var(--st-violet); }

/* ---------- Buttons (page level) ---------- */
.btn-primary {
  background: var(--st-violet); color: #fff;
  border-radius: var(--radius-md);
  padding: 16px 32px; font-size: 15.5px; font-weight: 600;
  display: inline-flex; align-items: center;
  min-height: 48px;
}
.btn-primary:hover { background: var(--st-violet-press); color: #fff; }

.btn-secondary-dark {
  border: 1px solid rgba(247, 243, 234, 0.4); color: var(--st-bone);
  border-radius: var(--radius-md);
  padding: 15px 30px; font-size: 15.5px; font-weight: 600;
  display: inline-flex; align-items: center;
  min-height: 48px;
}
.btn-secondary-dark:hover { color: var(--st-bone); border-color: rgba(247, 243, 234, 0.7); }

.link-arrow { font-size: 15.5px; font-weight: 600; }
.link-arrow--bone { color: var(--st-bone); }
.link-arrow--bone:hover { color: var(--st-bone); opacity: 0.85; }

/* ---------- Numbered row (NIL / International grammar) ---------- */
.num-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(12px, 2vw, 40px);
  padding: 28px 0; align-items: start;
  border-bottom: 1px solid var(--st-hairline);
  opacity: 0; transform: translateY(30px);
}
.num-row:first-of-type { border-top: 1px solid var(--st-hairline); }
.num-row.is-in { opacity: 1; transform: translateY(0); }
.num-row__n { font-family: var(--font-mono); font-size: 13px; color: var(--st-violet); }
.num-row h3 { font-size: 21px; font-weight: 600; color: var(--st-midnight); }
.num-row p { font-size: 15.5px; line-height: 1.62; color: var(--st-slate); text-wrap: pretty; }
/* stagger: 0.6s per row, as prototyped (sibling combinators — immune to
   other divs in the section) */
.num-row { transition: opacity .75s ease, transform .75s ease; }
.num-row.is-in + .num-row.is-in { transition-delay: 0.6s; }
.num-row.is-in + .num-row.is-in + .num-row.is-in { transition-delay: 1.2s; }

/* ---------- Soft Violet flip card (Sports Law grammar) ---------- */
.flip-card {
  background: var(--st-soft-violet); border-radius: 14px; padding: 30px;
  opacity: 0; transform-origin: left center;
  transform: perspective(900px) rotateY(-90deg);
  transition: opacity .5s ease, transform .5s ease;
}
.flip-card.is-in { opacity: 1; transform: perspective(900px) rotateY(0deg); }
.flip-card.is-in + .flip-card.is-in { transition-delay: 0.45s; }
.flip-card.is-in + .flip-card.is-in + .flip-card.is-in { transition-delay: 0.9s; }
/* Mobile reveals fire per element as it scrolls in; desktop stagger delays would just read as lag. */
@media (max-width: 767px) {
  .num-row.is-in + .num-row.is-in,
  .num-row.is-in + .num-row.is-in + .num-row.is-in,
  .flip-card.is-in + .flip-card.is-in,
  .flip-card.is-in + .flip-card.is-in + .flip-card.is-in { transition-delay: 0s; }
}
.flip-card__n { font-family: var(--font-mono); font-size: 13px; color: var(--st-violet); margin-bottom: 14px; }
.flip-card h3 { font-size: 20px; font-weight: 600; color: var(--st-midnight); }
.flip-card p {
  font-size: 15.5px; line-height: 1.6; color: var(--st-ink-soft);
  margin-top: 12px; font-weight: 500; text-wrap: pretty;
}

/* ---------- Eyebrow one-shot pulse (Concept E stPulse) ---------- */
@keyframes stPulse {
  0%   { transform: scale(1);    color: var(--st-violet); text-shadow: none; }
  35%  { transform: scale(1.05); color: var(--st-cobalt); text-shadow: 0 0 4px rgba(87, 70, 232, 0.18); }
  100% { transform: scale(1);    color: var(--st-violet); text-shadow: none; }
}
.eyebrow-mono.do-pulse { animation: stPulse 0.9s ease-in-out 2.2s 1; }

/* ---------- Disclosure footnote ---------- */
.disclosure {
  font-size: 14px; line-height: 1.6; color: var(--st-slate);
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid var(--st-hairline);
  max-width: 78ch;
}

/* ---------- Section split grid (headline | lead) ---------- */
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.split-head h2 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(36px, 4.4vw, 68px); line-height: 0.94; color: var(--st-midnight);
}
.split-head .lead {
  font-size: 17.5px; line-height: 1.65; color: var(--st-slate);
  max-width: 52ch; text-wrap: pretty;
}

/* ---------- CTA pulse (final CTA one-shot) ---------- */
@keyframes ctaPulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(87, 70, 232, 0.7); }
  45%  { transform: scale(1.13); box-shadow: 0 0 0 24px rgba(87, 70, 232, 0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(87, 70, 232, 0); }
}
.btn-final {
  background: var(--st-violet); color: #fff;
  border-radius: var(--radius-md); padding: 17px 38px;
  font-size: 16px; font-weight: 600;
  display: inline-flex; align-items: center; min-height: 52px;
}
.btn-final:hover { background: var(--st-violet-press); color: #fff; }
.btn-final.do-pulse { animation: ctaPulse 1.15s ease-out 1; }

/* ---------- 60px platform-color social circles ---------- */
.social-circles {
  display: flex; gap: 22px; justify-content: center; align-items: center;
  margin-top: 56px;
}
.social-circle {
  width: 60px; height: 60px; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: transform .15s ease;
}
.social-circle:hover { transform: scale(1.08); color: #fff; }
.social-circle--yt { background: #FF0000; }
.social-circle--ig {
  background: radial-gradient(circle at 30% 110%, #FFDC80 0%, #FCAF45 12%, #F77737 26%, #F56040 38%, #FD1D1D 50%, #E1306C 62%, #C13584 74%, #833AB4 88%, #5851DB 100%);
}
.social-circle--tt { background: #010101; border: 1px solid rgba(247, 243, 234, 0.25); position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--st-midnight);
  border-top: 1px solid var(--st-bone-hairline);
  padding: clamp(56px, 6vw, 88px) var(--gutter) 40px;
}
.site-footer__inner { max-width: var(--content); margin: 0 auto; }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(32px, 4vw, 72px);
}
.site-footer__brand img { height: 20px; width: auto; }
.site-footer__statement {
  font-size: 15px; line-height: 1.65; color: var(--st-bone-75);
  margin-top: 20px; max-width: 40ch; text-wrap: pretty;
}
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.site-footer__col-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--st-steel); margin-bottom: 6px;
}
.site-footer__col a { color: var(--st-bone); }
.site-footer__col a:hover { color: var(--st-violet); }
.site-footer__contact { color: var(--st-bone-75); }
.site-footer__contact p { line-height: 1.6; }
.site-footer__social-row {
  display: flex; gap: 36px; justify-content: center; align-items: center;
  margin-top: 52px;
}
.site-footer__social-row a { display: flex; color: var(--st-bone); }
.site-footer__social-row a:hover { color: var(--st-violet); }
.site-footer__legal {
  border-top: 1px solid var(--st-bone-hairline);
  margin-top: 32px; padding-top: 28px;
}
.site-footer__legal p {
  font-size: 13.5px; line-height: 1.7; color: var(--st-steel);
  max-width: 100ch; text-wrap: pretty;
}
.site-footer__legal p + p { margin-top: 12px; }
.site-footer__legal .copyright { margin-top: 16px; }
.cookie-prefs-link {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--st-bone); font-size: 14.5px; font-family: var(--font-body);
  text-align: left;
}
.cookie-prefs-link:hover { color: var(--st-violet); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  max-width: 560px; margin: 0 auto;
  background: var(--st-white); border: 1px solid var(--st-hairline);
  border-radius: var(--radius-lg); padding: 22px 24px;
  box-shadow: var(--shadow-float);
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: 14px; line-height: 1.6; color: var(--st-navy); }
.cookie-banner__actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.cookie-banner__actions button {
  cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 14px;
  border-radius: var(--radius-pill); padding: 10px 18px; min-height: 44px;
}
.cookie-banner__accept { background: var(--st-violet); color: #fff; border: none; }
.cookie-banner__accept:hover { background: var(--st-violet-press); }
.cookie-banner__essential { background: transparent; color: var(--st-navy); border: 1px solid var(--st-hairline); }

/* ---------- Responsive: mobile/tablet ---------- */
@media (max-width: 767px) {
  .site-header__tabs, .site-header__right { display: none; }
  .menu-btn { display: flex; }
  .num-row { grid-template-columns: 1fr; }
  .split-head { grid-template-columns: 1fr; align-items: start; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
