/* =========================================================
   U. Khan Law Firm, APC — Design System
   Palette derived from the firm's logo (navy + gold monogram)
   ========================================================= */

:root {
  /* Brand colors */
  --navy-950: #14161f;
  --navy-900: #1a1d2b;
  --navy-800: #212434;
  --navy-700: #2c3047;
  --gold-600: #9a6c3f;
  --gold-500: #b07c4b;
  --gold-400: #c99968;
  --gold-300: #dcb98c;
  --gold-100: #f3e6d4;
  --cream-50: #faf7f2;
  --cream-100: #f4efe6;
  --ink-900: #17181d;
  --ink-700: #3c3f47;
  --ink-500: #6b7080;
  --line: #e6ded0;
  --white: #ffffff;

  /* Semantic tokens */
  --bg-page: var(--cream-50);
  --bg-elevated: var(--white);
  --bg-dark: var(--navy-800);
  --text-body: var(--ink-900);
  --text-muted: var(--ink-500);
  --text-heading: var(--navy-900);
  --text-on-dark: #eef0f6;
  --text-on-dark-muted: #b7bccb;
  --accent: var(--gold-500);
  --accent-hover: var(--gold-600);
  --accent-text: #875b31;
  --surface: var(--white);
  --surface-2: var(--cream-100);
  --border: var(--line);
  --header-bg: rgba(250, 247, 242, 0.86);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 31, 0.06), 0 1px 1px rgba(20, 22, 31, 0.04);
  --shadow-md: 0 12px 32px rgba(20, 22, 31, 0.10), 0 2px 8px rgba(20, 22, 31, 0.06);
  --shadow-lg: 0 24px 60px rgba(20, 22, 31, 0.16), 0 6px 18px rgba(20, 22, 31, 0.08);
  --container: 1240px;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light;
}

/* ---------- Dark theme ----------
   Toggled via [data-theme="dark"] on <html>, set before first paint by the
   inline script in base.html (localStorage, falling back to the OS
   preference). Brand ramps (navy and gold) stay constant, only the
   semantic surface/text tokens flip, since the header, footer, hero, and
   other "always navy" chrome already reads correctly in both modes. */
:root[data-theme="dark"] {
  --bg-page: #14161a;
  --bg-elevated: #1b1e27;
  --text-body: #d9dce6;
  --text-muted: #9297a8;
  --text-heading: #f4f2ec;
  --accent-text: var(--gold-300);
  --surface: #1c2029;
  --surface-2: #20242f;
  --border: rgba(255, 255, 255, 0.1);
  --header-bg: rgba(20, 22, 26, 0.86);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; color: var(--text-heading); }
p { margin: 0 0 1em; color: var(--text-body); }
button { font-family: inherit; cursor: pointer; }
svg { display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .footer-ticker-track { animation: none !important; transform: none !important; }
  .hero-slide { transition: none !important; animation: none !important; }
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: var(--text-on-dark-muted); }
.section--cream { background: var(--surface-2); transition: background-color .35s ease; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--gold-500); display: inline-block; }
.section--dark .eyebrow { color: var(--gold-300); }

