/* ==========================================================================
   Majanja Law — Design System
   Zero-dependency stylesheet. System fonts only. No frameworks.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Palette */
  --navy-950: #071120;
  --navy-900: #0b1a2e;
  --navy-800: #10243e;
  --navy-700: #16305a;
  --navy-600: #1e3d6e;
  --gold-600: #a9883a;
  --gold-500: #c2a14d;
  --gold-400: #d3b96f;
  --gold-300: #e4d3a0;
  --cream: #f8f5ef;
  --ivory: #fdfcf9;
  --ink: #1c2430;
  --muted: #5b6572;
  --line: #e4ded2;
  --white: #ffffff;
  --success: #1e7d4f;
  --error: #b3372f;

  /* Typography */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --container: 1180px;
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 10px;
  --radius-lg: 18px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 26, 46, 0.06), 0 2px 8px rgba(11, 26, 46, 0.05);
  --shadow-md: 0 6px 18px rgba(11, 26, 46, 0.10), 0 2px 6px rgba(11, 26, 46, 0.06);
  --shadow-lg: 0 24px 48px -12px rgba(11, 26, 46, 0.25);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 0.55s;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

::selection {
  background: var(--gold-500);
  color: var(--navy-950);
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- 3. Layout utilities ---------- */
.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}

.section--cream {
  background: var(--cream);
}

.section--navy {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(194, 161, 77, 0.14), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-950) 100%);
  color: rgba(255, 255, 255, 0.82);
}
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 2px;
  background: var(--gold-500);
}
.section-head--center .eyebrow::after {
  content: "";
  width: 2.4rem;
  height: 2px;
  background: var(--gold-500);
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 62ch;
}
.section--navy .section-lead {
  color: rgba(255, 255, 255, 0.72);
}
.section-head--center .section-lead {
  margin-inline: auto;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
  will-change: transform;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500) 55%, var(--gold-600));
  color: var(--navy-950);
  box-shadow: 0 10px 24px -8px rgba(194, 161, 77, 0.55);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(194, 161, 77, 0.6);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}
.btn--outline-light:hover {
  border-color: var(--gold-500);
  color: var(--gold-300);
  transform: translateY(-2px);
}

.btn--outline-navy {
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn--outline-navy:hover {
  background: var(--navy-800);
  color: var(--white);
  transform: translateY(-2px);
}

.btn .btn-arrow {
  transition: transform 0.35s var(--ease);
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--gold-600);
  border-bottom: 2px solid transparent;
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}
.text-link:hover {
  gap: 0.8rem;
  border-color: var(--gold-500);
}

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 17, 32, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45);
  border-color: rgba(194, 161, 77, 0.18);
}
.site-header--solid {
  background: rgba(7, 17, 32, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(194, 161, 77, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--white);
}
.brand-mark {
  width: 46px;
  height: 46px;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-tag {
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950) !important;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav-cta::after {
  display: none;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(194, 161, 77, 0.55);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease),
    top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 23px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 23px;
  transform: rotate(-45deg);
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 9.5rem 0 5rem;
  color: var(--white);
  background:
    radial-gradient(1000px 540px at 88% -8%, rgba(194, 161, 77, 0.20), transparent 58%),
    radial-gradient(700px 500px at -10% 110%, rgba(30, 61, 110, 0.55), transparent 60%),
    linear-gradient(158deg, var(--navy-900) 0%, var(--navy-800) 52%, var(--navy-950) 100%);
  overflow: hidden;
}
.hero::before {
  /* Subtle pinstripe texture, pure CSS */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.022) 0 1px,
    transparent 1px 9px
  );
  pointer-events: none;
}
.hero::after {
  content: "§";
  position: absolute;
  right: -3rem;
  bottom: -9rem;
  font-family: var(--font-display);
  font-size: clamp(22rem, 38vw, 34rem);
  line-height: 1;
  color: rgba(194, 161, 77, 0.07);
  pointer-events: none;
  user-select: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-300);
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(194, 161, 77, 0.35);
  border-radius: 999px;
  background: rgba(194, 161, 77, 0.08);
  margin-bottom: 1.75rem;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.6rem, 5.6vw, 4.3rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-400);
}

.hero-lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 54ch;
  margin-bottom: 2.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}
.hero-badge svg {
  width: 22px;
  height: 22px;
  color: var(--gold-400);
  flex: none;
}

/* Hero card */
.hero-card {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(194, 161, 77, 0.3);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}
.hero-card .scales {
  width: 74px;
  height: 74px;
  color: var(--gold-400);
  margin-bottom: 1.4rem;
}
.hero-card h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.hero-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}
.hero-card blockquote {
  border-left: 3px solid var(--gold-500);
  padding-left: 1.1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--gold-300);
  margin-bottom: 0.6rem;
}
.hero-card cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--gold-500), transparent);
  animation: scroll-pulse 2.2s var(--ease) infinite;
}
@keyframes scroll-pulse {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 7. Trust strip ---------- */
.trust-strip {
  background: var(--navy-950);
  border-top: 1px solid rgba(194, 161, 77, 0.2);
  padding: 1.4rem 0;
  color: rgba(255, 255, 255, 0.6);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 3rem;
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trust-strip svg {
  width: 18px;
  height: 18px;
  color: var(--gold-500);
}

/* ---------- 8. Cards & grids ---------- */
.grid {
  display: grid;
  gap: 1.6rem;
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--gold-400), var(--gold-600));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-300);
}
.card:hover::before {
  transform: scaleY(1);
}

.card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  color: var(--gold-400);
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: 1.28rem;
  margin-bottom: 0.6rem;
}
.card p {
  color: var(--muted);
  font-size: 0.97rem;
  margin-bottom: 1.1rem;
}
.card .text-link {
  font-size: 0.92rem;
}

