:root {
  --bg: #f6f2e8;
  --bg-soft: #ece3cf;
  --text: #171b22;
  --text-soft: #5c6472;
  --accent: #0b1d33;
  --accent-soft: #dde4ee;
  --gold: #93712a;
  --gold-on-ink: #d9b872;
  --ink: #0a1120;
  --ink-line: rgba(217, 184, 114, 0.18);
  --ink-border: rgba(255, 255, 255, 0.14);
  --border: #ded3b8;
  --radius: 4px;
  --max: 1120px;
  --sidebar-w: 272px;
  --serif: "Playfair Display", Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: #0c0f16;
  --bg-soft: #121620;
  --text: #e9ebf0;
  --text-soft: #9aa3b0;
  --accent: #82a2cc;
  --accent-soft: #1c2634;
  --gold: #d9b872;
  --border: #242b38;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  transition: background-color 0.3s ease;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Confetti */
.confetti-piece {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  pointer-events: none;
  z-index: 400;
  animation: confetti-burst 1.2s ease-out forwards;
}
@keyframes confetti-burst {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; }
}

/* Sidebar navigation (fixed left rail, all pages) */
.logo {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: block;
  line-height: 1.35;
}
.logo-dim { color: var(--gold-on-ink); font-style: italic; display: block; font-size: 14px; margin-top: 2px; }

.mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 58px;
  background: var(--ink);
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 250;
}
.mobile-topbar .logo { color: #fff; font-size: 16px; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span { width: 22px; height: 2px; background: #fff; display: block; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.55);
  z-index: 260;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sidebar-overlay.visible { display: block; opacity: 1; }

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--ink);
  color: rgba(233, 236, 240, 0.82);
  display: flex;
  flex-direction: column;
  z-index: 270;
  border-right: 1px solid var(--ink-border);
  overflow-y: auto;
}

.sidebar-top {
  padding: 34px 30px 26px;
  border-bottom: 1px solid var(--ink-border);
}
.sidebar-top .logo { color: #fff; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  gap: 2px;
  flex: 1;
}
.sidebar-nav a {
  padding: 11px 16px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: rgba(233, 236, 240, 0.66);
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.sidebar-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.sidebar-nav a.active {
  color: var(--gold-on-ink);
  border-left-color: var(--gold-on-ink);
  background: rgba(217, 184, 114, 0.08);
  font-weight: 700;
}

.sidebar-bottom {
  padding: 20px 24px 26px;
  border-top: 1px solid var(--ink-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-contact {
  font-size: 12.5px;
  color: rgba(233, 236, 240, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-contact:hover { color: var(--gold-on-ink); }

.nav-cta {
  background: var(--gold-on-ink);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.08); }

.sidebar-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(233, 236, 240, 0.55);
  margin-top: 2px;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.theme-toggle-track {
  width: 40px;
  height: 22px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--ink-border);
  display: block;
  position: relative;
}
.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-on-ink);
  transition: transform 0.25s ease;
}
[data-theme="dark"] .theme-toggle-thumb { transform: translateX(18px); }

.site-content { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

@media (min-width: 901px) {
  .site-content { margin-left: var(--sidebar-w); }
}

@media (max-width: 900px) {
  .mobile-topbar { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .site-content { padding-top: 58px; }
}

/* Hero — diagonal hairline ground, gold corner-bracket frame, typographic watermark.
   (No radial-gradient glow: a deliberate break from the shared portfolio hero technique.) */
.hero {
  padding: 92px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, var(--ink-line) 0px, var(--ink-line) 1px, transparent 1px, transparent 58px);
  z-index: 0;
}
.hero::after {
  content: "\00A7";
  position: absolute;
  right: -10px;
  top: -70px;
  font-family: var(--serif);
  font-size: 380px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}
[data-theme="dark"] .hero::after { opacity: 0.1; }

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 44px 38px;
}
.hero-inner::before,
.hero-inner::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
}
.hero-inner::before { top: 0; left: 0; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.hero-inner::after { bottom: 0; right: 0; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }

/* Asymmetric split variant — homepage hero only */
.hero-inner--split {
  max-width: var(--max);
  text-align: left;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 50px;
  align-items: center;
  padding: 54px 54px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-inner--split .hero-actions { justify-content: flex-start; }
.hero-inner--split .hero-sub { margin-left: 0; }

.hero-ledger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border);
  padding-left: 34px;
}
.hero-ledger .hero-stat {
  text-align: left;
  padding: 15px 0;
  border-right: none;
  border-bottom: 1px solid var(--border);
}
.hero-ledger .hero-stat:last-child { border-bottom: none; }

