/* ==========================================================================
   Steinitz 2026 — design system
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Noto Sans Hebrew';
  src: url('../fonts/noto-sans-hebrew-v35-hebrew-300.woff2') format('woff2'),
       url('../fonts/noto-sans-hebrew-v35-hebrew-300.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  src: url('../fonts/noto-sans-hebrew-v35-hebrew-500.woff2') format('woff2'),
       url('../fonts/noto-sans-hebrew-v35-hebrew-500.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  src: url('../fonts/noto-sans-hebrew-v35-hebrew-900.woff2') format('woff2'),
       url('../fonts/noto-sans-hebrew-v35-hebrew-900.woff') format('woff');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand — light blue taken from the dot in the Steinitz logo */
  --brand:          #75b9f6;
  --brand-deep:     #2f7fc4;
  --brand-ink:      #0f3557;
  --brand-wash:     #eef6fe;

  /* Neutrals */
  --ink:            #16202b;
  --ink-soft:       #4a5764;
  --ink-faint:      #7c8894;
  --line:           #e3e8ed;
  --line-soft:      #f0f3f6;
  --paper:          #ffffff;
  --paper-alt:      #f6f8fa;

  /* Type scale */
  --fs-hero:        clamp(2.25rem, 5.2vw, 4.25rem);
  --fs-h1:          clamp(1.9rem, 3.6vw, 3rem);
  --fs-h2:          clamp(1.55rem, 2.6vw, 2.25rem);
  --fs-h3:          clamp(1.15rem, 1.7vw, 1.4rem);
  --fs-body:        clamp(1rem, 1.05vw, 1.075rem);
  --fs-small:       0.875rem;

  /* Rhythm */
  --gap:            clamp(1rem, 2.2vw, 2rem);
  --section-y:      clamp(3.5rem, 8vw, 7.5rem);
  --wrap:           1280px;
  --wrap-narrow:    860px;

  --radius:         4px;
  --shadow:         0 1px 2px rgba(22,32,43,.05), 0 8px 28px rgba(22,32,43,.06);
  --shadow-lift:    0 4px 10px rgba(22,32,43,.08), 0 18px 46px rgba(22,32,43,.10);
  --ease:           cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: 'Noto Sans Hebrew', 'Heebo', 'Segoe UI', Arial, sans-serif;
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4, h5 { margin: 0 0 .6em; font-weight: 900; line-height: 1.18; letter-spacing: -.015em; color: var(--brand-ink); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.15em; padding-inline-start: 1.35em; }
li { margin-bottom: .4em; }
strong, b { font-weight: 500; color: var(--brand-ink); }
hr { border: 0; height: 1px; background: var(--line); margin: 2.5rem 0; }
figure { margin: 0; }

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--brand-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Hidden off the TOP, never off the side: an inline-start offset of -9999px
   makes the document 9999px wide in RTL and breaks mobile layout. */
.skip-link {
  position: fixed; inset-inline-start: 1rem; top: 0; z-index: 9999;
  transform: translateY(-150%); transition: transform .2s var(--ease);
  background: var(--brand-ink); color: #fff; padding: .85rem 1.4rem;
  font-weight: 500; border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* Every dimension is forced: inside a flex or grid parent the element is
   otherwise stretched to the full track width and widens the document. */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  min-width: 0 !important; max-width: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  width: auto; height: auto; clip: auto; clip-path: none;
  margin: 0; padding: .6rem 1rem; background: var(--brand-ink); color: #fff; z-index: 9999;
}

/* Nothing may push the page sideways. */
html, body { max-width: 100%; overflow-x: clip; }
/* High-contrast mode toggled by the accessibility widget */
body.a11y-contrast {
  --ink: #000; --ink-soft: #000; --ink-faint: #222;
  --paper: #fff; --paper-alt: #fff; --brand-ink: #000; --brand-deep: #00408f;
  --line: #000;
}
body.a11y-contrast * { text-shadow: none !important; }
body.a11y-underline a { text-decoration: underline !important; }
body.a11y-readable, body.a11y-readable h1, body.a11y-readable h2,
body.a11y-readable h3, body.a11y-readable p, body.a11y-readable a {
  font-family: Arial, 'Segoe UI', sans-serif !important; letter-spacing: .02em;
}
body.a11y-no-motion *, body.a11y-no-motion *::before, body.a11y-no-motion *::after {
  animation: none !important; transition: none !important;
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--wash { background: var(--paper-alt); }
.section--tint { background: var(--brand-wash); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 800;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 2px 18px rgba(22,32,43,.07); }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap); min-height: 84px;
}
.site-logo { flex: 0 0 auto; display: block; }
.site-logo svg { width: clamp(150px, 17vw, 215px); height: auto; }
.site-logo svg .cls-1 { fill: var(--brand-ink); }
.site-logo svg .cls-2 { fill: var(--brand); }

