@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
  Natural Hair Lounge — Design System
  Structurally adopted from INFINIVATE_HOME (Infinivate Design System):
  Font: Inter | Layout: persistent left sidebar nav (see
  includes/layout-head.php and the sidebar block below) instead of a
  top-nav bar. Palette is NHL's own communication palette (green-forward),
  not Infinivate's blue — the token *names* are shared, the values aren't.
  Component CSS specific to this site (cards, tables, calendar, forms,
  badges, invoice) lives in site.css, built from these same tokens.
  ============================================================ */

:root {
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Text */
  --ink:          #000000;
  --muted:        #362c2a;
  --muted-light:  #4d6456;

  /* Surfaces */
  --paper:        #ffffff;
  --soft:         #f3f6f4;
  --soft-2:       #e4ece8;

  /* Borders */
  --line:         #d6e2dc;
  --line-strong:  #4d6456;

  /* Brand — NHL communication palette (primary green baseline) */
  --brand:        #3f6253;
  --brand-hover:  #365547;
  --brand-dark:   #2f4a3f;
  --brand-light:  #eef4f1;
  --brand-soft:   #dbe8e2;

  /* Accent palette */
  --accent:       #99612e;
  --accent-soft:  #f3e8df;

  /* Semantic status — mapped to palette-compliant tones */
  --warn:         #d4af37;
  --warn-soft:    #f7eed2;
  --danger:       #c65102;
  --danger-soft:  #f9e4d6;
  --danger-rose:  #c65102;
  --danger-rose-soft: #f7e1d2;
  --accent-border: rgba(153, 97, 46, 0.30);
  --danger-border: rgba(198, 81, 2, 0.28);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* Layout */
  --max: 1160px;
  --sidebar: 268px;

  /* Radii */
  --r-sm:  5px;
  --r-md:  8px;
  --r-lg: 10px;
  --r-xl: 14px;
}

/* ── Reset ─────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--soft);
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1.5px solid rgba(63, 98, 83, 0.55);
  outline-offset: 1px;
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: none;
}

h1 { font-size: clamp(1.875rem, 3.2vw, 2.625rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.25rem, 2vw, 1.625rem); }
h3 { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; }

.motion-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 320ms ease, transform 320ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.85em;
  background: var(--soft-2);
  padding: 2px 6px;
  border-radius: var(--r-sm);
}

/* ── Accessibility helpers ───────────────────────────────── */

.screen-reader-text {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
}

/* ── Sidebar nav ───────────────────────────────────────────
   Structural pattern adopted from INFINIVATE_HOME: a persistent, fixed
   left sidebar instead of a top nav bar. Same idea site-wide, for every
   role — the sidebar just renders whatever nhl_nav_links()/
   nhl_account_nav_links() return for the current user (see
   includes/layout-head.php). ─────────────────────────────────────── */

.site-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 30;
  width: var(--sidebar);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: inherit;
}

.brand img {
  width: 38px;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}

.brand:hover strong { color: var(--brand); }

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}

.nav-group { display: flex; flex-direction: column; }

.nav-link,
.nav-parent {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  border-left: 3px solid transparent;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  transition: background 130ms ease, color 130ms ease, border-color 130ms ease;
}

.nav-link:hover,
.nav-parent:hover {
  background: var(--soft);
  color: var(--ink);
  border-left-color: var(--line-strong);
}

.nav-link.active,
.nav-parent.active {
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
  border-left-color: var(--brand);
}

.nav-link:focus-visible,
.nav-parent:focus-visible,
.sub-menu a:focus-visible,
.nav-cta:focus-visible {
  background: var(--brand-light);
  color: var(--brand);
  border-left-color: var(--brand);
}

.nav-parent {
  width: 100%;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  justify-content: space-between;
}

.nav-parent::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.45;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 130ms ease;
}

.nav-group.open .nav-parent::after {
  transform: rotate(-135deg) translateY(1px);
}

.sub-menu {
  display: none;
  flex-direction: column;
  gap: 1px;
  margin: 2px 0 4px 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.nav-group.open > .sub-menu,
.nav-group:focus-within > .sub-menu {
  display: flex;
}

.sub-menu a {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 9px;
  border-radius: var(--r-sm);
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--muted);
}