@media (max-width: 860px) {
  .hero-inner--split {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 30px;
  }
  .hero-inner--split .hero-eyebrow,
  .hero-inner--split .hero-actions { justify-content: center; }
  .hero-ledger {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 22px;
    margin-top: 8px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-ledger .hero-stat { flex: 1 1 45%; border-bottom: none; text-align: center; }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.6vw, 58px);
  font-weight: 700;
  line-height: 1.16;
  margin: 0 0 22px;
}
.hero h1 em { color: var(--accent); font-style: italic; }
[data-theme="dark"] .hero h1 em { color: var(--gold); }

.hero-sub {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 580px;
  margin: 0 auto 34px;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13, 35, 64, 0.25); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  padding: 15px 30px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 700;
  display: inline-block;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--gold); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 58px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.hero-stat {
  text-align: center;
  padding: 0 32px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}
.hero-stat-label { font-size: 12px; color: var(--text-soft); letter-spacing: 0.03em; }

/* Section shared */
.section-head { max-width: var(--max); margin: 0 auto 44px; padding: 0 24px; text-align: center; }
.section-head .eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
}
.section-head p { color: var(--text-soft); font-size: 16px; max-width: 580px; margin: 0 auto; }

section { padding: 90px 24px; }

/* Practice areas grid */
.practice { background: var(--bg-soft); }
.practice-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.practice-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(13, 35, 64, 0.1);
  border-color: var(--gold);
}
.practice-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.practice-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.6; }
[data-theme="dark"] .practice-icon svg { stroke: var(--gold); }
.practice-card h3 { font-family: var(--serif); font-size: 19px; margin: 0 0 10px; }
.practice-card p { font-size: 14px; color: var(--text-soft); margin: 0 0 14px; line-height: 1.6; }
.practice-card .practice-link { font-size: 13px; font-weight: 700; color: var(--accent); }
[data-theme="dark"] .practice-card .practice-link { color: var(--gold); }

.practice-detail {
  max-width: 880px;
  margin: 0 auto 40px;
  padding: 30px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.practice-detail:last-child { margin-bottom: 0; }
.practice-detail h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 10px; display: flex; align-items: center; gap: 12px; }
.practice-detail-num { font-size: 13px; color: var(--gold); font-weight: 700; }
.practice-detail p { font-size: 14.5px; color: var(--text-soft); margin: 0 0 10px; line-height: 1.65; }
.practice-detail ul { margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.practice-detail li { font-size: 13.5px; color: var(--text); padding-left: 18px; position: relative; }
.practice-detail li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* Process steps */
.process-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step { text-align: center; position: relative; }
.process-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.process-step h3 { font-family: var(--serif); font-size: 16.5px; margin: 0 0 8px; }
.process-step p { font-size: 13px; color: var(--text-soft); margin: 0; line-height: 1.55; }

/* About */
.about-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.about-inner p { color: var(--text-soft); font-size: 16.5px; margin: 0 auto 18px; max-width: 640px; }
.about-inner p:last-of-type { margin-bottom: 0; }
.about-signature {
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
}
[data-theme="dark"] .about-signature { color: var(--gold); }

.values-grid {
  max-width: var(--max);
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.value-card { text-align: center; padding: 0 10px; }
.value-card h4 { font-family: var(--serif); font-size: 16px; margin: 0 0 8px; }
.value-card p { font-size: 13px; color: var(--text-soft); margin: 0; line-height: 1.55; }

/* Team */
.team { background: var(--bg-soft); }
.team-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card { text-align: center; }
.team-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 auto 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-family: var(--serif); font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 12.5px; color: var(--gold); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 10px; }
.team-bio { font-size: 13.5px; color: var(--text-soft); max-width: 300px; margin: 0 auto 12px; line-height: 1.6; }
.team-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.team-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 980px;
}
[data-theme="dark"] .team-tag { color: var(--gold); }

