/* ==========================================================================
   Yamin Law Firm — Design tokens (rural / agricultural: forest green)
   ========================================================================== */
:root {
  --forest-900: #142B1C;
  --forest-800: #1E3F27;
  --forest-700: #2C5A36;
  --accent-600: #256B3A;
  --accent-500: #2D9449;
  --accent-400: #5CB86E;
  --accent-100: #E6F4E7;
  --bg: #F8FAF6;
  --bg-alt: #EFF5EC;
  --white: #FFFFFF;
  --text: #16201A;
  --text-muted: #55635A;
  --border: #DCE7DC;

  --font-head: 'Rubik', 'Arial Hebrew', sans-serif;
  --font-body: 'Assistant', 'Heebo', sans-serif;

  --container: 1200px;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(20, 43, 28, 0.07);
  --shadow-md: 0 10px 30px rgba(20, 43, 28, 0.12);
  --shadow-lg: 0 20px 50px rgba(20, 43, 28, 0.20);

  --ease: cubic-bezier(.22,1,.36,1);
  --dur-fast: 200ms;
  --dur: 450ms;
  --dur-slow: 900ms;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--forest-900); font-weight: 800; letter-spacing: -.01em; }
h3, h4 { font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-muted); }
button { font-family: inherit; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; right: 12px; top: -60px;
  background: var(--forest-900); color: #fff; padding: 10px 18px;
  border-radius: 8px; z-index: 999; transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 3px;
}

/* ==========================================================================
   Logo
   ========================================================================== */
.brand-logo { height: 92px; width: auto; }
.footer-brand .brand-logo { height: 96px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; border: 2px solid transparent;
  cursor: pointer; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  min-height: 48px; white-space: nowrap;
}
.btn-primary { background: var(--accent-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-600); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--forest-900); color: var(--forest-900); }
.btn-ghost:hover { background: var(--forest-900); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .9rem; min-height: 40px; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; width: 100vw; z-index: 100;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 112px; gap: 24px;
  transition: height var(--dur) var(--ease);
}
.site-header.is-scrolled .header-inner { height: 84px; }
.site-header.is-scrolled .brand-logo { height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { transition: height var(--dur) var(--ease); }

.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: inline-block; padding: 10px 16px; border-radius: 6px;
  font-weight: 600; font-size: .98rem; color: var(--forest-800);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  position: relative;
}
.main-nav ul > li > a::after {
  content: ''; position: absolute; right: 16px; left: 16px; bottom: 4px; height: 3px;
  border-radius: 2px; background: var(--accent-500);
  transform: scaleX(0); transform-origin: right center;
  transition: transform var(--dur-fast) var(--ease);
}
.main-nav ul > li > a:hover::after { transform: scaleX(1); }
.main-nav ul > li > a.active { background: var(--accent-600); color: #fff; }
.main-nav ul > li > a.active::after { display: none; }

/* --- Practice-areas hover dropdown --- */
.has-dropdown { position: relative; }
.has-dropdown > a .nav-caret {
  display: inline-block; margin-inline-start: 6px; vertical-align: middle;
  transition: transform var(--dur-fast) var(--ease);
}
.nav-dropdown {
  position: absolute; top: 100%; right: 50%; transform: translateX(50%) translateY(8px);
  min-width: 300px; padding: 10px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility 0s var(--dur-fast);
  z-index: 120;
}
.has-dropdown::before {
  /* invisible hover bridge between the link and the panel */
  content: ''; position: absolute; right: 0; left: 0; top: 100%; height: 14px;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateX(50%) translateY(0);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.has-dropdown:hover > a .nav-caret,
.has-dropdown:focus-within > a .nav-caret { transform: rotate(180deg); }
.nav-dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px; font-size: .95rem; font-weight: 600;
  color: var(--forest-800); white-space: nowrap;
}
.nav-dropdown a::after { display: none !important; }
.nav-dropdown a:hover { background: var(--accent-100); color: var(--forest-900); }
.nav-dd-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-100); color: var(--accent-600);
}
.nav-dd-icon svg { width: 20px; height: 20px; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.phone-pill {
  display: flex; align-items: center; gap: 8px; font-weight: 600;
  color: var(--forest-800); font-size: .92rem;
}
.phone-pill svg { color: var(--accent-500); }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--white); cursor: pointer; padding: 0; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 20px; height: 2px; margin-inline: auto;
  background: var(--forest-900); border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 176px 0 104px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to bottom, rgba(248,250,246,.88) 0%, rgba(248,250,246,.72) 45%, var(--bg) 96%),
    var(--hero-img, url('../assets/images/farm/fields-green.jpg'));
  background-position: center 30%; background-size: cover; background-repeat: no-repeat;
}
.hero-watermark {
  position: absolute; inset: 24px 0 0 0; z-index: -1;
  width: 100%; height: calc(100% - 24px);
  object-fit: contain; object-position: center;
  opacity: .09;
  pointer-events: none; user-select: none;
}
.hero-inner { max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-600); font-weight: 700; font-size: .88rem;
  letter-spacing: .06em; margin-bottom: 14px; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -.02em; margin-bottom: .4em; }
