/* =========================================================================
   IntiLex — International Legal Counsel
   Global stylesheet
   Design system: deep navy + brass, serif display / sans body
   Author: Website build for IntiLex (New York, NY)
   ========================================================================= */

/* ----------------------------------------------------------------------- */
/* 1. Design tokens                                                        */
/* ----------------------------------------------------------------------- */
:root {
  /* Brand color — deep navy with a restrained, antique brass accent */
  --c-navy:        #0e2740;
  --c-navy-deep:   #091a2c;
  --c-navy-soft:   #1b3a5b;
  --c-navy-line:   #22415f;

  --c-gold:        #a9843f;
  --c-gold-deep:   #876729;
  --c-gold-soft:   #cbb488;

  /* Neutrals */
  --c-ink:         #1a222c;
  --c-muted:       #5b6672;
  --c-cream:       #f7f4ee;
  --c-cream-2:     #ece5d8;
  --c-paper:       #ffffff;
  --c-line:        #e6e0d4;
  --c-line-soft:   #f0ebe1;

  /* Typography */
  --font-display: "Cormorant Garamond", "Playfair Display", "Iowan Old Style",
                  "Palatino Linotype", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm — squarer corners, softer shadows for an editorial, print-like feel */
  --container:   1180px;
  --container-narrow: 900px;
  --radius:      2px;
  --radius-lg:   4px;
  --shadow-sm:   0 1px 3px rgba(14, 39, 64, 0.05);
  --shadow-md:   0 12px 32px rgba(14, 39, 64, 0.09);
  --shadow-lg:   0 26px 60px rgba(9, 26, 44, 0.15);
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);

  --header-h:    88px;
}

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

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; padding: 0; }

button { font-family: inherit; cursor: pointer; border: 0; background: none; }

input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--c-navy);
  letter-spacing: 0;
}
/* Cormorant reads smaller/lighter than average — nudge weight up on small headings */
h3, h4 { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--c-gold-soft); color: var(--c-navy-deep); }

/* ----------------------------------------------------------------------- */
/* 3. Layout helpers                                                       */
/* ----------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--cream { background: var(--c-cream); }
.section--navy { background: var(--c-navy); color: #dfe7ef; }
.section--navy h2, .section--navy h3 { color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--c-gold); color: var(--c-navy-deep);
  padding: 10px 18px; border-radius: var(--radius); font-weight: 600;
  z-index: 2000; transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ----------------------------------------------------------------------- */
/* 4. Typographic utilities                                                */
/* ----------------------------------------------------------------------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--c-gold-deep);
}
.kicker::before {
  content: ""; width: 34px; height: 2px; background: var(--c-gold);
  display: inline-block;
}
.kicker--center::after {
  content: ""; width: 34px; height: 2px; background: var(--c-gold);
  display: inline-block;
}
.section--navy .kicker { color: var(--c-gold-soft); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head h2 {
  font-size: clamp(2.15rem, 4.3vw, 3.5rem);
  margin-top: 16px;
}
.section-head p {
  margin-top: 20px; color: var(--c-muted); font-size: 1.075rem;
  max-width: 62ch;
}
.section-head--center p { margin-inline: auto; }
.section--navy .section-head p { color: #b8c6d6; }

.lede { font-size: 1.2rem; color: var(--c-muted); line-height: 1.7; }

/* ----------------------------------------------------------------------- */
/* 5. Buttons                                                              */
/* ----------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 16px 30px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  border-radius: var(--radius); cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--c-gold); color: var(--c-navy-deep); }
.btn--primary:hover { background: var(--c-gold-deep); color: #fff; }

.btn--navy { background: var(--c-navy); color: #fff; }
.btn--navy:hover { background: var(--c-navy-deep); }

.btn--ghost {
  background: transparent; color: var(--c-navy);
  border: 1.5px solid var(--c-line);
}
.btn--ghost:hover { border-color: var(--c-navy); background: var(--c-navy); color: #fff; }

.btn--light {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35);
}
.btn--light:hover { background: #fff; color: var(--c-navy); border-color: #fff; }

.btn--lg { padding: 18px 38px; font-size: 0.82rem; }
.btn--block { width: 100%; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--c-navy);
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: gap .25s var(--ease), border-color .25s var(--ease), color .2s;
}
.textlink svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.textlink:hover { color: var(--c-gold-deep); border-color: var(--c-gold); }
.textlink:hover svg { transform: translateX(4px); }
.section--navy .textlink { color: var(--c-gold-soft); }
.section--navy .textlink:hover { color: #fff; }

/* ----------------------------------------------------------------------- */
/* 6. Header / navigation                                                  */
/* ----------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(10, 30, 51, 0.0);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,51,0.55), rgba(10,30,51,0));
  pointer-events: none; opacity: 1; transition: opacity .35s var(--ease);
}
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 1px 0 var(--c-line), var(--shadow-sm);
  height: 72px;
}
.site-header.is-solid::before { opacity: 0; }

.site-header .container {
  display: flex; align-items: center; gap: 24px; width: 100%;
}

/* Brand / logo */
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.7rem; letter-spacing: 0.02em; color: #fff;
}
.brand__name b { color: var(--c-gold); font-weight: 700; }
.brand__tag {
  font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-top: 5px; font-weight: 500;
}
.is-solid .brand__name { color: var(--c-navy); }
.is-solid .brand__tag { color: var(--c-muted); }

