/* ==========================================================================
   AMA Legal - design system
   Warm-light editorial theme built from the firm's logo palette.
   Single stylesheet, no framework, no runtime cost.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand colour, sampled from the supplied logo */
  --brown-900: #14100b;
  --brown-800: #241c12;
  --brown-700: #3b2b1d;
  --brown-600: #4a3726;
  --brown-500: #6e5a44;

  --gold-700: #8f611f;
  --gold-600: #a9762e;
  --gold-500: #c08f3e;
  --gold-400: #d4a961;
  --gold-300: #e3c489;
  --gold-100: #f5e7cc;

  --cream-50: #fcfaf6;
  --cream-100: #f9f5ee;
  --cream-200: #f2ebdf;
  --cream-300: #e8dfcd;

  --line: #e6dcc9;
  --line-soft: #efe7d8;
  --muted: #6e6355;
  --muted-dark: #8d8377;
  --white: #ffffff;

  --ink: var(--brown-900);
  --body: #574f45;

  /* Type */
  --font-display: "Playfair Display", "Iowan Old Style", "Palatino Linotype",
    Palatino, Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale (8pt) */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s7: 6rem;
  --s8: 8rem;

  /* Structure */
  --container: 1200px;
  --container-wide: 1400px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Elevation - warm tinted so it sits naturally on cream */
  --shadow-xs: 0 1px 2px rgba(59, 43, 29, 0.06);
  --shadow-sm: 0 2px 8px rgba(59, 43, 29, 0.06), 0 1px 2px rgba(59, 43, 29, 0.04);
  --shadow: 0 10px 30px -12px rgba(59, 43, 29, 0.16), 0 2px 8px rgba(59, 43, 29, 0.05);
  --shadow-lg: 0 30px 60px -25px rgba(59, 43, 29, 0.28), 0 8px 20px -10px rgba(59, 43, 29, 0.12);
  --shadow-gold: 0 14px 34px -14px rgba(169, 118, 46, 0.5);

  --header-h: 78px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --gradient-gold: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-400) 55%, var(--gold-300) 100%);
  --gradient-ink: linear-gradient(150deg, #1c150e 0%, #2f2318 45%, #3b2b1d 100%);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--cream-50);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img,
picture,
svg,
video { max-width: 100%; display: block; }

a { color: var(--gold-700); text-decoration: none; }
a:hover { color: var(--gold-600); }

button { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
}

p { margin: 0; }

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: var(--s4) 0;
}

::selection {
  background: var(--gold-300);
  color: var(--brown-900);
}

:focus-visible {
  outline: 2.5px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link for keyboard and screen-reader users */
.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--brown-800);
  color: var(--cream-100);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: var(--cream-100); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.display-1 { font-size: clamp(2.5rem, 1.6rem + 3.9vw, 4.6rem); }
.display-2 { font-size: clamp(2rem, 1.45rem + 2.4vw, 3.3rem); }
.h2 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.7rem); }
.h3 { font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem); }
.h4 { font-size: clamp(1.1rem, 1.03rem + 0.35vw, 1.28rem); line-height: 1.3; }

.lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  line-height: 1.68;
  color: var(--brown-500);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: var(--s2);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
}
/* Base icon size. Every context below overrides it; without this an SVG that
   sits in an unsized container (e.g. the breadcrumb separator) falls back to
   its intrinsic ~300x150 default and renders enormous. */
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  vertical-align: -0.15em;
}

.eyebrow .icon { width: 15px; height: 15px; }

.text-gold { color: var(--gold-600); }
.text-ink { color: var(--ink); }
.text-balance { text-wrap: balance; }
.text-center { text-align: center; }

/* Gold brush underline used on a key word inside headings */
.mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.mark::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.06em;
  height: 0.34em;
  background: linear-gradient(90deg, rgba(212, 169, 97, 0.55), rgba(245, 231, 204, 0.85));
  border-radius: 3px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: markIn 0.9s 0.35s var(--ease-out) forwards;
}
@keyframes markIn { to { transform: scaleX(1); } }

/* Serif italic accent for pull quotes */
.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}
.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: 820px; }

