/* ============================================================
   T&T LAW FIRM
   Design System & Stylesheet — Premium Institutional
   ============================================================ */


/* ============================================================
   0. RESET
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */

:root {
  /* ---- Colour: Blue Range ---- */
  --color-navy-900:    #0F2240;
  --color-navy-800:    #162D4F;
  --color-navy-700:    #1C3557;   /* primary */
  --color-navy-600:    #2A5082;   /* secondary */
  --color-navy-500:    #3A6BA5;

  /* ---- Colour: Silver Range ---- */
  --color-silver-600:  #6B7A8D;
  --color-silver-500:  #8CA0B5;   /* accent */
  --color-silver-400:  #A8BDCF;
  --color-silver-300:  #C8D4DF;
  --color-silver-200:  #D8E1EA;
  --color-silver-100:  #E8EEF3;

  /* ---- Colour: Neutral ---- */
  --color-white:       #FFFFFF;
  --color-off-white:   #FAFBFC;
  --color-bg:          #F5F7FA;
  --color-bg-alt:      #EEF2F6;
  --color-text:        #1A1A1A;
  --color-text-muted:  #5A6B7D;
  --color-graphite:    #2D3748;

  /* Legacy aliases */
  --color-primary:       var(--color-navy-700);
  --color-secondary:     var(--color-navy-600);
  --color-accent:        var(--color-silver-500);
  --color-accent-light:  var(--color-silver-300);
  --color-rule:          var(--color-silver-200);

  /* ---- Typography ---- */
  --font-serif: Cambria, "Times New Roman", Georgia, serif;
  --font-sans:  "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* ---- Type Scale ---- */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.125rem;   /* 18px */
  --text-lg:   1.25rem;    /* 20px */
  --text-xl:   1.5rem;     /* 24px */
  --text-2xl:  2rem;       /* 32px */
  --text-3xl:  2.5rem;     /* 40px */
  --text-4xl:  3.25rem;    /* 52px */
  --text-5xl:  4rem;       /* 64px */

  /* ---- Spacing (8pt base) ---- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Shadows ---- */
  --shadow-sm:  0 1px 3px rgba(28, 53, 87, 0.05);
  --shadow-md:  0 4px 16px rgba(28, 53, 87, 0.07);
  --shadow-lg:  0 8px 32px rgba(28, 53, 87, 0.09);
  --shadow-xl:  0 20px 48px rgba(28, 53, 87, 0.12);

  /* ---- Transitions ---- */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast:   180ms;
  --duration-normal: 350ms;
  --duration-slow:   600ms;

  /* ---- Layout ---- */
  --max-width:        1100px;
  --max-width-narrow: 780px;
  --nav-height:       80px;

  /* ---- Border ---- */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
}


/* ============================================================
   2. BASE TYPOGRAPHY
   ============================================================ */

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: normal;
  line-height: 1.2;
  color: var(--color-navy-700);
}

p {
  margin-bottom: var(--space-4);
}

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

a {
  color: var(--color-navy-700);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-navy-600);
}

ul, ol {
  list-style: none;
}

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

::selection {
  background: var(--color-navy-700);
  color: var(--color-white);
}


/* ============================================================
   3. LAYOUT
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}


/* ============================================================
   4. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: var(--space-4) var(--space-8);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary: filled navy */
.btn--primary {
  background: var(--color-navy-700);
  color: var(--color-white);
  border-color: var(--color-navy-700);
}

