/* ============================================================
   Mgr. Petra Majerová, advokátka — stylesheet
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Colors */
  --color-navy: #1b2432;
  --color-navy-light: #2b384c;
  --color-navy-lighter: #3c4c64;
  --color-cream: #faf7f2;
  --color-cream-alt: #f1ebe0;
  --color-gold: #b08d57;
  --color-gold-light: #c9a876;
  --color-gold-dark: #8f7143;
  --color-charcoal: #262521;
  --color-charcoal-soft: #55524a;
  --color-white: #ffffff;
  --color-border: rgba(38, 37, 33, 0.1);
  --color-border-light: rgba(250, 247, 242, 0.16);

  /* Typography */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.625rem;
  --fs-xl: 2.25rem;
  --fs-2xl: 3rem;
  --fs-3xl: 4rem;

  /* Spacing (8pt-ish scale) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --space-9: 8rem;

  /* Layout */
  --container-w: 1200px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(27, 36, 50, 0.06);
  --shadow-md: 0 12px 32px rgba(27, 36, 50, 0.1);
  --shadow-lg: 0 24px 64px rgba(27, 36, 50, 0.16);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;
  --dur-slow: 560ms;

  --nav-h: 88px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

svg {
  display: block;
  flex-shrink: 0;
}

@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;
  }
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--color-gold);
}

.section-heading {
  font-size: var(--fs-2xl);
  max-width: 20ch;
}

.section-lede {
  font-size: var(--fs-md);
  color: var(--color-charcoal-soft);
  max-width: 56ch;
  line-height: 1.6;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

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

section {
  padding-block: var(--space-9);
  position: relative;
}

.section-alt {
  background: var(--color-cream-alt);
}

.section-dark {
  background: var(--color-navy);
  color: rgba(250, 247, 242, 0.86);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-gold-light);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: rgba(250, 247, 242, 0.4);
  color: var(--color-white);
}

.btn-outline:hover {
  border-color: var(--color-gold);
  background: rgba(176, 141, 87, 0.14);
}

.btn-ghost {
  border-color: var(--color-border);
  color: var(--color-navy);
}

.btn-ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: height var(--dur-med) var(--ease-out),
    background-color var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out);
  background: transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  height: 72px;
  box-shadow: var(--shadow-sm);
}

.site-header.is-scrolled::before {
  opacity: 1;
  border-bottom-color: var(--color-border);
}

/* Light content by default (sits over the dark hero image); flips to dark once the header goes opaque on scroll */
.site-header .brand-name,
.site-header .nav-links a {
  color: var(--color-white);
}

.site-header .brand-role {
  color: var(--color-gold-light);
}

.site-header .brand-mark {
  border-color: var(--color-gold-light);
  color: var(--color-gold-light);
}

.site-header .nav-toggle span {
  background: var(--color-white);
}

.site-header.is-scrolled .brand-name,
.site-header.is-scrolled .nav-links a {
  color: var(--color-navy);
}

.site-header.is-scrolled .brand-role {
  color: var(--color-gold-dark);
}

.site-header.is-scrolled .brand-mark {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--color-navy);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 3;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-gold-dark);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-navy);
}

.brand-role {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  z-index: 2;
}

.nav-links a {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-navy);
  padding-block: var(--space-2);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-fast) var(--ease-out);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  z-index: 2;
}

.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  background: rgba(255, 255, 255, 0.6);
}

.lang-toggle button {
  border: none;
  background: transparent;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-charcoal-soft);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.lang-toggle button.is-active {
  background: var(--color-navy);
  color: var(--color-white);
}

.nav-phone {
  display: none;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: var(--space-2);
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  margin: 5px 0;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  color: var(--color-white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(15, 20, 30, 0.92) 0%,
    rgba(20, 27, 40, 0.82) 38%,
    rgba(27, 36, 50, 0.55) 70%,
    rgba(27, 36, 50, 0.35) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-block: var(--space-8);
}

.hero-content {
  max-width: 700px;
}

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

.hero-eyebrow::before {
  background: var(--color-gold-light);
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.4rem, 5vw, var(--fs-3xl));
  margin-block: var(--space-4);
}