.section {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
}
.section-sm { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }

.section-cream { background: var(--cream-100); }
.section-cream-2 { background: linear-gradient(180deg, var(--cream-50), var(--cream-200)); }
.section-white { background: var(--white); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow { justify-content: center; }
.section-head .lead { margin-top: var(--s2); }

.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.split.is-reverse > *:first-child { order: 2; }

.stack > * + * { margin-top: var(--s2); }
.stack-lg > * + * { margin-top: var(--s3); }

/* Decorative top hairline used between light sections */
.rule-gold {
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-gold);
  margin-bottom: var(--s3);
}
.is-center .rule-gold { margin-inline: auto; }

/* Soft ambient colour wash behind sections */
.glow { position: relative; isolation: isolate; overflow: hidden; }
.glow::before,
.glow::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}
.glow::before {
  width: 460px; height: 460px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(212, 169, 97, 0.5), transparent 68%);
  animation: drift 22s ease-in-out infinite alternate;
}
.glow::after {
  width: 380px; height: 380px;
  bottom: -160px; left: -140px;
  background: radial-gradient(circle, rgba(232, 223, 205, 0.9), transparent 70%);
  animation: drift 26s 2s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-40px, 30px, 0) scale(1.12); }
}

/* Fine paper grain adds warmth without an image request */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--gradient-gold);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--brown-900);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  box-shadow: var(--shadow-gold);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out),
    background-color 0.25s var(--ease), color 0.25s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.btn:hover {
  color: var(--brown-900);
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -14px rgba(169, 118, 46, 0.62);
}
.btn:active { transform: translateY(0); }

/* Sheen sweep on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.42) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }

.btn .icon {
  width: 17px; height: 17px;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover .icon { transform: translateX(4px); }

.btn-ghost {
  --btn-bg: transparent;
  color: var(--brown-700);
  border: 1.5px solid var(--line);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  color: var(--brown-800);
  border-color: var(--gold-400);
  background: var(--white);
  box-shadow: var(--shadow);
}

.btn-dark {
  --btn-bg: var(--gradient-ink);
  color: var(--cream-50);
  box-shadow: 0 14px 30px -14px rgba(20, 16, 11, 0.6);
}
.btn-dark:hover { color: var(--cream-50); box-shadow: 0 20px 38px -14px rgba(20, 16, 11, 0.7); }

.btn-light {
  --btn-bg: var(--cream-100);
  color: var(--brown-800);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.5);
}
.btn-light:hover { color: var(--brown-900); }

.btn-sm { padding: 0.62rem 1.15rem; font-size: 0.85rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Quiet inline "read more" affordance */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-700);
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(5px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--s3);
}

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(249, 245, 238, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: height 0.3s var(--ease), background-color 0.3s var(--ease),
    border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-stuck {
  height: 66px;
  background: rgba(252, 250, 246, 0.94);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 6px 24px -18px rgba(59, 43, 29, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  width: 100%;
}

/* Logo lockup: the supplied mark beside the supplied wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
}
.brand-mark {
  height: 42px;
  width: auto;
  transition: transform 0.4s var(--ease-out), height 0.3s var(--ease);
}
.brand-word {
  height: 34px;
  width: auto;
  transition: height 0.3s var(--ease);
}
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-3deg); }
.is-stuck .brand-mark { height: 36px; }
.is-stuck .brand-word { height: 29px; }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav-link {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--brown-600);
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--brown-900); background: rgba(255, 255, 255, 0.65); }
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--brown-900); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brown-700);
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.header-phone .icon { width: 16px; height: 16px; color: var(--gold-600); }
.header-phone:hover { color: var(--brown-900); background: rgba(255, 255, 255, 0.7); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 3.5px auto;
  border-radius: 2px;
  background: var(--brown-700);
  transition: transform 0.32s var(--ease-out), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 86vw);
  z-index: 120;
  background: var(--cream-100);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -30px rgba(59, 43, 29, 0.4);
  padding: calc(var(--header-h) + 1rem) clamp(1.25rem, 5vw, 2rem) 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.42s var(--ease-out), visibility 0.42s;
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--brown-800);
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateX(18px);
}
.drawer.is-open .drawer-link {
  animation: drawerIn 0.45s var(--ease-out) forwards;
  animation-delay: calc(70ms * var(--i, 0) + 90ms);
}
@keyframes drawerIn { to { opacity: 1; transform: translateX(0); } }
.drawer-link .icon { width: 16px; height: 16px; color: var(--gold-500); }
.drawer-link[aria-current="page"] { color: var(--gold-700); }

.drawer-meta {
  margin-top: auto;
  padding-top: var(--s3);
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
}
.drawer-meta a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--brown-600); }
.drawer-meta .icon { width: 16px; height: 16px; color: var(--gold-600); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(20, 16, 11, 0.42);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.25rem, 1rem + 5vw, 5rem));
  padding-bottom: clamp(3rem, 1.5rem + 5vw, 6rem);
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(245, 231, 204, 0.85), transparent 62%),
    radial-gradient(760px 520px at 6% 12%, rgba(252, 250, 246, 0.95), transparent 64%),
    linear-gradient(175deg, var(--cream-100) 0%, var(--cream-50) 48%, var(--cream-200) 100%);
  overflow: hidden;
}

/* Architectural column motif drawn in CSS - echoes the logo mark */
.hero-columns {
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(216, 200, 172, 0.42) 0 2px,
    transparent 2px 108px
  );
  mask-image: linear-gradient(180deg, transparent, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%, transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

.hero-title { margin-bottom: var(--s3); }
.hero-title .display-1 { position: relative; z-index: 1; }

.hero-sub { max-width: 52ch; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-trust-stars { display: inline-flex; gap: 0.12rem; color: var(--gold-600); }
.hero-trust-stars .icon { width: 16px; height: 16px; }
.hero-trust p { font-size: 0.88rem; color: var(--muted); }

/* Image collage */
.hero-media {
  position: relative;
  isolation: isolate;
}
.hero-media-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-5deg) rotateX(1.5deg);
  transition: transform 0.7s var(--ease-out);
}
.hero-media:hover .hero-media-frame {
  transform: perspective(1400px) rotateY(-2deg) rotateX(0.5deg) translateY(-4px);
}
.hero-media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.hero-media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(59, 43, 29, 0.02) 0%, rgba(59, 43, 29, 0.38) 100%);
}