h1 { font-size: clamp(34px, 4.4vw, 56px); }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 22px; }
.lede { font-size: 18px; color: var(--text-muted); max-width: 640px; }
.section--cream .lede { color: #5f6472; }
.section--dark .lede { color: var(--text-on-dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .02em;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-outline-dark { background: transparent; border-color: var(--text-heading); color: var(--text-heading); }
.btn-outline-dark:hover { background: var(--text-heading); color: var(--bg-page); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-950);
  color: var(--text-on-dark-muted);
  font-size: 13px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; }
.topbar-links { display: flex; gap: 26px; align-items: center; }
.topbar-links a { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 24px; min-height: 24px; color: var(--text-on-dark-muted); transition: color .2s; }
.topbar-links a:hover { color: var(--gold-300); }
.topbar-social { display: flex; gap: 10px; }
.topbar-social a { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; }
.topbar-social a:hover { border-color: var(--gold-400); color: var(--gold-300); }
.lang-switch { display: flex; gap: 2px; background: rgba(255,255,255,.06); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 3px 11px; border-radius: 999px; font-weight: 600; font-size: 12px; letter-spacing: .04em; transition: background .2s, color .2s; }
.lang-switch a.is-active { background: var(--gold-500); color: var(--navy-950); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: relative; width: 42px; height: 24px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); padding: 0; display: flex; align-items: center; flex-shrink: 0;
  transition: background .25s, border-color .25s;
}
.theme-toggle:hover { border-color: var(--gold-400); }
.theme-toggle-ico {
  position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s, background .25s, color .25s;
}
.theme-toggle-sun { left: 2px; transform: translateY(-50%); background: var(--gold-500); color: var(--navy-950); opacity: 1; }
.theme-toggle-moon { right: 2px; transform: translateY(-50%); background: transparent; color: var(--text-on-dark-muted); opacity: .6; }
[data-theme="dark"] .theme-toggle-sun { transform: translate(18px, -50%); background: transparent; opacity: .6; }
[data-theme="dark"] .theme-toggle-moon { transform: translateY(-50%); background: var(--gold-500); color: var(--navy-950); opacity: 1; }
.theme-toggle-ico svg { width: 12px; height: 12px; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress { position: sticky; top: 0; z-index: 201; height: 3px; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); transition: width .1s linear; }

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease, background-color .35s ease, border-color .35s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(20,22,31,.08); }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.brand { display: block; }
.brand img { height: 46px; width: auto; }
.brand .logo-for-dark { display: none; }
[data-theme="dark"] .brand .logo-for-light { display: none; }
[data-theme="dark"] .brand .logo-for-dark { display: block; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a.nav-link {
  padding: 10px 16px; font-weight: 600; font-size: 14.5px; color: var(--text-heading);
  border-radius: 999px; transition: background .2s, color .2s;
  display: flex; align-items: center; gap: 6px; position: relative;
}
.main-nav a.nav-link:hover, .main-nav li.is-open > a.nav-link { background: var(--navy-800); color: var(--white); }
.main-nav .caret { width: 9px; height: 9px; transition: transform .2s; }
.main-nav li.is-open .caret { transform: rotate(180deg); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 280px;
  background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background-color .35s;
  border: 1px solid var(--border);
}
.has-dropdown:hover .dropdown, .has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; color: var(--text-heading);
  transition: background .2s, color .2s, transform .2s;
}
.dropdown a:hover { background: var(--surface-2); color: var(--accent-text); transform: translateX(3px); }
.dropdown a .ext { font-size: 11px; color: var(--gold-500); font-weight: 700; letter-spacing: .04em; }
.dropdown .divider { height: 1px; background: var(--border); margin: 6px 4px; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-heading); font-size: 14.5px; }
.header-phone .ico { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; flex-shrink: 0; transition: transform .3s ease; }
.header-phone:hover .ico { transform: scale(1.1) rotate(-8deg); }
.header-phone small { display: block; font-weight: 500; color: var(--text-muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--text-heading); position: relative; transition: .25s; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(440px, 52vh, 580px); display: flex; align-items: center; overflow: hidden; background: var(--navy-950); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.15) translate(2.5%, -1.5%); transition: opacity 1.6s ease;
}
/* Slow pan-out effect: each slide starts zoomed in and off-center, then
   drifts diagonally while easing down to a gentler scale, so the still
   photo reads as a slowly moving camera shot rather than a static image.
   Scoped to .is-active (not the base .hero-slide rule) so it restarts
   fresh every time the JS slider (site.js) toggles the class onto a new
   slide, rather than looping continuously in the background. Stays at
   scale(1.02) rather than 1.0 at rest so the pan never exposes an edge. */
.hero-slide.is-active { opacity: 1; animation: heroPanOut 9s linear forwards; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(20,22,31,.92) 8%, rgba(20,22,31,.72) 42%, rgba(20,22,31,.42) 72%, rgba(20,22,31,.2));
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; padding: 64px 0 40px; }
.hero-content .eyebrow { color: var(--gold-300); }
.hero-content h1 { color: var(--white); }
.hero-content h1 em { color: var(--gold-400); font-style: normal; }
.hero-content p { color: var(--text-on-dark-muted); font-size: 18px; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 26px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: 32px; color: var(--white); }
.hero-stat span { font-size: 12.5px; color: var(--text-on-dark-muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-dots { position: absolute; z-index: 2; right: 40px; bottom: 40px; display: flex; gap: 8px; }
.hero-dots button { position: relative; width: 24px; height: 24px; border: none; padding: 0; background: transparent; }
.hero-dots button::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: rgba(255,255,255,.55); transition: .25s; }
.hero-dots button.is-active::after { left: 0; right: 0; border-radius: 999px; background: var(--gold-400); }

@keyframes heroPanOut { from { transform: scale(1.15) translate(2.5%, -1.5%); } to { transform: scale(1.02) translate(-1%, 1%); } }

/* ---------- Reveal animation ----------
   Hidden state only applies once the early inline script in <head> has
   confirmed JS is running (adds .js-anim to <html>). This means content
   is never accidentally hidden if JavaScript fails to load or errors out. */
.js-anim .reveal { opacity: 0; transform: translateY(28px); }
.reveal { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ---------- Grids / cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 36px 30px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background-color .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .ico {
  width: 58px; height: 58px; border-radius: 16px; background: var(--navy-800); color: var(--gold-300);
  display: grid; place-items: center; margin-bottom: 22px; transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.card:hover .ico { transform: scale(1.08) rotate(-4deg); }
.card .ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); margin-bottom: 0; font-size: 15px; }
.card .learn { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; font-size: 13.5px; color: var(--accent-text); }
.card .learn svg { width: 14px; height: 14px; transition: transform .2s; }
.card:hover .learn svg { transform: translateX(4px); }

.practice-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 3/4; }
.practice-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.practice-card:hover img { transform: scale(1.08); }
.practice-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,22,31,.92) 10%, rgba(20,22,31,.25) 55%, rgba(20,22,31,0) 80%); }
.practice-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px; z-index: 2; }
.practice-card-body .num { color: var(--gold-400); font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.practice-card-body h3 { color: var(--white); margin: 6px 0 10px; }
.practice-card-body p { color: var(--text-on-dark-muted); font-size: 14px; margin-bottom: 14px; }
.practice-card-body a { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-300); font-weight: 700; font-size: 13px; }