.btn--primary:hover {
  background: var(--color-navy-800);
  border-color: var(--color-navy-800);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* Outline: navy border */
.btn--outline,
.btn-outline {
  background: transparent;
  color: var(--color-navy-700);
  border-color: var(--color-navy-700);
  padding: var(--space-3) var(--space-8);
}

.btn--outline:hover,
.btn-outline:hover {
  background: var(--color-navy-700);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* Light: for dark backgrounds */
.btn--light {
  background: var(--color-white);
  color: var(--color-navy-700);
  border-color: var(--color-white);
}

.btn--light:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

/* Ghost: text only with arrow */
.btn--ghost {
  background: none;
  color: var(--color-navy-700);
  padding: var(--space-2) 0;
  border: none;
  letter-spacing: 0.08em;
}

.btn--ghost::after {
  content: "\2192";
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn--ghost:hover {
  color: var(--color-navy-600);
  transform: none;
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}


/* ============================================================
   5. HEADER & NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-rule);
  transition:
    background var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    backdrop-filter var(--duration-normal) var(--ease-out);
}

/* Scrolled state: subtle elevation */
.site-header.header--scrolled {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(28, 53, 87, 0.06), var(--shadow-sm);
}

/* Transparent mode (homepage only) */
.header--transparent {
  background: transparent;
  border-bottom-color: transparent;
}

.header--transparent .site-logo {
  filter: brightness(0) invert(1);
  transition: filter var(--duration-normal) var(--ease-out);
}

.header--transparent .nav-links a {
  color: rgba(255, 255, 255, 0.7);
}

.header--transparent .nav-links a:hover,
.header--transparent .nav-links a.active {
  color: var(--color-white);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.header--transparent .nav-toggle span {
  background: var(--color-white);
}

/* Transparent + scrolled → normal */
.header--transparent.header--scrolled {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--color-rule);
  box-shadow: var(--shadow-sm);
}

.header--transparent.header--scrolled .site-logo {
  filter: none;
}

.header--transparent.header--scrolled .nav-links a {
  color: var(--color-text-muted);
}

.header--transparent.header--scrolled .nav-links a:hover,
.header--transparent.header--scrolled .nav-links a.active {
  color: var(--color-navy-700);
  border-bottom-color: var(--color-accent);
}

.header--transparent.header--scrolled .nav-toggle span {
  background: var(--color-navy-700);
}

/* Body offset for fixed header */
body {
  padding-top: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  height: 46px;
  width: auto;
  transition: filter var(--duration-normal) var(--ease-out);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition:
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-navy-700);
  border-bottom-color: var(--color-accent);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-navy-700);
  transition:
    transform var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}

/* Hamburger open state */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}


/* ============================================================
   6. HERO — HOME (video-capable cinematic)
   ============================================================ */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-32) 0 var(--space-24);
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-height)); /* overlap fixed header */
}

/* Video / image background */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-media video {
  display: block;
}

.hero-media img.hero-poster {
  display: none; /* hidden when video loads */
}

.hero-media video[data-failed] + img.hero-poster,
.hero-media video:not([src]) + img.hero-poster {
  display: block;
}

/* Fallback for no-video (static image hero) */
.hero--static {
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.hero--static .hero-media {
  display: none;
}

/* Gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(15, 34, 64, 0.3) 0%,
    rgba(15, 34, 64, 0.5) 40%,
    rgba(15, 34, 64, 0.75) 100%
  );
}

/* Static hero overlay (when using background-image) */
.hero--static::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(15, 34, 64, 0.3) 0%,
    rgba(15, 34, 64, 0.5) 40%,
    rgba(15, 34, 64, 0.75) 100%
  );
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-height);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-silver-400);
  display: block;
  margin-bottom: var(--space-6);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  color: var(--color-white);
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 750px;
  margin-bottom: var(--space-8);
}

.hero-sub {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: var(--space-10);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Subtle scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.35);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollHint 2.5s var(--ease-in-out) infinite;
}

.hero-scroll-hint svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

@keyframes scrollHint {
  0%, 100% { opacity: 0.35; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 0.6;  transform: translateX(-50%) translateY(6px); }
}


/* ============================================================
   7. PAGE HERO — INNER PAGES
   ============================================================ */

.page-hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-16);
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 34, 64, 0.35) 0%,
    rgba(15, 34, 64, 0.7) 100%
  );
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .section-label {
  color: var(--color-silver-400);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: var(--color-white);
}

.page-hero p {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 0;
}


/* ============================================================
   8. SECTIONS
   ============================================================ */

.section {
  padding: var(--space-24) 0;
}

.section-sm {
  padding: var(--space-16) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-navy-700);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

/* Gradient dark section for premium depth */
.section-dark--gradient {
  background: linear-gradient(
    160deg,
    var(--color-navy-900) 0%,
    var(--color-navy-700) 50%,
    var(--color-navy-800) 100%
  );
}

/* Section anatomy */
.section-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-4);
}

.section-dark .section-label {
  color: var(--color-silver-400);
  opacity: 0.8;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, var(--text-3xl));
  margin-bottom: var(--space-6);
  letter-spacing: -0.015em;
}

.section-lead {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  max-width: 660px;
  line-height: 1.75;
  margin-bottom: var(--space-12);
}