/* Gold outline offset behind the photo */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1.5px solid var(--gold-400);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.65;
}

/* Floating metric card over the photo */
.hero-badge {
  position: absolute;
  left: -8%;
  bottom: 8%;
  z-index: 3;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: float 6s ease-in-out infinite;
}
.hero-badge .icon { width: 26px; height: 26px; color: var(--gold-600); }
.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1;
}
.hero-badge span { font-size: 0.76rem; color: var(--muted); letter-spacing: 0.02em; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-badge-top {
  position: absolute;
  right: -4%;
  top: 6%;
  bottom: auto;
  left: auto;
  animation-delay: 1.4s;
}

/* Scrolling jurisdiction ribbon under the hero */
.marquee {
  position: relative;
  z-index: 2;
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-500);
  white-space: nowrap;
}
.marquee-item .icon { width: 15px; height: 15px; color: var(--gold-500); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Compact hero used on interior pages */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 4vw, 4rem));
  padding-bottom: clamp(2.25rem, 1.25rem + 3.5vw, 4rem);
  background:
    radial-gradient(900px 460px at 88% -20%, rgba(245, 231, 204, 0.9), transparent 60%),
    linear-gradient(180deg, var(--cream-100), var(--cream-50));
  overflow: hidden;
}
.page-hero-inner { position: relative; z-index: 2; max-width: 780px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: var(--s2);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-700); }
.breadcrumb .icon { width: 13px; height: 13px; color: var(--gold-600); opacity: 0.8; }
.breadcrumb span[aria-current] { color: var(--brown-700); font-weight: 600; }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 1rem + 1vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.42s var(--ease-out), box-shadow 0.42s var(--ease-out),
    border-color 0.3s var(--ease);
  overflow: hidden;
  isolation: isolate;
  height: 100%;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-300);
}

