/* ═══════════════════════════════════════════════════════
   TVA LAW OFFICE — GLOBAL DESIGN SYSTEM v3
   Refined · Authoritative · Conversion-focused
   Navy #0f1e35 · Gold #c9a96e · Playfair + DM Sans
   ═══════════════════════════════════════════════════════ */

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

:root {
  /* Core palette */
  --navy:        #0f1e35;
  --navy-mid:    #162844;
  --navy-deep:   #0a1525;
  --navy-light:  #1e3254;
  --gold:        #c9a96e;
  --gold-light:  #dfc08f;
  --gold-pale:   #f5ead8;
  --gold-dim:    rgba(201,169,110,0.14);
  --white:       #ffffff;
  --off-white:   #fafaf8;
  --gray-50:     #f7f6f4;
  --gray-100:    #eeece8;
  --gray-200:    #dedad3;
  --gray-400:    #a09a90;
  --gray-600:    #6b6560;
  --gray-800:    #2e2b27;

  /* Typography */
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  /* Spacing rhythm */
  --section-lg: 112px;
  --section-md: 80px;

  /* Elevation system — consistent across all cards */
  --shadow-card: 0 2px 12px rgba(15,30,53,0.07), 0 8px 32px rgba(15,30,53,0.06);
  --shadow-lift: 0 8px 32px rgba(15,30,53,0.13), 0 24px 56px rgba(15,30,53,0.08);
  --shadow-gold: 0 6px 28px rgba(201,169,110,0.22);
  --shadow-sm:   0 2px 8px rgba(15,30,53,0.07);
  --shadow-md:   0 8px 32px rgba(15,30,53,0.12);
  --shadow-lg:   0 24px 64px rgba(15,30,53,0.16);

  /* Borders */
  --border:      rgba(201,169,110,0.18);
  --border-nav:  rgba(255,255,255,0.07);
  --border-card: rgba(238,236,232,1);

  /* Transitions */
  --trans: 0.26s cubic-bezier(0.4,0,0.2,1);

  /* Cards — standard radius (0 = sharp, authoritative) */
  --radius: 0px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans); background: var(--white);
  color: var(--gray-800); line-height: 1.7; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

/* ── CONTAINER ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 48px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }
em { font-style: italic; }
.gold-em { color: var(--gold); font-style: italic; }

.display-h1 { font-size: clamp(40px, 4.8vw, 64px); font-weight: 600; line-height: 1.06; letter-spacing: -0.022em; }
.display-h2 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 500; letter-spacing: -0.016em; line-height: 1.15; }
.display-h3 { font-size: clamp(19px, 1.9vw, 25px); font-weight: 500; }

/* ── EYEBROW ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; display: block; width: 26px; height: 1px;
  background: var(--gold); flex-shrink: 0;
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 52px; flex-wrap: wrap; gap: 18px;
}
.gold-rule { width: 44px; height: 2px; background: var(--gold); margin-bottom: 26px; }

/* ═══════════════════════
   BUTTONS — unified system
   ═══════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase;
  text-decoration: none; padding: 15px 34px;
  border: none; cursor: pointer; transition: all var(--trans);
  white-space: nowrap; line-height: 1; border-radius: var(--radius);
}
.btn svg { transition: transform var(--trans); flex-shrink: 0; }
.btn:hover svg { transform: translateX(4px); }

/* Primary — gold fill */
.btn-gold {
  background: var(--gold); color: var(--navy-deep);
}
.btn-gold:hover {
  background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-gold);
}

/* Secondary — navy fill */
.btn-navy {
  background: var(--navy); color: var(--gold);
}
.btn-navy:hover {
  background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow-md);
}

/* Ghost — light (on dark bg) */
.btn-outline-light {
  background: transparent; color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.09); color: white; border-color: rgba(255,255,255,0.48);
}

/* Ghost — dark (on light bg) */
.btn-outline-dark {
  background: transparent; color: var(--navy);
  border: 1.5px solid rgba(15,30,53,0.28);
}
.btn-outline-dark:hover {
  background: var(--navy); color: white; border-color: var(--navy);
}