/* ---------- 9. Split (about preview / generic) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  min-height: 460px;
  background:
    radial-gradient(500px 300px at 80% 10%, rgba(194, 161, 77, 0.25), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  color: var(--gold-400);
}
.split-media::before {
  content: "§";
  position: absolute;
  font-family: var(--font-display);
  font-size: 24rem;
  line-height: 1;
  color: rgba(194, 161, 77, 0.1);
  user-select: none;
}
.split-media .frame {
  position: absolute;
  inset: 1.4rem;
  border: 1px solid rgba(194, 161, 77, 0.35);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}
.split-media .scales-large {
  position: relative;
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.experience-badge {
  position: absolute;
  right: 1.8rem;
  bottom: 1.8rem;
  background: var(--white);
  color: var(--navy-900);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--gold-500);
}
.experience-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}
.experience-badge span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.check-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.8rem 0 2.2rem;
}
.check-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-weight: 600;
  color: var(--navy-800);
}
.check-list svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--gold-600);
  margin-top: 0.15rem;
}

/* ---------- 10. Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat {
  position: relative;
  padding: 0.5rem 1rem;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  color: var(--gold-400);
  line-height: 1.05;
}
.stat-label {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

/* ---------- 11. Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.8rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    background 0.4s var(--ease);
}
.step:hover {
  transform: translateY(-5px);
  border-color: rgba(194, 161, 77, 0.5);
  background: rgba(255, 255, 255, 0.08);
}
.step-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold-400);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}
.step h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}
.step p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.66);
}

/* ---------- 12. Team ---------- */
.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem 1.8rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.avatar {
  width: 108px;
  height: 108px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--gold-300);
  background:
    radial-gradient(circle at 30% 25%, rgba(194, 161, 77, 0.25), transparent 55%),
    linear-gradient(150deg, var(--navy-700), var(--navy-950));
  border: 3px solid var(--gold-500);
  box-shadow: var(--shadow-md);
}
.team-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}
.team-role {
  color: var(--gold-600);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.team-card p {
  color: var(--muted);
  font-size: 0.95rem;
}
.team-creds {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- 13. Testimonials ---------- */
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.3rem 2.1rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote-card::before {
  content: "\201C";
  position: absolute;
  top: 0.6rem;
  right: 1.4rem;
  font-family: var(--font-display);
  font-size: 5.5rem;
  color: var(--gold-300);
  line-height: 1;
}
.quote-card p {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--navy-800);
  margin-bottom: 1.5rem;
  position: relative;
}
.quote-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.quote-author .avatar {
  width: 52px;
  height: 52px;
  font-size: 1.05rem;
  margin: 0;
  border-width: 2px;
}
.quote-author strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.98rem;
}
.quote-author span {
  font-size: 0.84rem;
  color: var(--muted);
}
.stars {
  color: var(--gold-500);
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ---------- 14. CTA band ---------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(700px 340px at 12% 0%, rgba(194, 161, 77, 0.22), transparent 60%),
    linear-gradient(140deg, var(--navy-900), var(--navy-950));
  border-radius: var(--radius-lg);
  padding: clamp(2.8rem, 6vw, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: "§";
  position: absolute;
  right: 2rem;
  top: -4rem;
  font-family: var(--font-display);
  font-size: 15rem;
  color: rgba(194, 161, 77, 0.1);
  pointer-events: none;
}
.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 22ch;
  position: relative;
  z-index: 1;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.6rem;
  position: relative;
  z-index: 1;
}
.cta-band .btn {
  position: relative;
  z-index: 1;
}

/* ---------- 15. Page hero (inner pages) ---------- */
.page-hero {
  padding: 11rem 0 5rem;
  background:
    radial-gradient(800px 380px at 82% -10%, rgba(194, 161, 77, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, var(--navy-950));
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.02) 0 1px,
    transparent 1px 9px
  );
}
.page-hero .container {
  position: relative;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  max-width: 20ch;
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 60ch;
}
.crumbs {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: 1.4rem;
}
.crumbs a {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  transition: color 0.3s;
}
.crumbs a:hover {
  color: var(--white);
}

/* ---------- 16. Practice detail ---------- */
.practice-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.practice-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.practice-item .card-icon {
  width: 72px;
  height: 72px;
  margin: 0;
}
.practice-item .card-icon svg {
  width: 34px;
  height: 34px;
}
.practice-item h2 {
  font-size: 1.55rem;
  margin-bottom: 0.6rem;
}
.practice-item > div > p {
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.tag-list li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

/* ---------- 17. Timeline ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: 2.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gold-500), rgba(194, 161, 77, 0.15));
}
.timeline-item {
  position: relative;
  padding-bottom: 2.6rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 3px solid var(--gold-500);
  box-shadow: 0 0 0 5px rgba(194, 161, 77, 0.15);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-600);
  font-weight: 700;
}
.timeline-item h3 {
  font-size: 1.2rem;
  margin: 0.3rem 0 0.4rem;
}
.timeline-item p {
  color: var(--muted);
  max-width: 58ch;
}

/* ---------- 18. FAQ ---------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 1rem;
}
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 600;
  color: var(--navy-900);
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--gold-600);
}
.faq summary .faq-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-500);
  color: var(--gold-600);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease);
}
.faq details[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--gold-500);
  color: var(--navy-950);
}
.faq .faq-body {
  padding: 0 1.6rem 1.5rem;
  color: var(--muted);
}

/* ---------- 19. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.contact-info-card {
  background:
    radial-gradient(400px 220px at 90% 0%, rgba(194, 161, 77, 0.18), transparent 60%),
    linear-gradient(155deg, var(--navy-800), var(--navy-950));
  border-radius: var(--radius-lg);
  padding: 2.6rem 2.4rem;
  color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-lg);
}
.contact-info-card h2 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
}
.contact-info-card > p {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.66);
}
.contact-rows {
  display: grid;
  gap: 1.5rem;
}
.contact-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-row svg {
  flex: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(194, 161, 77, 0.14);
  color: var(--gold-400);
  border: 1px solid rgba(194, 161, 77, 0.3);
}
.contact-row strong {
  display: block;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.contact-row a,
.contact-row span {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.3s;
}
.contact-row a:hover {
  color: var(--gold-300);
}

/* Form */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.6rem 2.4rem;
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.field {
  display: grid;
  gap: 0.45rem;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-800);
}
.field label .req {
  color: var(--error);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1.05rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--gold-300);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(194, 161, 77, 0.18);
  background: var(--white);
}
.field textarea {
  resize: vertical;
  min-height: 150px;
}
.field .hint {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Honeypot: hidden from humans */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
}
.consent input {
  margin-top: 0.3rem;
  accent-color: var(--gold-600);
  width: 17px;
  height: 17px;
  flex: none;
}

.form-status {
  display: none;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 0.96rem;
}
.form-status.is-visible {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.form-status--success {
  background: rgba(30, 125, 79, 0.1);
  border: 1px solid rgba(30, 125, 79, 0.35);
  color: var(--success);
}
.form-status--error {
  background: rgba(179, 55, 47, 0.08);
  border: 1px solid rgba(179, 55, 47, 0.35);
  color: var(--error);
}

.btn--loading {
  opacity: 0.75;
  pointer-events: none;
}
.btn--loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(7, 17, 32, 0.3);
  border-top-color: var(--navy-950);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Map placeholder */
.map-strip {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 260px at 20% 20%, rgba(30, 61, 110, 0.12), transparent 60%),
    repeating-linear-gradient(0deg, rgba(11, 26, 46, 0.05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(11, 26, 46, 0.05) 0 1px, transparent 1px 46px),
    var(--cream);
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}
.map-pin {
  width: 56px;
  height: 56px;
  color: var(--gold-600);
  margin: 0 auto 0.8rem;
}
.map-strip strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy-900);
  display: block;
}
.map-strip span {
  color: var(--muted);
}