/* Gold wash that fades in from the top on hover */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.card:hover::before { transform: scaleX(1); }
.card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 240px; height: 240px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 231, 204, 0.9), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.card:hover::after { opacity: 1; }

.card-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: var(--s3);
  border-radius: 15px;
  color: var(--gold-700);
  background: linear-gradient(150deg, var(--cream-100), var(--gold-100));
  border: 1px solid var(--gold-100);
  transition: transform 0.42s var(--ease-out), color 0.3s var(--ease),
    background 0.42s var(--ease);
}
.card-icon .icon { width: 25px; height: 25px; }
.card:hover .card-icon {
  transform: translateY(-3px) scale(1.06) rotate(-4deg);
  color: var(--brown-900);
  background: var(--gradient-gold);
}

.card-title { margin-bottom: 0.6rem; }
.card-text { font-size: 0.95rem; }
.card-foot { margin-top: var(--s3); }

/* Numbered index in a card corner */
.card-index {
  position: absolute;
  top: 1.1rem; right: 1.3rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--cream-200);
  transition: color 0.4s var(--ease);
  user-select: none;
}
.card:hover .card-index { color: var(--gold-100); }

.card-flush { padding: 0; }
.card-media { position: relative; overflow: hidden; }
.card-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); }

/* --------------------------------------------------------------------------
   9. Metrics
   -------------------------------------------------------------------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.metric {
  background: var(--white);
  padding: clamp(1.35rem, 1rem + 1.2vw, 2.15rem);
  text-align: center;
  transition: background-color 0.35s var(--ease);
}
.metric:hover { background: var(--cream-50); }
.metric-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  background: linear-gradient(160deg, var(--brown-800), var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metric-label {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. Check / point lists
   -------------------------------------------------------------------------- */
.list-check { list-style: none; display: grid; gap: 0.8rem; }
.list-check li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.96rem;
  line-height: 1.6;
}
.list-check .icon,
.list-check > span.tick {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 0.15rem;
}
.list-check .tick {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-100);
  color: #845818;
  border: 1px solid var(--gold-300);
}
.list-check .tick .icon { width: 12px; height: 12px; margin: 0; }

.list-bullet { list-style: none; display: grid; gap: 0.55rem; }
.list-bullet li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.94rem;
}
.list-bullet li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient-gold);
}

/* Numbered highlight rows used for the track record */
.record { list-style: none; display: grid; gap: 0.9rem; counter-reset: rec; }
.record li {
  counter-increment: rec;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  font-size: 0.96rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    border-color 0.3s var(--ease);
}
.record li:hover {
  transform: translateX(6px);
  border-color: var(--gold-300);
  box-shadow: var(--shadow);
}
.record li::before {
  content: counter(rec, decimal-leading-zero);
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-600);
  width: 34px;
  padding-top: 0.1rem;
}

/* --------------------------------------------------------------------------
   11. Dark feature band (court photography)
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--cream-100);
  background: var(--brown-800);
}
.band-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.band-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(20, 16, 11, 0.94) 0%, rgba(36, 28, 18, 0.86) 45%, rgba(59, 43, 29, 0.62) 100%);
}
.band h2, .band h3 { color: var(--cream-50); }
.band .lead { color: rgba(249, 245, 238, 0.82); }
.band .eyebrow { color: var(--gold-300); }
.band .rule-gold { background: var(--gradient-gold); }

.band-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 0.5rem + 1.5vw, 2rem);
  margin-top: var(--s4);
}
.band-stat {
  padding: 1.15rem 1.3rem;
  border: 1px solid rgba(227, 196, 137, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
    transform 0.35s var(--ease-out);
}
.band-stat:hover {
  transform: translateY(-4px);
  border-color: var(--gold-400);
  background: rgba(255, 255, 255, 0.09);
}
.band-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  color: var(--gold-300);
  line-height: 1.05;
}
.band-stat span { font-size: 0.86rem; color: rgba(249, 245, 238, 0.74); }

/* --------------------------------------------------------------------------
   12. Testimonials
   -------------------------------------------------------------------------- */