.hero h1 span { color: var(--accent-500); }
.hero-lead { font-size: 1.1rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

.hero-frame { position: relative; will-change: transform; }
.placeholder-block {
  background-color: var(--forest-800);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}
.hero-badge {
  position: absolute; bottom: -24px; right: -16px; max-width: 220px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 1px solid var(--border);
}
.hero-badge strong { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--forest-900); }
.hero-badge span { font-size: .78rem; color: var(--text-muted); font-weight: 600; margin-top: 4px; }

/* ==========================================================================
   Logo strip
   ========================================================================== */
.logo-strip { padding: 68px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); }
.logo-strip-title { text-align: center; font-size: .85rem; font-weight: 700; color: var(--text-muted); letter-spacing: .03em; margin-bottom: 36px; }

.logo-marquee { overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.logo-marquee-track {
  display: flex; align-items: center; gap: 110px; width: max-content;
  animation: logoMarquee 30s linear infinite;
}
.logo-marquee-track.is-paused { animation-play-state: paused; }
.logo-marquee-item { flex: 0 0 auto; }
.logo-marquee-item img {
  height: 160px; width: auto; max-width: 380px; object-fit: contain;
}
@keyframes logoMarquee {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
}
html.a11y-pause-animations .logo-marquee-track { animation-play-state: paused; }

/* ==========================================================================
   Section shared
   ========================================================================== */
section { padding: 104px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-sub { font-size: 1.05rem; }

/* ==========================================================================
   About
   ========================================================================== */
.about { background: var(--white); }
.about-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.about-points { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.about-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--forest-800); }
.about-points svg { flex-shrink: 0; color: var(--accent-600); background: var(--accent-100); border-radius: 50%; padding: 3px; }

/* ==========================================================================
   Stats (now a plain white section, placed after Services)
   ========================================================================== */
.stats { background: var(--white); padding: 72px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-card { display: flex; flex-direction: column; align-items: center; }
.stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; margin-bottom: 16px;
  background: var(--accent-100); color: var(--accent-600);
}
.stat-icon svg { width: 26px; height: 26px; }
.stat-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--forest-900); margin: 0 0 4px; }
.stat-sub { color: var(--text-muted); font-size: .88rem; margin: 0; max-width: 22ch; margin-inline: auto; }

/* ==========================================================================
   Services (now on the dark green background, placed before Stats)
   ========================================================================== */
.services { background: var(--forest-900); padding: 104px 0; }
.services .eyebrow { color: var(--accent-400); }
.services .section-head h2 { color: #fff; }
.services .section-sub { color: rgba(255,255,255,.7); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; max-width: 980px; margin-inline: auto; }
.service-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 8px; transition: transform var(--dur) var(--ease);
}
.service-item:hover { transform: translateY(-6px); }
.service-item-icon {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.92);
  transition: color var(--dur-fast) var(--ease);
}
.service-item-icon svg { width: 104px; height: 104px; }
.service-item:hover .service-item-icon { color: var(--accent-400); }
.service-item-title {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #fff;
  margin-top: 18px; padding-top: 16px; position: relative;
}
.service-item-title::before {
  content: ''; position: absolute; top: 0; right: 50%; transform: translateX(50%);
  width: 88px; height: 1.5px; background: rgba(255,255,255,.35); opacity: .8;
  transition: background var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease), width var(--dur-fast) var(--ease);
}
.service-item:hover .service-item-title::before { background: var(--accent-400); opacity: 1; width: 110px; }