/* Ghost — gold (on any bg) */
.btn-ghost-gold {
  background: transparent; color: var(--gold);
  border: 1.5px solid rgba(201,169,110,0.35);
  padding: 12px 26px;
}
.btn-ghost-gold:hover {
  background: var(--gold); color: var(--navy-deep); border-color: var(--gold);
}

/* ═══════════════════════
   TOPBAR
   ═══════════════════════ */
.topbar {
  background: var(--navy-deep); border-bottom: 1px solid var(--border-nav); padding: 9px 0;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-contacts { display: flex; align-items: center; gap: 26px; }
.topbar-link {
  display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 500;
  color: rgba(255,255,255,0.42); text-decoration: none; letter-spacing: 0.02em; transition: color var(--trans);
}
.topbar-link:hover { color: var(--gold); }
.topbar-link svg { color: var(--gold); opacity: 0.75; flex-shrink: 0; }
.topbar-tag { font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.18); }

/* ═══════════════════════
   HEADER / NAV
   ═══════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10,21,37,0.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-nav); transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.28); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

/* Logo */
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; display: block; }
.logo-fallback { display: none; align-items: baseline; gap: 5px; }
.logo-tva { font-family: var(--serif); font-size: 25px; font-weight: 700; color: white; letter-spacing: -0.02em; }
.logo-law { font-family: var(--sans); font-size: 9.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-left: 2px; align-self: center; }

/* Nav links */
nav ul { display: flex; align-items: center; gap: 2px; list-style: none; }
nav ul li { position: relative; }
nav ul li > a {
  font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: 0.07em;
  text-transform: uppercase; color: rgba(255,255,255,0.55); text-decoration: none;
  padding: 9px 13px; display: block; transition: color var(--trans);
}
nav ul li > a:hover, nav ul li > a.active { color: white; }
nav ul li:hover .dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--navy-mid); border: 1px solid var(--border-nav);
  border-top: 2px solid var(--gold); min-width: 210px;
  opacity: 0; pointer-events: none; transform: translateY(5px);
  transition: all 0.2s; z-index: 300; box-shadow: 0 16px 48px rgba(0,0,0,0.28);
}
.dropdown a {
  display: block; font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.52);
  text-decoration: none; padding: 11px 17px; border-bottom: 1px solid var(--border-nav);
  transition: all 0.18s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { color: var(--gold); background: rgba(201,169,110,0.06); padding-left: 21px; }

.nav-cta {
  margin-left: 14px !important; background: var(--gold) !important; color: var(--navy-deep) !important;
  font-family: var(--sans) !important; font-size: 11px !important; font-weight: 700 !important;
  letter-spacing: 0.11em !important; text-transform: uppercase !important;
  padding: 10px 20px !important; text-decoration: none !important; display: inline-block !important;
  transition: all var(--trans) !important; white-space: nowrap !important;
}
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px) !important; box-shadow: var(--shadow-gold) !important; }

/* Hamburger + mobile */
.hamburger { display: none; background: none; border: none; cursor: pointer; color: white; padding: 8px; }
.mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--navy-deep); z-index: 400;
  flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--serif); font-size: 26px; font-weight: 400;
  color: rgba(255,255,255,0.78); text-decoration: none; transition: color var(--trans);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-close {
  position: absolute; top: 24px; right: 24px; background: none; border: none;
  color: rgba(255,255,255,0.38); cursor: pointer; font-size: 34px; line-height: 1; transition: color var(--trans);
}
.mobile-close:hover { color: var(--gold); }

/* ═══════════════════════
   PAGE HERO (interior pages)
   ═══════════════════════ */