/* ---------- Values / stats strip ---------- */
.value-item { display: flex; gap: 18px; align-items: flex-start; transition: transform .3s ease; }
.value-item:hover { transform: translateX(4px); }
.value-item .ico { flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; transition: transform .3s ease; }
.value-item:hover .ico { transform: scale(1.1); }
.value-item h4 { font-family: var(--font-body); font-size: 16.5px; margin-bottom: 6px; color: var(--text-heading); }
.value-item p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-strip > div { padding: 40px 24px; text-align: center; border-left: 1px solid var(--border); }
.stat-strip > div:first-child { border-left: none; }
.stat-strip b { display: block; font-family: var(--font-display); font-size: 38px; color: var(--text-heading); }
.stat-strip span { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }

/* ---------- Testimonials ---------- */
.testi-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
.testi-track::-webkit-scrollbar { display: none; }
.testi-card { scroll-snap-align: start; min-width: 340px; max-width: 340px; background: var(--surface); border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: background-color .35s ease, border-color .35s ease, transform .3s ease, box-shadow .3s ease; }
.testi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testi-stars { color: var(--gold-500); font-size: 15px; letter-spacing: 2px; margin-bottom: 16px; }
.testi-card p.quote { font-size: 15px; color: var(--text-body); font-style: italic; }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-800); color: var(--gold-300); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.testi-person b { display: block; font-size: 14.5px; color: var(--text-heading); }
.testi-person span { font-size: 12.5px; color: var(--text-muted); }
.testi-disclaimer { font-size: 12px; color: var(--text-muted); margin-top: 22px; max-width: 640px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font-weight: 700; font-size: 16px; color: var(--text-heading); cursor: pointer; transition: color .2s ease; }
.faq-q:hover { color: var(--accent-text); }
.faq-q .plus { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); flex-shrink: 0; position: relative; transition: transform .25s, background .25s, border-color .25s; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--navy-800); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-q .plus::before { width: 10px; height: 1.6px; }
.faq-q .plus::after { width: 1.6px; height: 10px; transition: opacity .2s; }
[data-theme="dark"] .faq-q .plus::before, [data-theme="dark"] .faq-q .plus::after { background: var(--text-heading); }
.faq-item.is-open .plus { background: var(--navy-800); border-color: var(--navy-800); transform: rotate(180deg); }
.faq-item.is-open .plus::after { opacity: 0; }
.faq-item.is-open .plus::before { background: var(--white); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.is-open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 4px 22px; color: var(--text-muted); font-size: 14.5px; max-width: 620px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); border-radius: var(--radius-lg); padding: 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(176,124,75,.25), transparent 70%); top: -160px; right: -120px; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: var(--text-on-dark-muted); margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--border); transition: background-color .35s ease, border-color .35s ease; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-heading); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 13px 15px; font-family: inherit; font-size: 14.5px;
  background: var(--surface-2); color: var(--text-body); transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); background: var(--surface); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--text-on-dark-muted); }
.footer-top { padding: 80px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-brand img { height: 42px; margin-bottom: 20px; }
.footer-brand p { color: var(--text-on-dark-muted); font-size: 14px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; transition: .2s; }
.footer-social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 14.5px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 22px; }
.footer-col ul li { margin-bottom: 13px; }
.footer-col ul a { font-size: 14.5px; color: var(--text-on-dark-muted); transition: color .2s; display: inline-flex; align-items: center; gap: 8px; }
.footer-col ul a:hover { color: var(--gold-300); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; margin-bottom: 16px; }
.footer-contact .ico { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.06); display: grid; place-items: center; flex-shrink: 0; color: var(--gold-300); }
.footer-map { border-radius: var(--radius-md); overflow: hidden; margin-top: 8px; border: 1px solid rgba(255,255,255,.12); filter: grayscale(.2) contrast(1.05); }
.footer-map iframe { display: block; width: 100%; height: 190px; border: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; }
.footer-bottom .container { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; text-align: center; }
.footer-bottom a { color: var(--gold-300); font-weight: 600; }
.footer-bottom-sep { color: var(--text-on-dark-muted); }