/* ---------- 20. Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.65);
  padding: 4.5rem 0 0;
  border-top: 3px solid var(--gold-600);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.8rem;
  padding-bottom: 3.2rem;
}
.footer-brand .brand {
  margin-bottom: 1.2rem;
}
.footer-brand p {
  font-size: 0.95rem;
  max-width: 38ch;
}
.footer-col h3 {
  color: var(--white);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--gold-400);
}
.footer-col ul {
  display: grid;
  gap: 0.65rem;
}
.footer-col a {
  transition: color 0.3s, padding-left 0.3s var(--ease);
  font-size: 0.96rem;
}
.footer-col a:hover {
  color: var(--gold-300);
  padding-left: 0.4rem;
}
.footer-contact li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.95rem;
  align-items: flex-start;
}
.footer-contact svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--gold-500);
  margin-top: 0.3rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a {
  color: var(--gold-400);
}
.footer-bottom a:hover {
  color: var(--gold-300);
}

/* ---------- 21. 404 ---------- */
.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(194, 161, 77, 0.15), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color: var(--white);
  padding: 2rem;
}
.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 11rem);
  line-height: 1;
  color: var(--gold-400);
}
.error-page p {
  color: rgba(255, 255, 255, 0.7);
  margin: 1rem 0 2.2rem;
  font-size: 1.15rem;
}

/* ---------- 22. Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 23. Responsive ---------- */
@media (max-width: 1020px) {
  .grid--4,
  .steps,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat + .stat::before {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    max-width: 560px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(7, 17, 32, 0.98);
    backdrop-filter: blur(14px);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
    z-index: 105;
  }
  .nav-links.is-open {
    transform: translateY(0);
  }
  .nav-links a {
    font-size: 1.35rem;
    font-family: var(--font-display);
  }
  .nav-cta {
    font-size: 1.05rem !important;
    padding: 0.85rem 2rem;
  }
  .grid--3,
  .grid--2,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .practice-item {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .split-media {
    min-height: 340px;
  }
  .hero-scroll {
    display: none;
  }
}

@media (max-width: 560px) {
  .stats,
  .steps,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-badges {
    gap: 1.1rem;
  }
  .cta-band {
    text-align: center;
    justify-content: center;
  }
  .form-card,
  .contact-info-card {
    padding: 2rem 1.4rem;
  }
  .brand-tag {
    display: none;
  }
}

/* ==========================================================================
   24. Brand mark colour, nav icons, theme toggle, scroll progress
   ========================================================================== */
.brand-mark {
  color: var(--gold-400);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.4rem;
}
.nav-icon,
.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.nav-icon::after {
  display: none !important;
}
.nav-icon:hover,
.theme-toggle:hover {
  border-color: var(--gold-500);
  color: var(--gold-300);
  transform: translateY(-2px);
}
.nav-icon svg,
.theme-toggle svg {
  width: 19px;
  height: 19px;
}
.theme-toggle .icon-sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  z-index: 150;
  transition: width 0.12s linear;
}

/* ==========================================================================
   25. Legal tools — tabs, cards, estimator, checklists, knowledge, booking
   ========================================================================== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.4rem;
}
.tab {
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--navy-800);
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.tab:hover {
  border-color: var(--gold-500);
  color: var(--gold-600);
  transform: translateY(-2px);
}
.tab.is-active {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  border-color: var(--navy-900);
  color: var(--gold-300);
  box-shadow: var(--shadow-md);
}
.tab-panel {
  display: none;
}
.tab-panel.is-active {
  display: block;
  animation: panel-in 0.5s var(--ease);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  align-items: start;
}
.tool-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
}
.tool-card--wide {
  grid-column: 1 / -1;
}
.tool-card--result {
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(194, 161, 77, 0.12), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(194, 161, 77, 0.3);
  position: sticky;
  top: 110px;
}
.tool-card--result h3 {
  color: var(--white);
}
.tool-card--result .tool-note {
  color: rgba(255, 255, 255, 0.55);
}
.tool-card h3 {
  margin-bottom: 1.2rem;
  font-size: 1.35rem;
}
.tool-note {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 1rem 0;
}
.tool-card--result .btn {
  margin-top: 0.6rem;
}

/* range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-500) var(--fill, 10%), var(--line) var(--fill, 10%));
  outline: none;
  margin-top: 0.9rem;
  padding: 0;
  border: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold-500);
  box-shadow: var(--shadow-md);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold-500);
  cursor: grab;
}

/* fee breakdown */
.fee-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(194, 161, 77, 0.25);
  font-size: 0.96rem;
}
.fee-row span:last-child {
  font-weight: 700;
  white-space: nowrap;
}
.fee-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--gold-500);
}
.fee-total span {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 700;
}
.fee-total strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold-300);
  text-align: right;
}

/* checklists */
.checklist-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.checklist-head .tool-note {
  margin: 0;
}
.progress {
  height: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0.9rem 0 1.4rem;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  border-radius: 999px;
  transition: width 0.5s var(--ease);
}
.checklist {
  display: grid;
  gap: 0.55rem;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 0.4rem;
}
.check-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  font-size: 0.95rem;
}
.check-item:hover {
  border-color: var(--gold-300);
}
.check-item input {
  margin-top: 0.25rem;
  accent-color: var(--gold-600);
  width: 17px;
  height: 17px;
  flex: none;
}
.check-item.is-done {
  background: var(--cream);
  border-color: transparent;
}
.check-item.is-done span {
  text-decoration: line-through;
  color: var(--muted);
}
.checklist-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.btn--sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem;
}
.btn--block {
  width: 100%;
}

/* knowledge base */
.kb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1.6rem;
}
.kb-chip {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ivory);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.kb-chip:hover {
  border-color: var(--gold-500);
  color: var(--gold-600);
}
.kb-chip.is-active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--gold-300);
}
.kb-results {
  display: grid;
  gap: 0.8rem;
}
.kb-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.kb-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy-900);
}
.kb-item summary::-webkit-details-marker {
  display: none;
}
.kb-item summary:hover {
  color: var(--gold-600);
}
.kb-item .faq-icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-500);
  color: var(--gold-600);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: transform 0.3s var(--ease);
}
.kb-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--gold-500);
  color: var(--navy-950);
}
.kb-item .faq-body {
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}
.kb-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
  background: rgba(194, 161, 77, 0.12);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.7rem;
}

/* booking */
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.slot {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--ivory);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.slot:hover {
  border-color: var(--gold-500);
}
.slot.is-selected {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--gold-300);
}
.booking-user {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  margin-bottom: 1.4rem;
}
.linklike {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold-600);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
}
.auth-inline h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.auth-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.otp-input {
  font-size: 1.8rem !important;
  letter-spacing: 0.6em;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
}
.booking-success {
  text-align: center;
  padding: 2rem 1rem;
}
.booking-success svg {
  width: 64px;
  height: 64px;
  color: var(--success);
  margin: 0 auto 1.2rem;
}
.booking-success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.booking-success .auth-actions {
  justify-content: center;
}

