:root {
  --ink: #1B1815;
  --ink-soft: #6B6259;
  --ink-faint: #9B9285;
  --paper: #FFFFFF;
  --paper-warm: #FAF8F3;
  --maroon: #6B1626;
  --maroon-dark: #4A0F1A;
  --maroon-wash: #FBF2F3;
  --gold: #8C6A2F;
  --gold-pale: #C9A94F;
  --line: #E6E1D6;
  --header-bg: rgba(255,255,255,0.92);
  --max: 1200px;
}

html[data-theme="dark"] {
  --ink: #F3EFE8;
  --ink-soft: #C6BFB2;
  --ink-faint: #8A8377;
  --paper: #16130F;
  --paper-warm: #1E1A15;
  --maroon: #C34A63;
  --maroon-dark: #E06A82;
  --maroon-wash: rgba(195,74,99,0.1);
  --gold: #D9B462;
  --gold-pale: #E9CE8E;
  --line: rgba(255,255,255,0.12);
  --header-bg: rgba(22,19,15,0.92);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

body, header, .lawyer-card, .method-card, .fact, .office-card,
.practice-item, .client-name, .btn { transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }

.eyebrow-mark { height: 48px; width: auto; margin-bottom: 20px; }
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--maroon); flex-shrink: 0; }
.eyebrow::after { content:""; flex:1; height:1px; background: var(--line); max-width: 60px; }

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--maroon);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand img { height: 72px; width: auto; }
nav ul { list-style: none; display: flex; gap: 32px; }
nav a {
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.01em;
}
nav a:hover, nav a[aria-current="page"] { color: var(--maroon); }
.nav-contact {
  color: var(--ink) !important;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.nav-contact:hover { color: var(--maroon) !important; border-color: var(--maroon); }

.nav-actions { display: flex; align-items: center; }
.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 20px;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--maroon); color: var(--maroon); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.menu-toggle { display: none; }
@media (max-width: 860px) {
  nav ul.primary-links { display: none; }
  .menu-toggle {
    display: block; background: none; border: 1px solid var(--ink);
    color: var(--ink); padding: 8px 14px; font-size: 0.8rem; margin-left: 12px;
  }
}

/* ---------- hero (home page) ---------- */
.hero { position: relative; padding: 90px 0 90px; overflow: hidden; background: var(--paper); }
.hero-mark { position: absolute; top: -40px; left: -60px; width: 320px; opacity: 0.04; filter: grayscale(1); pointer-events: none; z-index: 0; }
.hero-text { position: relative; z-index: 1; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; max-width: none; }
.hero-photo img { width: 100%; height: 460px; object-fit: cover; filter: saturate(0.9) contrast(1.02); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .hero-photo img { height: 280px; } }

.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 340; max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--maroon); }
.hero-lede { color: var(--ink-soft); font-size: 1.12rem; max-width: 48ch; margin-top: 26px; }
.hero-actions { display: flex; gap: 20px; margin-top: 38px; align-items: center; flex-wrap: wrap; }