.hero h1 em {
  font-style: italic;
  color: var(--color-gold-light);
}

.hero-sub {
  font-size: var(--fs-md);
  color: rgba(250, 247, 242, 0.82);
  max-width: 46ch;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(250, 247, 242, 0.7);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}

.hero-scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(rgba(250, 247, 242, 0.9), transparent);
  animation: scrollPulse 2.2s var(--ease-out) infinite;
}

@keyframes scrollPulse {
  0% {
    transform: scaleY(0.3);
    transform-origin: top;
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0.3);
    transform-origin: bottom;
    opacity: 0.4;
  }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  padding-block: var(--space-6);
  background: var(--color-navy);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-white);
}

.trust-item svg {
  color: var(--color-gold-light);
  width: 30px;
  height: 30px;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
}

.trust-item span {
  display: block;
  font-size: var(--fs-xs);
  color: rgba(250, 247, 242, 0.68);
  letter-spacing: 0.02em;
}

/* ---------- About section ---------- */
.about {
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-8);
  align-items: center;
}

.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--color-navy) 0%, var(--color-navy-light) 55%, var(--color-gold-dark) 145%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(250, 247, 242, 0.18) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: 0.5;
}

.about-monogram {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 9.5rem;
  color: rgba(250, 247, 242, 0.92);
  letter-spacing: -0.02em;
}

.about-monogram span {
  color: var(--color-gold-light);
}

.about-visual-ring {
  position: absolute;
  border: 1px solid rgba(250, 247, 242, 0.22);
  border-radius: 50%;
}

.about-visual-ring.r1 {
  width: 60%;
  height: 60%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about-visual-ring.r2 {
  width: 84%;
  height: 84%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about-badge {
  position: absolute;
  left: -1.5rem;
  bottom: 2rem;
  background: var(--color-cream);
  color: var(--color-navy);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-md);
  max-width: 230px;
}

.about-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-gold-dark);
}

.about-badge span {
  font-size: var(--fs-xs);
  color: var(--color-charcoal-soft);
}

.about-body p {
  color: var(--color-charcoal-soft);
  margin-bottom: var(--space-4);
  line-height: 1.75;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.about-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-white);
}

.about-tag svg {
  width: 16px;
  height: 16px;
  color: var(--color-gold);
}

.about-photo-accent {
  position: absolute;
  width: 46%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 6px solid var(--color-cream);
  box-shadow: var(--shadow-lg);
  top: -8%;
  right: -12%;
  z-index: 2;
}

.about-photo-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Editorial image band ---------- */
.image-band {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}

.image-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.image-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 26, 37, 0.55) 0%, rgba(19, 26, 37, 0.78) 100%);
}

.image-band .container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.image-band blockquote {
  margin: 0;
  max-width: 780px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, var(--fs-xl));
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-white);
}

.image-band blockquote span {
  color: var(--color-gold-light);
}

.image-band cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.65);
  margin-top: var(--space-5);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  text-align: center;
}

.cta-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 20, 30, 0.95) 10%, rgba(27, 36, 50, 0.82) 60%, rgba(27, 36, 50, 0.7) 100%);
}

.cta-band .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.cta-band h2 {
  color: var(--color-white);
  max-width: 22ch;
}

.cta-band p {
  color: rgba(250, 247, 242, 0.78);
  max-width: 50ch;
  font-size: var(--fs-md);
}

.cta-band .btn {
  margin-top: var(--space-3);
}