.testimonials { position: relative; }
.testimonial-viewport { overflow: hidden; }
.testimonial-track {
  display: flex;
  transition: transform 0.72s var(--ease-out);
  will-change: transform;
}
.testimonial-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0.25rem;
}
.testimonial {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  box-shadow: var(--shadow);
  text-align: center;
}
.testimonial-quote-icon {
  width: 42px; height: 42px;
  margin: 0 auto var(--s2);
  color: var(--gold-300);
}
.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.6rem);
  line-height: 1.5;
  color: var(--brown-800);
  font-style: italic;
}
.testimonial-stars {
  display: inline-flex;
  gap: 0.2rem;
  color: var(--gold-600);
  margin-top: var(--s3);
}
.testimonial-stars .icon { width: 18px; height: 18px; }
.testimonial-author { margin-top: var(--s2); font-weight: 600; color: var(--ink); }
.testimonial-org { font-size: 0.86rem; color: var(--muted); }

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: var(--s3);
}
.slider-dots { display: flex; gap: 0.4rem; }
.slider-dot {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cream-300);
  cursor: pointer;
  transition: width 0.35s var(--ease-out), background-color 0.3s var(--ease);
}
.slider-dot[aria-selected="true"] { width: 30px; border-radius: 999px; background: var(--gradient-gold); }
.slider-btn {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--brown-600);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease),
    color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.slider-btn:hover {
  color: var(--gold-700);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.slider-btn .icon { width: 18px; height: 18px; }
.slider-btn.is-prev .icon { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   13. Accordion (practice areas + FAQ)
   -------------------------------------------------------------------------- */
.accordion { display: grid; gap: 0.75rem; }
.acc-item {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.35s var(--ease);
}
.acc-item.is-open { border-color: var(--gold-300); box-shadow: var(--shadow); }

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem clamp(1rem, 0.8rem + 0.6vw, 1.5rem);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem);
  font-weight: 600;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.acc-trigger:hover { color: var(--gold-700); }
.acc-trigger .acc-mark {
  flex: 0 0 auto;
  margin-left: auto;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-300);
  background: var(--cream-100);
  color: var(--gold-700);
  transition: transform 0.4s var(--ease-out), background 0.35s var(--ease),
    color 0.3s var(--ease);
}
.acc-trigger .acc-mark .icon { width: 15px; height: 15px; }
.acc-item.is-open .acc-mark {
  transform: rotate(135deg);
  background: var(--gradient-gold);
  color: var(--brown-900);
  border-color: transparent;
}
.acc-num {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-700);
}
.acc-icon-wrap {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--cream-100);
  border: 1px solid var(--line-soft);
  color: var(--gold-700);
}
.acc-icon-wrap .icon { width: 20px; height: 20px; }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-body {
  padding: 0 clamp(1rem, 0.8rem + 0.6vw, 1.5rem) 1.4rem;
  font-size: 0.96rem;
}
.acc-body > * + * { margin-top: var(--s2); }
.acc-body .list-bullet { margin-top: var(--s3); }

/* --------------------------------------------------------------------------
   14. Contact page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}

.contact-cards { display: grid; gap: 1rem; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    border-color 0.3s var(--ease);
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-300);
  box-shadow: var(--shadow);
}
.contact-card-icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--gold-700);
  background: linear-gradient(150deg, var(--cream-100), var(--gold-100));
  border: 1px solid var(--gold-100);
}
.contact-card-icon .icon { width: 22px; height: 22px; }
.contact-card dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.contact-card dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--brown-800);
  line-height: 1.55;
}
.contact-card dd a { color: var(--brown-800); }
.contact-card dd a:hover { color: var(--gold-700); }

/* Map */
.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--cream-200);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 34vw, 440px);
  border: 0;
  filter: saturate(0.85) contrast(1.02);
}
.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border-top: 1px solid var(--line-soft);
}