.btn { display: inline-block; padding: 14px 28px; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.01em; }
.btn-primary { background: var(--maroon); color: var(--paper); }
.btn-primary:hover { background: var(--maroon-dark); }
.btn-quote { background: #25D366; color: #063d1e; }
.btn-quote:hover { background: #1EBE59; }
.link-underline { font-size: 0.86rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--ink-faint); padding-bottom: 3px; }
.link-underline:hover { color: var(--maroon); border-color: var(--maroon); }

/* ---------- page header (non-home pages) ---------- */
.page-header {
  padding: 70px 0 56px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 340; }
.page-header p { color: var(--ink-soft); margin-top: 16px; max-width: 60ch; font-size: 1.02rem; }

/* ---------- facts strip ---------- */
.facts-strip { border-top: 2px solid var(--maroon); border-bottom: 1px solid var(--line); background: var(--paper-warm); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 44px 40px 40px; border-left: 1px solid var(--line); position: relative; overflow: hidden; transition: background 0.25s ease; }
.fact:first-child { border-left: none; }
.fact::before { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.35s ease; }
.fact:hover { background: var(--maroon-wash); }
.fact:hover::before { width: 100%; }
.fact-row { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.fact-icon { width: 48px; height: 48px; color: var(--gold); display: block; flex-shrink: 0; transition: color 0.25s ease, transform 0.25s ease; }
.fact:hover .fact-icon { color: var(--maroon); transform: translateY(-2px) scale(1.05); }
.fact-kicker { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); font-weight: 600; margin-bottom: 14px; }
.fact .num { font-family: 'Fraunces', serif; font-size: 3.1rem; font-weight: 340; color: var(--maroon); line-height: 1; }
.fact .label { font-size: 0.88rem; color: var(--ink-soft); margin-top: 4px; max-width: 30ch; line-height: 1.55; }
.fact-statement .fact-icon { width: 40px; height: 40px; margin-bottom: 16px; }
.statement-headline { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 400; color: var(--maroon); line-height: 1.2; margin-bottom: 10px; }
@media (max-width: 780px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact { border-left: none; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: none; }
}

/* ---------- section shell ---------- */
section { padding: 100px 0; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 340; }
.section-head p { color: var(--ink-soft); margin-top: 18px; font-size: 1.02rem; }
.band-warm { background: var(--paper-warm); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: start; }
.about-copy p { margin-bottom: 20px; color: var(--ink-soft); }
.about-copy p:first-child { font-size: 1.14rem; color: var(--ink); font-family: 'Fraunces', serif; font-weight: 400; line-height: 1.5; }
.offices { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.office-card { padding: 28px 0 28px 20px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--maroon); }
.office-photo { width: 100%; height: 180px; object-fit: cover; margin-bottom: 20px; filter: saturate(0.95); }
.office-card span { font-size: 0.72rem; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.office-card h4 { font-size: 1.1rem; margin-top: 8px; font-weight: 400; }
.office-card p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 10px; }
.heritage-photo { margin-top: 32px; }
.heritage-photo img { width: 100%; max-width: 320px; height: auto; filter: sepia(0.15) saturate(0.9); }
.heritage-photo figcaption { font-size: 0.82rem; color: var(--ink-faint); font-style: italic; font-family: 'Fraunces', serif; margin-top: 10px; max-width: 320px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- calculator ---------- */
.calc-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 44px; flex-wrap: wrap; }
.calc-tab-btn {
  background: var(--paper-warm); border: none; padding: 16px 26px; font-size: 0.88rem; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; font-family: 'Inter', sans-serif; border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.calc-tab-btn:hover { color: var(--maroon); }
.calc-tab-btn.active { color: var(--maroon); border-bottom-color: var(--maroon); background: var(--paper); }
.calc-panel { display: none; }
.calc-panel.active { display: block; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.calc-input-col label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.calc-input-col input {
  width: 100%; padding: 14px 16px; font-size: 1.05rem; font-family: 'Inter', sans-serif;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); margin-bottom: 18px;
}
.calc-input-col input:focus { outline: none; border-color: var(--maroon); }
.calc-btn { width: 100%; text-align: center; margin-bottom: 32px; }
.calc-scale { border-top: 1px solid var(--line); padding-top: 20px; }
.calc-scale-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 600; }
.calc-scale ul { list-style: none; margin-top: 12px; }
.calc-scale li { font-size: 0.88rem; color: var(--ink-soft); padding: 6px 0; }
.calc-result { background: var(--paper-warm); border-left: 3px solid var(--maroon); padding: 32px; }
.calc-result-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.calc-result-value { display: block; font-family: 'Fraunces', serif; font-size: 2.4rem; font-weight: 340; color: var(--maroon); }
.calc-note { font-size: 0.84rem; color: var(--ink-faint); margin-top: 18px; line-height: 1.6; }
.calc-cta { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.calc-cta p { font-family: 'Fraunces', serif; font-size: 1.15rem; color: var(--ink); }
@media (max-width: 780px) { .calc-grid { grid-template-columns: 1fr; gap: 32px; } .calc-tab-btn { padding: 14px 16px; font-size: 0.82rem; } }

/* ---------- practice areas (accordion) ---------- */
.practice-list { border-top: 1px solid var(--line); }
.practice-item { border-bottom: 1px solid var(--line); }
.practice-trigger {
  width: 100%; display: grid; grid-template-columns: 90px 1fr 40px; gap: 40px; align-items: center;
  padding: 40px 0; background: none; border: none; cursor: pointer; text-align: left; font: inherit; color: inherit;
}
.practice-item:hover .practice-trigger { background: rgba(107,22,38,0.02); }
.practice-num { font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--gold-pale); font-weight: 340; transition: color 0.25s ease; }
.practice-trigger[aria-expanded="true"] .practice-num { color: var(--maroon); }
.practice-trigger-text h3 { font-size: 1.35rem; font-weight: 400; margin-bottom: 10px; transition: color 0.2s ease; }
.practice-trigger:hover .practice-trigger-text h3 { color: var(--maroon); }
.practice-trigger-text .desc { color: var(--ink-soft); font-size: 0.92rem; font-style: italic; font-family: 'Fraunces', serif; }
.practice-plus { position: relative; width: 22px; height: 22px; justify-self: end; flex-shrink: 0; }
.practice-plus::before, .practice-plus::after { content: ""; position: absolute; background: var(--ink); transition: transform 0.3s ease, background 0.3s ease; }
.practice-plus::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.practice-plus::after { left: 50%; top: 0; height: 100%; width: 1px; transform: translateX(-50%); }
.practice-trigger[aria-expanded="true"] .practice-plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.practice-trigger[aria-expanded="true"] .practice-plus::before { background: var(--maroon); }
.practice-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease; opacity: 0; }
.practice-panel.open { opacity: 1; }
.services { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; padding: 4px 0 36px 130px; }
.services li { font-size: 0.92rem; color: var(--ink); padding-left: 16px; position: relative; }
.services li::before { content: "▸"; position: absolute; left: 0; color: var(--maroon); opacity: 0.75; font-size: 0.9em; }
@media (max-width: 860px) {
  .practice-trigger { grid-template-columns: 50px 1fr 30px; gap: 18px; }
  .services { grid-template-columns: 1fr; padding-left: 68px; }
}