/* Primary nav */
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: block; padding: 10px 14px; border-radius: var(--radius);
  font-weight: 500; font-size: 0.95rem; color: rgba(255,255,255,0.9);
  position: relative; transition: color .2s var(--ease); white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px;
  height: 2px; background: var(--c-gold); transform: scaleX(0);
  transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.is-solid .nav__link { color: var(--c-ink); }
.nav__link[aria-current="page"] { color: #fff; }
.is-solid .nav__link[aria-current="page"] { color: var(--c-navy); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__cta-li { display: none; }

/* Language switcher */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: var(--radius);
  color: rgba(255,255,255,0.92); font-weight: 600; font-size: 0.86rem;
  border: 1.5px solid rgba(255,255,255,0.25); transition: all .2s var(--ease);
}
.lang__btn svg.globe { width: 17px; height: 17px; }
.lang__btn svg.chev { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.lang__btn:hover { border-color: rgba(255,255,255,0.6); }
.lang.is-open .lang__btn svg.chev { transform: rotate(180deg); }
.is-solid .lang__btn { color: var(--c-navy); border-color: var(--c-line); }
.is-solid .lang__btn:hover { border-color: var(--c-navy); }

.lang__menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 8px; min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__option {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 14px; border-radius: var(--radius); text-align: left;
  color: var(--c-ink); font-weight: 500; font-size: 0.92rem;
  transition: background-color .18s var(--ease);
}
.lang__option:hover { background: var(--c-cream); }
.lang__option .flag { font-size: 1.15rem; line-height: 1; }
.lang__option small { display: block; color: var(--c-muted); font-weight: 400; font-size: 0.78rem; }
.lang__option[aria-selected="true"] { background: var(--c-cream); }
.lang__option[aria-selected="true"]::after {
  content: "✓"; margin-left: auto; color: var(--c-gold-deep); font-weight: 700;
}

/* Mobile toggle */
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: var(--radius);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.nav-toggle span {
  width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.is-solid .nav-toggle span { background: var(--c-navy); }
.is-solid .nav-toggle { border-color: var(--c-line); }

/* ----------------------------------------------------------------------- */
/* 7. Hero                                                                 */
/* ----------------------------------------------------------------------- */
.hero {
  position: relative; min-height: min(88vh, 780px);
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 80px;
  color: #fff; overflow: hidden;
  background: var(--c-navy-deep);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,30,51,0.94) 0%, rgba(10,30,51,0.82) 40%, rgba(10,30,51,0.45) 100%),
    linear-gradient(0deg, rgba(10,30,51,0.6), rgba(10,30,51,0) 45%);
}
.hero .container { position: relative; z-index: 1; }
.hero__inner { max-width: 680px; }
.hero h1 {
  color: #fff; font-size: clamp(2.9rem, 6.6vw, 5.2rem); line-height: 1.03;
  margin-top: 22px; font-weight: 700;
}
.hero h1 em { color: var(--c-gold-soft); font-style: italic; }
.hero__sub {
  margin-top: 24px; font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #cdd8e4; max-width: 56ch; line-height: 1.65;
}
.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust {
  margin-top: 48px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; flex-wrap: wrap; gap: 30px 48px;
}
.hero__trust-item { display: flex; flex-direction: column; }
.hero__trust-item b {
  font-family: var(--font-display); font-size: 2rem; color: var(--c-gold-soft); font-weight: 700;
}
.hero__trust-item span { font-size: 0.82rem; letter-spacing: 0.04em; color: #aebccd; margin-top: 2px; }

/* Interior page hero (banner) */
.page-hero {
  position: relative; padding-top: calc(var(--header-h) + 70px); padding-bottom: 72px;
  color: #fff; overflow: hidden; background: var(--c-navy-deep);
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,51,0.86), rgba(10,30,51,0.9));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.2rem); margin-top: 16px; font-weight: 700; }
.page-hero p { margin-top: 18px; color: #c6d2df; max-width: 60ch; font-size: 1.1rem; }
.breadcrumb {
  display: flex; gap: 10px; align-items: center; font-size: 0.85rem; color: #9fb0c2;
}
.breadcrumb a:hover { color: var(--c-gold-soft); }
.breadcrumb span { opacity: 0.5; }

/* ----------------------------------------------------------------------- */
/* 8. Cards & grids                                                        */
/* ----------------------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Practice cards */
.pcard {
  position: relative; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); padding: 36px 32px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden; height: 100%;
}
.pcard::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--c-gold); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-line); }
.pcard:hover::before { transform: scaleX(1); }
.pcard__icon {
  width: 56px; height: 56px; border-radius: 3px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--c-navy), var(--c-navy-soft));
  color: var(--c-gold-soft);
}
.pcard__icon svg { width: 28px; height: 28px; }
.pcard h3 { font-size: 1.3rem; margin-bottom: 12px; }
.pcard p { color: var(--c-muted); font-size: 0.98rem; margin-bottom: 20px; }
.pcard .textlink { font-size: 0.9rem; }