/* --------------------------------------------------------------------------
   15. Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
  box-shadow: var(--shadow);
}

.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brown-700);
  letter-spacing: 0.01em;
}
.field .req { color: var(--gold-700); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--brown-800);
  background: var(--cream-50);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background-color 0.22s var(--ease);
  appearance: none;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e6355' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.4rem;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--cream-300); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(212, 169, 97, 0.18);
}
.field input::placeholder,
.field textarea::placeholder { color: #7d7264; }

.field-error {
  font-size: 0.8rem;
  color: #b4231f;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #d9534f;
  background: #fdf6f5;
}
.field.has-error .field-error { display: block; }

/* Honeypot - hidden from humans, tempting to bots */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}
.form-consent input {
  width: 18px; height: 18px;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  accent-color: var(--gold-600);
}
.form-note { font-size: 0.8rem; color: var(--muted); }

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-radius: 12px;
  font-size: 0.92rem;
  margin-bottom: var(--s3);
  border: 1px solid;
}
.alert .icon { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 0.15rem; }
.alert-success { background: #f2f9f3; border-color: #bfe0c6; color: #256b35; }
.alert-error { background: #fdf5f4; border-color: #e9c4c2; color: #a3241f; }

.btn[aria-busy="true"] { pointer-events: none; opacity: 0.72; }
.btn .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(20, 16, 11, 0.28);
  border-top-color: var(--brown-900);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn[aria-busy="true"] .spinner { display: block; }
.btn[aria-busy="true"] .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   16. Newsletter strip
   -------------------------------------------------------------------------- */
.newsletter {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 1.25rem + 2.5vw, 3.25rem);
  background: var(--gradient-ink);
  color: var(--cream-100);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
}
.newsletter::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 440px; height: 440px;
  right: -120px; top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 143, 62, 0.55), transparent 68%);
}
.newsletter::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0 0;
  height: 100%;
  background-image: repeating-linear-gradient(90deg, rgba(227, 196, 137, 0.14) 0 1px, transparent 1px 76px);
  mask-image: linear-gradient(180deg, transparent, #000);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000);
}
.newsletter h2 { color: var(--cream-50); }
.newsletter p { color: rgba(249, 245, 238, 0.8); }
.newsletter-form {
  display: flex;
  gap: 0.6rem;
  margin-top: var(--s3);
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1 1 240px;
  padding: 0.9rem 1.1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--cream-50);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(227, 196, 137, 0.34);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.newsletter-form input::placeholder { color: rgba(249, 245, 238, 0.55); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--gold-400);
  background: rgba(255, 255, 255, 0.14);
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--brown-900);
  color: rgba(249, 245, 238, 0.72);
  padding-top: clamp(2.75rem, 2rem + 3vw, 4.5rem);
  font-size: 0.92rem;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-600), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: var(--s2); }
.footer-brand img.f-mark { height: 40px; width: auto; }
.footer-brand img.f-word { height: 34px; width: auto; }

.footer-title {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: var(--s2);
}
.footer-list { list-style: none; display: grid; gap: 0.6rem; }
.footer-list a {
  color: rgba(249, 245, 238, 0.72);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.22s var(--ease), transform 0.28s var(--ease-out);
}
.footer-list a:hover { color: var(--gold-300); transform: translateX(4px); }
.footer-list .icon { width: 15px; height: 15px; color: var(--gold-500); flex: 0 0 auto; }

.footer-contact { display: grid; gap: 0.75rem; }
.footer-contact-row { display: flex; gap: 0.65rem; align-items: flex-start; }
.footer-contact-row .icon { width: 17px; height: 17px; color: var(--gold-500); margin-top: 0.2rem; flex: 0 0 auto; }
.footer-contact-row a { color: rgba(249, 245, 238, 0.82); }
.footer-contact-row a:hover { color: var(--gold-300); }

.footer-note {
  border-top: 1px solid rgba(249, 245, 238, 0.12);
  padding-block: var(--s3);
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(249, 245, 238, 0.55);
}
.footer-bottom {
  border-top: 1px solid rgba(249, 245, 238, 0.12);
  padding-block: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}
.footer-bottom a { color: rgba(249, 245, 238, 0.62); }
.footer-bottom a:hover { color: var(--gold-300); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.15rem; }

/* --------------------------------------------------------------------------
   18. Floating actions
   -------------------------------------------------------------------------- */