/* ==========================================================================
   Team / Partners
   ========================================================================== */
.team { background: var(--white); }
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1080px; margin-inline: auto; }
.partner-card { text-align: center; }

.partner-photo {
  position: relative; aspect-ratio: 1/1; border-radius: 50%;
  overflow: hidden; background: var(--forest-800); box-shadow: var(--shadow-md);
  cursor: pointer; outline-offset: 4px;
  max-width: 300px; margin-inline: auto;
  border: 6px solid var(--white); outline: 1px solid var(--border);
}
.photo-layer {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-color: var(--forest-800);
}
.photo-layer--bw { filter: grayscale(1) contrast(1.02); opacity: 1; }
.photo-layer--color {
  opacity: 0; transition: opacity var(--dur-slow) var(--ease);
}
.partner-photo:hover .photo-layer--color,
.partner-photo:focus-visible .photo-layer--color,
.partner-photo.is-revealed .photo-layer--color { opacity: 1; }
.partner-info { margin-top: 22px; }
.partner-info h3 { font-size: 1.3rem; margin-bottom: 4px; }
.team-role { color: var(--accent-600); font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.team-desc { font-size: .95rem; max-width: 34ch; margin-inline: auto; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-slider { max-width: 720px; margin: 0 auto; text-align: center; position: relative; }
.testimonial-track { position: relative; min-height: 200px; }
.testimonial-slide {
  margin: 0; position: absolute; inset: 0;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s var(--dur);
}
.testimonial-slide.is-active { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.testimonial-slide p { font-family: var(--font-head); font-weight: 500; font-size: 1.35rem; color: var(--forest-900); font-style: italic; line-height: 1.6; }
.testimonial-slide footer { margin-top: 20px; display: flex; flex-direction: column; gap: 2px; }
.testimonial-slide cite { font-style: normal; font-weight: 700; color: var(--forest-900); }
.testimonial-slide footer span { font-size: .85rem; color: var(--text-muted); }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.testimonial-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--border);
  cursor: pointer; padding: 0; transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.testimonial-dots button.is-active { background: var(--accent-500); transform: scale(1.2); }

/* ==========================================================================
   In the media
   ========================================================================== */
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 900px; margin-inline: auto; }
.media-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--forest-800); }
.media-frame {
  aspect-ratio: 9/16; width: 100%;
  background: var(--forest-800); color: rgba(255,255,255,.45);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.media-frame span { font-size: .85rem; font-weight: 600; }
.media-card video { width: 100%; height: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; background: #000; }
.media-card video:fullscreen,
.media-card video:-webkit-full-screen {
  width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; background: #000;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--forest-900); color: #fff; }
.contact .eyebrow { color: var(--accent-400); }
.contact h2 { color: #fff; }
.contact .section-sub { color: rgba(255,255,255,.7); }
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; }
.contact-inner > div { min-width: 0; }
.contact-details { display: flex; flex-direction: column; gap: 16px; margin: 28px 0; }
.contact-details li { display: flex; align-items: center; gap: 12px; font-weight: 600; overflow-wrap: break-word; min-width: 0; }
.contact-details svg { color: var(--accent-400); flex-shrink: 0; }
.map-embed {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9;
  box-shadow: var(--shadow-md); border: 1px solid rgba(255,255,255,.15);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-form { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 700; font-size: .9rem; color: var(--forest-900); }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit; font-size: 1rem; padding: 13px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  min-height: 48px;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent-500); box-shadow: 0 0 0 4px rgba(45,148,73,.16);
}
.form-field.has-error input, .form-field.has-error textarea { border-color: #B3261E; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 14px; font-weight: 600; font-size: .92rem; text-align: center; min-height: 1.4em; }
.form-note.success { color: #2E7D4F; }
.form-note.error { color: #B3261E; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--forest-900); color: rgba(255,255,255,.75); border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding: 64px 0 40px; }
.footer-inner > div { min-width: 0; }
.footer-brand p { color: rgba(255,255,255,.6); max-width: 34ch; margin-top: 14px; }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease);
}
.social-row a:hover { background: var(--accent-500); }
.footer-links h4, .footer-contact h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin-bottom: 18px; }
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { transition: color var(--dur-fast) var(--ease); }
.footer-links a:hover { color: var(--accent-400); }
.footer-contact p { margin: 0 0 10px; color: rgba(255,255,255,.7); overflow-wrap: break-word; }
.footer-contact a:hover { color: var(--accent-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0 calc(22px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: .85rem; }

.back-to-top {
  position: fixed; bottom: 28px; left: 28px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--forest-900); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility 0s var(--dur-fast);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-500); }

/* ==========================================================================
   Floating contact buttons (WhatsApp + phone)
   ========================================================================== */
.float-contact {
  position: fixed; bottom: 152px; left: 28px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.float-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.float-whatsapp { background: var(--accent-600); }
.float-whatsapp:hover { background: var(--accent-500); }
.float-phone { background: var(--forest-800); }
.float-phone:hover { background: var(--forest-700); }
.float-instagram { background: var(--forest-800); }
.float-instagram:hover { background: var(--forest-700); }

/* ==========================================================================
   Accessibility widget
   ========================================================================== */
.a11y-toggle {
  position: fixed; bottom: 90px; left: 28px; z-index: 200;
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: var(--accent-500); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.a11y-toggle:hover { background: var(--accent-600); transform: translateY(-2px); }

.a11y-panel {
  position: fixed; bottom: 150px; left: 28px; z-index: 200;
  width: min(320px, calc(100vw - 40px)); max-height: min(560px, calc(100vh - 180px)); overflow-y: auto;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); padding: 18px;
}
.a11y-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.a11y-panel-head h2 { font-size: 1.05rem; margin: 0; }
.a11y-close {
  width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--bg-alt);
  color: var(--forest-900); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease);
}
.a11y-close:hover { background: var(--accent-100); }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--forest-900); font-size: .78rem; font-weight: 600;
  cursor: pointer; text-align: center; min-height: 68px; justify-content: center;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.a11y-btn-icon { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; }