.page-hero {
  background: var(--navy-deep); padding: 84px 0 76px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #07111f 0%, #0d1c34 50%, #0c1829 100%);
  pointer-events: none;
}
.page-hero-accent {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, transparent, var(--gold) 25%, var(--gold) 75%, transparent);
  opacity: 0.4;
}
.page-hero-inner { position: relative; z-index: 2; }
.breadcrumb {
  display: flex; align-items: center; gap: 7px; margin-bottom: 22px;
  font-family: var(--sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.28);
}
.breadcrumb a { color: rgba(255,255,255,0.32); text-decoration: none; transition: color var(--trans); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: rgba(255,255,255,0.14); }
.breadcrumb .current { color: var(--gold); }
.page-hero h1 {
  font-family: var(--serif); color: white; font-size: clamp(36px,4.8vw,58px);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 18px;
}
.page-hero h1 em { color: var(--gold); font-style: italic; }
.page-hero-sub { font-size: 16.5px; font-weight: 300; color: rgba(255,255,255,0.48); line-height: 1.8; max-width: 660px; }

/* ═══════════════════════
   QUICK BAR
   ═══════════════════════ */
.quick-bar { background: var(--gold); }
.quick-bar-inner { display: flex; }
.qb-link {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 16px 18px; font-family: var(--sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-deep);
  text-decoration: none; border-right: 1px solid rgba(15,30,53,0.11); transition: background var(--trans);
}
.qb-link:last-child { border-right: none; }
.qb-link:hover { background: rgba(15,30,53,0.09); }
.qb-link svg { opacity: 0.65; flex-shrink: 0; }

/* ═══════════════════════
   INTERIOR CONTENT LAYOUT
   ═══════════════════════ */
.content-wrap { padding: var(--section-lg) 0; background: var(--white); }
.content-grid { display: grid; grid-template-columns: 1fr 348px; gap: 68px; align-items: start; }

/* Prose */
.prose h2 {
  font-family: var(--serif); font-size: clamp(22px,2.4vw,30px); font-weight: 500;
  color: var(--navy); margin: 40px 0 15px; padding-bottom: 11px; border-bottom: 1px solid var(--gray-100);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold); margin: 26px 0 9px;
}
.prose p { font-size: 15.5px; color: var(--gray-600); line-height: 1.85; font-weight: 300; margin-bottom: 17px; }
.prose p a { color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--trans); }
.prose p a:hover { border-color: var(--gold); }
.prose ul { list-style: none; margin: 0 0 20px; padding: 0; }
.prose ul li {
  font-size: 15.5px; color: var(--gray-600); line-height: 1.75; font-weight: 300;
  padding: 9px 0 9px 22px; position: relative; border-bottom: 1px solid var(--gray-100);
}
.prose ul li:last-child { border-bottom: none; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 20px; width: 10px; height: 1px; background: var(--gold); }
.prose strong { font-weight: 600; color: var(--navy); }
.callout {
  background: var(--gray-50); border-left: 3px solid var(--gold); padding: 18px 22px; margin: 26px 0;
}
.callout p { font-size: 13.5px; font-style: italic; color: var(--gray-400); margin: 0; font-weight: 400; }

/* Sidebar */
.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }
.sidebar-cta { background: var(--navy); padding: 34px; position: relative; overflow: hidden; }
.sidebar-cta::before {
  content: ''; position: absolute; bottom: -50px; right: -50px; width: 160px; height: 160px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,169,110,0.08) 0%, transparent 70%);
}
.sidebar-cta-label {
  font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 13px;
  display: flex; align-items: center; gap: 9px;
}
.sidebar-cta-label::before { content:''; width:16px; height:1px; background:var(--gold); display:block; }
.sidebar-cta h3 { font-family: var(--serif); font-size: 19px; font-weight: 400; color: white; line-height: 1.35; margin-bottom: 13px; }
.sidebar-cta p { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.42); line-height: 1.7; margin-bottom: 19px; }
.sidebar-contact { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: rgba(255,255,255,0.38); margin-bottom: 9px; font-weight: 300; }
.sidebar-contact svg { color: var(--gold); flex-shrink: 0; }
.sidebar-contact a { color: rgba(255,255,255,0.38); text-decoration: none; transition: color var(--trans); }
.sidebar-contact a:hover { color: var(--gold); }

