/* ============================================================
   ALON SHEMIS — Luxury Real Estate
   Quiet Luxury · RTL-first · logical properties throughout
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --ivory: #F4F1EA;
  --bone: #E8E3D8;
  --charcoal: #1C1A17;
  --graphite: #3A3733;
  --bronze: #9A7B4F;
  --bronze-soft: #C2A878;
  --bronze-text: #7A5F38; /* AA-contrast bronze for small text on light bg (5.3:1) */
  --line: rgba(28, 26, 23, 0.12);
  --line-light: rgba(244, 241, 234, 0.18);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --he-sans: "Assistant", "Heebo", system-ui, sans-serif;
  --he-display: "Heebo", "Assistant", system-ui, sans-serif;

  --display: var(--serif);
  --body: var(--sans);

  --maxw: 1280px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(5rem, 11vw, 9.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Hebrew swaps the font stacks */
html[lang="he"] {
  --display: var(--he-display);
  --body: var(--he-sans);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-weight: 400;
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent; /* no grey flash on iOS tap */
}

a, button { touch-action: manipulation; } /* removes 300ms tap delay on iOS */

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--bronze); color: var(--ivory); }

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  /* respect iPhone landscape notch / rounded corners */
  padding-inline-start: max(var(--gutter), env(safe-area-inset-left));
  padding-inline-end: max(var(--gutter), env(safe-area-inset-right));
}
.narrow { max-width: 880px; }

.skip-link {
  position: fixed;
  inset-block-start: -100px;
  inset-inline-start: 1rem;
  z-index: 200;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  transition: inset-block-start 0.2s var(--ease);
}
.skip-link:focus { inset-block-start: 1rem; }

/* Screen-reader-only — present for AT, invisible on screen */
.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography primitives ---------- */
.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--bronze-text);
  margin-block-end: 1.4rem;
}
html[lang="he"] .eyebrow { letter-spacing: 0.18em; }
.eyebrow-light { color: var(--bronze-soft); }

.section-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
}
html[lang="he"] .section-title { font-weight: 300; line-height: 1.2; }

.section-head { margin-block-end: clamp(2.5rem, 5vw, 4rem); }

.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--graphite);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.05rem 2.2rem;
  border: 1px solid var(--bronze);
  position: relative;
  overflow: hidden;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
html[lang="he"] .btn { letter-spacing: 0.05em; }

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bronze);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }

.btn-solid {
  background: var(--bronze);
  color: var(--ivory);
  border-color: var(--bronze);
}
.btn-solid::before { background: var(--charcoal); }
.btn-solid:hover, .btn-solid:focus-visible { color: var(--ivory); border-color: var(--charcoal); }

.btn-outline { color: var(--charcoal); }
.btn-outline:hover, .btn-outline:focus-visible { color: var(--ivory); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding-block: 1.6rem;
  padding-block-start: max(1.6rem, env(safe-area-inset-top)); /* clear the notch */
}
.site-header.scrolled {
  background: rgba(244, 241, 234, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.9rem;
  padding-block-start: max(0.9rem, env(safe-area-inset-top));
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark { display: flex; align-items: center; gap: 0.7rem; }
.monogram {
  display: grid;
  place-items: center;
  inline-size: 2.4rem;
  block-size: 2.4rem;
  border: 1px solid var(--bronze);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--bronze);
  flex-shrink: 0;
}
.wordmark-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--charcoal);
}

/* hero is dark → header text light until scrolled */
.site-header:not(.scrolled) .wordmark-text,
.site-header:not(.scrolled) .main-nav a,
.site-header:not(.scrolled) .lang-btn,
.site-header:not(.scrolled) .header-cta { color: var(--ivory); }
.site-header:not(.scrolled) .header-cta { border-color: rgba(244,241,234,0.5); }
.site-header:not(.scrolled) .nav-toggle span { background: var(--ivory); }