/* Testimonials */
.testimonials { background: var(--bg-soft); }
.testi-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 4px 4px 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.testi-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  flex: 0 0 300px;
  scroll-snap-align: start;
}
[data-theme="dark"] .testi-card { background: var(--bg-soft); }
.testi-stars { color: var(--gold); font-size: 15px; margin-bottom: 12px; letter-spacing: 2px; }
.testi-card p { font-size: 14.5px; color: var(--text); margin: 0 0 16px; line-height: 1.6; font-style: italic; }
.testi-name { font-weight: 700; font-size: 14px; }
.testi-role { font-size: 12.5px; color: var(--text-soft); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; padding: 90px 24px; }
.faq-item {
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
  margin-bottom: 0;
  background: none;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--serif);
  font-size: 17px;
  padding: 18px 0;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 20px;
  color: var(--accent);
}
[data-theme="dark"] .faq-item summary::after { color: var(--gold); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 20px; color: var(--text-soft); font-size: 14.5px; line-height: 1.6; }

/* Calculator widget */
.calc-widget {
  max-width: 640px;
  margin: 56px auto 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
[data-theme="dark"] .calc-widget { background: var(--bg-soft); }
.calc-title {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 6px;
  text-align: center;
}
.calc-sub {
  font-size: 13.5px;
  color: var(--text-soft);
  text-align: center;
  margin: 0 0 28px;
}
.calc-form { display: flex; flex-direction: column; gap: 16px; }
.calc-row { display: flex; gap: 14px; }
.calc-field { flex: 1; }
.calc-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.calc-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}
[data-theme="dark"] .calc-field input { background: var(--bg); }
.calc-submit { margin-top: 8px; border: none; cursor: pointer; width: 100%; }

.calc-result {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  display: none;
}
.calc-result.visible { display: block; }
.calc-result-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.calc-result-num {
  font-family: var(--serif);
  font-size: 32px;
  margin: 0 0 12px;
  color: var(--accent);
}
[data-theme="dark"] .calc-result-num { color: var(--gold); }
.calc-result-note { font-size: 13px; color: var(--text-soft); font-style: italic; margin: 0; }

/* Contact */
.contact-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.contact-inner h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; }
.contact-inner > p { color: var(--text-soft); margin: 0 0 8px; }
.response-note { font-size: 13px; opacity: 0.75; margin-bottom: 34px !important; }

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto 40px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: left;
}
.contact-icon { flex-shrink: 0; width: 22px; height: 22px; }
.contact-icon svg { width: 100%; height: 100%; fill: var(--accent); }
[data-theme="dark"] .contact-icon svg { fill: var(--gold); }
.contact-label { display: block; font-size: 12.5px; color: var(--text-soft); }
.contact-value { display: block; font-size: 14.5px; font-weight: 600; }

.hours-address {
  max-width: 420px;
  margin: 0 auto 40px;
  display: flex;
  gap: 14px;
}
.hours-address-item {
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: left;
}
.hours-address-label {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.hours-address-value {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.contact-form {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row { display: flex; gap: 14px; }
.form-row input, .form-row select { flex: 1; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
}
.contact-form textarea { resize: vertical; min-height: 90px; }
.hidden-field { display: none; }

.form-status { font-size: 14px; min-height: 20px; }
.form-status.success { color: #1a7f37; }
.form-status.error { color: #d1242f; }
[data-theme="dark"] .form-status.success { color: #63e6be; }
[data-theme="dark"] .form-status.error { color: #ff8a8a; }

.map-embed {
  position: relative;
  max-width: 720px;
  margin: 40px auto 0;
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  filter: grayscale(0.2);
}
.map-overlay { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.map-cta {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  background: var(--bg);
  color: var(--text);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  pointer-events: none;
}

/* Footer */
.footer {
  background: var(--ink);
  color: #a8b4c2;
  padding: 44px 24px 24px;
  font-size: 13px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 { color: #fff; font-family: var(--serif); font-size: 15px; margin: 0 0 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { opacity: 0.85; transition: opacity 0.2s ease; }
.footer-col a:hover { opacity: 1; color: var(--gold); }
.footer-bottom {
  max-width: var(--max);
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0.75;
}
.footer-bottom a { text-decoration: underline; }

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gold);
  z-index: 300;
}

@media (max-width: 860px) {
  .practice-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 320px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .form-row, .calc-row { flex-direction: column; }
  .hero-stats { gap: 8px; }
  .hero-stat { padding: 0 18px; }
  section { padding: 64px 20px; }
  .practice-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 24px; }
}
