/* ============================================================
   ZVI FISHER & CO. — WEBSITE 3
   Design language inspired by prawnikpracodawcow.pl
   ============================================================ */

/* --- Tokens --- */
:root {
  --sage:        #cfd8c1;   /* light sage/mint background */
  --sage-deep:   #b8c5a8;   /* slightly deeper sage for borders */
  --forest:      #1e3932;   /* primary dark green */
  --forest-mid:  #264a3e;   /* slightly lighter dark green */
  --forest-card: #2a4a3e;   /* feature card background */
  --forest-dark: #0d1a14;   /* deepest dark — stats strip */
  --white:       #ffffff;
  --ink:         #1a2820;   /* near-black text */
  --ink-muted:   #3d5548;   /* muted green-gray body text */
  --ink-faint:   rgba(30,57,50,.75); /* ≥4.5:1 on sage for small labels (was .45) */

  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', 'Inter', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --r: 100px; /* pill radius */
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sage);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p { max-width: 58ch; color: var(--ink-muted); line-height: 1.8; }

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Pill button --- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background .25s var(--ease-out), color .25s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn-pill:hover { transform: translateY(-2px); }
.btn-pill:active { transform: translateY(0) scale(0.97); }

.btn-pill--dark {
  background: var(--forest);
  color: var(--white);
}
.btn-pill--dark:hover { background: var(--forest-mid); }

.btn-pill--outline {
  border: 1.5px solid var(--forest);
  color: var(--forest);
}
.btn-pill--outline:hover { background: var(--forest); color: var(--white); }

.btn-pill--outline-light {
  border: 1.5px solid rgba(207,216,193,.5);
  color: var(--white);
}
.btn-pill--outline-light:hover { background: rgba(207,216,193,.15); border-color: var(--sage); }

.btn-pill--light {
  border: 1.5px solid rgba(255,255,255,.6);
  color: var(--white);
}
.btn-pill--light:hover { background: rgba(255,255,255,.12); }

.btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  transition: background .4s var(--ease-out), backdrop-filter .4s;
}
.site-nav.scrolled {
  background: rgba(207,216,193,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 40px;
  box-shadow: 0 1px 0 rgba(30,57,50,.1);
}
.site-nav.on-dark .nav-brand { color: var(--white); }
.site-nav.on-dark .nav-links a { color: rgba(255,255,255,.85); }
.site-nav.on-dark .nav-links a:hover,
.site-nav.on-dark .nav-links a.active { color: var(--white); }
.site-nav.on-dark .lang-btn { color: rgba(255,255,255,.75); }
.site-nav.on-dark .lang-btn:hover { color: var(--white); }
.site-nav.on-dark .nav-burger span { background: var(--white); }
.nav-logo {
  height: 80px;
  width: auto;
  display: block;
  flex-shrink: 0;
  border-radius: 10px;
  transition: transform .25s var(--ease-out);
}
.nav-brand:hover .nav-logo { transform: scale(1.04); }
.nav-brand-text {
  display: flex;
  flex-direction: column;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 1.7rem;
  font-weight: 600;
  color: #1a3560;
  transition: color .3s;
  line-height: 1.2;
}
.nav-brand-text > span {
  display: block;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: .75;
}
.site-nav.scrolled .nav-brand { color: #1a3560; }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-dark);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  right: 50%;
  height: 1.5px;
  background: currentColor;
  transition: left .25s var(--ease-out), right .25s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a.active::after { left: 0; right: 0; }
.nav-links a:hover,
.nav-links a.active { color: var(--forest); }
.site-nav.scrolled .nav-links a { color: var(--forest-dark); }
.site-nav.scrolled .nav-links a:hover,
.site-nav.scrolled .nav-links a.active { color: var(--forest); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-btn {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-dark);
  transition: color .2s;
}
.site-nav.scrolled .lang-btn { color: var(--forest-dark); }
.lang-btn:hover { color: var(--white); }
.site-nav.scrolled .lang-btn:hover { color: var(--forest); }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--forest-dark);
  transition: background .2s, transform .3s var(--ease-out), opacity .3s;
}
.site-nav.scrolled .nav-burger span { background: var(--forest); }