/* ==========================================================================
   26. Auth card & dashboard
   ========================================================================== */
.dash-page {
  min-height: 100svh;
  padding: 8.5rem 0 4.5rem;
  background:
    radial-gradient(900px 420px at 85% -5%, rgba(194, 161, 77, 0.1), transparent 60%),
    var(--ivory);
}
.dash-auth-mode .dash-page,
.dash-auth-mode main {
  display: grid;
  place-items: center;
}
.dash-auth-mode .container {
  width: min(100% - 3rem, 480px);
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.8rem 2.4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400), var(--gold-600));
}
.auth-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold-300);
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  border: 2px solid var(--gold-500);
}
.auth-card h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.auth-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}
.auth-card .field {
  text-align: left;
  margin-bottom: 1rem;
}
.auth-foot {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.auth-switch {
  display: block;
  margin: 1rem auto 0;
  font-size: 0.9rem;
}
.hint-inline {
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
}

/* dashboard layout */
.dash-layout {
  display: grid;
  grid-template-columns: 265px 1fr;
  gap: 1.8rem;
  align-items: start;
}
.dash-side {
  background: linear-gradient(170deg, var(--navy-900), var(--navy-950));
  border: 1px solid rgba(194, 161, 77, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.2rem;
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.dash-user {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.dash-avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-300);
  background: rgba(194, 161, 77, 0.15);
  border: 2px solid var(--gold-500);
}
.dash-user strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
}
.dash-user span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  word-break: break-all;
}
.dash-nav {
  display: grid;
  gap: 0.3rem;
}
.dash-nav button {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.dash-nav button:hover {
  color: var(--gold-300);
  background: rgba(255, 255, 255, 0.05);
}
.dash-nav button.is-active {
  background: rgba(194, 161, 77, 0.16);
  color: var(--gold-300);
  box-shadow: inset 3px 0 0 var(--gold-500);
}
.dash-signout {
  margin-top: auto;
  padding: 0.65rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.dash-signout:hover {
  border-color: var(--error);
  color: #ff9d96;
}
.dash-signout--inline {
  margin: 0;
  color: var(--error);
  border-color: rgba(179, 55, 47, 0.4);
  padding: 0.5rem 1.1rem;
}

.dash-main {
  min-width: 0;
}
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.dash-head h2 {
  font-size: 1.6rem;
}
.dash-store {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.dash-loading,
.dash-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold-500);
}
.stat-card-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--navy-900);
  line-height: 1.1;
}
.stat-card-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-top: 0.3rem;
}
.stat-card-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* record rows */
.row-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.row-card.is-out {
  opacity: 0;
  transform: translateX(30px);
}
.row-card--flat {
  box-shadow: none;
}
.row-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.row-id strong {
  display: block;
  font-size: 1.05rem;
  color: var(--navy-900);
}
.row-id span {
  font-size: 0.87rem;
  color: var(--muted);
}
.row-meta {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.45rem;
}
.row-meta a {
  color: var(--gold-600);
  font-weight: 600;
}
.row-msg {
  margin-top: 0.7rem;
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--cream);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.row-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.9rem;
  align-items: center;
}
.row-status {
  padding: 0.45rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-800);
  cursor: pointer;
}
.row-status:focus {
  outline: none;
  border-color: var(--gold-500);
}
.row-del {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--error);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
}
.row-del:hover {
  background: rgba(179, 55, 47, 0.08);
}

/* status pills */
.pill {
  flex: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.pill--new { background: rgba(194, 161, 77, 0.16); color: #8a6d24; border-color: rgba(194, 161, 77, 0.4); }
.pill--contacted { background: rgba(30, 61, 110, 0.1); color: var(--navy-700); border-color: rgba(30, 61, 110, 0.25); }
.pill--scheduled { background: rgba(30, 125, 79, 0.1); color: var(--success); border-color: rgba(30, 125, 79, 0.3); }
.pill--closed { background: rgba(91, 101, 114, 0.12); color: var(--muted); border-color: rgba(91, 101, 114, 0.3); }
.pill--pending { background: rgba(194, 161, 77, 0.16); color: #8a6d24; border-color: rgba(194, 161, 77, 0.4); }
.pill--confirmed { background: rgba(30, 125, 79, 0.1); color: var(--success); border-color: rgba(30, 125, 79, 0.3); }
.pill--completed { background: rgba(30, 61, 110, 0.1); color: var(--navy-700); border-color: rgba(30, 61, 110, 0.25); }
.pill--cancelled { background: rgba(179, 55, 47, 0.1); color: var(--error); border-color: rgba(179, 55, 47, 0.3); }
.pill--client { background: rgba(194, 161, 77, 0.16); color: #8a6d24; border-color: rgba(194, 161, 77, 0.4); }

/* client portal */
.portal-h {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
}
.portal-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 0.6rem;
}

/* toasts */
#toast-root {
  position: fixed;
  top: 96px;
  right: 1.2rem;
  z-index: 300;
  display: grid;
  gap: 0.6rem;
  max-width: min(360px, calc(100vw - 2.4rem));
}
.toast {
  background: var(--navy-900);
  color: var(--white);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.4s var(--ease);
}
.toast--success { border-left-color: var(--success); }
.toast--error { border-left-color: var(--error); }
.toast.is-out {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.35s var(--ease);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   27. Chat assistant
   ========================================================================== */
.chat-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 250;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.3rem 0.85rem 0.95rem;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  cursor: pointer;
  box-shadow: 0 14px 34px -8px rgba(194, 161, 77, 0.65);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    opacity 0.3s var(--ease);
}
.chat-fab:hover {
  transform: translateY(-3px) scale(1.03);
}
.chat-fab svg {
  width: 26px;
  height: 26px;
}
.chat-fab-label {
  font-weight: 800;
  font-size: 0.9rem;
}
.chat-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.chat-panel {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 260;
  width: min(400px, calc(100vw - 2rem));
  height: min(620px, calc(100svh - 3rem));
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.chat-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.chat-head {
  background: linear-gradient(140deg, var(--navy-900), var(--navy-950));
  color: var(--white);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold-500);
}
.chat-head-id {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-300);
  background: rgba(194, 161, 77, 0.16);
  border: 1.5px solid var(--gold-500);
}
.chat-head strong {
  display: block;
  font-size: 0.98rem;
}
.chat-head span {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.6);
}
.chat-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}
.chat-close:hover {
  color: var(--gold-300);
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--cream);
}
.chat-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.93rem;
  line-height: 1.6;
  animation: msg-in 0.3s var(--ease);
  word-break: break-word;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.chat-msg--bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--ink);
}
.chat-msg--user {
  align-self: flex-end;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-950));
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.chat-typing {
  display: inline-flex;
  gap: 4px;
  padding: 2px 4px;
}
.chat-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  animation: typing-bounce 1.1s infinite ease-in-out;
}
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}
.chat-chips {
  display: flex;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.chat-chip {
  flex: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: all 0.25s;
}
.chat-chip:hover {
  border-color: var(--gold-500);
  color: var(--gold-600);
}
.chat-input {
  display: flex;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.chat-input input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1.05rem;
  font-size: 0.93rem;
  background: var(--ivory);
}
.chat-input input:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(194, 161, 77, 0.18);
}
.chat-input button {
  width: 42px;
  height: 42px;
  flex: none;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}