/* Feature list (checkmarks) */
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist li svg {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: var(--c-gold-deep);
}
.checklist li b { color: var(--c-navy); display: block; margin-bottom: 2px; }
.checklist li span { color: var(--c-muted); font-size: 0.96rem; }
.section--navy .checklist li b { color: #fff; }
.section--navy .checklist li span { color: #b8c6d6; }
.section--navy .checklist li svg { color: var(--c-gold-soft); }

/* Split media + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.split__media--tall img { aspect-ratio: 3 / 4; }
.media-badge {
  position: absolute; background: var(--c-navy); color: #fff;
  padding: 22px 26px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  max-width: 240px;
}
.media-badge--br { right: -18px; bottom: -22px; }
.media-badge--bl { left: -18px; bottom: -22px; }
.media-badge b { font-family: var(--font-display); font-size: 2.4rem; color: var(--c-gold-soft); display: block; }
.media-badge span { font-size: 0.85rem; color: #c6d2df; }
.split__body h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.split__body > p { color: var(--c-muted); margin-top: 20px; }
.split__body .kicker { margin-bottom: 18px; }

/* ----------------------------------------------------------------------- */
/* 9. Stats band                                                           */
/* ----------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; padding: 10px; }
.stat b {
  font-family: var(--font-display); font-weight: 700; color: var(--c-gold-soft);
  font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; display: block;
}
.stat span { display: block; margin-top: 12px; color: #bcccdd; font-size: 0.94rem; letter-spacing: 0.02em; }

/* ----------------------------------------------------------------------- */
/* 10. Attorneys                                                           */
/* ----------------------------------------------------------------------- */
.attorney {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  height: 100%;
}
.attorney:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.attorney__photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--c-cream-2); }
.attorney__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.attorney:hover .attorney__photo img { transform: scale(1.05); }
.attorney__overlay {
  position: absolute; inset: auto 0 0 0; padding: 40px 20px 16px;
  background: linear-gradient(0deg, rgba(10,30,51,0.92), transparent);
  display: flex; gap: 10px; opacity: 0; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.attorney:hover .attorney__overlay { opacity: 1; transform: translateY(0); }
.attorney__overlay a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.15); color: #fff; transition: background-color .2s;
}
.attorney__overlay a:hover { background: var(--c-gold); color: var(--c-navy-deep); }
.attorney__overlay a svg { width: 17px; height: 17px; }
.attorney__body { padding: 22px 24px 26px; }
.attorney__body h3 { font-size: 1.25rem; }
.attorney__role { color: var(--c-gold-deep); font-weight: 600; font-size: 0.9rem; margin-top: 4px; letter-spacing: 0.01em; }
.attorney__meta { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--c-line-soft); font-size: 0.87rem; color: var(--c-muted); }
.attorney__meta span { display: inline-flex; align-items: center; gap: 6px; }
.attorney__meta svg { width: 14px; height: 14px; color: var(--c-gold-deep); }