/* Primary nav */
.nav-primary ul { display: flex; align-items: center; gap: clamp(.7rem, 1.7vw, 1.9rem); list-style: none; margin: 0; padding: 0; }
.nav-primary li { margin: 0; position: relative; }
.nav-primary > ul > li > a {
  display: inline-block; padding: .5rem 0; font-size: .96rem; font-weight: 500;
  color: var(--ink); position: relative; white-space: nowrap;
}
.nav-primary > ul > li > a::after {
  content: ''; position: absolute; inset-inline-start: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--brand); transition: width .28s var(--ease);
}
.nav-primary > ul > li > a:hover::after,
.nav-primary > ul > li.current-menu-item > a::after,
.nav-primary > ul > li.current-page-ancestor > a::after { width: 100%; }
.nav-primary > ul > li.current-menu-item > a { color: var(--brand-ink); }

/* Dropdowns */
.nav-primary .sub-menu {
  position: absolute; top: calc(100% + 12px); inset-inline-start: 0;
  min-width: 250px; flex-direction: column; align-items: stretch; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: .5rem 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav-primary li:hover > .sub-menu,
.nav-primary li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-primary .sub-menu a {
  display: block; padding: .6rem 1.15rem; font-size: .92rem; font-weight: 300; color: var(--ink-soft);
  border-inline-start: 2px solid transparent;
}
.nav-primary .sub-menu a:hover { background: var(--brand-wash); color: var(--brand-ink); border-inline-start-color: var(--brand); }
.menu-item-has-children > a::before {
  content: ''; display: inline-block; width: .38em; height: .38em; margin-inline-start: .45em;
  border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .55;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.lang-switch {
  display: inline-flex; align-items: center; gap: .3rem;
  border: 1px solid var(--line); border-radius: 100px; padding: .28rem; background: #fff;
}
.lang-switch a {
  padding: .22rem .68rem; font-size: .8rem; font-weight: 500; color: var(--ink-faint);
  border-radius: 100px; line-height: 1.5;
}
.lang-switch a.is-active { background: var(--brand-ink); color: #fff; }
.lang-switch a:not(.is-active):hover { background: var(--brand-wash); color: var(--brand-ink); }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.6rem; border-radius: 100px; border: 1px solid transparent;
  font-size: .93rem; font-weight: 500; line-height: 1.4; cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.btn--primary { background: var(--brand-ink); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--brand-ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-wash); color: var(--brand-ink); }
.btn--light { background: #fff; color: var(--brand-ink); }
.btn--light:hover { background: var(--brand-wash); }
.btn svg { width: 1em; height: 1em; fill: currentColor; flex: 0 0 auto; }
/* RTL: arrows in buttons point right-to-left correctly */
.btn svg { transform: scaleX(1); }

/* Burger */
.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 11px; background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--brand-ink); margin: 4px 0; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: clamp(520px, 82vh, 820px); display: flex; align-items: center; overflow: hidden; background: var(--brand-ink); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(275deg, rgba(15,53,87,.35) 0%, rgba(15,53,87,.72) 55%, rgba(15,53,87,.92) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(4rem, 10vw, 7rem); }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 1.5rem;
  font-size: .8rem; font-weight: 500; letter-spacing: .22em; color: var(--brand); text-transform: uppercase;
}
.hero__eyebrow::before { content: ''; width: 46px; height: 1px; background: var(--brand); }
.hero__title { font-size: var(--fs-hero); color: #fff; max-width: 19ch; margin-bottom: 1.2rem; }
.hero__title em { font-style: normal; color: var(--brand); }
.hero__text { font-size: clamp(1.02rem, 1.35vw, 1.2rem); color: rgba(255,255,255,.86); max-width: 56ch; margin-bottom: 2.2rem; font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__scroll {
  position: absolute; bottom: 1.8rem; inset-inline-start: 50%; transform: translateX(50%);
  z-index: 3; color: rgba(255,255,255,.6); font-size: .75rem; letter-spacing: .18em;
}
.hero__scroll span { display: block; width: 1px; height: 34px; background: rgba(255,255,255,.4); margin: .5rem auto 0; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner { background: var(--paper-alt); border-bottom: 1px solid var(--line); padding-block: clamp(2.4rem, 5vw, 4.2rem); }
.page-banner h1 { margin-bottom: .3rem; }
.page-banner__intro { color: var(--ink-soft); max-width: 62ch; margin: 0; }
.breadcrumbs { font-size: var(--fs-small); color: var(--ink-faint); margin-bottom: .9rem; }
.breadcrumbs a { color: var(--ink-faint); }
.breadcrumbs a:hover { color: var(--brand-deep); }
.breadcrumbs .breadcrumb_last { color: var(--ink-soft); }

/* ---------- Flex: halves ---------- */
.flx-halves { padding-block: var(--section-y); }
.flx-halves--dark { background: var(--brand-ink); color: rgba(255,255,255,.85); }
.flx-halves--dark h1, .flx-halves--dark h2, .flx-halves--dark h3 { color: #fff; }
.flx-halves--dark strong { color: #fff; }
.flx-halves--wash { background: var(--paper-alt); }
.flx-halves__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.flx-halves--unequal .flx-halves__grid { grid-template-columns: 1.35fr 1fr; }
.flx-halves--flip .flx-halves__media { order: -1; }
.flx-halves__txt > :first-child { margin-top: 0; }
.flx-halves__txt > :last-child { margin-bottom: 0; }
.flx-halves__txt h1, .flx-halves__txt h2 { margin-bottom: .7em; }
.flx-halves__txt h1 span[style*="underline"],
.flx-halves__txt h2 span[style*="underline"] { text-decoration: none !important; position: relative; }
.flx-halves__txt h1 span[style*="underline"]::after,
.flx-halves__txt h2 span[style*="underline"]::after {
  content: ''; position: absolute; inset-inline: 0; bottom: -.12em; height: 3px; background: var(--brand);
}
.flx-halves__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.flx-halves__media { position: relative; }
.flx-halves__media::before {
  content: ''; position: absolute; inset-block-start: -18px; inset-inline-end: -18px;
  width: 45%; height: 45%; border: 1px solid var(--brand); border-radius: var(--radius);
  z-index: -1; opacity: .5;
}

.flx-btns { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.flx-btns a { display: inline-flex; align-items: center; gap: .55rem; padding: .78rem 1.6rem; border-radius: 100px; background: var(--brand-ink); color: #fff; font-size: .93rem; font-weight: 500; transition: background .22s var(--ease), transform .22s var(--ease); }
.flx-btns a:hover { background: var(--brand-deep); color: #fff; transform: translateY(-1px); }
.flx-btns a:nth-child(n+2) { background: transparent; color: var(--brand-ink); border: 1px solid var(--line); }
.flx-btns a:nth-child(n+2):hover { background: var(--brand-wash); border-color: var(--brand); }
.flx-halves--dark .flx-btns a { background: var(--brand); color: var(--brand-ink); }
.flx-halves--dark .flx-btns a:nth-child(n+2) { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.flx-btns svg { width: .95em; height: .95em; fill: currentColor; }

/* Icon list */
.flx-icons { display: grid; gap: 1.35rem; margin-top: 1.8rem; }
.flx-icons__item { display: flex; gap: 1.1rem; align-items: flex-start; }
.flx-icons__icon { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; background: var(--brand-wash); border-radius: 50%; }
.flx-halves--dark .flx-icons__icon { background: rgba(255,255,255,.1); }
.flx-icons__icon svg { width: 22px; height: 22px; }
.flx-icons__content { flex: 1; }
.flx-icons__content p:last-child { margin-bottom: 0; }

/* Lawyer cards */
.lawyers { display: grid; gap: 1rem; }
.lawyer-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.lawyer-card header { display: flex; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.lawyer-card img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.lawyer-card h4 { margin: 0; font-size: 1.1rem; }
.lawyer-card b { display: block; color: var(--brand-deep); font-size: .88rem; font-weight: 500; margin-bottom: .8rem; }
.lawyer-card a { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--ink-soft); padding: .22rem 0; }
.lawyer-card a:hover { color: var(--brand-deep); }
.lawyer-card a svg { width: 15px; height: 15px; fill: var(--brand); flex: 0 0 auto; }
.lawyer-card a span { direction: ltr; unicode-bidi: embed; }

/* ---------- Flex: services grid ---------- */
.flx-services { padding-block: var(--section-y); background: var(--paper-alt); }
.flx-services__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.flx-services__head h2 { margin-bottom: .4rem; }
.flx-services__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 1.1rem; }
.service-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-card::before {
  content: ''; position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 100%; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: inline-start;
  transition: transform .34s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon { width: 44px; height: 44px; margin-bottom: 1.1rem; }
.service-card__icon svg { width: 100%; height: 100%; fill: var(--brand-deep); }
.service-card h3 { font-size: 1.14rem; margin-bottom: .5rem; color: var(--brand-ink); }
.service-card p { font-size: .93rem; color: var(--ink-soft); margin-bottom: 0; line-height: 1.68; }
.service-card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; font-size: .87rem; font-weight: 500; color: var(--brand-deep); }
.service-card__more svg { width: .85em; height: .85em; fill: currentColor; transition: transform .25s var(--ease); }
.service-card:hover .service-card__more svg { transform: translateX(-4px); }

/* ---------- Article / publication listing ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.post-card__thumb { aspect-ratio: 16/10; background: var(--brand-wash); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card__body h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.post-card__body h3 a { color: var(--brand-ink); }
.post-card__body h3 a:hover { color: var(--brand-deep); }
.post-card__body p { font-size: .92rem; color: var(--ink-soft); }
.post-card__meta { margin-top: auto; padding-top: .9rem; font-size: .82rem; color: var(--ink-faint); }

/* Single article body */
.entry-content { font-size: 1.06rem; line-height: 1.85; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.2em; }
.entry-content h3 { margin-top: 1.8em; }
.entry-content img { border-radius: var(--radius); margin-block: 1.8rem; }
.entry-content blockquote {
  margin: 2rem 0; padding: 1.3rem 1.7rem; background: var(--brand-wash);
  border-inline-start: 3px solid var(--brand); border-radius: var(--radius);
  font-size: 1.05rem; color: var(--brand-ink);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content a { border-bottom: 1px solid var(--brand); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--brand-ink); color: #fff; padding-block: clamp(3rem, 6vw, 4.6rem); }
.newsletter__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 4rem); align-items: center; }
.newsletter h2 { color: #fff; margin-bottom: .45rem; }
.newsletter p { color: rgba(255,255,255,.78); margin-bottom: 0; }
.newsletter__form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter__form label { flex: 1 1 240px; }
.newsletter__form input[type="email"], .newsletter__form input[type="text"] {
  width: 100%; padding: .95rem 1.2rem; border-radius: 100px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08); color: #fff; font-family: inherit; font-size: .95rem;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,.55); }
.newsletter__form input:focus { background: rgba(255,255,255,.14); border-color: var(--brand); outline: none; }
.newsletter__consent { flex: 1 1 100%; font-size: .8rem; color: rgba(255,255,255,.62); display: flex; gap: .55rem; align-items: flex-start; line-height: 1.55; }
.newsletter__consent input { margin-top: .28rem; flex: 0 0 auto; accent-color: var(--brand); }
.newsletter__consent a { color: var(--brand); border-bottom: 1px solid rgba(117,185,246,.4); }
.newsletter__msg { flex: 1 1 100%; font-size: .9rem; margin-top: .4rem; }
.newsletter__msg.is-ok { color: #8ee6b0; }
.newsletter__msg.is-err { color: #ffb3ab; }

/* ---------- Contact strip ---------- */
.contact-strip { background: var(--paper-alt); border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem); }
.contact-strip__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.5rem; }
.contact-strip__item { display: flex; gap: .9rem; align-items: flex-start; }
.contact-strip__item svg { width: 20px; height: 20px; fill: var(--brand-deep); flex: 0 0 auto; margin-top: .28rem; }
.contact-strip__item .label { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .12rem; }
.contact-strip__item .value { font-weight: 500; color: var(--brand-ink); }
.contact-strip__item a.value:hover { color: var(--brand-deep); }
.contact-strip__item .value[dir="ltr"] { direction: ltr; unicode-bidi: embed; text-align: right; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-ink); color: rgba(255,255,255,.72); padding-block: clamp(3rem, 6vw, 4.5rem) 0; font-size: .93rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(1.8rem, 4vw, 4rem); padding-bottom: 2.8rem; }
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.15rem; font-weight: 500; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--brand); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer__logo svg { width: 175px; height: auto; margin-bottom: 1.15rem; }
.site-footer__logo svg .cls-1 { fill: #fff; }
.site-footer__logo svg .cls-2 { fill: var(--brand); }
.site-footer__blurb { max-width: 40ch; line-height: 1.7; }
.site-footer__social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.site-footer__social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.site-footer__social a:hover { background: var(--brand); border-color: var(--brand); }
.site-footer__social svg { width: 16px; height: 16px; fill: #fff; }
.site-footer__social a:hover svg { fill: var(--brand-ink); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: space-between; align-items: center;
  font-size: .82rem; color: rgba(255,255,255,.5);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 1.1rem; }

/* ---------- Accessibility widget ---------- */
.a11y-btn {
  position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 900;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--brand-ink); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-lift); transition: transform .25s var(--ease);
}
.a11y-btn:hover { transform: scale(1.06); }
.a11y-btn svg { width: 26px; height: 26px; fill: #fff; }
.a11y-panel {
  position: fixed; inset-inline-start: 18px; bottom: 82px; z-index: 901;
  width: 285px; max-width: calc(100vw - 36px); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lift);
  padding: 1.15rem; display: none;
}
.a11y-panel[data-open="true"] { display: block; }
.a11y-panel h2 { font-size: 1rem; margin-bottom: .9rem; }
.a11y-panel button {
  display: flex; width: 100%; align-items: center; gap: .6rem; margin-bottom: .4rem;
  padding: .6rem .8rem; font-family: inherit; font-size: .88rem; text-align: start;
  background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); cursor: pointer; transition: background .2s var(--ease);
}
.a11y-panel button:hover { background: var(--brand-wash); border-color: var(--brand); }
.a11y-panel button[aria-pressed="true"] { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }
.a11y-panel__foot { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .8rem; }

/* ---------- Forms (Contact Form 7) ---------- */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
  width: 100%; padding: .88rem 1.1rem; margin-bottom: .8rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  font-family: inherit; font-size: .96rem; color: var(--ink);
}
.wpcf7 textarea { min-height: 128px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(117,185,246,.18); }
.wpcf7 input[type="submit"] {
  padding: .85rem 2.1rem; border-radius: 100px; border: none;
  background: var(--brand-ink); color: #fff; font-family: inherit; font-size: .95rem; font-weight: 500; cursor: pointer;
  transition: background .22s var(--ease);
}
.wpcf7 input[type="submit"]:hover { background: var(--brand-deep); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 .7rem;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-soft); font-size: .92rem;
}
.pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand-deep); }
.pagination .page-numbers.current { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }

/* ---------- Motion ---------- */

/* Sections rise into place as they enter the viewport. */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Children stagger in after their parent — the signature move on the
   reference site: text settles first, then the supporting column. */
.reveal .flx-halves__txt > *,
.reveal .flx-halves__media {
  opacity: 0; transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.is-visible .flx-halves__txt > *,
.reveal.is-visible .flx-halves__media { opacity: 1; transform: none; }
.reveal.is-visible .flx-halves__txt > *:nth-child(1) { transition-delay: .08s; }
.reveal.is-visible .flx-halves__txt > *:nth-child(2) { transition-delay: .18s; }
.reveal.is-visible .flx-halves__txt > *:nth-child(3) { transition-delay: .28s; }
.reveal.is-visible .flx-halves__txt > *:nth-child(n+4) { transition-delay: .36s; }
.reveal.is-visible .flx-halves__media { transition-delay: .22s; }

/* Media panels also drift in from the outer edge. */
.reveal .flx-halves__media { transform: translateY(22px) translateX(24px); }
.flx-halves--flip.reveal .flx-halves__media { transform: translateY(22px) translateX(-24px); }

/* Practice-area cards deal out one after another. */
.flx-services__grid .service-card {
  opacity: 0; transform: translateY(26px);
  transition: opacity .6s var(--ease), transform .6s var(--ease),
              box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.reveal.is-visible .flx-services__grid .service-card { opacity: 1; transform: none; }
.reveal.is-visible .flx-services__grid .service-card:nth-child(1)  { transition-delay: .05s; }
.reveal.is-visible .flx-services__grid .service-card:nth-child(2)  { transition-delay: .12s; }
.reveal.is-visible .flx-services__grid .service-card:nth-child(3)  { transition-delay: .19s; }
.reveal.is-visible .flx-services__grid .service-card:nth-child(4)  { transition-delay: .26s; }
.reveal.is-visible .flx-services__grid .service-card:nth-child(5)  { transition-delay: .33s; }
.reveal.is-visible .flx-services__grid .service-card:nth-child(6)  { transition-delay: .40s; }
.reveal.is-visible .flx-services__grid .service-card:nth-child(7)  { transition-delay: .47s; }
.reveal.is-visible .flx-services__grid .service-card:nth-child(n+8){ transition-delay: .54s; }
/* Hover lift must not be cancelled by the entrance transform. */
.reveal.is-visible .flx-services__grid .service-card:hover { transform: translateY(-4px); }

/* Heading underline draws itself in. */
.reveal .flx-halves__txt h1 span[style*="underline"]::after,
.reveal .flx-halves__txt h2 span[style*="underline"]::after {
  transform: scaleX(0); transform-origin: inline-start;
  transition: transform .7s var(--ease) .35s;
}
.reveal.is-visible .flx-halves__txt h1 span[style*="underline"]::after,
.reveal.is-visible .flx-halves__txt h2 span[style*="underline"]::after { transform: scaleX(1); }

/* Hero content enters on load. */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero__eyebrow { animation: heroIn .9s var(--ease) .15s both; }
.hero__title   { animation: heroIn .9s var(--ease) .28s both; }
.hero__text    { animation: heroIn .9s var(--ease) .42s both; }
.hero__actions { animation: heroIn .9s var(--ease) .56s both; }

/* Slow drift on the hero video keeps the frame alive. */
@keyframes heroDrift {
  from { transform: scale(1.06); }
  to   { transform: scale(1.14); }
}
.hero__media video, .hero__media img { animation: heroDrift 22s ease-out both alternate infinite; }

/* Section headings get a rule that grows from the inline start. */
.flx-services__head h2 { position: relative; padding-bottom: .55rem; }
.flx-services__head h2::after {
  content: ''; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 64px; height: 3px; background: var(--brand);
  transform: scaleX(0); transform-origin: inline-start;
  transition: transform .7s var(--ease) .2s;
}
.reveal.is-visible .flx-services__head h2::after { transform: scaleX(1); }

/* Everything above collapses to a plain fade when motion is unwelcome. */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal .flx-halves__txt > *, .reveal .flx-halves__media,
  .flx-services__grid .service-card { opacity: 1 !important; transform: none !important; }
  .hero__eyebrow, .hero__title, .hero__text, .hero__actions,
  .hero__media video, .hero__media img { animation: none !important; }
  .flx-services__head h2::after,
  .flx-halves__txt h1 span[style*="underline"]::after,
  .flx-halves__txt h2 span[style*="underline"]::after { transform: scaleX(1) !important; }
}
body.a11y-no-motion .reveal,
body.a11y-no-motion .reveal .flx-halves__txt > *,
body.a11y-no-motion .reveal .flx-halves__media,
body.a11y-no-motion .flx-services__grid .service-card { opacity: 1 !important; transform: none !important; }
body.a11y-no-motion .flx-services__head h2::after { transform: scaleX(1) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .flx-halves__grid, .newsletter__grid { grid-template-columns: 1fr; }
  .flx-halves--unequal .flx-halves__grid { grid-template-columns: 1fr; }
  .flx-halves--flip .flx-halves__media { order: 0; }
  .flx-halves__media { max-width: 560px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

/*
 * The old off-canvas drawer used to live here. It is gone: structure.css owns
 * the menu on every breakpoint now (a collapsing panel under the header).
 *
 * Leaving it in place was not harmless — its `padding: 1.6rem 1.5rem 3rem`
 * survived the newer rules, and with border-box sizing a padding of 25.6px +
 * 48px is a floor the collapsed panel cannot go below. So `max-height: 0`
 * still left a 73.6px window open and the menu's first icon showed through it
 * over the hero.
 */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .menu-item-has-children > a::before { float: inline-end; margin-top: .45em; }
  .header-actions .btn--primary { display: none; }
}

@media (max-width: 640px) {
  .site-header__bar { min-height: 70px; }
  .hero { min-height: 78vh; }
  .hero__title { max-width: none; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .newsletter__form { flex-direction: column; }
  .newsletter__form .btn { width: 100%; justify-content: center; }
  .a11y-btn { width: 46px; height: 46px; inset-inline-start: 12px; bottom: 12px; }
  .contact-strip__grid { grid-template-columns: 1fr; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .a11y-btn, .a11y-panel, .newsletter, .hero__media { display: none !important; }
  body { color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
}