.a11y-btn:hover { border-color: var(--accent-500); }
.a11y-btn.is-active { background: var(--forest-900); border-color: var(--forest-900); color: #fff; }
.a11y-reset {
  width: 100%; margin-top: 12px; padding: 10px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--bg); color: var(--forest-900);
  font-weight: 700; font-size: .85rem; cursor: pointer;
}
.a11y-reset:hover { border-color: var(--forest-900); }
.a11y-statement-link {
  display: block; width: 100%; margin-top: 8px; padding: 8px; background: none; border: none;
  color: var(--accent-600); font-weight: 700; font-size: .82rem; cursor: pointer; text-decoration: underline;
}

.a11y-statement {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 300;
  background: rgba(18,17,16,.6); display: flex; align-items: center; justify-content: center; padding: 24px;
}
.a11y-statement[hidden] { display: none; }
.a11y-statement-inner {
  position: relative; background: #fff; border-radius: var(--radius); max-width: 620px; width: 100%;
  max-height: 80vh; overflow-y: auto; padding: 36px; box-shadow: var(--shadow-lg);
}
.a11y-statement-inner .a11y-close { position: absolute; top: 16px; left: 16px; }
.a11y-statement-inner h2 { margin-bottom: 16px; }
.a11y-statement-inner p { font-size: .95rem; }
.a11y-statement-date { color: var(--text-muted); font-size: .82rem; font-style: italic; }