/* ----------------------------------------------------------------------- */
/* 11. Testimonials                                                        */
/* ----------------------------------------------------------------------- */
.quote {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: 42px 38px; position: relative; height: 100%;
  display: flex; flex-direction: column;
}
.quote__mark { font-family: var(--font-display); font-size: 3.6rem; line-height: 0.7; color: var(--c-gold); opacity: .45; height: 28px; }
.quote__text { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.4rem; line-height: 1.45; color: var(--c-navy); margin: 12px 0 26px; flex-grow: 1; }
.quote__author { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--c-line-soft); }
.quote__avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--c-navy);
  color: var(--c-gold-soft); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.quote__author b { color: var(--c-navy); display: block; font-size: 0.98rem; }
.quote__author span { color: var(--c-muted); font-size: 0.85rem; }

/* ----------------------------------------------------------------------- */
/* 12. CTA band                                                            */
/* ----------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--c-navy-deep); color: #fff; border-top: 3px solid var(--c-gold); }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(255,255,255,0.06), transparent 62%);
}
.cta-band .container { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(2.2rem, 4.2vw, 3.6rem); max-width: 20ch; margin-inline: auto; }
.cta-band p { color: #c6d2df; margin: 20px auto 0; max-width: 54ch; font-size: 1.1rem; }
.cta-band .hero__actions { justify-content: center; margin-top: 34px; }

/* ----------------------------------------------------------------------- */
/* 13. Practice detail rows (practice-areas page)                          */
/* ----------------------------------------------------------------------- */
.parea {
  display: grid; grid-template-columns: auto 1fr; gap: 26px;
  padding: 34px; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); scroll-margin-top: 120px;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.parea:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.parea__icon {
  width: 64px; height: 64px; border-radius: 3px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-navy), var(--c-navy-soft)); color: var(--c-gold-soft);
}
.parea__icon svg { width: 32px; height: 32px; }
.parea h3 { font-size: 1.4rem; margin-bottom: 10px; }
.parea p { color: var(--c-muted); margin-bottom: 16px; }
.parea__desc p { color: var(--c-muted); margin-bottom: 12px; line-height: 1.65; }
.parea__desc p:last-child { margin-bottom: 16px; }
.parea__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.8rem; font-weight: 500; color: var(--c-navy-soft);
  background: var(--c-cream); border: 1px solid var(--c-line);
  padding: 5px 12px; border-radius: 40px;
}

/* Practice quick-nav (anchor chips) */
.chipnav { display: flex; flex-wrap: wrap; gap: 10px; }
.chipnav a {
  padding: 9px 16px; border-radius: 40px; background: #fff; border: 1px solid var(--c-line);
  font-weight: 500; font-size: 0.9rem; color: var(--c-navy); transition: all .2s var(--ease);
}
.chipnav a:hover { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }

/* ----------------------------------------------------------------------- */
/* 14. Contact                                                             */
/* ----------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 5vw, 64px); align-items: start; }

.info-card { display: grid; gap: 22px; }
.info-item { display: flex; gap: 18px; align-items: flex-start; }
.info-item__icon {
  width: 50px; height: 50px; border-radius: 3px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--c-cream); color: var(--c-navy); border: 1px solid var(--c-line);
}
.info-item__icon svg { width: 22px; height: 22px; }
.info-item h4 { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--c-gold-deep); margin-bottom: 5px; }
.info-item p, .info-item a { color: var(--c-ink); font-size: 1rem; line-height: 1.55; }
.info-item a:hover { color: var(--c-gold-deep); }

.form {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-sm);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.86rem; margin-bottom: 8px; color: var(--c-navy); }
.field label .req { color: #b4472f; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-cream); color: var(--c-ink); transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-gold); background: #fff;
  box-shadow: 0 0 0 3px rgba(193,154,78,0.15);
}
.form__consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; font-size: 0.86rem; color: var(--c-muted); }
.form__consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--c-navy); }
.form__note { font-size: 0.82rem; color: var(--c-muted); margin-top: 16px; text-align: center; }
.form-status { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.92rem; display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { background: #e8f3ec; color: #1d6b3e; border: 1px solid #b7ddc4; }

/* Map / office */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(0.2) contrast(1.05); }