.main-nav { display: flex; gap: 2.2rem; }
.main-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.3s var(--ease);
}
html[lang="he"] .main-nav a { letter-spacing: 0.05em; font-size: 0.92rem; }
.main-nav a::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: 0;
  block-size: 1px;
  background: var(--bronze);
  transition: inline-size 0.35s var(--ease);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { inline-size: 100%; }

.header-actions { display: flex; align-items: center; gap: 1.6rem; }

.lang-switch { display: flex; align-items: center; gap: 0.55rem; }
.lang-btn {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--graphite);
  padding: 0.2rem 0.1rem;
  position: relative;
  transition: color 0.3s var(--ease);
}
.lang-btn::after {
  content: "";
  position: absolute;
  inset-block-end: -2px;
  inset-inline-start: 0;
  inline-size: 0;
  block-size: 1px;
  background: var(--bronze);
  transition: inline-size 0.3s var(--ease);
}
.lang-btn.is-active { color: var(--bronze); }
.lang-btn.is-active::after { inline-size: 100%; }
.lang-btn:hover { color: var(--bronze-soft); }
.lang-sep { color: var(--line); font-size: 0.7rem; }

.header-cta { padding: 0.7rem 1.4rem; font-size: 0.74rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span {
  inline-size: 26px;
  block-size: 1.5px;
  background: var(--charcoal);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2rem var(--gutter) 2.5rem;
  background: var(--ivory);
  border-block-start: 1px solid var(--line);
}
.mobile-nav a {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  font-family: var(--display);
}
.mobile-nav.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-block-size: 100vh;       /* fallback for older iOS Safari */
  min-block-size: 100svh;      /* accounts for the dynamic address bar */
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ivory);
}
.hero-bg {
  position: absolute;
  inset: -3%;
  background-color: #3a342c; /* warm fallback if image absent */
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
  will-change: transform;
  animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translate3d(0,0,0); }
  to   { transform: scale(1.12) translate3d(1.5%, -1.5%, 0); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(28,26,23,0.55) 0%, rgba(28,26,23,0.25) 35%, rgba(28,26,23,0.65) 100%),
    radial-gradient(120% 90% at 50% 20%, rgba(28,26,23,0.1), rgba(28,26,23,0.7));
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding-block: 8rem;
}
.hero-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin-block: 0.5rem 1.8rem;
  max-width: 16ch;
}
html[lang="he"] .hero-title { font-weight: 300; line-height: 1.14; }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 300;
  max-width: 56ch;
  color: rgba(244, 241, 234, 0.9);
  margin-block-end: 2.6rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-solid { border-color: var(--bronze); }

.scroll-cue {
  position: absolute;
  inset-block-end: calc(2.2rem + env(safe-area-inset-bottom));
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.75);
}
html[dir="rtl"] .scroll-cue { transform: translateX(50%); }
.scroll-line {
  inline-size: 1px;
  block-size: 48px;
  background: linear-gradient(to bottom, var(--bronze-soft), transparent);
  animation: scrollpulse 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollpulse {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(20px); opacity: 0; }
}

/* ============================================================
   SIGNATURE STATEMENT
   ============================================================ */
.statement {
  padding-block: var(--section-y);
  text-align: center;
}
.pull-quote {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}
html[lang="he"] .pull-quote { font-style: normal; font-weight: 300; }
.flourish {
  display: block;
  inline-size: 56px;
  block-size: 1px;
  background: var(--bronze);
  margin: 2.4rem auto 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding-block: var(--section-y); background: var(--bone); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--graphite);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  outline: 1px solid rgba(154,123,79,0.0);
  outline-offset: -14px;
  transition: outline-color 0.5s var(--ease);
  pointer-events: none;
}
.about-portrait:hover .portrait-frame::after { outline-color: rgba(194,168,120,0.5); }
.portrait-frame img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center 22%;
  /* quiet-luxury tonality: warm, low-contrast, slightly muted */
  filter: grayscale(0.25) sepia(0.12) contrast(0.95) brightness(0.97) saturate(0.9);
  transform: scale(1.02);
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}
.about-portrait:hover .portrait-frame img {
  transform: scale(1.06);
  filter: grayscale(0.1) sepia(0.06) contrast(1) brightness(1) saturate(0.95);
}