/* Full-screen overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--forest);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease-out);
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.overlay-close {
  position: absolute;
  top: 28px; right: 40px;
  font-size: 2rem;
  color: rgba(255,255,255,.7);
  line-height: 1;
  transition: color .2s;
}
.overlay-close:hover { color: var(--white); }

.overlay-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.overlay-links a {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: rgba(255,255,255,.7);
  transition: color .2s, transform .2s var(--ease-out);
  display: inline-block;
}
.overlay-links a:hover {
  color: var(--white);
  transform: translateX(8px);
}
.overlay-contact {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.overlay-contact a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.overlay-contact a:hover { color: rgba(255,255,255,.85); }

/* ============================================================
   HERO — VIDEO FULL SCREEN
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    rgba(0,0,0,.32),
    linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 30%),
    linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 45%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px 80px;
  max-width: 900px;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.0;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.9);
  max-width: 50ch;
  margin-bottom: 40px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.7);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-hint-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,.3);
  position: relative;
  overflow: hidden;
}
.scroll-hint-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.7);
  animation: scanline 2s var(--ease-in-out) 3;
}
@keyframes scanline {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ============================================================
   SECTIONS — BACKGROUND ZONES
   ============================================================ */
.section-sage { background: var(--sage); }
.section-white { background: var(--white); }
.section-forest { background: var(--forest); }

/* ============================================================
   SPLIT — 50/50 LAYOUT
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}
.split-visual {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}
.split-visual img,
.split-visual video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
}
.split-body h2 { margin-bottom: 28px; }
.split-body p { margin-bottom: 20px; }
.split-body .btn-pill { margin-top: 20px; align-self: flex-start; }

/* Decorative geometric shapes (like the Polish circles) */
.geo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
}
.geo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 520px;
}
.geo-circle {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}
.geo-circle--outline {
  border: 2px solid var(--sage-deep);
  background: transparent;
}
.geo-circle--forest {
  background: var(--forest);
}
.geo-circle--half {
  border-radius: 50%;
  clip-path: ellipse(100% 50% at 50% 100%);
  background: var(--forest);
}
.geo-circle--photo {
  background: var(--sage-deep);
}
.geo-circle--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.geo-arrow {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.35;
}
.geo-arrow svg {
  width: 40px;
  height: 40px;
  stroke: var(--forest);
  fill: none;
  stroke-width: 1.5;
}

/* ============================================================
   SERVICES LIST (divider-separated)
   ============================================================ */
.services-section {
  padding: 100px 0;
}
.services-header {
  margin-bottom: 48px;
}
.services-list {
  border-top: 1px solid var(--sage-deep);
}
.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--sage-deep);
  transition: color .2s var(--ease-out);
  cursor: pointer;
  gap: 20px;
}
.service-item:hover { color: var(--forest); }
.service-item:hover .service-arrow { opacity: 1; transform: translateX(4px); }
.service-name {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: inherit;
}
.service-arrow {
  opacity: 0;
  transition: opacity .2s, transform .2s var(--ease-out);
  flex-shrink: 0;
}
.service-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* ============================================================
   QUOTE SECTION
   ============================================================ */
.quote-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}
.quote-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
  background: var(--white);
}
.bio-wide p { max-width: 72ch; }
.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  max-width: 100%;
  margin-bottom: 28px;
}
.quote-text::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 1.3em;
  color: var(--sage-deep);
  line-height: 0;
  vertical-align: -0.15em;
  margin-inline-end: 0.06em;
}
.quote-text::after {
  content: '\201D';
  font-family: var(--font-serif);
  font-size: 1.3em;
  color: var(--sage-deep);
  line-height: 0;
  vertical-align: -0.15em;
  margin-inline-start: 0.06em;
}
.quote-attribution {
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.quote-attribution strong {
  font-weight: 600;
  color: var(--ink);
}
.quote-photo {
  position: relative;
  overflow: hidden;
  background: var(--sage);
  min-height: 500px;
}
.quote-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ============================================================
   TRANSACTIONS (dark bg)
   ============================================================ */
.tx-section {
  background: var(--forest);
  padding: 100px 0;
}
.tx-section h2 { color: var(--white); margin-bottom: 48px; }
.tx-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,.12);
}
.tx-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: background .2s;
}
.tx-item:hover { background: rgba(255,255,255,.03); }
.tx-cat {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.tx-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 6px;
}
.tx-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,.68);
  max-width: 65ch;
  line-height: 1.65;
}
.tx-arrow {
  opacity: 0.3;
  transition: opacity .2s;
}
.tx-item:hover .tx-arrow { opacity: 0.7; }
.tx-arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.5;
  margin-top: 4px;
}