.section-lead-dark {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.5);
  max-width: 560px;
  line-height: 1.75;
}

/* Decorative rule */
.rule {
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  margin-bottom: var(--space-8);
}

/* Section divider line */
.section-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-silver-200) 20%,
    var(--color-silver-200) 80%,
    transparent
  );
}


/* ============================================================
   9. PILLAR CARDS (HOMEPAGE)
   ============================================================ */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
  margin-top: var(--space-12);
}

.pillar-card {
  border-top: 2px solid var(--color-silver-300);
  padding-top: var(--space-6);
  transition:
    border-color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

.pillar-card:hover {
  border-top-color: var(--color-navy-600);
}

.pillar-icon {
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-4);
  color: var(--color-silver-500);
  transition: color var(--duration-normal) var(--ease-out);
}

.pillar-card:hover .pillar-icon {
  color: var(--color-navy-600);
}

.pillar-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.pillar-number {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-silver-500);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--space-3);
}

.pillar-card h3 {
  font-size: var(--text-lg);
  color: var(--color-navy-700);
  margin-bottom: var(--space-3);
}

.pillar-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}


/* ============================================================
   10. STATS (TRACK RECORD)
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
  padding-top: var(--space-12);
}

.stat-block {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-6);
}

.stat-figure {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--color-white);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}


/* ============================================================
   11. CARD GRID (PRACTICE SNAPSHOT)
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-silver-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card-grid-item {
  background: var(--color-white);
  padding: var(--space-8);
  transition:
    background var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.card-grid-item:hover {
  background: var(--color-off-white);
}

.card-grid-item--full {
  grid-column: 1 / -1;
}

.card-grid-item h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.card-grid-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.65;
}

.cta-link-row {
  margin-top: var(--space-10);
}


/* ============================================================
   12. CREDIBILITY BLOCK (HOMEPAGE)
   ============================================================ */

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
}

.credibility-item {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-silver-200);
}

.credibility-item h3 {
  font-size: var(--text-base);
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-navy-700);
  margin-bottom: var(--space-3);
}

.credibility-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}


/* ============================================================
   13. EXPERIENCE HIGHLIGHT BLOCKS
   ============================================================ */

.highlight-block {
  border-top: 1px solid var(--color-rule);
  padding: var(--space-10) 0;
  transition: background var(--duration-slow) var(--ease-out);
}

.highlight-block:last-child {
  border-bottom: 1px solid var(--color-rule);
}

.highlight-block:hover {
  background: var(--color-off-white);
}

.highlight-block-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-8);
  align-items: start;
}

.highlight-tag {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding-top: 3px;
  line-height: 1.4;
}

.highlight-content h3 {
  font-size: var(--text-lg);
  color: var(--color-navy-700);
  margin-bottom: var(--space-4);
}

.highlight-content ul {
  padding: 0;
  margin: 0;
}

.highlight-content ul li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.65;
  border-bottom: 1px solid var(--color-rule);
  transition: color var(--duration-fast) var(--ease-out);
}

.highlight-content ul li:last-child {
  border-bottom: none;
}

.highlight-content ul li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--color-silver-400);
  font-size: var(--text-xs);
  top: 9px;
}


/* ============================================================
   14. PRACTICE AREA ITEMS
   ============================================================ */

.practice-list {
  border-top: 1px solid var(--color-rule);
}

.practice-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-8);
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--color-rule);
  transition: background var(--duration-slow) var(--ease-out);
}

.practice-item:hover {
  background: var(--color-off-white);
  margin: 0 calc(-1 * var(--space-4));
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.practice-item-heading {
  padding-top: 2px;
}

.practice-item-heading h3 {
  font-size: var(--text-xl);
  color: var(--color-navy-700);
  line-height: 1.25;
}

.practice-item-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.practice-item-body ul {
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-rule);
  padding-top: var(--space-4);
}

.practice-item-body ul li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-1) 0 var(--space-1) var(--space-5);
  position: relative;
  line-height: 1.6;
}

.practice-item-body ul li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--color-silver-400);
  font-size: var(--text-xs);
  top: 5px;
}