.hours-list { display: grid; gap: 10px; }
.hours-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--c-line); font-size: 0.95rem; }
.hours-list li span:first-child { color: var(--c-ink); font-weight: 500; }
.hours-list li span:last-child { color: var(--c-muted); }

/* ----------------------------------------------------------------------- */
/* 15. Logos / trust strip                                                 */
/* ----------------------------------------------------------------------- */
.clients-band { padding-block: clamp(44px, 6vw, 66px); border-bottom: 1px solid var(--c-line); background: #fff; }
.clients-band__kicker { justify-content: center; }
.clients-band__title {
  text-align: center; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.35rem, 2.7vw, 2rem); color: var(--c-navy);
  margin: 14px auto 0; max-width: 26ch; line-height: 1.22;
}
.trust-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 52px; margin-top: 36px; }
.trust-strip span {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: 0.01em;
  color: var(--c-navy); opacity: 0.5; transition: opacity .3s;
}
.trust-strip span:hover { opacity: 0.95; }
.trust-strip small { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; }

/* ----------------------------------------------------------------------- */
/* 16. Process steps                                                       */
/* ----------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__num {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--c-gold); color: var(--c-navy); font-family: var(--font-display);
  font-weight: 700; font-size: 1.3rem; margin-bottom: 20px; background: #fff;
}
.section--navy .step__num { background: transparent; color: var(--c-gold-soft); }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--c-muted); font-size: 0.95rem; }
.section--navy .step p { color: #b8c6d6; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 27px; left: 66px; right: -13px; height: 2px;
  background: linear-gradient(90deg, var(--c-gold), transparent);
}

/* ----------------------------------------------------------------------- */
/* 17. Values grid                                                         */
/* ----------------------------------------------------------------------- */
.value { padding: 30px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--c-line); height: 100%; }
.value__icon { width: 52px; height: 52px; border-radius: 3px; display: grid; place-items: center; background: var(--c-cream); color: var(--c-navy); margin-bottom: 18px; border: 1px solid var(--c-line); }
.value__icon svg { width: 25px; height: 25px; }
.value h3 { font-size: 1.2rem; margin-bottom: 10px; }
.value p { color: var(--c-muted); font-size: 0.96rem; }

/* ----------------------------------------------------------------------- */
/* 17b. Gallery                                                            */
/* ----------------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figure:nth-child(1) { grid-column: span 2; }
.gallery figure:nth-child(1) img { aspect-ratio: 16 / 10; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:nth-child(1) { grid-column: span 2; }
}

/* ----------------------------------------------------------------------- */
/* 17c. Recognition / rankings band                                        */
/* ----------------------------------------------------------------------- */
.awards { background: var(--c-navy-deep); color: #fff; padding-block: clamp(46px, 6vw, 72px); }
.awards__title { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.8vw, 2.1rem); color: #fff; margin: 14px auto 0; max-width: 24ch; line-height: 1.22; }
.awards__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }
.award { text-align: center; padding: 16px 26px; border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius-lg); min-width: 148px; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.award:hover { border-color: var(--c-gold); background: rgba(169,132,63,0.08); }
.award b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: #fff; font-weight: 600; }
.award span { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-gold-soft); margin-top: 7px; }
.awards__note { text-align: center; margin-top: 26px; font-size: 0.85rem; color: #9fb0c2; }

/* ----------------------------------------------------------------------- */
/* 17d. Industries / sectors                                               */
/* ----------------------------------------------------------------------- */
.sector { padding: 28px; border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: #fff; height: 100%; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.sector:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.sector__icon { width: 46px; height: 46px; border-radius: 3px; display: grid; place-items: center; background: var(--c-cream); border: 1px solid var(--c-line); color: var(--c-navy); margin-bottom: 16px; }
.sector__icon svg { width: 22px; height: 22px; }
.sector h3 { font-size: 1.2rem; margin-bottom: 6px; }
.sector p { color: var(--c-muted); font-size: 0.92rem; }

/* ----------------------------------------------------------------------- */
/* 17e. Representative experience                                          */
/* ----------------------------------------------------------------------- */
.rep-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.rep-item { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--c-line); }
.rep-item svg { width: 20px; height: 20px; color: var(--c-gold-deep); flex-shrink: 0; margin-top: 3px; }
.rep-item p { color: var(--c-ink); font-size: 0.98rem; line-height: 1.55; }
.rep-note { margin-top: 26px; font-size: 0.82rem; color: var(--c-muted); font-style: italic; }

/* ----------------------------------------------------------------------- */
/* 17f. FAQ accordion (native <details>)                                   */
/* ----------------------------------------------------------------------- */
.faq-list { max-width: 840px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative; font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--c-navy); font-weight: 600; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--c-gold-deep); }
.faq-item summary::after { content: ""; position: absolute; right: 8px; top: 28px; width: 11px; height: 11px; border-right: 2px solid var(--c-gold-deep); border-bottom: 2px solid var(--c-gold-deep); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item p { padding: 0 48px 26px 0; color: var(--c-muted); line-height: 1.7; }

/* ----------------------------------------------------------------------- */
/* 17g. Attorney credentials                                               */
/* ----------------------------------------------------------------------- */
.attorney__creds { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-line-soft); display: grid; gap: 10px; }
.attorney__cred { font-size: 0.84rem; line-height: 1.4; }
.attorney__cred .cl { display: block; font-size: 0.64rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--c-gold-deep); font-weight: 600; margin-bottom: 2px; }
.attorney__cred .v { color: var(--c-ink); }