.chat-input button:hover {
  transform: scale(1.08);
}
.chat-input button svg {
  width: 18px;
  height: 18px;
}
.chat-note {
  padding: 0.55rem 1rem 0.75rem;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--white);
  text-align: center;
}
.chat-note a {
  color: var(--gold-600);
  font-weight: 700;
}

/* ==========================================================================
   28. Dark theme overrides
   ========================================================================== */
[data-theme="dark"] body {
  background: #0a1424;
  color: #e6e3dc;
}
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
  color: #f3efe6;
}
[data-theme="dark"] .section--cream {
  background: #0d1a2e;
}
[data-theme="dark"] .section-lead,
[data-theme="dark"] .section-head p {
  color: #9aa7b5;
}
[data-theme="dark"] .card,
[data-theme="dark"] .form-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .quote-card,
[data-theme="dark"] .faq details,
[data-theme="dark"] .practice-item,
[data-theme="dark"] .tool-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .row-card,
[data-theme="dark"] .kb-item,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .tab,
[data-theme="dark"] .dash-store,
[data-theme="dark"] .dash-loading,
[data-theme="dark"] .dash-empty {
  background: #10213a;
  border-color: rgba(194, 161, 77, 0.2);
  color: #cdd6e0;
}
[data-theme="dark"] .card h3,
[data-theme="dark"] .team-card h3,
[data-theme="dark"] .practice-item h2,
[data-theme="dark"] .row-id strong,
[data-theme="dark"] .kb-item summary,
[data-theme="dark"] .stat-card-value,
[data-theme="dark"] .stat-card-label,
[data-theme="dark"] .tool-card h3,
[data-theme="dark"] .auth-card h1,
[data-theme="dark"] .tab {
  color: #f3efe6;
}
[data-theme="dark"] .card p,
[data-theme="dark"] .team-card p,
[data-theme="dark"] .team-creds,
[data-theme="dark"] .practice-item p,
[data-theme="dark"] .row-msg,
[data-theme="dark"] .faq .faq-body,
[data-theme="dark"] .kb-item .faq-body,
[data-theme="dark"] .auth-sub {
  color: #9aa7b5;
}
[data-theme="dark"] .quote-card p {
  color: #d9c98f;
}
[data-theme="dark"] .tool-card--result {
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(194, 161, 77, 0.14), transparent 60%),
    linear-gradient(160deg, #16305a, #0a1424);
  color: rgba(255, 255, 255, 0.8);
}
[data-theme="dark"] .tool-card--result h3,
[data-theme="dark"] .fee-total strong {
  color: var(--gold-300);
}
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .chat-input input,
[data-theme="dark"] .row-status {
  background: #0d1a2e;
  border-color: rgba(194, 161, 77, 0.25);
  color: #e6e3dc;
}
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field select:focus,
[data-theme="dark"] .field textarea:focus {
  background: #10213a;
}
[data-theme="dark"] .field label {
  color: #d9c98f;
}
[data-theme="dark"] .tool-note,
[data-theme="dark"] .row-meta,
[data-theme="dark"] .field .hint,
[data-theme="dark"] .auth-foot,
[data-theme="dark"] .consent {
  color: #9aa7b5;
}
[data-theme="dark"] .row-msg,
[data-theme="dark"] .check-item,
[data-theme="dark"] .kb-chip,
[data-theme="dark"] .slot,
[data-theme="dark"] .chat-chip {
  background: #0d1a2e;
  border-color: rgba(194, 161, 77, 0.2);
  color: #cdd6e0;
}
[data-theme="dark"] .check-item.is-done {
  background: rgba(194, 161, 77, 0.1);
}
[data-theme="dark"] .check-item.is-done span {
  color: #75828f;
}
[data-theme="dark"] .progress {
  background: #0d1a2e;
  border-color: rgba(194, 161, 77, 0.2);
}
[data-theme="dark"] .booking-user {
  background: #0d1a2e;
  border-color: rgba(194, 161, 77, 0.2);
  color: #9aa7b5;
}
[data-theme="dark"] .btn--outline-navy {
  border-color: var(--gold-500);
  color: var(--gold-300);
}
[data-theme="dark"] .btn--outline-navy:hover {
  background: var(--gold-500);
  color: var(--navy-950);
}
[data-theme="dark"] .check-list li {
  color: #e6e3dc;
}
[data-theme="dark"] .timeline-item p,
[data-theme="dark"] .timeline-year {
  color: #9aa7b5;
}
[data-theme="dark"] .timeline-year {
  color: var(--gold-400);
}
[data-theme="dark"] .experience-badge {
  background: #10213a;
  color: #f3efe6;
}
[data-theme="dark"] .map-strip {
  background:
    radial-gradient(600px 260px at 20% 20%, rgba(30, 61, 110, 0.25), transparent 60%),
    repeating-linear-gradient(0deg, rgba(194, 161, 77, 0.05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(194, 161, 77, 0.05) 0 1px, transparent 1px 46px),
    #0d1a2e;
  border-color: rgba(194, 161, 77, 0.2);
}
[data-theme="dark"] .map-strip strong {
  color: #f3efe6;
}
[data-theme="dark"] .tag-list li {
  background: #0d1a2e;
  border-color: rgba(194, 161, 77, 0.2);
  color: #cdd6e0;
}
[data-theme="dark"] .chat-panel {
  background: #10213a;
  border-color: rgba(194, 161, 77, 0.25);
}
[data-theme="dark"] .chat-body {
  background: #0a1424;
}
[data-theme="dark"] .chat-msg--bot {
  background: #10213a;
  border-color: rgba(194, 161, 77, 0.2);
  color: #e6e3dc;
}
[data-theme="dark"] .chat-chips,
[data-theme="dark"] .chat-input,
[data-theme="dark"] .chat-note {
  background: #10213a;
  border-color: rgba(194, 161, 77, 0.2);
}
[data-theme="dark"] .dash-page {
  background:
    radial-gradient(900px 420px at 85% -5%, rgba(194, 161, 77, 0.12), transparent 60%),
    #0a1424;
}
[data-theme="dark"] .toast {
  background: #16305a;
}

/* ==========================================================================
   29. Responsive — new components
   ========================================================================== */
@media (max-width: 1020px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .tool-grid,
  .dash-layout {
    grid-template-columns: 1fr;
  }
  .tool-card--result,
  .dash-side {
    position: static;
  }
  .dash-nav {
    grid-auto-flow: column;
    overflow-x: auto;
  }
  .chat-fab-label {
    display: none;
  }
  .chat-fab {
    padding: 0.95rem;
  }
  .chat-panel {
    right: 0.6rem;
    bottom: 0.6rem;
    width: calc(100vw - 1.2rem);
    height: min(600px, calc(100svh - 1.2rem));
  }
}

@media (max-width: 560px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .tabs {
    gap: 0.4rem;
  }
  .tab {
    padding: 0.65rem 1.05rem;
    font-size: 0.86rem;
  }
  .otp-input {
    letter-spacing: 0.4em;
  }
  .auth-card {
    padding: 2.2rem 1.4rem;
  }
}

/* Print: checklists only */
@media print {
  .site-header,
  .site-footer,
  .chat-fab,
  .chat-panel,
  .tabs,
  .checklist-actions,
  .page-hero p,
  .crumbs {
    display: none !important;
  }
  .tab-panel {
    display: none !important;
  }
  .tab-panel.is-active {
    display: block !important;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .checklist {
    max-height: none;
    overflow: visible;
  }
  body {
    background: #fff;
  }
}

/* ==========================================================================
   30. Mail UI, matters, deadline results, Document Studio, cookie banner
   ========================================================================== */
.dash-head-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.row-card--unread {
  border-left: 4px solid var(--gold-500);
  background: linear-gradient(90deg, rgba(194, 161, 77, 0.07), transparent 40%);
}
.row-card--unread .row-id strong {
  font-weight: 800;
}
[data-theme="dark"] .row-card--unread {
  background: linear-gradient(90deg, rgba(194, 161, 77, 0.12), transparent 40%);
}

.mail-subnav {
  margin-bottom: 1.6rem;
}
.dash-search {
  position: relative;
  margin-bottom: 1.6rem;
}
.dash-search input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.95rem;
}
.dash-search input:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(194, 161, 77, 0.15);
}
[data-theme="dark"] .dash-search input {
  background: #10213a;
  border-color: rgba(194, 161, 77, 0.25);
  color: #e6e3dc;
}
.dash-search-results {
  display: none;
}
.dash-search-results:empty {
  display: none;
}
.dash-search input:focus ~ .dash-search-results,
.dash-search-results.has-results {
  display: block;
  position: absolute;
  z-index: 60;
  left: 0;
  right: 0;
  margin-top: 0.4rem;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.9rem;
}
.dash-search-results .search-group h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.4rem;
}
[data-theme="dark"] .dash-search-results {
  background: #10213a;
  border-color: rgba(194, 161, 77, 0.25);
}
.search-hit {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
}
[data-theme="dark"] .search-hit {
  color: #e6e3dc;
}
.search-hit:hover {
  background: var(--cream);
}
.msg-body {
  font-size: 0.92rem;
  max-height: 220px;
  overflow-y: auto;
}

