/* ==========================================================================
   Kanzlei Kobe-Knapp - Familien- und Erbrecht
   Stylesheet: shared across all pages
   ========================================================================== */

/* --- Fonts (self-hosted, no external requests) -------------------------- */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-display-400.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/playfair-display-600.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playfair-display-700.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-700.woff2") format("woff2");
}

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Design tokens ------------------------------------------------------ */
:root {
  /* Colors */
  --color-navy: #14213D;
  --color-navy-light: #1e2f57;
  --color-gold: #C9A227;
  --color-gold-light: #ddb94a;
  --color-cream: #F8F1E3;
  --color-grey: #333333;
  --color-white: #FFFFFF;
  --color-border: rgba(20, 33, 61, 0.12);

  /* Typography */
  --font-heading: "Playfair Display", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-h1: clamp(2.1rem, 1.7rem + 2vw, 3.4rem);
  --fs-h2: clamp(1.7rem, 1.5rem + 1vw, 2.4rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.55rem);
  --lh-heading: 1.18;
  --lh-body: 1.7;

  /* Layout */
  --container-width: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(3.5rem, 6vw, 6.5rem);
  --radius: 6px;
  --shadow-sm: 0 2px 10px rgba(20, 33, 61, 0.07);
  --shadow-md: 0 10px 34px rgba(20, 33, 61, 0.14);
  --transition: 220ms ease;
}

/* --- Base ---------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-grey);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: var(--lh-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { max-width: 65ch; }

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

/* --- Skip link ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  z-index: 200;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  transition: top var(--transition);
}
.skip-link:focus {
  top: 1rem;
}

/* --- Layout helpers -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

section { padding-block: var(--section-pad); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-gold);
}

.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::before { display: none; }

.rule-gold {
  width: 64px;
  height: 3px;
  background: var(--color-gold);
  border: 0;
  margin: 1rem 0 1.5rem;
}
.section-head--center .rule-gold { margin-inline: auto; }

.lead {
  font-size: var(--fs-lead);
  color: var(--color-navy);
}

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.9rem;
  border-radius: 3px;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  position: relative;
  overflow: hidden;
  background-color: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sm);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 550ms ease;
}
.btn-primary:hover {
  background-color: var(--color-gold-light);
  border-color: var(--color-gold-light);
  box-shadow: var(--shadow-md), 0 0 24px rgba(201, 162, 39, 0.35);
}
.btn-primary:hover::after { left: 130%; }

.btn-ghost {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn-ghost:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.btn-ghost-light {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost-light:hover {
  background-color: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.btn-block { width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--color-navy);
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 0.15rem;
  transition: color var(--transition), gap var(--transition), border-color var(--transition);
}
.link-arrow svg { transition: transform var(--transition); }
.link-arrow:hover { color: var(--color-gold); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(20, 33, 61, 0.9);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  z-index: -1;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.brand img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
}
.brand-text {
  font-family: var(--font-heading);
  color: var(--color-white);
  line-height: 1.2;
}
.brand-text strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  font-weight: 600;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  position: fixed;
  inset: 0 0 0 30%;
  background: var(--color-navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 320ms ease;
  z-index: 105;
  overflow-y: auto;
}
.main-nav.is-open { transform: translateX(0); }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.nav-list a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-white);
  position: relative;
}
.nav-list a[aria-current="page"] { color: var(--color-gold); }
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { width: 100%; }

.nav-cta {
  margin-top: 2.5rem;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 33, 61, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 104;
}
.nav-scrim.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .main-nav {
    position: static;
    inset: auto;
    transform: none;
    background: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    overflow: visible;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: clamp(1.1rem, 2vw, 2.2rem);
  }
  .nav-list a {
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
  }
  .nav-list a::after { bottom: -6px; }
  .nav-cta { margin-top: 0; margin-left: clamp(0.5rem, 1.5vw, 1.5rem); }
  .nav-scrim { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: -180px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, rgba(201, 162, 39, 0) 70%);
  pointer-events: none;
  z-index: 0;
  animation: float-ambient 16s ease-in-out infinite;
  transform: translateY(var(--parallax, 0px));
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--color-navy) 0%, var(--color-navy-light) 65%, #24365f 100%);
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  will-change: transform;
  transition: box-shadow var(--transition);
}
.hero-media:hover {
  box-shadow: var(--shadow-md), 0 0 40px rgba(201, 162, 39, 0.25);
}
.hero-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}
.hero-media--portrait > img {
  object-position: center;
}
.hero-media--portrait {
  aspect-ratio: 1632 / 2594;
}
.hero-media-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}
.hero-monogram {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--color-gold-light);
}
.hero-monogram::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.4);
  animation: pulse-ring 3.2s ease-out infinite;
}
.hero-media-content p {
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
  color: rgba(248, 241, 227, 0.75);
  max-width: 20ch;
  margin-inline: auto;
}

.hero-content .eyebrow { color: var(--color-gold); }

.hero-content h1 { margin-bottom: 1.1rem; }

.hero-lines {
  margin-bottom: 1.1rem;
}
.hero-lines p {
  color: var(--color-navy);
  font-size: var(--fs-lead);
  font-weight: 600;
}

.hero-body {
  margin-bottom: 2rem;
  max-width: 60ch;
}
.hero-body p + p { margin-top: 1em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 760px) {
  .hero:not(.hero--wide) .container {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

/* --- Hero: wide variant (no portrait box, text leads) ---------------------- */
.hero--wide {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero--wide::before {
  content: "";
  position: absolute;
  top: -12%;
  right: -6%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.16) 0%, rgba(201, 162, 39, 0) 70%);
  pointer-events: none;
  animation: float-ambient 16s ease-in-out infinite;
  transform: translateY(var(--parallax, 0px));
}
.hero--wide::after {
  content: "";
  position: absolute;
  bottom: -14%;
  left: -8%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 33, 61, 0.07) 0%, rgba(20, 33, 61, 0) 70%);
  pointer-events: none;
  animation: float-ambient 18s ease-in-out infinite reverse;
}
.hero--wide .container {
  position: relative;
  max-width: 50rem;
}
.hero--wide .hero-body { max-width: none; }