/* ----------------------------------------------------------------------- */
/* 17h. Memberships strip                                                  */
/* ----------------------------------------------------------------------- */
.members { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; margin-top: 32px; }
.member-chip { padding: 12px 22px; border: 1px solid var(--c-line); border-radius: 40px; background: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--c-navy); letter-spacing: 0.02em; }

@media (max-width: 760px) { .rep-list { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------------- */
/* 17i. Insights / article cards                                           */
/* ----------------------------------------------------------------------- */
.article-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-card__body { padding: 28px 28px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.article-cat { align-self: flex-start; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--c-gold-deep); background: var(--c-cream); border: 1px solid var(--c-line); padding: 5px 11px; border-radius: 40px; margin-bottom: 16px; }
.article-card h3 { font-size: 1.3rem; line-height: 1.24; margin-bottom: 12px; }
.article-card h3 a { color: var(--c-navy); transition: color .2s; }
.article-card h3 a:hover { color: var(--c-gold-deep); }
.article-card p { color: var(--c-muted); font-size: 0.95rem; flex-grow: 1; }
.article-meta { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--c-line-soft); display: flex; align-items: center; gap: 12px; }
.article-meta .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--c-navy); color: var(--c-gold-soft); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.article-meta b { color: var(--c-navy); font-weight: 600; font-size: 0.85rem; display: block; }
.article-meta small { color: var(--c-muted); font-size: 0.78rem; }

/* Single article reading page */
.container.narrow { max-width: 820px; }
.article-crumb { margin-bottom: 18px; color: var(--c-muted); }
.article-crumb a:hover { color: var(--c-gold-deep); }
.article-title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 16px 0 26px; line-height: 1.12; }
.article-byline { display: flex; align-items: center; gap: 14px; }
.article-byline .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--c-navy); color: var(--c-gold-soft); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; flex-shrink: 0; }
.article-byline b { color: var(--c-navy); font-size: 1rem; display: block; }
.article-byline small { color: var(--c-muted); font-size: 0.85rem; }
.article-lead > p { font-size: 1.12rem; line-height: 1.78; color: var(--c-ink); margin-bottom: 22px; }
.article-lead > p:first-child { font-size: 1.24rem; color: var(--c-navy); line-height: 1.65; }
.article-lead > h3 { font-size: 1.55rem; margin: 36px 0 14px; }
.article-lead strong { color: var(--c-navy); }
.article-lead > ul { margin: 0 0 22px; padding: 0; list-style: none; }
.article-lead > ul > li { position: relative; padding-left: 26px; margin-bottom: 11px; color: var(--c-ink); font-size: 1.08rem; line-height: 1.6; }
.article-lead > ul > li::before { content: ""; position: absolute; left: 3px; top: 11px; width: 7px; height: 7px; background: var(--c-gold); border-radius: 50%; }