/* ---------- Practice areas ---------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.practice-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out);
}

.practice-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.practice-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--color-cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-gold-dark);
  transition: background var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}

.practice-icon svg {
  width: 26px;
  height: 26px;
}

.practice-card:hover .practice-icon {
  background: var(--color-navy);
  color: var(--color-gold-light);
}

.practice-card h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-3);
}

.practice-card p {
  color: var(--color-charcoal-soft);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.adr-callout {
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  background: var(--color-cream-alt);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
}

.adr-callout svg {
  width: 26px;
  height: 26px;
  color: var(--color-gold-dark);
  flex-shrink: 0;
  margin-top: 3px;
}

.adr-callout h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
  font-size: var(--fs-base);
}

.adr-callout p {
  color: var(--color-charcoal-soft);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.adr-callout a {
  color: var(--color-gold-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Contact section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: var(--space-4);
}

.contact-card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: rgba(250, 247, 242, 0.04);
  border: 1px solid var(--color-border-light);
  transition: background var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}

.contact-card:hover {
  background: rgba(250, 247, 242, 0.08);
  transform: translateX(4px);
}

.contact-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(176, 141, 87, 0.16);
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card .icon svg {
  width: 22px;
  height: 22px;
}

.contact-card h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold-light);
  margin-bottom: var(--space-1);
}

.contact-card a,
.contact-card p {
  color: var(--color-white);
  font-size: var(--fs-base);
  line-height: 1.5;
}

.contact-card a:hover {
  color: var(--color-gold-light);
}

.contact-card p {
  color: rgba(250, 247, 242, 0.7);
  font-size: var(--fs-sm);
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
  height: 100%;
  min-height: 420px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: grayscale(0.3) contrast(1.05);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #131a25;
  color: rgba(250, 247, 242, 0.6);
  padding-block: var(--space-6);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--fs-xs);
}

.footer-links {
  display: flex;
  gap: var(--space-5);
}

.footer-links a:hover {
  color: var(--color-gold-light);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}

[data-reveal-group].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 60ms; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 120ms; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 180ms; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 240ms; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 300ms; }

/* ---------- Legal / GDPR page ---------- */
.legal-hero {
  padding-top: calc(var(--nav-h) + var(--space-7));
  padding-bottom: var(--space-7);
  background: var(--color-navy);
  color: var(--color-white);
}

.legal-hero h1 {
  color: var(--color-white);
  font-size: var(--fs-2xl);
  max-width: 24ch;
}

.legal-content {
  padding-block: var(--space-8);
}

.legal-content .container {
  max-width: 840px;
}

.legal-content h2 {
  font-size: var(--fs-lg);
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-navy);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.legal-content p {
  color: var(--color-charcoal-soft);
  margin-bottom: var(--space-3);
  line-height: 1.75;
}

.legal-content ul {
  margin-bottom: var(--space-3);
  padding-left: var(--space-5);
  list-style: disc;
  color: var(--color-charcoal-soft);
}

.legal-content li {
  margin-bottom: var(--space-2);
  line-height: 1.65;
}

.legal-content a {
  color: var(--color-gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-gold-light);
  margin-bottom: var(--space-5);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    max-width: 420px;
    margin-inline: auto;
    margin-top: var(--space-6);
  }

  .about-photo-accent {
    width: 42%;
    top: -6%;
    right: -6%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --space-8: 4rem;
    --space-9: 5rem;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--color-navy);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-6);
    transform: translateX(100%);
    transition: transform var(--dur-med) var(--ease-out);
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  /* The mobile menu is always a solid navy overlay, regardless of .is-scrolled —
     pin these to white so they never inherit the "scrolled" dark-header text color. */
  .site-header .nav-links a,
  .site-header.is-scrolled .nav-links a {
    color: var(--color-white);
    font-size: var(--fs-lg);
    font-family: var(--font-display);
  }

  /* The logo stays on top of the navy overlay (see .brand z-index) while the menu
     is open, so it also needs to stay light regardless of the scrolled state. */
  .site-header.menu-open .brand-name,
  .site-header.menu-open.is-scrolled .brand-name {
    color: var(--color-white);
  }

  .site-header.menu-open .brand-role,
  .site-header.menu-open.is-scrolled .brand-role {
    color: var(--color-gold-light);
  }

  .site-header.menu-open .brand-mark,
  .site-header.menu-open.is-scrolled .brand-mark {
    border-color: var(--color-gold-light);
    color: var(--color-gold-light);
  }

  .nav-links a::after {
    background: var(--color-gold-light);
  }

  .nav-toggle {
    display: block;
  }

  .site-header .nav-toggle span,
  .site-header.is-scrolled .nav-toggle.is-open span {
    background: var(--color-white);
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .trust-list {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .adr-callout {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: var(--space-4);
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .section-heading {
    font-size: 1.9rem;
  }

  .about-badge {
    left: 0;
    right: 0;
    margin-inline: auto;
    bottom: -1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