/* ============================================================
   OFFICE PANORAMA (full-width image strip above contact)
   ============================================================ */
.office-panorama {
  width: 100%;
  height: 420px;
  overflow: hidden;
  line-height: 0;
}
.office-panorama img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* ============================================================
   CONTACT SECTION (dark bg)
   ============================================================ */
.contact-split {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--forest);
}
.contact-info {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.contact-info h2 { color: var(--white); }
.contact-channels-v3 {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.12);
  width: 100%;
}
.cc-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: color .2s, padding-inline-start .25s var(--ease-out);
  position: relative;
}
.cc-item:hover { color: rgba(255,255,255,.9); padding-inline-start: 10px; }
.cc-item::before {
  content: '→';
  position: absolute;
  inset-inline-start: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity .2s, inset-inline-start .25s var(--ease-out);
}
.cc-item:hover::before { opacity: .6; inset-inline-start: -4px; }
.cc-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.cc-value {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: rgba(255,255,255,.85);
}
.contact-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.contact-map {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.contact-map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.2) contrast(0.9);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--forest);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-logo {
  height: 52px;
  width: auto;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
}
.footer-brand-name {
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}
.footer-brand-name span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: .6;
  margin-top: 3px;
}
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  max-width: 36ch;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a,
.footer-col li {
  font-size: 0.875rem;
  color: rgba(255,255,255,.72);
  transition: color .2s;
  position: relative;
}
.footer-col li a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  right: 50%;
  height: 1px;
  background: rgba(255,255,255,.5);
  transition: left .25s var(--ease-out), right .25s var(--ease-out);
}
.footer-col li a:hover { color: rgba(255,255,255,.9); }
.footer-col li a:hover::after { left: 0; right: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  font-size: 0.78rem;
  color: rgba(255,255,255,.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .6; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,.5); }
.wa-float:active { transform: scale(0.97); }
.wa-float svg { width: 26px; height: 26px; fill: white; }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  transition: opacity .58s var(--ease-out), transform .58s var(--ease-out);
}
.js-ready .reveal {
  opacity: 0;
  transform: translateY(40px);
}
.js-ready .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.js-ready .reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}
.js-ready .reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.js-ready .reveal-right {
  opacity: 0;
  transform: translateX(40px);
}
.js-ready .reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
/* Stagger children */
.stagger > * {
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.js-ready .stagger > * {
  opacity: 0;
  transform: translateY(28px);
}
.stagger.revealed > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(7) { transition-delay: 480ms; opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(8) { transition-delay: 560ms; opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   INTERNAL PAGE HERO (non-home pages)
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,25,18,.8) 0%, rgba(10,25,18,.25) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px 72px;
}
.page-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-bottom: 16px;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.9);
  max-width: 55ch;
}

/* ============================================================
   SECTION PADDING
   ============================================================ */
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 60px 0; }

/* ============================================================
   CTA BLOCK
   ============================================================ */
.cta-block {
  text-align: center;
  padding: 80px 40px;
  background: var(--sage);
}
.cta-block > div {
  background: var(--forest);
  border: 1px solid rgba(214,222,201,.15);
  border-radius: 6px;
  padding: 64px 56px;
  max-width: 900px !important;
  margin: 0 auto !important;
  box-sizing: border-box;
}
.cta-block h2 { color: #faf8f8; margin-bottom: 20px; }
.cta-block p { color: #d6dec9; margin: 0 auto 36px; max-width: 52ch; }
.cta-block .btn-pill { margin: 0 auto; }

/* ============================================================
   ROTATING MOTTO WORD (hero)
   ============================================================ */
.motto-word {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3.4rem, 8.5vw, 6.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: opacity .6s ease, transform .6s ease;
  margin-bottom: 24px;
}
.motto-word.fade { opacity: 0; transform: translateY(14px); }

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  background: var(--forest-dark);
  border-top: 1px solid rgba(207,216,193,.1);
  border-bottom: 1px solid rgba(207,216,193,.1);
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 52px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 400;
  color: var(--sage);
  line-height: 1;
}
.stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.75);
  margin-top: 10px;
}

