/*
Theme Name: TrustSphere Legal
Theme URI: https://trustspherelegal.com
Author: TrustSphere Legal PLLC
Author URI: https://trustspherelegal.com
Description: Custom dark-mode theme for TrustSphere Legal PLLC — a multi-jurisdictional law firm with offices in Washington D.C., Florida and Kentucky. Classic PHP templates, no page builder dependency.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: Proprietary
License URI: https://trustspherelegal.com/terms/
Text Domain: trustsphere
Tags: one-column, custom-menu, featured-images, translation-ready, dark-mode, legal
*/

/* ==========================================================================
   0. CSS CUSTOM PROPERTIES — DESIGN TOKENS (from brand-config.json)
   ========================================================================== */

:root {
  /* Brand colors */
  --navy:        #00477F;
  --navy-l:      #0060A8;
  --navy-bright: #1A8CDB;

  /* Backgrounds */
  --bg:    #070810;
  --surf:  #0D0E17;
  --surf2: #12141F;

  /* Text */
  --text:  #D4D7E0;
  --muted: #7E84A0;
  --dim:   #4A5070;
  --white: #FFFFFF;
  --char:  #333333;

  /* Borders */
  --bdr:  rgba(255,255,255,0.05);
  --bdr2: rgba(255,255,255,0.08);

  /* Accent */
  --green: #2ecc71;
  --red:   #c0392b;

  /* Spacing */
  --pad: clamp(1.5rem, 4vw, 3.5rem);

  /* Typography */
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-w: 1440px;
  --nav-h: 68px;
}

/* ---------- LIGHT MODE OVERRIDES ---------- */

[data-theme="light"] {
  --bg:    #F8F9FA;
  --surf:  #FFFFFF;
  --surf2: #F0F2F5;
  --text:  #3A3A4A;
  --muted: #5A5A6A;
  --dim:   #8A8A9A;
  --white: #1A1A2E;
  --char:  #1A1A2E;
  --bdr:   rgba(0,0,0,0.08);
  --bdr2:  rgba(0,0,0,0.12);
}

/* Light mode — header & footer stay dark for professional contrast */
[data-theme="light"] .site-header {
  background: rgba(26,26,46,0.97);
  backdrop-filter: blur(16px) saturate(180%);
}
[data-theme="light"] .site-header.scrolled {
  background: rgba(26,26,46,0.99);
}
[data-theme="light"] .site-footer {
  background: #1A1A2E;
  --text: #D4D7E0;
  --muted: #7E84A0;
  --dim: #4A5070;
  --white: #FFFFFF;
  --bdr: rgba(255,255,255,0.05);
}
[data-theme="light"] .site-footer a { color: var(--muted); }
[data-theme="light"] .site-footer a:hover { color: var(--white); }
[data-theme="light"] .site-footer .footer-copyright,
[data-theme="light"] .site-footer .footer-legal a,
[data-theme="light"] .site-footer .footer-disclaimer { color: var(--dim); }
[data-theme="light"] .site-footer .site-logo { color: var(--white); }
[data-theme="light"] .site-footer .site-logo em { color: var(--navy-l); }
[data-theme="light"] .site-footer h5 { color: var(--muted); }
[data-theme="light"] .site-footer .jur-text { color: var(--muted); }
[data-theme="light"] .site-footer .footer-brand p { color: var(--dim); }