/* ============================================================
   15. ABOUT PAGE
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-16);
  align-items: start;
}

.about-sidebar-block {
  margin-bottom: var(--space-10);
}

.about-sidebar-block h4 {
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  font-weight: 400;
}

.about-sidebar-block ul li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-rule);
  line-height: 1.5;
  transition: color var(--duration-fast) var(--ease-out);
}

.about-sidebar-block ul li:first-child {
  border-top: 1px solid var(--color-rule);
}

.about-sidebar-block ul li:hover {
  color: var(--color-navy-700);
}

.about-body h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}

.about-body p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.about-body p strong {
  color: var(--color-text);
  font-weight: 600;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-rule);
}

.credential-block h4 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 400;
  margin-bottom: var(--space-3);
}

.credential-block ul li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  padding: var(--space-1) 0;
}

.credential-institution {
  color: var(--color-silver-500) !important;
  font-size: var(--text-xs) !important;
}

.credential-degree {
  margin-top: var(--space-3);
}

.about-principal-heading {
  margin-top: var(--space-10);
}

/* Principal portrait photo */
.principal-portrait {
  margin: var(--space-6) 0 var(--space-8);
  max-width: 150px;
}

.principal-photo {
  width: 100%;
  height: auto;
  border-radius: 6px;
  filter: grayscale(10%);
  box-shadow: var(--shadow-md);
  transition: filter var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.principal-photo:hover {
  filter: grayscale(0%);
  box-shadow: var(--shadow-lg);
}


/* ============================================================
   16. CONTACT PAGE
   ============================================================ */

.contact-intro {
  max-width: 600px;
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-rule);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12) var(--space-16);
  margin-bottom: var(--space-16);
}

.contact-item {
  border-top: 1px solid var(--color-rule);
  padding-top: var(--space-5);
  transition: border-color var(--duration-normal) var(--ease-out);
}

.contact-item:hover {
  border-top-color: var(--color-navy-600);
}

.contact-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-3);
}

.contact-value {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-navy-700);
  line-height: 1.3;
}

.contact-value a {
  color: var(--color-navy-700);
  transition: color var(--duration-fast) var(--ease-out);
}

.contact-value a:hover {
  color: var(--color-navy-600);
}

.contact-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  line-height: 1.6;
}

.contact-disclaimer {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-rule);
}

.contact-disclaimer p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 640px;
}


/* ============================================================
   17. INSIGHTS PAGE
   ============================================================ */

.insights-placeholder {
  padding: var(--space-20) 0;
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  margin: var(--space-12) 0;
}

.insights-placeholder p {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.75;
}

.insights-placeholder p + p {
  margin-top: var(--space-4);
}


/* ============================================================
   18. PRIVACY / PROSE PAGES
   ============================================================ */

.prose {
  max-width: var(--max-width-narrow);
}

.prose h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-rule);
}

.prose h2:first-of-type {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-rule);
}

.prose p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.prose ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.prose ul li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.prose a {
  color: var(--color-navy-600);
  text-decoration: underline;
  text-decoration-color: var(--color-silver-300);
  text-underline-offset: 3px;
  transition:
    color var(--duration-fast) var(--ease-out),
    text-decoration-color var(--duration-fast) var(--ease-out);
}

.prose a:hover {
  color: var(--color-navy-700);
  text-decoration-color: var(--color-navy-600);
}

.prose-updated {
  font-size: var(--text-xs);
  color: var(--color-accent);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-8);
}


/* ============================================================
   19. CTA BLOCK
   ============================================================ */

.cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  border-top: 1px solid var(--color-rule);
  padding: var(--space-16) 0;
}

.cta-block h2 {
  font-size: clamp(1.5rem, 2.5vw, var(--text-2xl));
  max-width: 500px;
  line-height: 1.25;
}

/* Full-width cinematic CTA */
.cta-cinematic {
  position: relative;
  padding: var(--space-32) 0;
  background: var(--color-navy-900);
  text-align: center;
  overflow: hidden;
}

.cta-cinematic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(42, 80, 130, 0.3) 0%,
    transparent 70%
  );
}

.cta-cinematic .container {
  position: relative;
  z-index: 1;
}

.cta-cinematic h2 {
  font-size: clamp(1.75rem, 3.5vw, var(--text-3xl));
  color: var(--color-white);
  max-width: 600px;
  margin: 0 auto var(--space-4);
  line-height: 1.2;
}

.cta-cinematic p {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-md);
  margin-bottom: var(--space-10);
}