/* ============================================================
   PRACTICE AREAS CAROUSEL
   ============================================================ */
.pa-carousel-wrap {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
}
.pa-carousel {
  display: flex;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.pa-carousel::-webkit-scrollbar { display: none; }
.pa-slide {
  min-width: 100%;
  scroll-snap-align: start;
  padding: 0 80px;
  box-sizing: border-box;
}
.pa-card {
  background: var(--forest);
  border: 1px solid rgba(207,216,193,.12);
  border-radius: 4px;
  padding: 64px 52px;
  max-width: 840px;
  margin: 0 auto;
}
.pa-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}
.pa-card p {
  color: rgba(207,216,193,.7);
  font-size: 0.975rem;
  line-height: 1.75;
  margin: 0;
}
.pa-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--forest);
  border: 1px solid rgba(207,216,193,.25);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, opacity .2s;
  z-index: 5;
}
.pa-carousel-btn:hover { background: var(--forest-mid); }
.pa-carousel-btn:disabled { opacity: .2; cursor: default; }
.pa-carousel-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
#paPrev { left: max(12px, calc(50% - 520px)); }
#paNext { right: max(12px, calc(50% - 520px)); }
[dir="rtl"] #paPrev { left: auto; right: max(12px, calc(50% - 520px)); }
[dir="rtl"] #paNext { right: auto; left: max(12px, calc(50% - 520px)); }
.pa-carousel-controls {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}
.pa-section-link { margin-top: 48px; }
.pa-list-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(207,216,193,.12);
  align-items: start;
}
.pa-list-row h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.25;
  margin: 0;
  transition: transform .25s var(--ease-out);
}
.pa-list-row:hover h3 { transform: translateX(8px); }
.how-row h3 { transition: transform .25s var(--ease-out); }
.how-row:hover h3 { transform: translateX(8px); }
.pa-list-row p {
  font-size: 0.9rem;
  color: rgba(207,216,193,.7);
  line-height: 1.75;
  margin: 0;
  max-width: none;
}

/* ============================================================
   WHAT SETS US APART (dark split section)
   ============================================================ */
.sets-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}
.sets-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(207,216,193,.12);
  color: rgba(255,255,255,.65);
  font-size: 0.94rem;
  line-height: 1.65;
}
.sets-list li:last-child { border-bottom: none; }
.sets-list strong { color: var(--white); }

/* About page — 2×2 feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--forest-card);
  border-radius: 12px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -16px;
  right: -16px;
  background: linear-gradient(135deg, #1a3560, #0d1a14);
  height: 32px;
  width: 32px;
  border-radius: 50%;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.feature-card:hover::before {
  transform: scale(30);
}
.feature-card > * {
  position: relative;
  z-index: 1;
}
.go-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 2em;
  height: 2em;
  overflow: hidden;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #1a3560, #0d1a14);
  border-radius: 0 12px 0 32px;
  z-index: 2;
  transition: opacity 0.3s ease;
}
.feature-card:hover .go-corner {
  opacity: 0;
}
.go-arrow {
  margin-top: -4px;
  margin-right: -4px;
  color: rgba(255,255,255,.8);
  font-family: courier, sans;
  font-size: 1rem;
}
.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}
.feature-card p {
  font-size: .95rem;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .split, .quote-section, .contact-split {
    grid-template-columns: 1fr;
  }
  .split-visual, .quote-photo { min-height: 320px; }
  .split-body, .quote-body, .contact-info { padding: 60px 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .tx-item { grid-template-columns: 1fr; }
  .tx-arrow { display: none; }
}

/* Mid-size screens (tablets, small laptops): the full link row runs out
   of room below ~1320px, so switch to the overlay menu early. Large
   screens (≥1320px) and phones (≤768px) are unaffected. */