/* ---------- Footer ticker (useful-info marquee) ---------- */
.footer-ticker { border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); overflow: hidden; padding: 14px 0; }
.footer-ticker-track { display: flex; width: max-content; gap: 48px; animation: ticker-scroll 34s linear infinite; will-change: transform; }
.footer-ticker-item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--text-on-dark-muted); }
.footer-ticker-item svg { width: 14px; height: 14px; color: var(--gold-400); flex-shrink: 0; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* ---------- Breadcrumb / page header ---------- */
.page-hero { background: var(--navy-950) center/cover no-repeat; padding: 190px 0 90px; position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background-image: linear-gradient(180deg, rgba(20,22,31,.86), rgba(20,22,31,.92)), radial-gradient(circle at 15% 20%, rgba(176,124,75,.20), transparent 45%), radial-gradient(circle at 85% 80%, rgba(176,124,75,.16), transparent 45%); }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--text-on-dark-muted); font-size: 13.5px; margin-top: 14px; }
.breadcrumb a { color: var(--text-on-dark-muted); }
.breadcrumb a:hover { color: var(--gold-300); }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero .eyebrow { color: var(--gold-300); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0 !important; }
.mt-40 { margin-top: 40px; }
.gap-check { display:flex; align-items:center; gap:10px; margin-bottom: 12px; font-size: 14.5px; color: var(--text-body); font-weight: 600; }
.gap-check svg { color: var(--gold-500); width: 18px; height: 18px; flex-shrink: 0; }
.badge-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.badge-row .badge { display:flex; align-items:center; gap:10px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px 8px 8px; font-size: 12.5px; font-weight: 700; color: var(--text-heading); box-shadow: var(--shadow-sm); transition: background-color .35s ease, border-color .35s ease, transform .25s ease; }
.badge-row .badge:hover { transform: translateY(-3px); }
.badge-row .badge .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); display:grid; place-items:center; }

.blog-teaser-link { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Legal Insights blog index styling ---------- */
.blog-index-notice { font-size: 13px; color: var(--text-muted); margin-bottom: 30px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { display: block; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, background-color .35s ease, border-color .35s ease; }
.blog-card img { display: block; width: 100%; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card img { height: 190px; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-card .date { font-size: 12px; color: var(--gold-600); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.blog-card h3 { font-size: 18px; margin: 10px 0; }
.blog-card p { font-size: 14px; color: var(--text-muted); }
.blog-post-body { max-width: 760px; margin: 0 auto; font-size: 16.5px; }
.blog-post-body h2 { margin-top: 1.6em; font-size: 26px; }
.blog-post-body ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.blog-post-body li { margin-bottom: .5em; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > div:nth-child(3) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .header-phone span.txt { display: none; }
}
@media (max-width: 780px) {
  .hero { min-height: 0; }
  .hero-content { padding: 44px 0 32px; }
  .hero-content p { font-size: 16px; }
  .hero-stats { margin-top: 18px; gap: 24px; }
  .hero-actions { margin-top: 16px; }
  .hero-stat b { font-size: 24px; }
  .main-nav, .header-cta .header-phone { display: none; }
  .burger { display: flex; }
  .topbar-links span.hide-sm { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 150px 0 60px; }
  .section { padding: 64px 0; }
  .footer-ticker-track { gap: 32px; animation-duration: 22s; }
  .footer-ticker-item { font-size: 12px; }
  .footer-ticker { padding: 11px 0; }
  .grid-2[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .grid-2 > * { min-width: 0; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav { position: fixed; inset: 0; z-index: 300; background: var(--navy-950); transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1); overflow-y: auto; contain: layout paint; }
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav-top img { height: 34px; }
.mobile-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); color: #fff; display: grid; place-items: center; background: transparent; }
.mobile-nav ul { padding: 20px 24px; }
.mobile-nav li { border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-nav a { display: block; padding: 16px 4px; color: #fff; font-weight: 600; font-size: 17px; }
.mobile-nav .sub { padding-left: 16px; }
.mobile-nav .sub a { font-size: 15px; color: var(--text-on-dark-muted); padding: 12px 4px; }
.mobile-cta { padding: 24px; }