.fab-stack {
  position: fixed;
  right: clamp(0.85rem, 2vw, 1.5rem);
  bottom: clamp(0.85rem, 2vw, 1.5rem);
  z-index: 90;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
}
.fab {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform 0.32s var(--ease-out), opacity 0.3s var(--ease),
    visibility 0.3s;
}
.fab:hover { transform: translateY(-4px) scale(1.05); color: #fff; }
.fab .icon { width: 24px; height: 24px; }
.fab-whatsapp { background: linear-gradient(150deg, #29b463, #1f9c52); }
.fab-call { background: var(--gradient-gold); color: var(--brown-900); display: none; }
.fab-call:hover { color: var(--brown-900); }
.fab-top {
  background: rgba(36, 28, 18, 0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.fab-top.is-visible { pointer-events: auto; }
.fab-top.is-visible { opacity: 1; visibility: visible; }
.fab-top .icon { transform: rotate(-90deg); }

/* --------------------------------------------------------------------------
   19. Bar Council of India gate
   -------------------------------------------------------------------------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(20, 16, 11, 0.62);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.gate.is-open { opacity: 1; visibility: visible; }
/* A class selector outranks the UA rule for [hidden], and Chrome paints
   backdrop-filter even at opacity 0, so state this explicitly. */
.gate[hidden],
.overlay[hidden] { display: none; }
.gate-panel {
  width: min(660px, 100%);
  max-height: min(88vh, 780px);
  overflow-y: auto;
  background: var(--cream-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-100);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.4rem, 1rem + 2vw, 2.5rem);
  transform: translateY(22px) scale(0.98);
  transition: transform 0.45s var(--ease-out);
}
.gate.is-open .gate-panel { transform: translateY(0) scale(1); }
.gate-panel h2 { font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.7rem); margin-bottom: 0.6rem; }
.gate-panel .list-bullet { margin-top: var(--s3); }
.gate-panel .list-bullet li { font-size: 0.9rem; line-height: 1.6; }
.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}
.gate-small { font-size: 0.78rem; color: var(--muted); margin-top: var(--s2); }

/* --------------------------------------------------------------------------
   20. Scroll reveal + entrance animation
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 85ms);
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="zoom"] { transform: scale(0.94); }
[data-reveal="none"] { transform: none; }

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Hero copy animates in on load rather than on scroll */
.hero [data-enter] {
  opacity: 0;
  transform: translateY(24px);
  animation: enterUp 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 120ms);
}
@keyframes enterUp { to { opacity: 1; transform: none; } }

/* If JS never runs, nothing should stay invisible */
.no-js [data-reveal],
.no-js .hero [data-enter] { opacity: 1; transform: none; animation: none; }

/* --------------------------------------------------------------------------
   21. Utilities
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); }
.mb-3 { margin-bottom: var(--s3); }
.mb-4 { margin-bottom: var(--s4); }
.pt-0 { padding-top: 0; }
.relative { position: relative; }
.full-width { grid-column: 1 / -1; }
.hide-mobile { display: initial; }
.only-mobile { display: none; }

/* Framed photo used through the interior pages */
.figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure-tall img { aspect-ratio: 4 / 5; }
.figure-wide img { aspect-ratio: 3 / 2; }
.figure figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 1.25rem 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(180deg, transparent, rgba(20, 16, 11, 0.78));
}
/* Sits inside the frame: .figure clips overflow, so a negative inset would
   never be painted. */
.figure-offset::before {
  content: "";
  position: absolute;
  inset: 14px 14px auto auto;
  width: 92px; height: 92px;
  border-top: 1.5px solid var(--gold-300);
  border-right: 1.5px solid var(--gold-300);
  border-top-right-radius: 18px;
  z-index: 2;
  opacity: 0.85;
  pointer-events: none;
}

/* Two-column prose block for legal text */
.prose { max-width: 76ch; }
.prose > * + * { margin-top: var(--s3); }
.prose h2 { margin-top: var(--s5); }
.prose h3 { margin-top: var(--s4); }
.prose p { font-size: 1rem; line-height: 1.78; }
.prose ul { margin-left: 0; }