/* ---------- lawyers ---------- */
.lawyer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.lawyer-card { background: var(--paper); padding: 36px 32px; transition: background 0.2s ease; }
.lawyer-card:hover { background: var(--maroon-wash); }
.avatar-placeholder {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 500;
  margin-bottom: 20px; letter-spacing: 0.02em;
}
.lawyer-card .rule { width: 30px; height: 2px; background: var(--maroon); margin-bottom: 20px; transition: width 0.25s ease; }
.lawyer-card:hover .rule { width: 48px; }
.lawyer-card h4 { font-size: 1.14rem; margin-bottom: 4px; font-weight: 400; }
.lawyer-role { font-size: 0.74rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 8px; }
.credentials { font-size: 0.78rem; color: var(--ink-faint); font-style: italic; font-family: 'Fraunces', serif; margin-bottom: 14px; }
.lawyer-card p.bio { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- clients ---------- */
.client-group { margin-bottom: 44px; }
.client-group:last-child { margin-bottom: 0; }
.client-group h4 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 6px; font-weight: 600; font-family: 'Inter', sans-serif; }
.client-group .client-group-note { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px; }
.client-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--line); }
.client-name { padding: 20px 20px 20px 0; font-size: 0.98rem; font-weight: 500; border-bottom: 1px solid var(--line); color: var(--ink); transition: color 0.2s ease; }
.client-name:hover { color: var(--maroon); }

/* ---------- client / panel logos ---------- */
.client-logo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: none; }
.client-logo-card { background: var(--paper); padding: 28px 22px; display: flex; align-items: center; justify-content: center; min-height: 110px; overflow: hidden; }
.client-logo-card img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; filter: grayscale(15%); transition: transform 0.35s ease, filter 0.35s ease; cursor: zoom-in; }
.client-logo-card img:hover { transform: scale(1.9); filter: grayscale(0%); position: relative; z-index: 5; }
[data-theme="dark"] .client-logo-card { background: var(--paper); }
[data-theme="dark"] .client-logo-card img { filter: brightness(0.92) grayscale(10%); }
[data-theme="dark"] .client-logo-card img:hover { filter: brightness(1) grayscale(0%); }

/* ---------- articles ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; }
.article-card { border-top: 2px solid var(--line); padding-top: 24px; transition: border-color 0.2s ease; }
.article-card:hover { border-color: var(--maroon); }
.article-date { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 600; }
.article-card h3 { font-size: 1.25rem; font-weight: 400; margin: 12px 0 10px; }
.article-card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 14px; }
.article-card .read-more { font-size: 0.84rem; font-weight: 600; color: var(--maroon); border-bottom: 1px solid var(--maroon); padding-bottom: 2px; }
.article-empty { padding: 60px 0; text-align: center; color: var(--ink-faint); border: 1px dashed var(--line); }
.article-body { max-width: 720px; margin: 0 auto; }
.article-body p { margin-bottom: 20px; color: var(--ink-soft); font-size: 1.02rem; }
.article-body h2 { font-size: 1.6rem; margin: 40px 0 16px; }

/* ---------- contact ---------- */
.contact-band { background: var(--maroon); color: var(--paper); }
.contact-band .eyebrow { color: var(--gold-pale); }
.contact-band .eyebrow::before { background: var(--gold-pale); }
.contact-band .eyebrow::after { background: rgba(255,255,255,0.15); }
.contact-band .section-head h2 { color: var(--paper); }
.contact-band .section-head p { color: rgba(255,255,255,0.72); }
.contact-methods { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,0.15); }
.method-card { padding: 36px 32px 36px 0; border-left: 1px solid rgba(255,255,255,0.15); padding-left: 32px; display: flex; flex-direction: column; }
.method-card:first-child { border-left: none; padding-left: 0; }
.method-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-pale); margin-bottom: 16px; font-weight: 600; }
.method-card p { font-size: 0.95rem; color: rgba(255,255,255,0.82); line-height: 1.7; }
.method-card p a { color: var(--paper); border-bottom: 1px solid rgba(255,255,255,0.35); }
.method-card p a:hover { border-color: var(--gold-pale); }
.wa-link { margin-top: 18px; font-size: 0.95rem; font-weight: 600; color: var(--gold-pale); border-bottom: 1px solid var(--gold-pale); padding-bottom: 3px; display: inline-block; width: fit-content; }
.wa-link:hover { color: var(--paper); border-color: var(--paper); }
@media (max-width: 860px) {
  .contact-methods { grid-template-columns: 1fr; }
  .method-card { border-left: none; border-top: 1px solid rgba(255,255,255,0.15); padding-left: 0; padding-top: 32px; }
  .method-card:first-child { border-top: none; padding-top: 0; }
}

/* ---------- footer ---------- */
footer { background: #4A0F1A; color: rgba(255,255,255,0.5); padding: 30px 0; font-size: 0.8rem; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-logo { height: 34px; width: auto; opacity: 0.9; filter: brightness(0) invert(1); }
.footer-text { display: flex; gap: 24px; flex-wrap: wrap; }