@media (max-width: 1319px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ============================================================
   ACCESSIBILITY (ת"י 5568 / WCAG AA)
   ============================================================ */
/* Skip link — hidden until focused via keyboard */
.skip-link {
  position: fixed;
  top: -60px;
  inset-inline-start: 16px;
  z-index: 300;
  background: var(--forest);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 0.9rem;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 14px; }

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Accessibility menu widget (self-hosted, no third parties) --- */
.a11y-btn {
  position: fixed;
  bottom: 96px;
  inset-inline-end: 32px;
  z-index: 95;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: transform .2s var(--ease-out);
}
.a11y-btn:hover { transform: scale(1.08); }
.a11y-btn svg { width: 28px; height: 28px; fill: currentColor; }
.a11y-panel {
  position: fixed;
  bottom: 160px;
  inset-inline-end: 32px;
  z-index: 96;
  width: min(300px, calc(100vw - 40px));
  background: #ffffff;
  color: #1a2820;
  border: 1px solid #b8c5a8;
  border-radius: 14px;
  box-shadow: 0 14px 44px rgba(0,0,0,.35);
  padding: 20px;
  display: none;
}
.a11y-panel.open { display: block; }
.a11y-panel h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #1a2820;
  line-height: 1.3;
  margin-bottom: 14px;
}
.a11y-opt {
  display: block;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 7px;
  border: 1.5px solid #7e8f70;
  border-radius: 8px;
  background: #fff;
  color: #1a2820;
  font-size: .9rem;
  text-align: start;
  transition: background .15s, color .15s;
}
.a11y-opt:hover { background: #eef2e6; }
.a11y-opt[aria-pressed="true"] {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.a11y-reset {
  display: block;
  width: 100%;
  padding: 9px 14px;
  margin-top: 10px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background: #eef2e6;
  color: #1a2820;
  font-size: .85rem;
  text-align: center;
}
.a11y-reset:hover { background: #dfe7d2; }
.a11y-panel .a11y-statement-link {
  display: block;
  margin-top: 12px;
  font-size: .82rem;
  color: #1e3932;
  text-decoration: underline;
  text-align: center;
}
@media (max-width: 768px) {
  .a11y-btn { bottom: 88px; inset-inline-end: 20px; width: 48px; height: 48px; }
  .a11y-panel { bottom: 146px; inset-inline-end: 20px; }
}

/* Accessibility effect classes (applied to <html> by the widget) */
html.a11y-fs-1 { font-size: 115%; }
html.a11y-fs-1 body { font-size: 18px; }
html.a11y-fs-2 { font-size: 130%; }
html.a11y-fs-2 body { font-size: 20px; }

html.a11y-contrast {
  --sage: #ffffff;
  --sage-deep: #4d5c44;
  --forest: #081711;
  --forest-mid: #081711;
  --forest-card: #05100b;
  --forest-dark: #000000;
  --ink: #000000;
  --ink-muted: #141414;
  --ink-faint: #2b2b2b;
}
html.a11y-contrast body { background: #ffffff; }

html.a11y-links a { text-decoration: underline !important; text-underline-offset: 2px; }

html.a11y-font body,
html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font h4,
html.a11y-font p, html.a11y-font a, html.a11y-font li, html.a11y-font span,
html.a11y-font button, html.a11y-font div {
  font-family: Arial, 'Segoe UI', sans-serif !important;
  letter-spacing: normal !important;
}

html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  transition: none !important;
  animation: none !important;
}
html.a11y-motion .reveal, html.a11y-motion .reveal-left,
html.a11y-motion .reveal-right, html.a11y-motion .stagger > * {
  opacity: 1 !important;
  transform: none !important;
}

/* Background-video pause/play toggle */
.video-toggle {
  position: absolute;
  bottom: 40px;
  inset-inline-end: 104px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.75);
  color: var(--white);
  background: rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.video-toggle:hover { background: rgba(0,0,0,.55); }
.video-toggle svg { width: 15px; height: 15px; fill: currentColor; }
@media (max-width: 768px) {
  .video-toggle { bottom: 24px; inset-inline-end: 88px; width: 40px; height: 40px; }
}

@media (max-width: 768px) {
  .site-nav { padding: 18px 24px; }
  .site-nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-brand { font-size: 1.2rem; }
  .nav-logo { height: 52px; }
  .hero-actions { display: none; }
  .hero-content { padding: 0 24px 64px; }
  .container { padding: 0 24px; }
  .split-body, .quote-body, .contact-info { padding: 48px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .services-section { padding: 64px 0; }
  .section-pad { padding: 64px 0; }
  .geo-wrap { display: none; }
  .wa-float { bottom: max(20px, env(safe-area-inset-bottom)); right: 20px; }
}