/* ==========================================================================
   Intro section
   ========================================================================== */
.intro {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.intro .container {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-top: 1.5rem;
}
.pill-list li {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-navy);
  padding: 0.4rem 0.85rem;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}
.pill-list.member-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
}
.pill-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 1.7rem;
  border-radius: 4px;
  overflow: hidden;
}
.pill-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pill-logo--dark {
  background: var(--color-navy);
  padding: 0.2rem 0.3rem;
}
.intro-name {
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

@media (min-width: 820px) {
  .intro .container {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(3rem, 6vw, 5rem);
  }
}

/* --- Stat row (facts pulled from existing copy, e.g. intro) ---------------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.5rem;
  margin-top: 1.75rem;
}
.stat-row dt {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem);
  color: var(--color-navy);
  line-height: 1;
}
.stat-row dd {
  margin: 0.35rem 0 0;
  font-size: var(--fs-small);
  color: var(--color-grey);
}
.stat-row dt::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-gold);
  margin-top: 0.5rem;
}

/* ==========================================================================
   Generic content panels (bio pages, etc.)
   ========================================================================== */
.panel-white {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.panel-white + .panel-white {
  border-top: 0;
}

.prose {
  max-width: 65ch;
}
.prose p + p {
  margin-top: 1.1em;
}

/* --- Split panel: asymmetric heading/body layout for text sections --------- */
.split-panel .container {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 800px) {
  .split-panel .container {
    grid-template-columns: 0.75fr 1.25fr;
    align-items: start;
  }
  .split-panel .section-head { margin-bottom: 0; }
}

/* --- Callout box ------------------------------------------------------------ */
.callout {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.callout p:last-child { margin-bottom: 0; }

.callout--center {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  border-left: 0;
  border-top: 3px solid var(--color-gold);
}
.callout--center .eyebrow { justify-content: center; }
.callout--center .eyebrow::before { display: none; }
.callout--center .rule-gold { margin-inline: auto; }
.callout--center p:not(.eyebrow) { margin-inline: auto; max-width: 60ch; }

/* --- Timeline ---------------------------------------------------------------- */
.timeline {
  max-width: 720px;
  margin-inline: auto;
  padding-left: 2rem;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border);
}
.timeline-item {
  position: relative;
  padding-bottom: 2.25rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-white);
}
.timeline-year {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.35rem;
}
.timeline-item h3 { margin-bottom: 0.5rem; }
.timeline-item p { margin: 0; max-width: 60ch; }

/* ==========================================================================
   Service checklist (Leistungen)
   ========================================================================== */
.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--color-navy);
  font-weight: 600;
}
.service-list li svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.15em;
  color: var(--color-gold);
}

@media (min-width: 700px) {
  .service-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   Practice area cards
   ========================================================================== */
.practice-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: 1fr;
  perspective: 1200px;
}

.practice-card {
  position: relative;
  isolation: isolate;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-gold);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, box-shadow var(--transition);
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
}
.practice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 162, 39, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}
.practice-card:hover::before { opacity: 1; }
.practice-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.practice-card > * {
  position: relative;
  z-index: 1;
}