.sidebar-news { background: var(--gray-50); padding: 26px; border: 1px solid var(--gray-100); }
.sidebar-news-label {
  font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-200);
}
.sidebar-news-item { padding: 11px 0; border-bottom: 1px solid var(--gray-100); }
.sidebar-news-item:last-child { border-bottom: none; }
.sidebar-news-item a {
  font-family: var(--serif); font-size: 14.5px; color: var(--navy); text-decoration: none;
  line-height: 1.35; display: block; margin-bottom: 3px; transition: color var(--trans);
}
.sidebar-news-item a:hover { color: var(--gold); }
.sidebar-news-date { font-family: var(--sans); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-400); }

.sidebar-quotes { background: var(--navy); padding: 26px; }
.sidebar-q { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.sidebar-q:last-of-type { border-bottom: none; }
.sidebar-q p { font-family: var(--serif); font-style: italic; font-size: 13.5px; color: rgba(255,255,255,0.48); line-height: 1.6; margin-bottom: 5px; }
.sidebar-q-author { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* ═══════════════════════
   PRACTICE CARDS — unified
   ═══════════════════════ */
.practice-card {
  background: var(--white); border: 1px solid var(--border-card);
  padding: 36px 32px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: all var(--trans);
  position: relative; overflow: hidden; box-shadow: var(--shadow-card);
}
.practice-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--trans);
}
.practice-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: transparent; }
.practice-card:hover::after { transform: scaleX(1); }
.card-icon {
  width: 48px; height: 48px; background: var(--navy); display: flex; align-items: center;
  justify-content: center; margin-bottom: 22px; flex-shrink: 0; transition: background var(--trans);
}
.card-icon svg { color: var(--gold); transition: color var(--trans); }
.practice-card:hover .card-icon { background: var(--gold); }
.practice-card:hover .card-icon svg { color: var(--navy); }
.card-title { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--navy); margin-bottom: 10px; line-height: 1.25; }
.card-desc { font-size: 13.5px; color: var(--gray-600); line-height: 1.75; flex: 1; margin-bottom: 22px; font-weight: 400; }
.card-link { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 7px; transition: gap var(--trans); }
.practice-card:hover .card-link { gap: 13px; }

/* ═══════════════════════
   TESTIMONIAL CARDS — unified
   ═══════════════════════ */
.t-card {
  background: var(--white); border: 1px solid var(--border-card); padding: 36px 32px;
  position: relative; overflow: hidden; transition: all var(--trans); display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
}
.t-card::after {
  content: '\201C'; position: absolute; top: 14px; right: 22px; font-family: var(--serif);
  font-size: 76px; color: var(--navy); opacity: 0.04; line-height: 1; pointer-events: none;
}
.t-card:hover { border-color: var(--gold); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.t-stars { display: flex; gap: 3px; margin-bottom: 18px; }
.t-stars span { color: var(--gold); font-size: 13px; }
.t-quote { font-family: var(--serif); font-style: italic; font-size: 15.5px; color: var(--gray-800); line-height: 1.7; margin-bottom: 26px; flex: 1; }
.t-rule { width: 28px; height: 1px; background: var(--gold); margin-bottom: 18px; }
.t-author { display: flex; align-items: center; gap: 13px; }
.t-avatar { width: 38px; height: 38px; background: var(--navy); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--gold); flex-shrink: 0; }
.t-name { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); }
.t-role { font-size: 11.5px; color: var(--gray-400); margin-top: 2px; }

/* ═══════════════════════
   BLOG / INSIGHT CARDS
   ═══════════════════════ */
.insight-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--border-card); transition: all var(--trans); overflow: hidden; background: var(--white); box-shadow: var(--shadow-card); }
.insight-card:hover { border-color: transparent; box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.insight-img { height: 196px; overflow: hidden; background: var(--gray-100); }
.insight-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.insight-card:hover .insight-img img { transform: scale(1.04); }
.insight-body { padding: 26px 26px 22px; flex: 1; display: flex; flex-direction: column; }
.insight-meta { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 9px; }
.insight-title { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--navy); line-height: 1.35; margin-bottom: 11px; flex: 1; }
.insight-excerpt { font-size: 13px; color: var(--gray-600); line-height: 1.75; margin-bottom: 16px; }
.insight-read { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 7px; margin-top: auto; transition: gap var(--trans); }
.insight-card:hover .insight-read { gap: 13px; }