.about-text .lede { margin-block-start: 1.6rem; }
.signature {
  display: inline-block;
  margin-block-start: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--bronze);
  letter-spacing: 0.02em;
}

/* ============================================================
   EXPERTISE
   ============================================================ */
.expertise { padding-block: var(--section-y); }
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--ivory);
  padding: clamp(2rem, 4vw, 3.2rem);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
  position: relative;
}
.card:hover { background: var(--bone); }
.card-num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--bronze-text);
  letter-spacing: 0.1em;
  display: block;
  margin-block-end: 1.4rem;
  opacity: 0.85;
}
.card-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  margin-block-end: 1rem;
}
html[lang="he"] .card-title { font-weight: 500; }
.card-desc { color: var(--graphite); font-size: 1rem; max-width: 46ch; }

/* ============================================================
   APPROACH
   ============================================================ */
.approach { padding-block: var(--section-y); background: var(--bone); }
.steps {
  display: grid;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: baseline;
  padding-block: clamp(1.8rem, 3.5vw, 2.8rem);
  border-block-start: 1px solid var(--line);
}
.step:last-child { border-block-end: 1px solid var(--line); }
.step-num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--bronze);
  line-height: 1;
  min-inline-size: 2.5ch;
}
.step-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-block-end: 0.6rem;
}
html[lang="he"] .step-title { font-weight: 500; }
.step-desc { color: var(--graphite); max-width: 60ch; }

/* ============================================================
   DARK GALLERY BAND
   ============================================================ */
.gallery {
  position: relative;
  padding-block: clamp(6rem, 14vw, 12rem);
  color: var(--ivory);
  overflow: hidden;
  text-align: center;
}
.gallery-bg {
  position: absolute;
  inset: 0;
  background: var(--charcoal);
  background-image: linear-gradient(rgba(28,26,23,0.82), rgba(28,26,23,0.88)), url("assets/interior-1.jpg");
  background-size: cover;
  background-position: center;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 50% 50%, transparent, rgba(28,26,23,0.55));
}
.gallery-content { position: relative; z-index: 2; }
.gallery-text {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}
html[lang="he"] .gallery-text { font-weight: 300; line-height: 1.4; }
.gallery-sub {
  margin-block-start: 1.8rem;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  letter-spacing: 0.04em;
  color: var(--bronze-soft);
  font-weight: 300;
}

/* stats inside the dark band */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-block: clamp(2rem, 4vw, 3rem) 0;
}
.stat { display: flex; flex-direction: column; gap: 0.5rem; }
.stat-num, .listing-price { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .listing-meta { text-align: start; }
.stat-num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--ivory);
}
.stat-star { color: var(--bronze-soft); font-size: 0.6em; vertical-align: 0.15em; margin-inline-start: 0.1em; }
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-soft);
}
html[lang="he"] .stat-label { letter-spacing: 0.04em; font-size: 0.9rem; text-transform: none; }
.stats-caption {
  margin-block-start: clamp(2.2rem, 5vw, 3.5rem);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 300;
  color: rgba(244, 241, 234, 0.82);
  max-width: 60ch;
  margin-inline: auto;
}
html[lang="he"] .stats-caption { font-style: normal; }

/* ============================================================
   PROJECTS / LISTINGS
   ============================================================ */
.projects { padding-block: var(--section-y); }
.projects-head { text-align: center; max-width: 720px; margin-inline: auto; }
.projects-head .eyebrow { display: block; }
.projects-head .lede { margin-inline: auto; margin-block-start: 1.2rem; }

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.2rem);
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
}
.listing {
  background: var(--ivory);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.listing:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(28, 26, 23, 0.14); }