.sub-menu a:hover { background: var(--soft); color: var(--ink); }
.sub-menu a.active { background: var(--brand-light); color: var(--brand); }

.nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 10px 4px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 1px 3px rgba(63, 98, 83, 0.28);
  transition: background 130ms ease, box-shadow 130ms ease;
}

.nav-cta:hover {
  background: var(--brand-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(63, 98, 83, 0.32);
}

body.page-book .nav-cta,
body.page-payment-redirect .nav-cta,
body.page-payment-return .nav-cta,
body.page-payment-cancel .nav-cta {
  display: none;
}

.nav-section-label {
  margin: 14px 10px 4px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.sidebar-contact {
  margin-top: auto;
  padding: 14px 10px 2px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 5px;
  font-size: 0.775rem;
  color: var(--muted);
}

.sidebar-contact a {
  color: var(--brand);
  font-weight: 600;
}

/* Mobile hamburger toggle + scrim */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.nav-toggle .bar1,
.nav-toggle .bar2,
.nav-toggle .bar3 {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px auto;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] .bar1 { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar3 { transform: translateY(-6px) rotate(-45deg); }

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(0, 0, 0, 0.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 190ms ease;
}

body.nav-open .nav-scrim {
  opacity: 1;
  pointer-events: auto;
}

/* Content offset for the fixed sidebar — not applied to #page itself since
   #page also wraps the skip-link (position: absolute, off-canvas). */
main#primary,
.site-footer {
  margin-left: var(--sidebar);
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52vh;
  padding: clamp(56px, 8vw, 100px) clamp(28px, 5vw, 72px);
  color: #fff;
  overflow: hidden;
  background: linear-gradient(112deg, rgba(63, 98, 83, 0.95) 0%, rgba(77, 100, 86, 0.88) 52%, rgba(153, 97, 46, 0.8) 100%);
}

.hero::after {
  content: "Natural Hair Specialists  ·  Protective Styling  ·  Healthy Hair Journey";
  position: absolute;
  right: clamp(28px, 5vw, 72px);
  bottom: 28px;
  padding: 9px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero .eyebrow { color: #d4af37; }

.hero h1 { color: #fff; margin-bottom: 12px; }

.hero-lead {
  max-width: 580px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 0;
}

.hero-intent {
  margin-top: 12px;
  margin-bottom: 0;
  max-width: 560px;
  font-size: 0.79rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-actions .btn-outline {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

/* Page header — compact hero used on every non-home page */
.page-header {
  padding: clamp(36px, 5vw, 56px) clamp(20px, 4vw, 40px);
  background: linear-gradient(112deg, rgba(63, 98, 83, 0.95) 0%, rgba(77, 100, 86, 0.88) 52%, rgba(153, 97, 46, 0.8) 100%);
  color: #fff;
}

.page-header h1 { color: #fff; margin: 0 0 8px; }
.page-header .eyebrow { color: #d4af37; }

.page-header h1,
.hero h1,
.section h2 {
  text-wrap: balance;
}

body.legal-page .page-header .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted-light);
}

body.legal-page .page-header h1 {
  color: var(--ink);
  font-size: clamp(1.46rem, 2.6vw, 1.98rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

body.legal-page .page-header {
  background: var(--paper);
  border-bottom: 1px solid var(--soft-2);
  padding-top: clamp(26px, 3.8vw, 38px);
  padding-bottom: clamp(26px, 3.8vw, 38px);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  padding: 8px 18px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 1px 3px rgba(63, 98, 83, 0.28);
}

.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(63, 98, 83, 0.32);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--soft);
  border-color: var(--brand);
  color: var(--brand);
}

.btn-secondary {
  background: var(--soft);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand);
}

/* Outline buttons inside a dark hero/page-header need light borders */
.hero .btn-outline,
.page-header .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero .btn-outline:hover,
.page-header .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.btn-small {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 0.75rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn.is-loading {
  position: relative;
  padding-right: 34px;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: btn-spin 700ms linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.captcha-block {
  display: grid;
  gap: 8px;
}

.captcha-image {
  display: block;
  max-width: 220px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin: 0;
  background: var(--paper);
}

.captcha-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.captcha-input-row input {
  flex: 1 1 180px;
  min-width: 0;
}

.captcha-status {
  min-height: 1.1em;
  margin: 0;
  font-size: 0.77rem;
  color: var(--muted);
}

.captcha-status.is-loading {
  color: var(--muted-light);
}

.captcha-status.is-error {
  color: var(--danger);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--brand);
  transition: color 130ms ease;
}

.link-arrow:hover { color: var(--brand-dark); }

/* ── Sections ────────────────────────────────────────────── */

.section {
  padding: clamp(52px, 6vw, 84px) clamp(28px, 5vw, 72px);
  background: var(--paper);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-inner > p,
.section-inner > ul,
.section-inner > ol {
  max-width: 70ch;
}

.section-inner.narrow { max-width: 560px; }

body.legal-page .section-inner.narrow {
  font-size: 0.92rem;
  line-height: 1.62;
  max-width: 716px;
}

body.legal-page .section-inner.narrow a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(63, 98, 83, 0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 130ms ease, text-decoration-color 130ms ease;
}

body.legal-page .section-inner.narrow a:hover {
  color: var(--brand-dark);
  text-decoration-color: rgba(47, 74, 63, 0.36);
}

body.legal-page .section-inner.narrow h2 {
  margin-top: 20px;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: clamp(1.12rem, 1.55vw, 1.34rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  scroll-margin-top: 82px;
}

body.legal-page .section-inner.narrow h2:not(:first-of-type) {
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

body.legal-page .section-inner.narrow h3 {
  margin-top: 13px;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 0.89rem;
  font-weight: 600;
}

body.legal-page .section-inner.narrow {
  position: relative;
}

.legal-quick-nav {
  margin: 8px 0 24px;
  padding: 10px;
  border: 1px solid var(--soft-2);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: none;
}

.legal-read-progress {
  height: 3px;
  width: 100%;
  border-radius: 999px;
  background: var(--soft-2);
  margin: 0 0 10px;
  overflow: hidden;
}

.legal-read-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 130ms linear;
}

.legal-quick-nav-title {
  margin: 0 0 7px;
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.legal-quick-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.legal-quick-nav-list a {
  display: block;
  min-height: 27px;
  padding: 5px 7px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  transition: background 130ms ease, color 130ms ease, border-left-color 130ms ease;
}

.legal-quick-nav-list a:hover {
  background: var(--soft);
  color: var(--ink);
  border-left-color: var(--line-strong);
}

.legal-quick-nav-list a.is-current {
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
  border-left-color: var(--brand);
}

body.legal-page .section-inner.narrow p,
body.legal-page .section-inner.narrow li {
  line-height: 1.68;
  max-width: 70ch;
}

body.legal-page .section-inner.narrow p {
  margin-bottom: 0.8em;
}

body.legal-page .section-inner.narrow ul {
  margin-top: 8px;
  margin-bottom: 12px;
  padding-left: 18px;
}

body.legal-page .section-inner.narrow p + p,
body.legal-page .section-inner.narrow ul + p,
body.legal-page .section-inner.narrow p + ul {
  margin-top: 8px;
}

body.legal-page .section-inner.narrow .muted {
  font-size: 0.79rem;
  color: var(--muted-light);
}

body.legal-page .section-inner.narrow .check-list {
  gap: 10px;
}

body.legal-page .section-inner.narrow .check-list li {
  padding-left: 18px;
  font-size: 0.86rem;
}

body.legal-page .section-inner.narrow .check-list li::before {
  width: 8px;
  height: 8px;
  top: 6px;
  background: var(--line-strong);
  box-shadow: none;
}

.section-muted { background: var(--soft); }

.muted { color: var(--muted); }

/* CTA band */
.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--accent) 100%);
  color: #fff;
}

.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.82); max-width: 560px; margin: 0 auto 22px; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cta .btn-primary { background: #fff; border-color: #fff; color: var(--brand-dark); }
.cta .btn-primary:hover { background: var(--brand-light); border-color: var(--brand-light); }

.category-heading {
  margin-top: 36px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.category-heading:first-child { margin-top: 0; }

.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 0.9rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.65);
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 32px clamp(28px, 5vw, 72px) 24px;
}

/* Also reused outside the footer (php/invoice.php's "Billed To"/"Stylist"
   labels on a white background), so the base rule must work on light
   surfaces — the footer's own dark-surface colors are scoped below. */
.footer-site-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.footer-heading {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.site-footer .footer-site-title { color: #fff; }
.site-footer .footer-heading { color: rgba(255, 255, 255, 0.9); }

.footer-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.site-footer .footer-quick-actions .btn {
  min-height: 32px;
  font-size: 0.75rem;
}

.site-footer .footer-quick-actions .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--brand-dark);
}

.site-footer .footer-quick-actions .btn-primary:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
}

.site-footer .footer-quick-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.site-footer .footer-quick-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.site-footer p { color: rgba(255, 255, 255, 0.65); margin: 0; font-size: 0.8125rem; }

.site-footer .footer-heading,
.site-footer .footer-links a,
.site-footer p {
  line-height: 1.55;
}

.site-footer .footer-links a {
  font-size: 0.78rem;
}

.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
  font-size: 0.775rem;
}

.site-info {
  padding: 14px clamp(20px, 4vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.75rem;
}

.site-info p { color: rgba(255, 255, 255, 0.55); }

.mobile-book-bar-spacer {
  display: none;
}

.mobile-book-bar {
  display: none;
}

body.nav-open .mobile-book-bar {
  opacity: 0;
  pointer-events: none;
}

/* ── Mobile ──────────────────────────────────────────────── */

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 40;
  }
  .nav-scrim { display: block; }

  .site-sidebar {
    width: min(84vw, 296px);
    transform: translateX(-105%);
    transition: transform 200ms ease;
  }

  body.nav-open .site-sidebar {
    transform: translateX(0);
  }

  main#primary,
  .site-footer {
    margin-left: 0;
  }

  .hero::after {
    display: none;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 28px;
    padding-bottom: 22px;
  }

  .site-footer .footer-quick-actions {
    margin-bottom: 10px;
  }

  .mobile-book-bar-spacer {
    display: block;
    height: 80px;
  }

  .mobile-book-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 35;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mobile-book-bar.is-hidden {
    transform: translateY(112%);
    opacity: 0;
    pointer-events: none;
  }

  .mobile-book-bar .btn {
    min-height: 42px;
    font-size: 0.78rem;
    width: 100%;
  }

  body.legal-page .page-header {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  body.legal-page .page-header h1 {
    font-size: clamp(1.45rem, 5.4vw, 2rem);
  }

  body.legal-page .section-inner.narrow {
    font-size: 0.89rem;
    line-height: 1.62;
  }

  body.legal-page .section-inner.narrow h2 {
    font-size: clamp(1rem, 3.4vw, 1.16rem);
    scroll-margin-top: 76px;
  }

  body.legal-page .section-inner.narrow h2:not(:first-of-type) {
    margin-top: 18px;
    padding-top: 10px;
  }

  .legal-quick-nav {
    margin: 0 0 18px;
    padding: 8px;
    background: var(--paper);
  }

  .legal-quick-nav-title {
    margin-bottom: 6px;
    font-size: 0.67rem;
  }

  .legal-quick-nav-list {
    gap: 4px;
  }

  .legal-quick-nav-list a {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 0.74rem;
    border-left-width: 2px;
  }

  body.legal-page .section-inner.narrow p,
  body.legal-page .section-inner.narrow li {
    max-width: 62ch;
    line-height: 1.58;
  }
}

@media (max-width: 520px) {
  .hero { min-height: 38vh; }

  .hero-intent {
    font-size: 0.78rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .mobile-book-bar {
    grid-template-columns: 1fr;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .mobile-book-bar-spacer {
    height: 124px;
  }

  .legal-quick-nav {
    margin-top: 0;
    padding: 10px;
    position: static;
  }

  body.legal-page .page-header {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  body.legal-page .section-inner.narrow {
    font-size: 0.86rem;
    line-height: 1.56;
  }

  body.legal-page .section-inner.narrow .muted {
    font-size: 0.76rem;
  }

  .legal-quick-nav-list a {
    font-size: 0.7rem;
  }

  .hero::after {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .motion-ready .reveal-on-scroll,
  .motion-ready .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