/* Related cards */
.related-card { background: var(--gray-50); text-decoration: none; color: inherit; transition: all var(--trans); display: block; overflow: hidden; border: 1px solid var(--gray-100); }
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }
.related-card-img { height: 152px; overflow: hidden; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.related-card:hover .related-card-img img { transform: scale(1.04); }
.related-card-body { padding: 18px 20px 16px; }
.related-card-date { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.related-card-title { font-family: var(--serif); font-size: 15.5px; font-weight: 500; color: var(--navy); line-height: 1.35; }

/* ═══════════════════════
   CTA BAND
   ═══════════════════════ */
.cta-band { background: var(--gold); padding: 68px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: 'TVA'; position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 148px; font-weight: 700;
  color: rgba(15,30,53,0.055); letter-spacing: -8px; pointer-events: none; line-height: 1;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; z-index: 2; }
.cta-sub { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(15,30,53,0.38); margin-bottom: 7px; }
.cta-title { font-family: var(--serif); font-size: clamp(24px,2.8vw,36px); font-weight: 600; color: var(--navy); line-height: 1.18; letter-spacing: -0.014em; }

/* ═══════════════════════
   FOOTER
   ═══════════════════════ */
footer { background: var(--navy-deep); padding: 84px 0 0; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.footer-brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; color: white; letter-spacing: -0.01em; margin-bottom: 3px; }
.footer-brand-sub { font-family: var(--sans); font-size: 9.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 17px; }
.footer-tagline { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.28); line-height: 1.8; max-width: 270px; }
.footer-col-title { font-family: var(--sans); font-size: 9.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 17px; padding-bottom: 9px; border-bottom: 1px solid rgba(201,169,110,0.14); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.36); text-decoration: none; transition: color var(--trans); }
.footer-links a:hover { color: rgba(255,255,255,0.78); }
.footer-ci { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; font-weight: 300; color: rgba(255,255,255,0.36); line-height: 1.55; margin-bottom: 11px; }
.footer-ci svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-ci a { color: rgba(255,255,255,0.36); text-decoration: none; transition: color var(--trans); }
.footer-ci a:hover { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; flex-wrap: wrap; gap: 11px; }
.footer-copy { font-size: 11.5px; font-weight: 300; color: rgba(255,255,255,0.16); }
.footer-legal { display: flex; align-items: center; gap: 11px; }
.footer-legal a { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.18); text-decoration: none; transition: color var(--trans); }
.footer-legal a:hover { color: var(--gold); }
.footer-legal .sep { color: rgba(255,255,255,0.09); font-size: 11px; }
.footer-built { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.13); }
.footer-built a { color: rgba(201,169,110,0.38); text-decoration: none; transition: color var(--trans); }
.footer-built a:hover { color: var(--gold); }