.listing-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.listing-media img {
  inline-size: 100%; block-size: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.listing:hover .listing-media img { transform: scale(1.06); }
.listing-badge {
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  background: rgba(28, 26, 23, 0.82);
  color: var(--ivory);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
html[lang="he"] .listing-badge { letter-spacing: 0.04em; font-size: 0.78rem; }
.badge-exc { background: var(--bronze); color: var(--ivory); }
.badge-new { background: var(--charcoal); color: var(--bronze-soft); }

.listing-body { padding: clamp(1.3rem, 2vw, 1.7rem); display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.listing-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.2;
}
.listing-loc {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.92rem; color: var(--graphite);
}
.listing-loc .pin { color: var(--bronze-text); font-size: 0.9rem; }
.listing-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.8rem; flex-wrap: wrap;
  margin-block-start: 0.2rem;
  padding-block-start: 0.9rem;
  border-block-start: 1px solid var(--line);
}
.listing-price { font-family: var(--display); font-size: 1.3rem; color: var(--charcoal); }
.listing-specs { font-size: 0.86rem; color: var(--graphite); letter-spacing: 0.02em; }
.listing-cta {
  margin-block-start: 0.4rem;
  align-self: flex-start;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-text);
  padding-block-end: 3px;
  position: relative;
}
html[lang="he"] .listing-cta { letter-spacing: 0.04em; font-size: 0.85rem; }
.listing-cta::after {
  content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 0;
  inline-size: 0; block-size: 1px; background: var(--bronze); transition: inline-size 0.35s var(--ease);
}
.listing-cta:hover::after, .listing-cta:focus-visible::after { inline-size: 100%; }
.projects-note {
  margin-block-start: clamp(2rem, 4vw, 3rem);
  text-align: center;
  font-size: 0.95rem;
  color: var(--graphite);
  font-style: italic;
}
html[lang="he"] .projects-note { font-style: normal; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi { padding-block: var(--section-y); background: var(--bone); }
.testi-head { text-align: center; }
.testi-rating {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-block-start: 1.2rem;
  font-size: 0.95rem; color: var(--graphite);
}
.testi-stars { color: var(--bronze); letter-spacing: 0.08em; font-size: 1rem; }
.testi-stars .star-empty { color: var(--line); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.2vw, 1.8rem);
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
}
.testi-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex; flex-direction: column; gap: 1rem;
}
.testi-top { display: flex; align-items: center; gap: 0.9rem; }
.testi-avatar {
  inline-size: 46px; block-size: 46px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--bronze);
  color: var(--ivory);
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 1.25rem;
}
.testi-id { display: flex; flex-direction: column; gap: 0.1rem; margin-inline-end: auto; }
.testi-name { font-weight: 500; font-size: 1rem; color: var(--charcoal); }
.testi-role { font-size: 0.8rem; color: var(--graphite); }
.testi-top .testi-stars { font-size: 0.92rem; flex-shrink: 0; }
.testi-quote {
  font-family: var(--display);
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--graphite);
  font-style: italic;
}
html[lang="he"] .testi-quote { font-style: normal; font-family: var(--body); font-size: 1.05rem; line-height: 1.7; }
.testi-date { font-size: 0.78rem; color: var(--graphite); opacity: 0.7; margin-block-start: auto; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust { padding-block: clamp(2.5rem, 5vw, 4rem); }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  text-align: center;
}
.trust-item {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  position: relative;
  padding-inline-end: clamp(1rem, 4vw, 3rem);
}
html[lang="he"] .trust-item { letter-spacing: 0.06em; font-size: 0.9rem; }
.trust-item:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  inset-block: 0;
  inline-size: 1px;
  background: var(--line);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding-block: var(--section-y); background: var(--charcoal); color: var(--ivory); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.contact .eyebrow { color: var(--bronze-soft); }