.practice-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 320ms ease;
}
.practice-card:hover .practice-icon {
  transform: rotate(-6deg) scale(1.06);
}
.practice-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-gold);
}

.practice-card h3 { margin-bottom: 0.85rem; }
.practice-card p {
  color: var(--color-grey);
  margin-bottom: 1.5rem;
  max-width: none;
}
.practice-card .link-arrow { margin-top: auto; }

.practice-card .office-tag { margin-bottom: 0.85rem; }
.practice-card address {
  font-style: normal;
  line-height: 1.8;
  color: var(--color-grey);
  margin-bottom: 1.5rem;
}
.practice-card address a {
  color: var(--color-navy);
  font-weight: 600;
  transition: color var(--transition);
}
.practice-card address a:hover { color: var(--color-gold); }

@media (min-width: 700px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .practice-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Quote strip
   ========================================================================== */
.quote-strip {
  background-color: var(--color-navy);
  background-image: linear-gradient(155deg, var(--color-navy) 0%, #1a2a4d 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.quote-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid var(--color-gold);
  border-bottom: 3px solid var(--color-gold);
  pointer-events: none;
  z-index: 2;
}
.quote-strip::after {
  content: "\201C";
  position: absolute;
  top: -0.3em;
  right: 3%;
  font-family: var(--font-heading);
  font-size: 24rem;
  line-height: 1;
  color: rgba(201, 162, 39, 0.07);
  pointer-events: none;
  z-index: 0;
  transform: translateY(var(--parallax, 0px));
}
.quote-strip .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}
.quote-mark {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}
.quote-strip blockquote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.45;
  max-width: none;
  color: var(--color-white);
}
.quote-strip figcaption {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  font-weight: 700;
}

/* ==========================================================================
   CTA band (used across pages)
   ========================================================================== */
.cta-band {
  background-color: var(--color-cream);
}
.cta-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.cta-box .rule-gold { margin-inline: auto; }
.cta-box p { margin-inline: auto; margin-bottom: 1.75rem; }
.cta-box-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-navy);
  color: rgba(248, 241, 227, 0.85);
  border-top: 3px solid var(--color-gold);
}

.footer-top {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

.footer-brand img {
  height: 42px;
  margin-bottom: 1.1rem;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  color: rgba(248, 241, 227, 0.7);
  max-width: 32ch;
}

.footer-heading {
  font-family: var(--font-heading);
  color: var(--color-gold-light);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.footer-offices {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}

.office address {
  font-style: normal;
  line-height: 1.8;
}
.office address a {
  color: var(--color-white);
  transition: color var(--transition);
}
.office address a:hover { color: var(--color-gold-light); }
.office-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy);
  background: var(--color-gold);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
  color: rgba(248, 241, 227, 0.85);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover {
  color: var(--color-gold-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(248, 241, 227, 0.15);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-small);
  color: rgba(248, 241, 227, 0.6);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-legal a:hover { color: var(--color-gold-light); }

@media (min-width: 700px) {
  .footer-top {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .footer-top {
    grid-template-columns: 1.3fr 1.5fr 0.9fr 0.9fr;
  }
}

/* ==========================================================================
   Motion & polish - parallax keyframes, scroll reveal, floating UI
   ========================================================================== */
@keyframes float-ambient {
  0%, 100% { transform: translateY(var(--parallax, 0px)) translateX(0); }
  50% { transform: translateY(calc(var(--parallax, 0px) - 16px)) translateX(10px); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: 0.7; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* --- Scroll-reveal: elements fade + rise into place as they enter view --- */
.reveal-target {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.16, 0.8, 0.24, 1), transform 700ms cubic-bezier(0.16, 0.8, 0.24, 1);
  will-change: opacity, transform;
}
.reveal-target.in-view {
  opacity: 1;
  transform: translateY(0);
}
/* Cards also carry their own hover transition (set on .practice-card); this
   keeps hover/tilt snappy instead of inheriting the slower reveal timing. */
.practice-card.reveal-target:hover {
  transition: transform 220ms ease, box-shadow var(--transition);
}

/* --- Scroll progress bar ------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  z-index: 300;
  pointer-events: none;
}

/* --- Back-to-top button ---------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(201, 162, 39, 0.4);
  z-index: 150;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background-color var(--transition);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  background-color: var(--color-navy-light);
  transform: translateY(-3px) scale(1.04);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* --- Subtle paper grain on light sections --------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

@media (prefers-reduced-motion: reduce) {
  .reveal-target {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-monogram::before,
  .hero::before,
  .hero--wide::before,
  .hero--wide::after {
    animation: none;
  }
}