/* Legal document (privacy / terms / attorney advertising) */
.legal-updated { color: var(--c-muted); font-size: 0.92rem; margin-top: 14px; }
.legal-doc { max-width: 100%; }
.legal-doc h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); margin: 42px 0 14px; scroll-margin-top: 100px; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { font-size: 1.18rem; color: var(--c-navy); margin: 24px 0 10px; }
.legal-doc p { color: var(--c-muted); margin-bottom: 16px; line-height: 1.78; }
.legal-doc ul { margin: 0 0 18px; padding: 0; list-style: none; }
.legal-doc li { position: relative; padding-left: 24px; margin-bottom: 10px; color: var(--c-muted); line-height: 1.7; }
.legal-doc li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 6px; height: 6px; background: var(--c-gold); border-radius: 50%; }
.legal-doc strong { color: var(--c-navy); }
.legal-doc a { color: var(--c-gold-deep); border-bottom: 1px solid var(--c-gold-soft); transition: border-color .2s; }
.legal-doc a:hover { border-color: var(--c-gold-deep); }

/* ----------------------------------------------------------------------- */
/* 17j. Managing Partner message                                           */
/* ----------------------------------------------------------------------- */
.mp { display: grid; grid-template-columns: 280px 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.mp__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.mp__body .kicker { margin-bottom: 20px; }
.mp__quote { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 2.7vw, 2rem); line-height: 1.38; color: var(--c-navy); }
.mp__p { color: var(--c-muted); margin-top: 20px; font-size: 1.02rem; }
.mp__sign { margin-top: 26px; }
.mp__sign b { font-family: var(--font-display); font-size: 1.2rem; color: var(--c-navy); display: block; }
.mp__sign span { color: var(--c-gold-deep); font-weight: 600; font-size: 0.88rem; }