.contact .section-title { color: var(--ivory); }
.contact .lede { color: rgba(244, 241, 234, 0.78); margin-block-start: 1.4rem; }

.contact-direct {
  margin-block-start: 2.6rem;
  display: grid;
  gap: 1rem;
}
.contact-direct a {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: rgba(244, 241, 234, 0.92);
  position: relative;
  display: inline-block;
  padding-block-end: 2px;
}
.contact-direct a::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: 0;
  block-size: 1px;
  background: var(--bronze-soft);
  transition: inline-size 0.35s var(--ease);
}
.contact-direct a:hover::after, .contact-direct a:focus-visible::after { inline-size: 100%; }

/* form */
.contact-form { display: grid; gap: 1.6rem; }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-soft);
}
html[lang="he"] .field label { letter-spacing: 0.06em; font-size: 0.85rem; }
.field input, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ivory);
  background: transparent;
  border: none;
  border-block-end: 1px solid rgba(244, 241, 234, 0.25);
  padding: 0.6rem 0.1rem;
  transition: border-color 0.35s var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-block-end-color: var(--bronze-soft);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(244,241,234,0.4); }
.contact-form .btn-solid { justify-self: start; margin-block-start: 0.5rem; }
.form-note {
  font-size: 0.9rem;
  color: var(--bronze-soft);
  min-block-size: 1.2em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { padding-block: clamp(2.5rem, 5vw, 3.5rem); background: var(--charcoal); color: var(--ivory); border-block-start: 1px solid var(--line-light); }
.site-footer { padding-block-end: calc(clamp(2.5rem, 5vw, 3.5rem) + env(safe-area-inset-bottom)); } /* clear home indicator */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-mono { border-color: var(--bronze-soft); color: var(--bronze-soft); }
.footer-text {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 234, 0.6);
}
.footer-lang .lang-btn { color: rgba(244, 241, 234, 0.6); }
.footer-lang .lang-btn.is-active { color: var(--bronze-soft); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
/* gentle stagger inside grids */
.cards .card:nth-child(2).in { transition-delay: 0.08s; }
.cards .card:nth-child(3).in { transition-delay: 0.16s; }
.cards .card:nth-child(4).in { transition-delay: 0.24s; }

/* ============================================================
   CUSTOM CURSOR (desktop, fine pointer only)
   ============================================================ */
.cursor-dot {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--bronze);
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease), opacity 0.25s var(--ease);
  opacity: 0;
  mix-blend-mode: difference;
}
.cursor-dot.hover {
  inline-size: 38px;
  block-size: 38px;
  background: rgba(194, 168, 120, 0.6);
}
@media (hover: hover) and (pointer: fine) {
  body.cursor-ready { cursor: none; }
  body.cursor-ready a, body.cursor-ready button { cursor: none; }
  .cursor-dot { opacity: 1; }
}

/* ============================================================
   TOUCH DEVICES — generous tap targets (iOS 44px guideline)
   ============================================================ */