/* Compact chip row */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brown-600);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.3s var(--ease-out);
}
.chip:hover { border-color: var(--gold-400); color: var(--brown-800); transform: translateY(-2px); }
.chip .icon { width: 14px; height: 14px; color: var(--gold-600); }

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-phone { display: none; }
}

@media (max-width: 980px) {
  :root { --header-h: 70px; }

  .nav { display: none; }
  .nav-toggle { display: grid; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 520px; margin-inline: auto; width: 100%; }
  .hero-media-frame { transform: none; }
  .hero-media:hover .hero-media-frame { transform: translateY(-3px); }
  .hero-media::before { inset: 16px -16px -16px 16px; }
  .hero-media-frame img { aspect-ratio: 3 / 2; }
  .hero-badge { left: -2%; }
  .hero-badge-top { right: -2%; }

  .split { grid-template-columns: 1fr; }
  .split.is-reverse > *:first-child { order: 0; }

  .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .band-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .hide-mobile { display: none; }
  .only-mobile { display: initial; }
  .fab-call { display: grid; }
  .hero-badge { position: static; margin-top: 1rem; animation: none; }
  .hero-badge-top { display: none; }
  .footer-bottom { justify-content: flex-start; }
  .card-index { font-size: 2rem; }
  .testimonial { padding: 1.5rem 1.15rem; }
}

@media (max-width: 520px) {
  .metrics { grid-template-columns: 1fr; }
  .brand-word { height: 27px; }
  .brand-mark { height: 34px; }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .newsletter-form input { flex-basis: 100%; }
  .acc-trigger { gap: 0.7rem; padding: 1rem; }
  .acc-icon-wrap { display: none; }
  .record li { padding: 0.9rem 1rem; }
}

/* Wide screens get a little more air */
@media (min-width: 1440px) {
  :root { --container: 1280px; }
}

/* --------------------------------------------------------------------------
   23. Motion, contrast and print preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  .hero [data-enter] { opacity: 1 !important; transform: none !important; }
  .mark::after { transform: scaleX(1); }
  .hero-media-frame { transform: none; }
}

@media (prefers-contrast: more) {
  :root { --body: #3a3229; --muted: #554c41; --line: #cbbea6; }
  .card, .acc-item, .contact-card { border-color: var(--line); }
}

@media print {
  .site-header, .drawer, .overlay, .fab-stack, .gate, .marquee,
  .newsletter, .map-wrap, .slider-nav { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; }
  .card, .acc-item { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .acc-panel { grid-template-rows: 1fr !important; }
  a { color: #000; text-decoration: underline; }
}

/* Invitation card that closes the practice-area grid */
.card-invite {
  background: linear-gradient(150deg, var(--cream-100), var(--gold-100));
  border-color: var(--gold-300);
}
.card-invite .card-icon { background: var(--white); }

/* --------------------------------------------------------------------------
   24. Stagger + layout modifiers
   Kept as classes rather than inline styles so all styling lives in CSS.
   -------------------------------------------------------------------------- */
.d-0 { --i: 0; }
.d-1 { --i: 1; }
.d-2 { --i: 2; }
.d-3 { --i: 3; }
.d-4 { --i: 4; }
.d-5 { --i: 5; }
.d-6 { --i: 6; }

/* Practice-area layout: narrow sticky intro beside the wide accordion */
.split-detail { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
.is-sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 980px) {
  .split-detail { grid-template-columns: 1fr; }
  .is-sticky { position: static; }
}

.is-center-x { justify-content: center; }
.mi-auto { margin-inline: auto; }
.split.is-middle { align-items: center; }
.address-plain { font-style: normal; }
.newsletter-note { font-size: 0.8rem; opacity: 0.72; }

/* Four-up variant of the dark stat grid */
.band-stats.is-4up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .band-stats.is-4up { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .band-stats.is-4up { grid-template-columns: 1fr; } }

.band-stat-title { font-size: 1.15rem; }
.band-text { color: rgba(249, 245, 238, 0.78); }

/* Logo lockup inside the Bar Council dialog */
.gate-brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: var(--s2); }
.gate-mark { height: 44px; width: auto; }
.gate-word { height: 34px; width: auto; }