/* matters */
.matter-notes {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.5rem;
}
.matter-note {
  background: var(--cream);
  border-left: 3px solid var(--gold-400);
  border-radius: 0 8px 8px 0;
  padding: 0.65rem 0.95rem;
  font-size: 0.92rem;
}
[data-theme="dark"] .matter-note {
  background: #0d1a2e;
}
.matter-note em {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: var(--muted);
  font-style: normal;
}
.note-form {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.note-form input {
  flex: 1;
  padding: 0.55rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
  font-size: 0.9rem;
}
.note-form input:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(194, 161, 77, 0.15);
}
[data-theme="dark"] .note-form input {
  background: #0d1a2e;
  border-color: rgba(194, 161, 77, 0.25);
  color: #e6e3dc;
}
.compose {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .compose {
  background: #10213a;
  border-color: rgba(194, 161, 77, 0.2);
}
.alias-input {
  display: flex;
  align-items: center;
  gap: 0;
}
.alias-input input {
  border-radius: var(--radius) 0 0 var(--radius) !important;
  border-right: none !important;
}
.alias-input span {
  padding: 0.85rem 1rem;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}
[data-theme="dark"] .alias-input span {
  background: #0d1a2e;
  border-color: rgba(194, 161, 77, 0.25);
}

/* deadline calculator */
.dl-date {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.dl-days {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  display: inline-block;
}
.dl-ok { color: var(--gold-300); }
.dl-days.dl-ok { background: rgba(30, 125, 79, 0.25); color: #7fe0b2; }
.dl-warn { color: var(--gold-300); }
.dl-days.dl-warn { background: rgba(194, 161, 77, 0.25); color: var(--gold-300); }
.dl-danger { color: #ff9d96; }
.dl-days.dl-danger { background: rgba(179, 55, 47, 0.25); color: #ff9d96; }
.dl-expired { color: #ff9d96; }
.dl-days.dl-expired { background: rgba(179, 55, 47, 0.35); color: #ffb3ad; }

/* Document Studio — the letter */
.letter-wrap {
  background: var(--navy-900);
  border: 1px solid rgba(194, 161, 77, 0.25);
}
.letter-preview {
  background: #ffffff;
  color: #1c2430;
  border-radius: 6px;
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.55);
  max-height: 640px;
  overflow-y: auto;
}
.letter {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.75;
}
.letter p {
  margin: 0 0 1rem;
}
.letter-sender {
  text-align: left;
  font-weight: 600;
  margin-bottom: 1.6rem;
  white-space: pre-line;
}
.letter-date {
  margin-bottom: 1.6rem;
}
.letter-recipient {
  margin-bottom: 1.6rem;
  white-space: pre-line;
}
.letter-ref {
  font-weight: 800;
  text-decoration: underline;
  margin-bottom: 1.4rem;
  letter-spacing: 0.02em;
}
.letter-sign {
  margin-top: 2.2rem;
  white-space: pre-line;
}

/* cookie banner */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translate(-50%, 140%);
  z-index: 280;
  width: min(720px, calc(100vw - 2rem));
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(7, 17, 32, 0.97);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(194, 161, 77, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  transition: transform 0.55s var(--ease);
}
.cookie-banner.is-visible {
  transform: translate(-50%, 0);
}
.cookie-banner p {
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: none;
}
.cookie-actions .text-link {
  font-size: 0.85rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-actions {
    justify-content: center;
  }
  .note-form {
    flex-direction: column;
  }
}

/* ==========================================================================
   31. Print — demand letter (Document Studio)
   ========================================================================== */
@media print {
  body.print-letter * {
    visibility: hidden;
  }
  body.print-letter .letter-preview,
  body.print-letter .letter-preview * {
    visibility: visible;
  }
  body.print-letter .letter-preview {
    position: absolute;
    inset: 0;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }
}

/* ==========================================================================
   32. Firm Operations console (PMS · ERP · CRM · POS) + findings register
   ========================================================================== */
.ops-page {
  padding-top: 8.5rem;
}
.ops-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.ops-head h1 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}
.ops-head p {
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ops-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
}
.ops-tab {
  flex: none;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--navy-800);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.ops-tab:hover {
  border-color: var(--gold-500);
  color: var(--gold-600);
}
.ops-tab.is-active {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  border-color: var(--navy-900);
  color: var(--gold-300);
}
[data-theme="dark"] .ops-tab {
  background: #10213a;
  color: #e6e3dc;
  border-color: rgba(194, 161, 77, 0.2);
}

.ops-tools,
.ops-sub {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .ops-tools,
[data-theme="dark"] .ops-sub {
  background: #10213a;
  border-color: rgba(194, 161, 77, 0.2);
}

.ops-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
/* Checkbox inside an inline ops form must not stretch like a text input. */
.ops-inline .ops-check {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
  font-size: 0.85rem;
  white-space: nowrap;
  cursor: pointer;
}
.ops-inline .ops-check input {
  flex: 0 0 auto;
  min-width: 0;
  width: 1rem;
  height: 1rem;
  padding: 0;
  margin: 0;
  accent-color: var(--gold-500);
}
[data-theme="dark"] .ops-inline .ops-check {
  background: var(--surface-2, var(--ivory));
}

.ops-inline input,
.ops-inline select {
  flex: 1;
  min-width: 140px;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
  font-size: 0.9rem;
}
.ops-inline input:focus,
.ops-inline select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(194, 161, 77, 0.15);
}
[data-theme="dark"] .ops-inline input,
[data-theme="dark"] .ops-inline select {
  background: #0d1a2e;
  color: #e6e3dc;
  border-color: rgba(194, 161, 77, 0.25);
}
.ops-wide {
  margin-bottom: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .ops-wide {
  background: #10213a;
  border-color: rgba(194, 161, 77, 0.2);
}

.ops-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}

.ageing {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.7rem;
  margin-top: 0.8rem;
}
.ageing div {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 0.7rem 0.6rem;
  text-align: center;
}
[data-theme="dark"] .ageing div {
  background: #0d1a2e;
}
.ageing span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.ageing strong {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy-900);
}
[data-theme="dark"] .ageing strong {
  color: #f3efe6;
}

/* matter file drawer */
.matter-inline:not(:empty) {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}
.file-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.file-stat {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 0.7rem 0.6rem;
  text-align: center;
}
[data-theme="dark"] .file-stat {
  background: #0d1a2e;
}
.file-stat span {
  display: block;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--navy-900);
}
[data-theme="dark"] .file-stat span {
  color: #f3efe6;
}
.file-stat em {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.file-section h4 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 1rem 0 0.5rem;
}
.file-row {
  display: grid;
  grid-template-columns: 90px 1fr 70px 80px;
  gap: 0.6rem;
  font-size: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.file-row span:nth-child(2) {
  color: var(--ink);
}
[data-theme="dark"] .file-row {
  color: #9aa7b5;
  border-color: rgba(194, 161, 77, 0.15);
}
[data-theme="dark"] .file-row span:nth-child(2) {
  color: #e6e3dc;
}

.pay-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.9rem;
  font-size: 0.85rem;
}
.pay-table th,
.pay-table td {
  padding: 0.5rem 0.5rem;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.pay-table th:first-child,
.pay-table td:first-child {
  text-align: left;
}
.pay-table thead th {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
[data-theme="dark"] .pay-table th,
[data-theme="dark"] .pay-table td {
  border-color: rgba(194, 161, 77, 0.15);
}

/* findings register */
.finding {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left-width: 5px;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .finding {
  background: #10213a;
  border-color: rgba(194, 161, 77, 0.2);
  border-left-width: 5px;
}
.finding h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.finding p {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.65;
}
.finding ul {
  margin: 0.5rem 0;
  padding-left: 1.1rem;
  list-style: disc;
}
.finding li {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.finding-meta {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.finding-meta strong {
  color: var(--navy-800);
}
[data-theme="dark"] .finding-meta strong {
  color: #d9c98f;
}
.finding--critical {
  border-left-color: var(--error);
  background: rgba(179, 55, 47, 0.05);
}
[data-theme="dark"] .finding--critical {
  background: rgba(179, 55, 47, 0.14);
}
.finding--warning {
  border-left-color: var(--gold-500);
  background: rgba(194, 161, 77, 0.06);
}
[data-theme="dark"] .finding--warning {
  background: rgba(194, 161, 77, 0.12);
}
.finding--advisory {
  border-left-color: var(--navy-600);
}
.finding--ok {
  border-left-color: var(--success);
  background: rgba(30, 125, 79, 0.06);
}
[data-theme="dark"] .finding--ok {
  background: rgba(30, 125, 79, 0.14);
}

.nav-portal-link {
  color: var(--gold-300) !important;
}

@media (max-width: 1020px) {
  .ops-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .file-summary {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .ops-cards,
  .file-summary,
  .ageing {
    grid-template-columns: 1fr 1fr;
  }
  .file-row {
    grid-template-columns: 1fr;
  }
  .pay-table {
    font-size: 0.75rem;
  }
}

.dash-nav-link {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  color: var(--gold-300);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px dashed rgba(194, 161, 77, 0.4);
  margin-top: 0.5rem;
  transition: all 0.25s var(--ease);
}
.dash-nav-link:hover {
  background: rgba(194, 161, 77, 0.12);
  color: var(--gold-400);
}

/* ==========================================================================
   33. Policy library
   ========================================================================== */
.policy-doc {
  margin-top: 1.2rem;
  padding: 1.6rem 1.8rem;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold-400);
  font-size: 0.94rem;
  line-height: 1.7;
}
[data-theme="dark"] .policy-doc {
  background: #0d1a2e;
}
.policy-doc h2 {
  font-size: 1.3rem;
  margin: 1.4rem 0 0.6rem;
}
.policy-doc h2:first-child {
  margin-top: 0;
}
.policy-doc h3 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 1.2rem 0 0.5rem;
}
.policy-doc p {
  margin-bottom: 0.8rem;
  color: var(--ink);
}
[data-theme="dark"] .policy-doc p {
  color: #cdd6e0;
}
.policy-doc ul,
.policy-doc ol {
  margin: 0 0 1rem 1.2rem;
  list-style: disc;
}
.policy-doc ol {
  list-style: decimal;
}
.policy-doc li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}
.policy-doc code {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1rem 0.4rem;
  font-size: 0.85em;
  color: var(--navy-800);
}
[data-theme="dark"] .policy-doc code {
  background: #10213a;
  color: #d9c98f;
}

/* ==========================================================================
   34. Render performance
   Below-the-fold sections skip layout and paint until they approach the
   viewport — a large win on the long-form pages.
   ========================================================================== */
@supports (content-visibility: auto) {
  .section:not(:first-of-type) {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
  }
  .timeline-item,
  .row-card,
  .finding {
    content-visibility: auto;
    contain-intrinsic-size: auto 140px;
  }
}

/* Respect reduced-motion: skip the reveal transform work entirely. */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   24. Editable section media (image or video backgrounds)

   Elements carrying data-media="<id>" are turned into a media backdrop by
   assets/js/site.js when staff set one in the admin dashboard. The markup
   ships without a background, so nothing loads until it is actually chosen.

   The video element is a real <video>, not a CSS trick: CSS cannot play
   video, it can only place it. Here it sits behind the section content and
   the section's own text keeps its contrast through an overlay.
   ========================================================================== */
.has-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Background layer. Sits behind the section's own content. */
.media-video,
.has-media[data-media-bg]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sections set their own background on ::before, so swap it out. */
.has-media[data-media-bg] {
  background-image: none;
}

/* Overlay keeps text legible over any footage. Strength is staff-controlled
   via data-overlay, and the default is a firm-coloured wash. */
.has-media > * {
  position: relative;
  z-index: 1;
}

.has-media[data-overlay="light"]::after,
.has-media[data-overlay="navy"]::after,
.has-media[data-overlay="heavy"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.has-media[data-overlay="light"]::after {
  background: rgba(253, 252, 249, 0.72);
}

.has-media[data-overlay="navy"]::after {
  background: rgba(11, 26, 46, 0.55);
}

.has-media[data-overlay="heavy"]::after {
  background: rgba(11, 26, 46, 0.78);
}

/* Without a chosen overlay, apply the firm default. */
.has-media:not([data-overlay])::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(11, 26, 46, 0.55);
  pointer-events: none;
}

/* Loading: hold the poster rather than flashing an empty box. */
.media-video:not([data-ready]) {
  background-color: var(--navy-900);
}

/* Reduced motion, and any browser that refuses playback, falls back to the
   poster image. The section is never left blank. */
@media (prefers-reduced-motion: reduce) {
  .media-video {
    display: none;
  }

  .has-media[data-media-poster] {
    background-size: cover;
    background-position: center;
  }
}

/* Data saver / save-data: treat as reduced motion. */
@media (prefers-reduced-data: reduce) {
  .media-video {
    display: none;
  }
}

/* ==========================================================================
   25. Site editor (dashboard → Site)

   Edits the live site's copy, design tokens, section media, headline stats
   and testimonials. Every control is a plain form field so the panel works
   without JavaScript niceties and stays legible on a phone.
   ========================================================================== */
.site-admin-intro {
  color: var(--muted);
  margin: 0 0 1.6rem;
  max-width: 70ch;
}

.site-admin-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.site-admin-block header h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.site-admin-block header p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 70ch;
}

.site-admin-row {
  display: grid;
  grid-template-columns: minmax(9rem, 16rem) 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.site-admin-row label {
  font-size: 0.88rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.site-admin-row input[type="text"],
.site-admin-row input[type="url"],
.site-admin-row select,
.site-admin-row textarea {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.6);
  background: var(--ivory);
  color: var(--ink);
}

.site-admin-row textarea {
  resize: vertical;
}

.site-admin-media,
.site-admin-testimonial {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.7);
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
}

.site-admin-media legend,
.site-admin-testimonial legend {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 0.4rem;
}

.site-admin-stat {
  display: grid;
  grid-template-columns: 9rem 1fr 5rem 1fr auto;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.site-admin-stat label {
  font-size: 0.88rem;
  color: var(--muted);
}

.site-admin-stat input {
  font: inherit;
  font-size: 0.92rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.6);
  width: 100%;
}

.site-admin-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-admin-empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.8rem;
}

.site-admin-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  bottom: 0;
  background: var(--white);
  padding: 1rem 0;
}

.site-admin-actions .is-ok {
  color: var(--success);
  font-size: 0.9rem;
}

.site-admin-actions .is-error {
  color: var(--error);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .site-admin-row,
  .site-admin-stat {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

/* ==========================================================================
   26. Refinement pass

   Additive only — nothing above this line changes. These are the polish items
   that make the site feel deliberate rather than assembled: optical weight,
   focus visibility, motion that respects the visitor, and depth.

   Performance notes, because every rule here is a cost:
     - no @import and no webfont, so there is no second round trip and no
       invisible-text flash. The display face is a system stack.
     - transforms and opacity only, never layout properties, so the compositor
       can animate them off the main thread.
     - backdrop-filter is behind @supports, so browsers without it skip it.
     - every animation is disabled under prefers-reduced-motion.
   ========================================================================== */

/* ---------- typography and rendering ---------- */
:root {
  /* Text rendering is a large win on long legal pages: correct kerning and
     ligatures, and no spurious bolding. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: auto;
}

::selection {
  background: var(--gold-300);
  color: var(--navy-950);
}

/* Balanced headings stop a one-word line at the end of a title. */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* Body copy should never leave a single word on the last line. */
p,
li {
  text-wrap: pretty;
}

/* ---------- focus ---------- */
/* Visible only for keyboard users, never on mouse click. Removing outlines
   without replacing them is the most common accessibility regression. */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.hero :focus-visible,
.section--navy :focus-visible,
.footer :focus-visible {
  outline-color: var(--gold-400);
}

@supports selector(:focus-visible) {
  :focus:not(:focus-visible) {
    outline: none;
  }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
    /* Anchored headings must not hide under the sticky header. */
    scroll-padding-top: 5rem;
  }
}

/* ---------- depth ---------- */
.hero {
  position: relative;
  isolation: isolate;
}

/* A soft radial wash behind the hero. Two gradients, no image, no paint cost
   worth measuring — it gives the fold depth without a photograph. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(194, 161, 77, 0.14), transparent 60%),
    radial-gradient(90% 70% at 88% 10%, rgba(30, 61, 110, 0.16), transparent 65%);
  pointer-events: none;
}

/* Cards lift on hover, but only where hover is a real pointer. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card,
  .team-card,
  .quote-card,
  .practice-card,
  .stat-card {
    transition:
      transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1),
      box-shadow 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
    will-change: transform;
  }

  .card:hover,
  .team-card:hover,
  .quote-card:hover,
  .practice-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }

  /* Release the compositor hint once the animation ends, so we are not
     pinning dozens of layers for the life of the page. */
  .card:hover,
  .team-card:hover,
  .quote-card:hover,
  .practice-card:hover {
    will-change: auto;
  }
}

/* ---------- form and control affordance ---------- */
input,
select,
textarea {
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold-500);
}

/* Keyboard focus on a field gets a ring, not just a border shift. */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 1px;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- print ---------- */
/* A visitor who prints a matter summary should get ink, not a dark page. */
@media print {
  .site-header,
  .site-footer,
  .hero-scroll,
  .chat-panel,
  .dash-side,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }
}