@media (pointer: coarse) {
  .lang-btn {
    min-block-size: 44px;
    display: inline-flex;
    align-items: center;
    padding-inline: 0.55rem;
  }
  .main-nav a { padding-block: 0.7rem; }
  .mobile-nav a { min-block-size: 44px; display: flex; align-items: center; }
  .contact-direct a { padding-block: 0.5rem; }
  .nav-toggle { padding: 0.7rem; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 460px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .listing-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .listing-grid, .testi-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .header-actions { gap: 1rem; }
  .step { grid-template-columns: 1fr; gap: 0.5rem; }
  .step-num { font-size: 2.4rem; }
  .hero-content { padding-block: 7rem; }
  .wordmark-text { font-size: 0.98rem; letter-spacing: 0.12em; }
  .monogram { inline-size: 2.1rem; block-size: 2.1rem; }
  .header-actions { gap: 0.9rem; }
  .trust-item:not(:last-child)::after { display: none; }
  .btn { white-space: normal; text-align: center; }
  .hero-actions { width: 100%; }
  .hero .btn-solid { width: 100%; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { animation: none; }
  .cursor-dot { display: none; }
  body.cursor-ready { cursor: auto; }
}

/* ============================================================
   ACCESSIBILITY WIDGET
   ============================================================ */
.a11y {
  position: fixed;
  bottom: calc(1.3rem + env(safe-area-inset-bottom));
  left: calc(1.3rem + env(safe-area-inset-left)); /* always physical left (WhatsApp sits right) */
  z-index: 190;
}
.a11y-toggle {
  inline-size: 54px;
  block-size: 54px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--ivory);
  border: 1px solid var(--bronze);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(28, 26, 23, 0.28);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.a11y-toggle:hover, .a11y-toggle:focus-visible { background: var(--bronze); transform: translateY(-2px); }
.a11y-toggle svg { inline-size: 28px; block-size: 28px; fill: currentColor; }

/* WhatsApp floating button — always physical bottom-right */
.wa-float {
  position: fixed;
  bottom: calc(1.3rem + env(safe-area-inset-bottom));
  right: calc(1.3rem + env(safe-area-inset-right));
  z-index: 190;
  inline-size: 54px;
  block-size: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(28, 26, 23, 0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(28, 26, 23, 0.34); }
.wa-float svg { inline-size: 30px; block-size: 30px; fill: currentColor; }

/* Back-to-top — sits above the WhatsApp button, fades in on scroll */
.to-top {
  position: fixed;
  right: calc(1.3rem + env(safe-area-inset-right));
  bottom: calc(1.3rem + env(safe-area-inset-bottom) + 54px + 0.7rem);
  z-index: 190;
  inline-size: 54px;
  block-size: 54px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--ivory);
  border: 1px solid var(--bronze);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(28, 26, 23, 0.28);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.3s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover, .to-top:focus-visible { background: var(--bronze); transform: translateY(-2px); }
.to-top svg { inline-size: 22px; block-size: 22px; fill: currentColor; }

.a11y-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;                 /* opens upward from the left-anchored button */
  right: auto;
  inline-size: min(90vw, 320px);
  background: var(--ivory);
  color: var(--charcoal);
  border: 1px solid var(--line);
  box-shadow: 0 18px 55px rgba(28, 26, 23, 0.28);
  padding: 1.2rem;
  border-radius: 6px;
  font-family: var(--body);
}
.a11y-panel[hidden] { display: none; }

.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-block-end: 1rem; }
.a11y-head h2 { font-family: var(--display); font-weight: 400; font-size: 1.45rem; }
html[lang="he"] .a11y-head h2 { font-weight: 500; }
.a11y-close {
  inline-size: 38px; block-size: 38px;
  border: 1px solid var(--line); border-radius: 50%;
  font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center;
  color: var(--graphite);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.a11y-close:hover, .a11y-close:focus-visible { border-color: var(--bronze); color: var(--bronze-text); }

.a11y-fontrow {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  border: 1px solid var(--line); border-radius: 6px;
  padding: 0.5rem 0.9rem; margin-block-end: 0.8rem;
}
.a11y-fontlabel { font-size: 0.8rem; letter-spacing: 0.04em; color: var(--graphite); }
.a11y-fontrow button {
  inline-size: 42px; block-size: 42px;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 1rem; font-weight: 600; color: var(--charcoal);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.a11y-fontrow button:hover, .a11y-fontrow button:focus-visible { border-color: var(--bronze); background: var(--bone); }

.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.a11y-opt {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  text-align: center; line-height: 1.3;
  min-block-size: 72px;
  padding: 0.8rem 0.5rem;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--ivory); color: var(--charcoal);
  font-size: 0.78rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.a11y-opt .a11y-ico { font-size: 1.25rem; line-height: 1; color: var(--bronze-text); transition: color 0.25s var(--ease); }
.a11y-opt:hover, .a11y-opt:focus-visible { border-color: var(--bronze); }
.a11y-opt[aria-pressed="true"] { background: var(--bronze); color: var(--ivory); border-color: var(--bronze); }
.a11y-opt[aria-pressed="true"] .a11y-ico { color: var(--ivory); }

.a11y-foot { margin-block-start: 1rem; display: grid; gap: 0.6rem; }
.a11y-reset {
  padding: 0.75rem; border: 1px solid var(--bronze); border-radius: 6px;
  color: var(--bronze-text); font-size: 0.78rem; letter-spacing: 0.08em;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.a11y-reset:hover, .a11y-reset:focus-visible { background: var(--bronze); color: var(--ivory); }
.a11y-statement { font-size: 0.78rem; text-decoration: underline; text-underline-offset: 3px; color: var(--graphite); }
.a11y-statement:hover, .a11y-statement:focus-visible { color: var(--bronze-text); }

/* statement modal */
.a11y-modal {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 1.5rem;
  background: rgba(28, 26, 23, 0.62);
}
.a11y-modal[hidden] { display: none; }
.a11y-modal-box {
  background: var(--ivory); color: var(--charcoal);
  max-inline-size: 560px; inline-size: 100%;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 24px 70px rgba(28, 26, 23, 0.4);
  max-block-size: 85vh; overflow-y: auto;
}
.a11y-modal-body { color: var(--graphite); font-size: 1rem; line-height: 1.8; }

/* ---------- Feature modes ---------- */
/* font scaling handled via inline root font-size in JS */

/* High contrast */
html.a11y-contrast,
html.a11y-contrast body { background: #000 !important; }
html.a11y-contrast *:not(.a11y-toggle):not(.a11y-toggle *):not(.wa-float):not(.wa-float *) {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.a11y-contrast .hero-bg,
html.a11y-contrast .hero-overlay,
html.a11y-contrast .gallery-bg,
html.a11y-contrast .gallery-overlay { display: none !important; }
html.a11y-contrast a,
html.a11y-contrast .btn,
html.a11y-contrast .eyebrow,
html.a11y-contrast .card-num,
html.a11y-contrast .step-num,
html.a11y-contrast .a11y-ico,
html.a11y-contrast .signature { color: #ffea00 !important; }
html.a11y-contrast .btn { border-color: #ffea00 !important; }
html.a11y-contrast img { filter: grayscale(1) contrast(1.1); }
html.a11y-contrast .a11y-opt[aria-pressed="true"] { outline: 2px solid #ffea00; }

/* Grayscale (applied to non-fixed regions to preserve fixed positioning) */
html.a11y-grayscale main,
html.a11y-grayscale .site-header,
html.a11y-grayscale .site-footer { filter: grayscale(1); }

/* Highlight links */
html.a11y-links a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px !important;
  outline: 1px dashed currentColor;
  outline-offset: 2px;
}

/* Readable font */
html.a11y-readable,
html.a11y-readable * {
  font-family: Arial, "Assistant", "Heebo", sans-serif !important;
  letter-spacing: normal !important;
  font-style: normal !important;
}
html.a11y-readable .a11y-toggle svg { font-family: inherit !important; }

/* Big cursor */
html.a11y-bigcursor,
html.a11y-bigcursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M8 4l30 18-13 3 8 14-5 3-8-14-9 9z' fill='%23000' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, auto !important;
}
html.a11y-bigcursor .cursor-dot { display: none !important; }

/* Stop animation */
html.a11y-stopanim * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.a11y-stopanim .cursor-dot { display: none !important; }

@media (max-width: 480px) {
  .a11y-grid { grid-template-columns: 1fr 1fr; }
  .a11y-panel { inline-size: min(92vw, 300px); }
}