/* Disclaimer strip */
.footer-disclaimer {
  background: rgba(0,0,0,0.2); padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-disclaimer p {
  font-size: 11px; font-weight: 300; color: rgba(255,255,255,0.2);
  line-height: 1.65; text-align: center; max-width: 900px; margin: 0 auto;
}

/* ═══════════════════════
   SCROLL REVEAL
   ═══════════════════════ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.58s ease, transform 0.58s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ═══════════════════════
   RESPONSIVE
   ═══════════════════════ */
@media (max-width: 1080px) {
  nav ul { display: none; }
  .hamburger { display: block; }
  .topbar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .qb-link { padding: 13px 10px; font-size: 10px; }
  .page-hero { padding: 64px 0 56px; }
}

@media (max-width: 768px) {
  .container { padding: 0 22px; }
  :root { --section-lg: 72px; --section-md: 52px; }

  /* Quick bar stacks */
  .quick-bar-inner { flex-direction: column; }
  .qb-link { border-right: none; border-bottom: 1px solid rgba(15,30,53,0.12); padding: 14px 22px; justify-content: flex-start; }
  .qb-link:last-child { border-bottom: none; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-tagline { max-width: 100%; }

  /* Page hero */
  .page-hero h1 { font-size: clamp(28px, 8vw, 44px); }
  .page-hero-sub { font-size: 15px; }

  /* CTA band */
  .cta-inner { flex-direction: column; text-align: center; gap: 20px; }
  .cta-title { font-size: clamp(22px, 6vw, 30px); }
  .cta-inner .btn { width: 100%; justify-content: center; }

  /* Section header */
  .section-header { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Cards */
  .t-featured { flex-direction: column; gap: 10px; padding: 28px 22px; }
  .t-featured-quote { font-size: 17px; }
  .t-featured-qm { font-size: 56px; }

  /* Attorney feature on about page */
  .attorney-feature { grid-template-columns: 1fr; gap: 24px; }
  .credentials-row { gap: 8px; }
}

@media (max-width: 480px) {
  .display-h2 { font-size: 26px; }
  .page-hero h1 { font-size: 28px; }
  .breadcrumb { font-size: 9px; gap: 5px; }
  .t-quote { font-size: 14.5px; }
  .practice-card, .t-card { padding: 28px 22px; }
  .sidebar-cta { padding: 26px; }
}

/* ═══════════════════════════════════════════════════════
   MOBILE FIX LAYER (v4)
   Overrides inline grid styles and broken-image artifacts.
   Everything here uses !important because we're fighting
   hardcoded inline style attributes on 9+ page sections.
   ═══════════════════════════════════════════════════════ */

/* ── Tablet (≤1024px): reduce multi-column inline grids to 2 columns ── */
@media (max-width: 1024px) {
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr 1fr !important;
  }
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }
  /* Attorney strip layout (240px 1fr auto) → stack */
  [style*="grid-template-columns:240px"],
  [style*="grid-template-columns: 240px"] {
    grid-template-columns: 200px 1fr !important;
    gap: 28px !important;
  }
  /* Taweh bio page photo+text (280px 1fr) → stack on tablet */
  [style*="grid-template-columns:280px"],
  [style*="grid-template-columns: 280px"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

/* ── Phone (≤768px): single column for virtually every inline grid ── */
@media (max-width: 768px) {
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:240px"],
  [style*="grid-template-columns: 240px"],
  [style*="grid-template-columns:280px"],
  [style*="grid-template-columns: 280px"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  /* Estimator step 1: 4 case-type buttons → 2x2 */
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  /* Hide auto-width trailing button in attorney strip on mobile */
  .attorney-strip-inner > a.btn,
  [style*="240px 1fr auto"] > a.btn,
  [style*="240px 1fr auto"] > .btn {
    display: none !important;
  }
  /* Reduce padding on section heros and containers */
  section { padding-left: 0; padding-right: 0; }
  .container { padding: 0 20px !important; }

  /* Make any image with our-team-se filename collapse if broken */
  img.about-img,
  .attorney-strip-photo img,
  .portrait-wrap img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 420px;
    object-fit: cover;
  }
  /* When image fails to load (has broken-img class), hide wrapper entirely */
  .about-img-wrap.broken,
  .portrait-wrap.broken,
  .attorney-strip-photo.broken { display: none !important; }
}

/* ── Small phone (≤480px): tighter spacing ── */
@media (max-width: 480px) {
  :root { --section-lg: 56px; --section-md: 40px; }
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .container { padding: 0 16px !important; }
  .hero h1, .display-h1 { font-size: 30px !important; line-height: 1.1 !important; }
  .display-h2 { font-size: 24px !important; line-height: 1.2 !important; }
  .practice-card, .t-card, .sidebar-cta { padding: 24px 20px !important; }
  .hero-actions .btn { width: 100% !important; }
  .section-header { flex-direction: column; align-items: flex-start !important; gap: 12px !important; }
  .btn { font-size: 13px !important; padding: 14px 20px !important; }
}

/* ── Graceful image fallback: invisible when 0 natural size ── */
img[src*="wp-content/uploads"]:not([complete]) { min-height: 0; }