/* Accessibility state effects, toggled on <html>.
   Note: never apply `filter`/`backdrop-filter`/`transform` to <html> or <body> here —
   it creates a new containing block for every position:fixed element on the page
   (header, back-to-top, the a11y widget itself), breaking their positioning. */
html.a11y-contrast body { background: #000; color: #fff; }
html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3, html.a11y-contrast h4 { color: #fff; }
html.a11y-contrast p, html.a11y-contrast .section-sub, html.a11y-contrast .stat-sub { color: #eee; }
html.a11y-contrast a { color: #fff; }
html.a11y-contrast .hero-bg,
html.a11y-contrast .about,
html.a11y-contrast .logo-strip,
html.a11y-contrast .team,
html.a11y-contrast .process { background: #000 !important; }
html.a11y-contrast .eyebrow { color: var(--accent-400); }
html.a11y-contrast .site-header { background: #000; border-color: #fff; }
html.a11y-contrast .site-header.is-scrolled { background: #000; }
html.a11y-contrast .main-nav a { color: #fff; }
html.a11y-contrast .main-nav a:hover, html.a11y-contrast .main-nav a.active { background: #fff; color: #000; }
html.a11y-contrast .btn-primary { background: #fff; color: #000; }
html.a11y-contrast .btn-ghost { border-color: #fff; color: #fff; }
html.a11y-contrast .phone-pill { color: #fff; }
html.a11y-contrast .service-item-title,
html.a11y-contrast .service-item-icon { color: #fff; background: transparent; }
html.a11y-contrast .service-card,
html.a11y-contrast .contact-form,
html.a11y-contrast .partner-photo,
html.a11y-contrast .hero-badge,
html.a11y-contrast .timeline-card,
html.a11y-contrast .stat-card,
html.a11y-contrast .a11y-panel,
html.a11y-contrast .site-footer { background: #111; color: #fff; border-color: #fff; }
html.a11y-contrast .a11y-btn { background: #000; color: #fff; border-color: #fff; }
html.a11y-contrast .a11y-btn.is-active { background: #fff; color: #000; }
html.a11y-grayscale .site-header,
html.a11y-grayscale main,
html.a11y-grayscale .site-footer { filter: grayscale(1); }
html.a11y-underline-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-readable-font body { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: .01em; }
html.a11y-readable-font h1, html.a11y-readable-font h2, html.a11y-readable-font h3, html.a11y-readable-font h4 { font-family: Arial, Helvetica, sans-serif !important; }
html.a11y-big-cursor, html.a11y-big-cursor * { cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24"><path d="M4 2l14 8-6 2-2 6z" fill="black" stroke="white" stroke-width="1"/></svg>') 4 4, auto !important; }
html.a11y-pause-animations *,
html.a11y-pause-animations *::before,
html.a11y-pause-animations *::after {
  animation-play-state: paused !important; transition: none !important; scroll-behavior: auto !important;
}

/* ==========================================================================
   Practice-area process page (timeline)
   ========================================================================== */
.process-hero { position: relative; padding: 176px 0 60px; overflow: hidden; }
.process-hero .section-head { margin-bottom: 0; }
.process { padding: 56px 0 96px; background: var(--white); }

/* Per practice-area halftone hero background (subtle, topic-matched, non-distracting) */
.ph-nachalot { --hero-img: url('../assets/images/practice/halftone-nachalot.png'); }
.ph-rami { --hero-img: url('../assets/images/practice/halftone-rami.png'); }
.ph-wills { --hero-img: url('../assets/images/practice/halftone-wills.png'); }
.ph-developer { --hero-img: url('../assets/images/practice/halftone-developer.png'); }
.ph-sale { --hero-img: url('../assets/images/practice/halftone-sale.png'); }
.ph-complex { --hero-img: url('../assets/images/practice/halftone-complex.png'); }

.timeline-wrap { position: relative; max-width: 760px; margin-inline: auto; }
.timeline-line {
  position: absolute; top: 6px; bottom: 6px; right: 25px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--accent-400) 0 8px, transparent 8px 18px);
}
.timeline-progress {
  position: absolute; top: 6px; right: 25px; width: 2px; height: 0;
  background: var(--forest-900); transition: height 120ms linear;
}
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline-step { position: relative; padding-right: 76px; padding-bottom: 44px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; right: 4px; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--accent-400); color: var(--accent-500);
  display: flex; align-items: center; justify-content: center; z-index: 2;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.timeline-dot svg { width: 20px; height: 20px; }
.timeline-step.is-passed .timeline-dot { background: var(--forest-900); border-color: var(--forest-900); color: #fff; transform: scale(1.06); }
.timeline-card {
  background: var(--bg-alt); border-radius: var(--radius); padding: 24px 28px;
  border: 1px solid var(--border); transition: border-color var(--dur) var(--ease);
}
.timeline-step.is-passed .timeline-card { border-color: var(--accent-400); }
.timeline-index { font-family: var(--font-head); font-weight: 800; color: var(--accent-500); font-size: .85rem; letter-spacing: .05em; }
.timeline-card h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.timeline-card p { margin: 0; font-size: .95rem; }

/* ==========================================================================
   Scroll reveal — minimal, luxury: fade + soft rise + hint of blur
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(32px); filter: blur(6px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease), filter var(--dur-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-visual, .about-visual { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .header-inner { height: 84px; }
  .site-header.is-scrolled .header-inner { height: 72px; }
  .brand-logo { height: 64px; }
  .site-header.is-scrolled .brand-logo { height: 56px; }
  .main-nav { position: fixed; top: 84px; left: 0; width: 100vw; height: calc(100vh - 84px); height: calc(100dvh - 84px); background: var(--white);
    padding: 20px 24px; transform: translateX(100%); transition: transform var(--dur) var(--ease);
    overflow-y: auto; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 16px 18px; font-size: 1.05rem; }
  .main-nav ul > li > a::after { display: none; }
  .main-nav.is-open { transform: translateX(0); }
  .hamburger { display: flex; }
  .phone-pill { display: none; }
  .header-actions .btn-sm { display: none; }
  /* dropdown becomes an always-open nested list inside the mobile nav */
  .has-dropdown::before { display: none; }
  .nav-dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; box-shadow: none; border: none; border-right: 2px solid var(--accent-100);
    border-radius: 0; padding: 0 12px 4px 0; margin-right: 14px;
  }
  .nav-dropdown a { white-space: normal; padding: 10px 12px; font-size: .98rem; }
  .nav-dd-icon { width: 32px; height: 32px; }
  .nav-dd-icon svg { width: 17px; height: 17px; }
  .has-dropdown > a .nav-caret { display: none; }
}

@media (max-width: 640px) {
  .container { padding-inline: 28px; }
  section { padding: 64px 0; }
  .hero { padding: 130px 0 72px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .service-item-icon svg { width: 76px; height: 76px; }
  .service-item-title { font-size: 1rem; }
  .service-item-title::before { width: 64px; }
  .partners-grid { grid-template-columns: 1fr; gap: 56px; max-width: 340px; }
  .media-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 380px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .hero-badge { position: static; margin-top: 16px; align-self: flex-start; }
  .back-to-top { left: 16px; bottom: 16px; }
  .a11y-toggle { left: 16px; bottom: 80px; width: 46px; height: 46px; }
  .a11y-panel { left: 16px; bottom: 134px; }
  .float-contact { left: 16px; bottom: 136px; gap: 8px; }
  .float-btn { width: 46px; height: 46px; }
  .float-btn svg { width: 22px; height: 22px; }
  .hero-watermark { inset: 12px 0 0 0; height: calc(100% - 12px); opacity: .08; }
  .logo-strip { padding: 44px 0; }
  .logo-marquee-track { gap: 56px; }
  .logo-marquee-item img { height: 100px; max-width: 260px; }
  .timeline-step { padding-right: 60px; padding-bottom: 34px; }
  .timeline-dot { width: 36px; height: 36px; }
  .timeline-dot svg { width: 17px; height: 17px; }
  .timeline-card { padding: 18px 20px; }
}