/* Global-reach band (navy split) — keep the intro paragraph readable */
.section--navy .split__body > p { color: #b8c6d6; }

@media (max-width: 760px) {
  .mp { grid-template-columns: 1fr; }
  .mp__photo { max-width: 240px; }
}

/* ----------------------------------------------------------------------- */
/* 18. Footer                                                              */
/* ----------------------------------------------------------------------- */
.site-footer { background: var(--c-navy-deep); color: #aebccd; padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 44px; padding-bottom: 52px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: rgba(255,255,255,0.55); }
.footer-about { margin-top: 22px; font-size: 0.95rem; line-height: 1.7; color: #9fb0c2; max-width: 34ch; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.08); color: #cdd8e4; transition: background-color .2s, color .2s, transform .2s;
}
.footer-social a:hover { background: var(--c-gold); color: var(--c-navy-deep); transform: translateY(-3px); }
.footer-social a svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: #9fb0c2; font-size: 0.95rem; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: var(--c-gold-soft); padding-left: 5px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 0.95rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--c-gold); flex-shrink: 0; margin-top: 3px; }
.footer-contact a:hover { color: var(--c-gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-block: 26px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: #8598ac;
}
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--c-gold-soft); }
.footer-disclaimer { padding-bottom: 30px; font-size: 0.78rem; color: #6d7f93; line-height: 1.6; max-width: 90ch; }

/* ----------------------------------------------------------------------- */
/* 18b. Newsletter signup band                                             */
/* ----------------------------------------------------------------------- */
.newsletter__lead { color: #b8c6d6; max-width: 58ch; margin: 14px auto 0; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 540px; margin: 28px auto 0; }
.newsletter__form input[type="email"] {
  flex: 1 1 240px; min-width: 0; padding: 14px 16px; font-size: 16px; color: #fff;
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.28); border-radius: var(--radius);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.newsletter__form input[type="email"]::placeholder { color: #9fb0c2; }
.newsletter__form input[type="email"]:focus { outline: none; border-color: var(--c-gold); background: rgba(255,255,255,0.10); }
.newsletter__consent { color: #8ea1b5; font-size: 0.8rem; margin-top: 14px; }
.newsletter .form-status { max-width: 540px; margin: 18px auto 0; }
.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; }
@media (max-width: 480px) { .newsletter__form .btn { width: 100%; } }

/* ----------------------------------------------------------------------- */
/* 19. Scroll reveal                                                       */
/* ----------------------------------------------------------------------- */
/* Hidden state applies only when JS is active (.js on <html>), so content
   is always visible if JavaScript is disabled or fails to load. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* Back to top */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; background: var(--c-navy); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-gold); color: var(--c-navy-deep); }
.to-top svg { width: 20px; height: 20px; }

/* ----------------------------------------------------------------------- */
/* 20. Language visibility helper                                          */
/* ----------------------------------------------------------------------- */
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

/* ----------------------------------------------------------------------- */
/* 21. Responsive                                                          */
/* ----------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: flex; }
  .header-actions .consult-btn { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw);
    background: #fff; box-shadow: var(--shadow-lg); padding: calc(var(--header-h) + 20px) 26px 30px;
    transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto; margin: 0;
    z-index: 1001;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__cta-li { display: block; margin-top: 18px; }
  .nav__cta-li .btn { padding: 15px; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { color: var(--c-ink); padding: 14px 12px; border-bottom: 1px solid var(--c-line-soft); font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--c-navy); background: var(--c-cream); border-radius: var(--radius); }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(10,30,51,0.5); z-index: 1000;
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease); backdrop-filter: blur(2px);
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  /* The header is position:fixed (its own stacking context), which traps the
     slide-in .nav (z-index 1001) inside it. Without this, the backdrop — a
     sibling of the header at the same z-index — paints OVER the menu, graying
     it out and stealing taps. Lifting the header above the backdrop while the
     menu is open keeps the panel opaque and its links tappable. */
  body.nav-open .site-header { z-index: 1002; }

  /* Language switcher moves to inside mobile menu; keep in header too but compact */
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { max-width: 560px; margin-inline: auto; }
  .media-badge--br { right: 12px; }
  .media-badge--bl { left: 12px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .parea { grid-template-columns: 1fr; }
  .parea__icon { width: 58px; height: 58px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  /* Compact header so the language switcher + menu button always fit */
  .brand__tag { display: none; }
  .brand__name { font-size: 1.35rem; }
  .brand__mark { width: 36px; height: 36px; }
  .header-actions { gap: 6px; }
  .lang__btn { padding: 8px 10px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__trust { gap: 22px 32px; }
  .hero__trust-item b { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .btn--block-sm { width: 100%; }
  .media-badge { position: static; margin-top: 16px; max-width: none; }
}

/* ----------------------------------------------------------------------- */
/* 21b. Mobile refinements & touch polish                                  */
/* ----------------------------------------------------------------------- */
/* Horizontal overflow is guarded by `body { overflow-x: hidden }` (§2, base).
   We deliberately do NOT add overflow to <html>, so nothing can interfere with
   the page's vertical scrolling or the fixed header. */

/* Snappier taps: drop the 300ms delay and soften the tap flash on touch. */
a, button, summary, label, .btn, input[type="submit"] {
  -webkit-tap-highlight-color: rgba(169, 132, 63, 0.18);
  touch-action: manipulation;
}

/* Use the *small* viewport height for the hero on phones, so the first paint
   is never taller than the visible area while the browser chrome is showing. */
@media (max-width: 760px) {
  .hero {
    min-height: 78vh;   /* fallback for older mobile browsers */
    min-height: 78svh;
    padding-bottom: 56px;
  }
}

@media (max-width: 480px) {
  /* Tighten vertical rhythm so pages don't feel endless on a small screen. */
  .section { padding-block: clamp(52px, 13vw, 74px); }
  .section--tight { padding-block: clamp(40px, 10vw, 60px); }

  /* Thumb-friendly, full-width primary actions. */
  .hero__actions { gap: 12px; }
  .hero__actions .btn,
  .cta-band .hero__actions .btn { width: 100%; }

  /* Comfortable minimum tap sizes (WCAG 2.5.5). */
  .footer-social a { width: 44px; height: 44px; }
  .lang__btn { min-height: 42px; }
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }

  /* Keep the language menu fully inside the viewport on the smallest phones. */
  .lang__menu { min-width: min(220px, calc(100vw - 32px)); }

  .hero h1 { line-height: 1.1; }
}

/* Very small handsets (≤360px): iPhone SE, older/compact Android. */
@media (max-width: 360px) {
  .container { padding-inline: 18px; }
  .stats { grid-template-columns: 1fr; gap: 22px; }
  .brand__name { font-size: 1.25rem; }
  .hero__actions .btn { padding-inline: 18px; }
}

/* Print */
@media print {
  .site-header, .to-top, .nav-toggle, #livechat, .cta-band { display: none !important; }
  body { color: #000; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