/* Light mode — hero gradient adjusts */
[data-theme="light"] .hero h1 {
  background: linear-gradient(135deg, #1A1A2E, var(--navy));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Light mode — cards get subtle shadow */
[data-theme="light"] .card,
[data-theme="light"] .office-card,
[data-theme="light"] .service-item,
[data-theme="light"] .approach-item {
  background: var(--surf);
  border-color: var(--bdr);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
[data-theme="light"] .card:hover,
[data-theme="light"] .office-card:hover,
[data-theme="light"] .service-item:hover {
  background: var(--surf2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Light mode — stats bar */
[data-theme="light"] .stats-bar {
  background: #1A1A2E;
  --white: #FFFFFF;
  --muted: #7E84A0;
  --bdr: rgba(255,255,255,0.05);
}
[data-theme="light"] .stat-value { color: #FFFFFF; }
[data-theme="light"] .stat-label { color: #7E84A0; }

/* Light mode — buttons remain high contrast */
[data-theme="light"] .btn { background: var(--navy); color: #FFFFFF; }
[data-theme="light"] .btn:hover { background: var(--navy-l); color: #FFFFFF; }

/* Light mode — form inputs */
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea,
[data-theme="light"] .contact-form select {
  background: #FFFFFF;
  border-color: #D0D5DD;
  color: #1A1A2E;
}
[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form textarea:focus,
[data-theme="light"] .contact-form select:focus {
  border-color: var(--navy-l);
  background: #FFFFFF;
}
[data-theme="light"] .contact-form input::placeholder,
[data-theme="light"] .contact-form textarea::placeholder { color: #8A8A9A; }

/* Light mode — selection */
[data-theme="light"] ::selection { background: var(--navy); color: #FFFFFF; }

/* Light mode — 404 heading gradient */
[data-theme="light"] .error-404 h1 {
  background: linear-gradient(135deg, #1A1A2E, var(--navy));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Light mode — jurisdiction bar */
[data-theme="light"] .jur-bar { background: var(--surf2); }

/* Light mode — post cards */
[data-theme="light"] .post-card { background: var(--surf); }
[data-theme="light"] .post-card:hover { background: var(--surf2); }

/* Light mode — hero radial glow lighter */
[data-theme="light"] .hero::before {
  background: radial-gradient(circle, rgba(0,71,127,0.06), transparent 70%);
}

/* ---------- THEME TOGGLE BUTTON ---------- */

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.25s ease, transform 0.25s ease;
  border-radius: 4px;
}
.theme-toggle:hover { color: var(--white); transform: scale(1.1); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Dark mode (default): show sun, hide moon */
.icon-sun  { display: block; }
.icon-moon { display: none; }
/* Light mode: show moon, hide sun */
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Header toggle always uses dark-header colors */
.site-header .theme-toggle { color: #7E84A0; }
.site-header .theme-toggle:hover { color: #FFFFFF; }

/* Smooth transitions for theme switching */
body,
.card, .office-card, .service-item, .approach-item, .post-card,
.contact-form input, .contact-form textarea, .contact-form select,
.hero::before, .jur-bar, .section {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a {
  color: var(--navy-l);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: var(--navy-bright); }

ul, ol { list-style: none; }

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

h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  font-weight: 300;
  line-height: 1.25;
}

h1 {
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  font-weight: 200;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  letter-spacing: -0.025em;
}

h2.large {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

h4 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy-l);
}

h5 {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

h6 {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

p { margin-bottom: 1rem; }

.eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy-l);
  margin-bottom: 1rem;
}

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

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--bdr);
}

.section:last-child { border-bottom: none; }

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}

.text-center { text-align: center; }

.section-header {
  margin-bottom: 3rem;
}

.section-header p {
  color: var(--muted);
  max-width: 600px;
  margin-top: 0.75rem;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered p {
  margin-left: auto;
  margin-right: auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  background: var(--navy-l);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,71,127,0.25);
}

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

.btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--bdr2);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--surf);
  border-color: var(--navy-l);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 0.62rem;
}
.btn-ghost:hover {
  color: var(--white);
  transform: none;
  box-shadow: none;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(7,8,16,0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--bdr);
  transition: background 0.3s ease;
}

.site-header.scrolled { background: rgba(7,8,16,0.97); }

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

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.site-logo em {
  font-style: normal;
  color: var(--navy-l);
}

.site-logo img {
  width: 32px;
  height: 32px;
}

/* Nav right wrapper (menu + theme toggle) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
  text-decoration: none;
}

.nav-menu a:hover { color: var(--white); }

.nav-menu .cta-link {
  color: var(--navy-l);
  font-weight: 500;
}

.nav-menu .cta-link:hover { color: var(--navy-bright); }

/* WordPress menu output — strip default styles */
.nav-menu ul { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-menu li { margin: 0; }
.nav-menu li a { font-size: 0.62rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color 0.25s ease; text-decoration: none; }
.nav-menu li a:hover { color: var(--white); }
.nav-menu li.menu-item-cta a { color: var(--navy-l); font-weight: 500; }
.nav-menu li.menu-item-cta a:hover { color: var(--navy-bright); }
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a { color: var(--white); }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1010;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-right { gap: 1rem; }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7,8,16,0.97);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1005;
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 2rem;
  }

  .nav-menu a,
  .nav-menu li a {
    font-size: 0.85rem;
  }

  /* Keep theme toggle visible on mobile */
  .theme-toggle { z-index: 1010; }
}

/* Spacer for fixed header */
.header-spacer { height: var(--nav-h); }

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */

.hero {
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,71,127,0.10), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  max-width: 820px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--white), var(--navy-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  max-width: 440px;
  margin: 0 auto 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}
.hero-tel:hover { color: var(--white); }

.hero-tel svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Jurisdiction bar */
.jur-bar {
  padding: 1.5rem 0;
  border-top: 1px solid var(--bdr);
  border-bottom: 1px solid var(--bdr);
}

.jur-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.jur-label {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.jur-item {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jur-item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--navy-l);
}

/* ==========================================================================
   7. CARDS
   ========================================================================== */

.card {
  background: var(--bg);
  border: 1px solid var(--bdr);
  border-radius: 8px;
  padding: 1.8rem;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
  background: var(--surf);
  border-color: var(--bdr2);
  transform: translateY(-2px);
}

.card-number {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--dim);
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.card h3 { margin-bottom: 0.75rem; }

.card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

.card a.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   8. STATS BAR
   ========================================================================== */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--bdr);
  border-bottom: 1px solid var(--bdr);
}

.stat {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--bdr);
}

.stat:last-child { border-right: none; }

.stat-value {
  font-size: 2.8rem;
  font-weight: 200;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 768px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
}

/* ==========================================================================
   9. OFFICE CARDS
   ========================================================================== */

.office-card {
  background: var(--bg);
  border: 1px solid var(--bdr);
  border-radius: 8px;
  padding: 1.8rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.office-card:hover {
  background: var(--surf);
  border-color: var(--bdr2);
}

.office-type {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-l);
  margin-bottom: 0.75rem;
}

.office-card h3 { margin-bottom: 0.75rem; }

.office-address {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.office-phone {
  font-size: 0.72rem;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.office-phone a { color: var(--dim); transition: color 0.25s ease; }
.office-phone a:hover { color: var(--white); }

.office-meta {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--bdr);
  font-size: 0.6rem;
  color: var(--dim);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   10. CONTACT FORM
   ========================================================================== */

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 768px) {
  .contact-section { grid-template-columns: 1fr; gap: 2.5rem; }
}

.contact-info h2 { margin-bottom: 1rem; }

.contact-info p { color: var(--muted); margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.contact-detail svg {
  width: 16px;
  height: 16px;
  stroke: var(--navy-l);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.contact-detail span { color: var(--text); }
.contact-detail a { color: var(--text); }
.contact-detail a:hover { color: var(--white); }

.contact-detail .label {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  display: block;
  margin-bottom: 0.15rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surf);
  border: 1px solid var(--bdr2);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  transition: border-color 0.25s ease, background 0.25s ease;
  margin-bottom: 1rem;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--navy-l);
  background: var(--surf2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--dim);
}

.contact-form input:invalid:not(:placeholder-shown) {
  border-color: var(--red);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%237E84A0' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form select option {
  background: var(--surf);
  color: var(--text);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .contact-form .form-row { grid-template-columns: 1fr; }
}

.form-note {
  font-size: 0.6rem;
  color: var(--dim);
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* ==========================================================================
   11. PRACTICE AREA DETAIL PAGES
   ========================================================================== */

.practice-intro {
  max-width: 840px;
}

.practice-intro p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .service-list { grid-template-columns: 1fr; }
}

.service-item {
  padding: 1.8rem;
  border: 1px solid var(--bdr);
  border-radius: 8px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.service-item:hover {
  background: var(--surf);
  border-color: var(--bdr2);
}

.service-item h3 { margin-bottom: 0.5rem; }

.service-item p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

.practice-callout {
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid var(--bdr);
  border-radius: 8px;
  background: var(--surf);
}

.practice-callout h3 { margin-bottom: 0.5rem; }

.practice-callout p {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ==========================================================================
   12. CTA BAND
   ========================================================================== */

.cta-band {
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid var(--bdr);
}

.cta-band p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--bdr);
  padding: 4rem 0 2rem;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-brand .site-logo {
  margin-bottom: 1rem;
}

.footer-brand .site-logo img { width: 18px; height: 18px; }

.footer-brand p {
  font-size: 0.72rem;
  color: var(--dim);
  line-height: 1.7;
}

.footer-col h5 { margin-bottom: 1rem; }

.footer-col ul { list-style: none; margin: 0; padding: 0; }

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.25s ease;
}

.footer-col a:hover { color: var(--white); }

.footer-col .jur-text {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.9;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid var(--bdr);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.6rem;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.6rem;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.footer-legal a:hover { color: var(--muted); }

.footer-disclaimer {
  margin-top: 1.5rem;
  max-width: 840px;
  font-size: 0.6rem;
  color: var(--dim);
  line-height: 1.7;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   14. PAGE-SPECIFIC — GENERIC PAGE
   ========================================================================== */

.page-hero {
  padding: 6rem 0 3rem;
  border-bottom: 1px solid var(--bdr);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  max-width: 820px;
}

.page-hero p {
  color: var(--muted);
  max-width: 600px;
  margin-top: 1rem;
}

.page-content {
  padding: 4rem 0;
}

.page-content .entry-content {
  max-width: 780px;
}

.entry-content h2 { margin: 2.5rem 0 1rem; }
.entry-content h3 { margin: 2rem 0 0.75rem; }
.entry-content p  { color: var(--muted); margin-bottom: 1rem; }
.entry-content ul { list-style: disc; padding-left: 1.2rem; margin-bottom: 1rem; }
.entry-content ul li { color: var(--muted); margin-bottom: 0.4rem; font-size: 0.85rem; }
.entry-content ol { list-style: decimal; padding-left: 1.2rem; margin-bottom: 1rem; }
.entry-content ol li { color: var(--muted); margin-bottom: 0.4rem; font-size: 0.85rem; }
.entry-content a { color: var(--navy-l); text-decoration: underline; }
.entry-content a:hover { color: var(--navy-bright); }
.entry-content blockquote {
  border-left: 2px solid var(--navy);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}

/* ==========================================================================
   15. BLOG / ARCHIVE
   ========================================================================== */

.post-card {
  border: 1px solid var(--bdr);
  border-radius: 8px;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
  background: var(--surf);
  border-color: var(--bdr2);
}

.post-card-body { padding: 1.8rem; }

.post-card .post-meta {
  font-size: 0.6rem;
  color: var(--dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.post-card h3 { margin-bottom: 0.5rem; }

.post-card h3 a { color: var(--white); text-decoration: none; }
.post-card h3 a:hover { color: var(--navy-bright); }

.post-card p { color: var(--muted); font-size: 0.82rem; }

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 3rem 0;
}

.pagination a, .pagination span {
  padding: 0.5rem 1rem;
  border: 1px solid var(--bdr);
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--muted);
}

.pagination .current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.pagination a:hover {
  background: var(--surf);
  border-color: var(--bdr2);
  color: var(--white);
}

/* ==========================================================================
   16. 404
   ========================================================================== */

.error-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--pad);
}

.error-404 h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 200;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--white), var(--navy-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-404 p {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 400px;
}

/* ==========================================================================
   17. APPROACH GRID (The Firm page)
   ========================================================================== */

.approach-item {
  padding: 1.8rem;
  border: 1px solid var(--bdr);
  border-radius: 8px;
}

.approach-item .card-number { margin-bottom: 0.75rem; }
.approach-item h3 { margin-bottom: 0.5rem; }
.approach-item p { color: var(--muted); font-size: 0.82rem; line-height: 1.8; }

/* ==========================================================================
   18. LIVE INDICATOR
   ========================================================================== */

.rt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.rt::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46,204,113,0.3); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(46,204,113,0); }
}

/* ==========================================================================
   19. SCREEN READER ONLY
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   20. WORDPRESS DEFAULTS
   ========================================================================== */

.wp-caption { max-width: 100%; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.sticky {}
.gallery-caption {}
.bypostauthor {}