/* ============================================================
   20. FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-navy-900);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-12);
  align-items: start;
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-8);
}

.footer-logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.footer-logo:hover {
  opacity: 0.9;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  padding-top: var(--space-1);
  align-items: flex-start;
}

.footer-nav a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-nav a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact-block {
  text-align: right;
}

.footer-contact-label {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  display: block;
  margin-bottom: var(--space-2);
}

.footer-contact-email {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-contact-email:hover {
  color: rgba(255, 255, 255, 1);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.25);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-5);
}

.footer-legal-links a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-legal-links a:hover {
  color: rgba(255, 255, 255, 0.65);
}


/* ============================================================
   21. SCROLL REVEAL ANIMATIONS
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Staggered children */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

[data-reveal-stagger].is-revealed > * {
  opacity: 1;
  transform: none;
}

[data-reveal-stagger].is-revealed > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-revealed > *:nth-child(2) { transition-delay: 100ms; }
[data-reveal-stagger].is-revealed > *:nth-child(3) { transition-delay: 200ms; }
[data-reveal-stagger].is-revealed > *:nth-child(4) { transition-delay: 300ms; }
[data-reveal-stagger].is-revealed > *:nth-child(5) { transition-delay: 400ms; }
[data-reveal-stagger].is-revealed > *:nth-child(6) { transition-delay: 500ms; }

/* Hero elements entrance */
.hero [data-reveal] {
  transition-delay: 300ms;
}

.hero [data-reveal]:nth-child(1) { transition-delay: 200ms; }
.hero [data-reveal]:nth-child(2) { transition-delay: 400ms; }
.hero [data-reveal]:nth-child(3) { transition-delay: 600ms; }
.hero [data-reveal]:nth-child(4) { transition-delay: 800ms; }
.hero [data-reveal]:nth-child(5) { transition-delay: 1000ms; }


/* ============================================================
   22. FOCUS STATES (ACCESSIBILITY)
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--color-navy-600);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.btn:focus-visible {
  outline-offset: 4px;
}

.nav-links a:focus-visible {
  outline-offset: 6px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-2);
  background: var(--color-navy-700);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  z-index: 200;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: var(--space-4);
}


/* ============================================================
   23. RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  /* Navigation */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: var(--space-6) var(--space-8);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    border-bottom: 1px solid var(--color-rule);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }

  .header--transparent .nav-links {
    background: rgba(15, 34, 64, 0.95);
  }

  .header--transparent .nav-links a {
    color: rgba(255, 255, 255, 0.7);
  }

  .header--transparent.header--scrolled .nav-links {
    background: rgba(255, 255, 255, 0.98);
  }

  .header--transparent.header--scrolled .nav-links a {
    color: var(--color-text-muted);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 75vh;
    padding: var(--space-20) 0 var(--space-12);
  }

  .hero-headline {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-scroll-hint {
    display: none;
  }

  .page-hero {
    padding: var(--space-16) 0 var(--space-10);
    min-height: 280px;
  }

  /* Sections */
  .section {
    padding: var(--space-16) 0;
  }

  /* Grids */
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-top: var(--space-8);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .credibility-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .practice-item {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .practice-item:hover {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-grid-item--full {
    grid-column: auto;
  }

  .highlight-block-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .highlight-tag {
    margin-bottom: var(--space-1);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .credentials-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .cta-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-block h2 {
    font-size: var(--text-xl);
  }

  .cta-cinematic {
    padding: var(--space-20) 0;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-contact-block {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  .container,
  .nav-inner,
  .footer-inner {
    padding: 0 var(--space-6);
  }

  .nav-links {
    padding: var(--space-6);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
  }

  .card-grid-item {
    padding: var(--space-6);
  }
}


/* ============================================================
   24. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-media video {
    display: none;
  }

  .hero-media img.hero-poster {
    display: block;
  }
}


/* ============================================================
   25. PRINT
   ============================================================ */

@media print {
  .site-header,
  .site-footer,
  .hero-media video,
  .hero-scroll-hint,
  .nav-toggle,
  .btn,
  .btn-outline {
    display: none !important;
  }

  body {
    padding-top: 0;
    color: #000;
    background: #fff;
  }

  .hero,
  .page-hero {
    min-height: auto;
    padding: var(--space-8) 0;
    background: none !important;
    color: #000;
  }

  .hero::before,
  .page-hero::before,
  .hero-overlay {
    display: none;
  }

  .hero-headline,
  .page-hero h1 {
    color: #000;
  }

  .hero-sub,
  .page-hero p {
    color: #333;
  }
}
