/* ==========================================================================
   QUADRIGA — main stylesheet
   Mild, switchable themes via CSS custom properties (data-theme on <html>)
   Default theme "quadriga" is derived from the firm's logo palette (#902090)
   ========================================================================== */

/* ---------- themes ---------- */
:root,
[data-theme="quadriga"] {
  --primary: #7d3170;
  --primary-2: #9a4c8b;
  --primary-deep: #5e2454;
  --primary-soft: #f3e8f1;
  --primary-softer: #faf5f9;
  --accent: #b08a3e;
  --accent-soft: #f6efdc;
  --bg: #fbf9fb;
  --surface: #ffffff;
  --surface-2: #f5eff3;
  --ink: #2b2430;
  --muted: #6f6477;
  --line: #e8dfe7;
  --shadow: 0 4px 18px rgba(43, 36, 48, 0.07);
  --shadow-lg: 0 18px 44px rgba(43, 36, 48, 0.16);
  --header-bg: rgba(255, 255, 255, 0.93);
  --footer-bg: #2e2430;
  --footer-ink: #f1eaf0;
  --footer-muted: #b9a9b8;
  --grad: linear-gradient(135deg, var(--primary), var(--primary-deep));
  --serif: Georgia, "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}
[data-theme="sand"] {
  --primary: #8a6a45;
  --primary-2: #a4855f;
  --primary-deep: #6e5335;
  --primary-soft: #f4ecdd;
  --primary-softer: #faf6ee;
  --accent: #a4583e;
  --accent-soft: #f7e7de;
  --bg: #fbf9f4;
  --surface: #ffffff;
  --surface-2: #f4efe4;
  --ink: #2f2a22;
  --muted: #736a58;
  --line: #e9e0cd;
  --footer-bg: #2e2a21;
  --footer-ink: #f2eee4;
  --footer-muted: #bcb29b;
}
[data-theme="sage"] {
  --primary: #50755e;
  --primary-2: #6d927b;
  --primary-deep: #3f5e4b;
  --primary-soft: #e9f1ea;
  --primary-softer: #f5f9f5;
  --accent: #a5803a;
  --accent-soft: #f4eeda;
  --bg: #f9fbf8;
  --surface: #ffffff;
  --surface-2: #eef4ee;
  --ink: #26302a;
  --muted: #64736a;
  --line: #dfe9df;
  --footer-bg: #243029;
  --footer-ink: #edf3ee;
  --footer-muted: #a9bcad;
}
[data-theme="slate"] {
  --primary: #4a648c;
  --primary-2: #6a84ad;
  --primary-deep: #3a5173;
  --primary-soft: #e9eef6;
  --primary-softer: #f5f8fc;
  --accent: #4e8a83;
  --accent-soft: #e1f0ee;
  --bg: #f9fafc;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --ink: #262c36;
  --muted: #646c7a;
  --line: #dfe5ee;
  --footer-bg: #232a35;
  --footer-ink: #eef1f7;
  --footer-muted: #a7b0c2;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, blockquote, address { font-family: var(--serif); }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 0.6em; font-weight: 600; color: var(--ink); }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: 0.6rem 1rem; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
::selection { background: var(--primary-soft); color: var(--primary-deep); }
section { scroll-margin-top: 120px; }

/* ---------- layout utilities ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.4rem; }
.section { padding: 4.6rem 0; }
.section-tight { padding: 2.6rem 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 720px; margin: 0 auto 2.6rem; text-align: center; }
.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); }
.two-col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: start; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 0.6rem;
}
.section-title { font-size: clamp(1.6rem, 2.8vw, 2.15rem); }
.section-title em, .page-title em { font-style: italic; color: var(--primary); }
.section-sub { color: var(--muted); font-size: 1.02rem; }
.mini-title { font-size: 1.15rem; margin-top: 1.6rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state .icon { width: 2.2rem; height: 2.2rem; opacity: 0.5; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.68rem 1.35rem; border-radius: 11px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600; line-height: 1.2;
  cursor: pointer; text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.16); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,0.14); }
.btn-accent:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.18); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: inherit; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.65); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.86rem; border-radius: 9px; }
.btn-lg { padding: 0.85rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.65rem; padding-bottom: 0.65rem; }
.brand { display: inline-flex; }
.brand-logo { height: 52px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 0.7rem; }
.nav-bar { display: flex; justify-content: center; border-top: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.15rem; padding: 0.15rem 0 0.45rem; }
.nav > a, .nav-drop-btn {
  font-family: var(--sans); font-size: 0.94rem; font-weight: 600; color: var(--ink);
  padding: 0.42rem 0.85rem; border-radius: 9px; border: none; background: none;
  cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem;
  position: relative; text-decoration: none;
}
.nav > a::after, .nav-drop-btn::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.18rem;
  height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.22s ease;
}
.nav > a:hover::after, .nav-drop-btn:hover::after, .nav > a.active::after { transform: scaleX(1); }
.nav > a.active, .nav-drop[data-active] .nav-drop-btn { color: var(--primary); }
.nav-drop { position: relative; }
.nav-drop-btn .icon { width: 0.95em; height: 0.95em; transition: transform 0.2s ease; }
.nav-drop:hover .nav-drop-btn .icon, .nav-drop:focus-within .nav-drop-btn .icon { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); min-width: 230px; padding: 0.5rem;
  opacity: 0; visibility: hidden; transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 110;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-drop-menu a {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.8rem;
  border-radius: 9px; font-size: 0.92rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav-drop-menu a .icon { color: var(--primary); }
.nav-drop-menu a:hover { background: var(--primary-soft); text-decoration: none; }
.nav-drop-menu a.active { background: var(--primary); color: #fff; }
.nav-drop-menu a.active .icon { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 0.45rem 0.55rem; cursor: pointer; color: var(--ink); font-size: 1.1rem; }

/* theme switcher */
.theme-switch { position: relative; }
.theme-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.42rem 0.85rem; font-size: 0.84rem; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.theme-btn:hover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.theme-btn .icon { width: 1em; height: 1em; }
.theme-btn .icon:last-child { width: 0.8em; height: 0.8em; }
.theme-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 215px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 0.45rem; z-index: 120;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.theme-menu.open { opacity: 1; visibility: visible; transform: none; }
.theme-menu button {
  display: flex; align-items: center; gap: 0.65rem; width: 100%;
  background: none; border: none; border-radius: 9px; padding: 0.55rem 0.7rem;
  font-size: 0.9rem; font-weight: 500; color: var(--ink); cursor: pointer; text-align: left;
}
.theme-menu button:hover { background: var(--primary-soft); }
.swatch { width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); flex: none; }
.swatch-quadriga { background: linear-gradient(135deg, #902090 50%, #b08a3e 50%); }
.swatch-sand { background: linear-gradient(135deg, #8a6a45 50%, #a4583e 50%); }
.swatch-sage { background: linear-gradient(135deg, #50755e 50%, #a5803a 50%); }
.swatch-slate { background: linear-gradient(135deg, #4a648c 50%, #4e8a83 50%); }

/* ---------- hero slider ---------- */
.hero { position: relative; height: min(78vh, 660px); min-height: 480px; overflow: hidden; background: var(--primary-deep); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(32, 20, 30, 0.82) 0%, rgba(32, 20, 30, 0.55) 42%, rgba(32, 20, 30, 0.12) 75%, rgba(32, 20, 30, 0.05) 100%);
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide.active .hero-slide-inner { animation: slideUp 0.9s ease both; }
@keyframes slideUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-slide-inner { position: relative; z-index: 3; color: #fff; padding-top: 2rem; padding-bottom: 4rem; max-width: 760px; }
.hero-kicker { font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #e8d9b0; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2rem, 4.6vw, 3.3rem); color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.16rem); color: rgba(255,255,255,0.92); max-width: 620px; margin-bottom: 1.8rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4);
  background: rgba(30, 20, 28, 0.35); color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding-bottom: 4px;
}
.hero-arrow:hover { background: rgba(30, 20, 28, 0.65); }
.hero-prev { left: 1.1rem; }
.hero-next { right: 1.1rem; }
.hero-dots { position: absolute; bottom: 1.4rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.55rem; z-index: 5; }
.hero-dot { width: 10px; height: 10px; border-radius: 999px; border: none; background: rgba(255,255,255,0.45); cursor: pointer; transition: all 0.25s ease; padding: 0; }
.hero-dot.active { background: #fff; width: 26px; }

/* ---------- page hero ---------- */
.page-hero {
  padding: 4.2rem 0 3.2rem;
  background:
    radial-gradient(ellipse 70% 90% at 85% 0%, var(--primary-soft) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 5% 100%, var(--accent-soft) 0%, transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.page-lead { max-width: 760px; font-size: 1.08rem; color: var(--muted); margin-bottom: 0; }
.faq-hero .search-box { margin-top: 2rem; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.7rem; position: relative; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.05rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.card-icon .icon { width: 1.55rem; height: 1.55rem; }
.card-icon.big { width: 84px; height: 84px; }
.card-icon.big .icon { width: 2.4rem; height: 2.4rem; }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.8rem; }

.practice-card, .hub-card { display: flex; flex-direction: column; text-decoration: none !important; }
.practice-card::before, .hub-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.practice-card:hover::before, .hub-card:hover::before { transform: scaleX(1); }
.practice-card:hover .card-icon, .feature-card:hover .card-icon { background: var(--primary); color: #fff; transform: rotate(-4deg) scale(1.04); }
.chip-row { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; margin: 0 0 1rem; }
.chip-row li {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.22rem 0.7rem;
}
.card-cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--primary); font-weight: 700; font-size: 0.92rem;
}
.card-cta .icon { transition: transform 0.22s ease; width: 1.05em; height: 1.05em; }
.practice-card:hover .card-cta .icon, .hub-card:hover .card-cta .icon, .post-card:hover .card-cta .icon { transform: translateX(5px); }

.hub-card .hub-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.7rem; }
.hub-card .hub-head h3 { margin: 0; }
.hub-card .hub-head .card-icon { margin-bottom: 0; }

.service-item h3 { font-size: 1.08rem; }
.service-item p { margin: 0; }

/* ---------- QUAD panel / stats ---------- */
.quad-panel {
  background: linear-gradient(160deg, var(--primary-soft), var(--surface) 65%);
  border: 1px solid var(--line); border-radius: 18px; padding: 1.9rem;
  position: sticky; top: 140px;
}
.panel-title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.25rem; }
.panel-title .icon { color: var(--accent); width: 1.4em; height: 1.4em; }
.panel-sub { color: var(--muted); font-size: 0.92rem; }
.quad-list { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: 0.9rem; }
.quad-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.quad-badge {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  background: var(--grad); color: #fff; font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(0,0,0,0.16);
}
.quad-list strong { display: block; }
.quad-list small { color: var(--muted); line-height: 1.45; display: block; }
.panel-foot { margin-top: 1rem; }

.stats-band { background: var(--grad); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; padding: 2.4rem 1.4rem; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.2rem; }
.stat .icon { width: 1.9rem; height: 1.9rem; color: rgba(255,255,255,0.85); margin-bottom: 0.4rem; }
.stat strong { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.stat span { font-size: 0.86rem; color: rgba(255,255,255,0.85); }

/* ---------- pull quote / testimonial ---------- */
.pull-quote {
  margin: 1.6rem 0; padding: 1.1rem 1.4rem; border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 14px 14px 0;
  font-size: 1.12rem; font-style: italic; color: var(--ink);
}
.pull-quote span { display: block; margin-top: 0.5rem; font-size: 0.88rem; font-style: normal; color: var(--muted); }
/* ---------- testimonial slider ---------- */
.t-slider { position: relative; max-width: 860px; margin: 0 auto; }
.t-mark {
  width: 52px; height: 52px; margin: 0 auto 1.2rem; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center;
}
.t-mark .icon { width: 1.6rem; height: 1.6rem; }
.t-track { display: grid; }
.t-slide {
  grid-area: 1 / 1;
  margin: 0; text-align: center; position: relative;
  padding: 2.6rem 4.2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  visibility: hidden; opacity: 0; transform: translateY(16px) scale(0.985);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s;
}
.t-slide.active { visibility: visible; opacity: 1; transform: none; }
.t-slide blockquote { margin: 0 0 1rem; font-size: 1.18rem; font-style: italic; line-height: 1.6; }
.t-slide figcaption { font-size: 0.95rem; color: var(--muted); }
.t-slide figcaption strong { color: var(--ink); font-family: var(--sans); }
.t-org { color: var(--muted); }
.t-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.88);
  color: var(--primary); font-size: 1.5rem; line-height: 1; padding-bottom: 4px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  box-shadow: var(--shadow);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.t-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.t-prev { left: 0.9rem; }
.t-next { right: 0.9rem; }
.t-dots { display: flex; justify-content: center; gap: 0.55rem; margin-top: 1.15rem; }
.t-dot {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 999px;
  background: var(--line); cursor: pointer; transition: all 0.25s ease;
}
.t-dot.active { background: var(--primary); width: 24px; }
@media (max-width: 640px) {
  .t-slide { padding: 2.2rem 2.6rem; }
  .t-arrow { display: none; }
}

/* ---------- posts ---------- */
.post-card { padding: 0; cursor: pointer; }
.insights-more { margin-top: 2.6rem; }
.post-cover { position: relative; height: 185px; overflow: hidden; background: var(--surface-2); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-cover img { transform: scale(1.06); }
.post-cat {
  position: absolute; left: 0.9rem; top: 0.9rem; z-index: 2;
  background: rgba(255,255,255,0.94); color: var(--primary);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.28rem 0.75rem; border-radius: 999px; box-shadow: var(--shadow);
}
.post-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; }
.post-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.post-card h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }
.post-excerpt { font-size: 0.92rem; color: var(--muted); margin-bottom: 0.9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad); padding: 3.6rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0.35rem; }
.cta-inner p { color: rgba(255,255,255,0.88); margin: 0; }
.cta-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 0.9fr 1.5fr; gap: 2.4rem; padding: 3.6rem 1.4rem 2.6rem; }
/* .footer-logo { height: 54px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); } */
.footer-logo { height: 54px; width: auto; margin-bottom: 1rem;}
.footer-brand p { color: var(--footer-muted); font-size: 0.92rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.09);
  display: inline-flex; align-items: center; justify-content: center; color: var(--footer-ink);
  transition: background 0.2s ease, transform 0.2s ease, text-decoration 0.2s;
}
.footer-social a:hover { background: var(--accent); transform: translateY(-3px); text-decoration: none; }
.footer-social .icon { width: 1.05rem; height: 1.05rem; }
.footer-col h4 { font-size: 1.02rem; color: #fff; margin-bottom: 1rem; letter-spacing: 0.03em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--footer-muted); font-size: 0.92rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--footer-muted); font-size: 0.9rem; }
.footer-contact .icon { color: var(--accent); margin-top: 0.2rem; width: 1.1em; height: 1.1em; }
.footer-contact a { color: var(--footer-muted); }
.footer-contact a:hover { color: #fff; }
.footer-cms { color: var(--accent) !important; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.2rem 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: var(--footer-muted); }
.footer-quote { font-style: italic; }

/* ---------- team ---------- */
.team-grid { align-items: stretch; }
.team-card { display: grid; grid-template-columns: 210px 1fr; gap: 0; padding: 0; overflow: hidden; }
.team-photo { overflow: hidden; background: var(--surface-2); min-height: 280px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s ease; }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-body { padding: 1.5rem 1.6rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.team-body .eyebrow { margin-bottom: 0.1rem; }
.team-body h3 { margin-bottom: 0.3rem; }
.team-body p { font-size: 0.93rem; margin-bottom: 0.7rem; }
.team-body .btn { margin-top: auto; }

.featured-grid { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.featured-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.55rem 1.1rem; font-size: 0.9rem; font-weight: 500; color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.featured-pill:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.featured-pill .icon { color: var(--accent); width: 1em; height: 1em; }

/* mission cards */
.mission-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.6rem; margin-bottom: 1.2rem; position: relative; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mission-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mission-card.vision { background: linear-gradient(160deg, var(--accent-soft), var(--surface) 60%); }
.mission-card.values { background: linear-gradient(160deg, var(--primary-soft), var(--surface) 60%); }
.mission-card h3 { font-size: 1.15rem; }
.mission-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- service subpages ---------- */
.service-hero { background:
  radial-gradient(ellipse 60% 90% at 90% 0%, var(--primary-soft) 0%, transparent 55%),
  var(--bg); }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.fee-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.93rem; }
.fee-table th { background: var(--primary-soft); color: var(--primary-deep); font-family: var(--sans); text-align: left; padding: 0.85rem 1rem; font-size: 0.84rem; letter-spacing: 0.04em; text-transform: uppercase; }
.fee-table td { padding: 0.75rem 1rem; border-top: 1px solid var(--line); }
.fee-table tbody tr:nth-child(even) { background: var(--primary-softer); }
.fee-table tbody tr:hover { background: var(--primary-soft); }
.notes { margin-top: 1.8rem; }
.notes ul { color: var(--muted); font-size: 0.92rem; }
.sipp-card {
  margin-top: 2rem; display: flex; gap: 1.3rem; align-items: flex-start;
  background: linear-gradient(140deg, var(--primary-soft), var(--accent-soft));
  border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem;
}
.sipp-card .card-icon { background: var(--surface); margin-bottom: 0; flex: none; }
.sipp-card h3 { font-size: 1.15rem; }
.sipp-card p { font-size: 0.95rem; margin-bottom: 0.6rem; }
.notice-band {
  display: flex; gap: 1rem; align-items: center;
  background: var(--accent-soft); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.4rem 1.6rem;
}
.notice-band .icon { width: 2rem; height: 2rem; color: var(--accent); flex: none; }
.notice-band p { margin: 0; font-size: 0.98rem; }

/* "Other practice areas" grid on service subpages — centered cards */
.other-areas .card { text-align: center; }
.other-areas .card-icon { margin-left: auto; margin-right: auto; }
.other-areas .card-cta { margin-left: auto; margin-right: auto; }

/* ---------- search & pills ---------- */
.search-box {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.75rem 1.25rem; max-width: 640px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.search-box .icon { color: var(--muted); }
.search-box input { flex: 1; border: none; outline: none; background: transparent; font-size: 1rem; color: var(--ink); font-family: var(--sans); min-width: 0; }
.search-box-lg { margin: 0 auto; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill-row-center { justify-content: center; margin: 1.8rem 0 2.4rem; }
.pill {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 0.5rem 1.15rem; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease; font-family: var(--sans);
}
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,0.14); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 0.8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.faq-item:hover { border-color: var(--primary-2); }
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 1.05rem 1.3rem; font-family: var(--serif); font-size: 1.04rem; font-weight: 600; color: var(--ink);
}
.faq-chevron {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.faq-chevron .icon { width: 0.9rem; height: 0.9rem; }
.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--primary); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.38s ease; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner > div, .faq-a-inner { padding: 0 1.3rem; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a-inner { padding: 0 1.3rem 1.2rem; }
.faq-a-inner { color: var(--muted); font-size: 0.96rem; line-height: 1.7; }

/* ---------- insights ---------- */
.insights-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.8rem; }
.insights-tools .search-box { flex: 1 1 320px; max-width: none; }
.insights-tools .pill-row { flex-wrap: nowrap; }
#insights-grid:has(.post-card[hidden]) { gap: 1.5rem; }

/* ---------- contact ---------- */
.offices-grid { margin-bottom: 1.6rem; }
.office-card address { font-style: normal; color: var(--muted); font-size: 0.97rem; margin: 0.4rem 0 1rem; line-height: 1.6; }
.office-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.3rem; }
.office-head .card-icon { margin-bottom: 0; width: 46px; height: 46px; }
.office-head h3 { margin: 0; }
.office-meta { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 0.6rem; }
.office-meta li { display: flex; gap: 0.6rem; align-items: center; font-size: 0.94rem; color: var(--muted); }
.office-meta .icon { color: var(--primary); width: 1.15em; height: 1.15em; }
.office-meta a { color: var(--ink); font-weight: 600; }
.quick-contact-bar {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
  background: var(--grad); border-radius: 16px; padding: 1.2rem;
}
.quick-contact-bar a {
  display: inline-flex; align-items: center; gap: 0.55rem; color: #fff;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
  padding: 0.6rem 1.15rem; border-radius: 999px; font-size: 0.92rem; font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}
.quick-contact-bar a:hover { background: rgba(255,255,255,0.28); transform: translateY(-2px); text-decoration: none; }
.form-section { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.6rem; align-items: start; }
.form-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.8rem; }
.form-points li { display: flex; gap: 0.7rem; align-items: center; font-size: 0.94rem; color: var(--muted); }
.form-points .icon { color: var(--accent); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.05rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field label small { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 0.98rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.7rem 0.9rem; outline: none; width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
.inquiry-form { padding: 2rem; }
.form-note { font-size: 0.8rem; color: var(--muted); margin: 0.4rem 0 1rem; }
.form-status { font-size: 0.92rem; margin: 0.8rem 0 0; min-height: 1.3em; }
.form-status.ok { color: var(--primary); font-weight: 600; }
.form-status.err { color: #b3403a; font-weight: 600; }
.hp-field { position: absolute !important; left: -6000px !important; opacity: 0; height: 1px; width: 1px; }

/* ---------- modals (fade in / fade out) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(30, 20, 28, 0.6);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; padding: 1.1rem;
  opacity: 0; visibility: hidden; transition: opacity 0.32s ease, visibility 0.32s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-card {
  position: relative; background: var(--surface); border-radius: 18px;
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(22px) scale(0.965); opacity: 0.4;
  transition: transform 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.1), opacity 0.3s ease;
}
.modal-overlay.open .modal-card { transform: none; opacity: 1; }
.modal-close {
  position: absolute; top: 0.85rem; right: 0.85rem; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(30, 20, 28, 0.35); color: #fff; backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.modal-close:hover { background: var(--primary-deep); transform: rotate(90deg); }
.modal-close .icon { width: 1rem; height: 1rem; }

.modal-banner { background: var(--grad); color: #fff; padding: 1.9rem 1.8rem 1.5rem; border-radius: 18px 18px 0 0; }
.modal-banner-icon {
  width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center; margin-bottom: 0.9rem;
}
.modal-banner h3 { color: #fff; font-size: 1.4rem; margin-bottom: 0.3rem; }
.modal-banner p { color: rgba(255,255,255,0.88); font-size: 0.94rem; margin: 0; }
.modal-form { padding: 1.6rem 1.8rem 1.8rem; }

/* profile modal */
.profile-card { max-width: 780px; }
.profile-hero { display: grid; grid-template-columns: 190px 1fr; gap: 1.6rem; padding: 1.8rem; align-items: center; }
.profile-photo-wrap { border-radius: 14px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.profile-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; aspect-ratio: 1; }
.profile-head h3 { font-size: 1.55rem; margin-bottom: 0.35rem; }
.profile-tagline { color: var(--muted); font-size: 0.97rem; margin-bottom: 0.9rem; }
.profile-chips { margin-bottom: 1.1rem; }
.profile-contact { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.profile-bio { padding: 0 1.8rem 1.8rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.profile-bio h4 { font-size: 1.08rem; margin: 1.3rem 0 0.4rem; color: var(--primary-deep); }
.profile-bio p { color: var(--ink); font-size: 0.96rem; }
.profile-cta {
  margin-top: 1.4rem; background: var(--primary-softer); border: 1px dashed var(--line);
  border-radius: 14px; padding: 1.2rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.profile-cta p { margin: 0; font-size: 0.93rem; color: var(--muted); }

/* article modal */
.article-card { max-width: 780px; }
.article-cover-wrap { position: relative; }
.article-cover-wrap img { width: 100%; height: 250px; object-fit: cover; background: var(--surface-2); }
.article-cover-wrap .post-cat { position: absolute; }
.article-body { padding: 1.8rem 2rem 2rem; }
.article-body h2 { font-size: 1.65rem; margin-bottom: 0.4rem; }
.article-content { color: var(--ink); font-size: 0.99rem; }
.article-content h3 { font-size: 1.22rem; margin: 1.5rem 0 0.5rem; color: var(--primary-deep); }
.article-content h4 { font-size: 1.05rem; margin: 1.2rem 0 0.4rem; }
.article-content p { margin-bottom: 1em; line-height: 1.75; }
.article-content ul { margin: 0 0 1em; padding-left: 1.3em; }
.article-content li { margin-bottom: 0.4em; }
.article-content blockquote {
  margin: 1.2em 0; padding: 0.9em 1.2em; border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 12px 12px 0; font-style: italic;
}
.article-content a { text-decoration: underline; }
.article-footer { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }

/* preview (admin draft preview) */
.preview-banner { position: sticky; top: 0; z-index: 50; background: var(--accent); color: #fff; text-align: center; font-weight: 700; letter-spacing: 0.08em; padding: 0.6rem; font-size: 0.85rem; text-transform: uppercase; }
.preview-article { max-width: 780px; padding: 2.4rem 1.4rem 4rem; }

/* ---------- toasts ---------- */
.toast-wrap { position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 400; display: grid; gap: 0.7rem; max-width: min(380px, calc(100vw - 2rem)); }
.toast {
  display: flex; gap: 0.7rem; align-items: flex-start;
  background: var(--ink); color: #fff; border-radius: 13px; padding: 0.95rem 1.15rem;
  box-shadow: var(--shadow-lg); font-size: 0.92rem; line-height: 1.45;
  animation: toastIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}
.toast.out { animation: toastOut 0.3s ease both; }
.toast .icon { width: 1.15rem; height: 1.15rem; color: #9fd6a8; margin-top: 0.1rem; }
.toast.err .icon { color: #f0a6a0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(10px); } }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .two-col, .form-section { grid-template-columns: 1fr; }
  .quad-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-bar { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; padding: 0.6rem 1rem 1rem; }
  .nav-bar.open { display: block; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav > a, .nav-drop-btn { padding: 0.75rem 1rem; border-radius: 10px; }
  .nav > a:hover, .nav-drop-btn:hover { background: var(--primary-soft); }
  .nav > a::after, .nav-drop-btn::after { display: none; }
  .nav-drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; min-width: 0; padding: 0 0 0 0.8rem; display: none; background: transparent; }
  .nav-drop.open .nav-drop-menu { display: block; }
  .header-cta span { display: none; }
  .theme-btn-label { display: none; }
  .brand-logo { height: 42px; }
  .hero { min-height: 440px; }
  .hero-arrow { display: none; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 1fr; }
  .team-photo { min-height: 0; aspect-ratio: 16/9; }
  .profile-hero { grid-template-columns: 1fr; }
  .profile-hero img { max-width: 240px; margin: 0 auto; }
  .section { padding: 3.2rem 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .insights-tools { flex-direction: column; align-items: stretch; }
  .insights-tools .pill-row { flex-wrap: wrap; }
  .modal-overlay { padding: 0.5rem; }
  .article-body, .modal-form { padding: 1.3rem 1.2rem 1.5rem; }
  .profile-bio { padding: 1.3rem 1.2rem 1.5rem; }
  .inquiry-form { padding: 1.4rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- custom pages (created in the CMS) ---------- */
.custom-page-body { max-width: 860px; margin: 0 auto; }
