:root {
  /* Darkened from #a97a4a so brand-color text and white-on-brand buttons meet
     the WCAG 2.1 AA 4.5:1 contrast ratio required by Israeli Standard 5568. */
  --color-primary: #8f6234;
  --color-primary-dark: #3a2a1c;
  --color-primary-light: #f3ece3;
  --color-accent: #c79a63;
  --color-dark: #2c2015;
  --color-text: #111827;
  --color-muted: #5e6570;   /* darkened from #6b7280 so muted text keeps 4.5:1 (WCAG AA) even on the cream/beige section backgrounds */
  --color-bg: #ffffff;
  --color-bg-alt: #f2f3f3;
  --color-border: #e5e2dd;
  /* Alternating section shades (warm neutrals). No two adjacent sections share
     one. Flipped for night mode in the html.a11y-dark block. */
  --sec-white: #ffffff;
  --sec-cream: #faf7f2;
  --sec-beige: #f4efe8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: 'Heebo', 'Segoe UI', Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* Visible keyboard focus indicator on every interactive element (WCAG 2.4.7). */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--color-primary-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip-to-content link: hidden until focused, first stop for keyboard users. */
.skip-link {
  position: absolute;
  right: 16px;
  top: -60px;
  z-index: 2000;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* Content available only to screen readers (e.g. per-page H1 for structure). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
/* Alternating section shades so adjacent blocks never share a background.
   (about/pain/services/contact set their own shade near their own rules;
   vision/stats stay --color-dark.) */
.solution { background: var(--sec-cream); }
.process { background: var(--sec-beige); }
.apartments { background: var(--sec-white); }   /* דירות = לבן לבקשת הלקוחה */
.clients-strip { background: var(--sec-cream); }
.testimonials { background: var(--sec-beige); }
.faq { background: var(--sec-cream); }
.section-eyebrow {
  display: block;
  font-family: 'Dancing Script', cursive;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 6px;
}
/* On the dark-background sections the brand brown is too dark for the decorative
   eyebrow; use the lighter accent so it keeps 3:1+ contrast (WCAG AA). */
.vision .section-eyebrow, .stats .section-eyebrow { color: var(--color-accent); }
/* ===== Uniform heading system across sections =====
   eyebrow  → brown, English (.section-eyebrow)
   title    → black, large, bold
   subtitle → black, smaller, bold
   (--color-text is near-black in light mode and flips to light in night mode) */
.section-title {
  font-family: 'Heebo', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  margin: 0 0 32px;
  color: var(--color-text);
  text-align: center;
}
/* Secondary heading under a section title */
.section-subtitle {
  text-align: center;
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 700;
  color: var(--color-text);
  max-width: 760px;
  margin: -22px auto 42px;
  line-height: 1.55;
}
.solution-intro { max-width: 820px; margin: 0 auto; text-align: center; }
.solution-lead {
  color: var(--color-muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.9;
  margin: 0;
  text-align: right;   /* first word sits at the right edge → the ✓ column lines up with it */
}
.solution-subtitle {
  text-align: right;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 700;
  color: var(--color-text);
  margin: -18px 0 16px;
}
.services-note {
  text-align: center;
  max-width: 880px;
  margin: 34px auto 0;
  color: var(--color-muted);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; color: var(--color-primary); font-weight: 600; }
.legal-back:hover { color: var(--color-primary-dark); }
.legal-content h1 {
  font-family: 'Heebo', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin: 0 0 32px;
  color: var(--color-primary-dark);
  text-align: center;
}
.legal-content h2 { font-size: 20px; font-weight: 700; color: var(--color-primary-dark); margin: 32px 0 12px; }
.legal-content p { color: var(--color-text); line-height: 1.9; margin: 0 0 16px; }
.legal-content ul { margin: 0 0 16px; padding-inline-start: 22px; list-style: disc; }
.legal-content li { line-height: 1.9; margin-bottom: 6px; }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(169, 122, 74, 0.45); }
.btn-outline { border-color: var(--color-primary); color: var(--color-primary-dark); background: transparent; }
.btn-outline:hover { background: var(--color-primary-light); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* Hero heading accent + hero CTA buttons */
.hero-accent { color: var(--color-primary); }
/* "לפגישת ייעוץ" — same solid brand brown as the "במקום אחד" accent */
.btn-consult {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
  gap: 8px;
  box-shadow: 0 12px 26px -12px rgba(143, 98, 52, 0.6);
}
.btn-consult:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn-consult .btn-arrow { width: 18px; height: 18px; flex-shrink: 0; }
.btn-whatsapp { gap: 9px; }
/* Authentic full-colour WhatsApp glyph, no ring around it */
.btn-whatsapp .wa-glyph { width: 22px; height: 22px; flex-shrink: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Dark, luxurious bar — same dark as the side menu, with a fine gold hairline */
  background: var(--color-dark);
  border-bottom: 1px solid rgba(199, 154, 99, 0.38);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.65);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100px;
  max-width: none;
  width: 100%;
  padding: 0 40px;
}
.logo img {
  height: 82px;
  width: auto;
}
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-contact-icons { display: flex; align-items: center; gap: 10px; }
.header-contact-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ecdfca;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(199, 154, 99, 0.4);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.header-contact-icons a:hover { background: var(--color-accent); color: #1a120c; border-color: var(--color-accent); }
.header-contact-icons svg { width: 18px; height: 18px; }
.icon-inline { width: 18px; height: 18px; flex-shrink: 0; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle span { width: 24px; height: 2px; background: #ecdfca; }

/* Side navigation drawer */
.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(360px, 86vw);
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
  padding: 26px 28px 30px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 200;
  overflow-y: auto;
}
.main-nav.open { transform: translateX(0); }
.nav-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.nav-logo img { height: 48px; }
.nav-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-links { display: flex; flex-direction: column; flex: 1; }
.nav-links a {
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-bottom a { color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 150;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
body.nav-locked { overflow: hidden; }

/* Hero — text stays in its container position (right); a large video block
   sits on the left with a white strip above and below and fills nearly the
   full column width, up close to the text. */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 55% at 82% 20%, rgba(169, 122, 74, 0.14), transparent 70%),
    linear-gradient(180deg, var(--color-bg-alt) 0%, #ffffff 65%);
  padding: 40px 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(169, 122, 74, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 75%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: stretch;
  min-height: min(80vh, 680px);
}
.hero-content { align-self: center; }
.eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.hero-brand {
  display: block;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 14px;
}
.hero-brand::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 20px;
  color: var(--color-dark);
}
.hero-sub { font-size: 18px; line-height: 1.7; color: var(--color-muted); margin: 0 0 32px; max-width: 540px; }
.hero-sub-strong { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--color-primary-dark); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--color-border); }
.trust-item { display: flex; align-items: center; gap: 8px; color: var(--color-text); font-size: 14px; font-weight: 500; }
.trust-item svg { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; }
.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 360px;
}
.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  box-shadow: 0 24px 50px -24px rgba(60, 40, 25, 0.35);
}
.hero-badge {
  position: absolute;
  bottom: -22px;
  right: 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.4;
}
.hero-badge-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

/* About */
.about { background: var(--sec-cream); padding: 100px 0 110px; }
.about-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.about-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 26px;
  line-height: 1.15;
}
.about-text {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.9;
  color: var(--color-text);
  margin: 0 0 32px;
}
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-primary-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.about-link:hover { border-color: var(--color-primary-dark); opacity: 0.8; }
.about-arrow { transition: transform 0.2s ease; }

/* Vision */
.vision { background: var(--color-dark); padding: 90px 0; }
.vision-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.vision-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 22px;
}
.vision-eyebrow-he {
  display: block;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.vision-text {
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 18px;
}
.vision-text:last-child { margin-bottom: 0; }
.about-link:hover .about-arrow { transform: translateX(-4px); }
.about-media { margin: 0 auto 32px; max-width: 640px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-media img { width: 100%; display: block; }

/* Apartments */
.apartments-text { max-width: 720px; margin: -16px auto 40px; text-align: center; color: var(--color-muted); font-size: 17px; line-height: 1.8; }

/* Pain points */
.pain { background: var(--sec-beige); }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pain-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.pain-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: 12px;
}
.pain-icon svg { width: 24px; height: 24px; }
.pain-card p { margin: 0; color: var(--color-muted); font-size: 15px; }

/* Solution */
/* Keep the whole block within one screen (no scrolling needed) */
.solution { padding: 46px 0; }
.solution-inner {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;   /* right: image (narrower) · left: text + table (wider) */
  gap: 44px;
  align-items: stretch;   /* image column stretches to the full height of the text */
}
.solution-image { min-height: 0; }
/* Photo fills the whole height of the text alongside it (cropped to fit). */
.solution-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}
.solution-content .section-title,
.solution-content .section-eyebrow,
.contact-info .section-title,
.contact-info .section-eyebrow { text-align: right; }
.check-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;   /* single column → each point on its own line, tidy and readable */
}
/* Solution: the 8 points as a clear, transparent table beside the photo — one
   column, thin dividers between rows, a ✓ at the start of each row. */
ul.solution-table {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}
ul.solution-table li {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 15px;
}
ul.solution-table li::before {
  content: "✔";
  position: static;
  right: auto;
  top: auto;
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}
.check-list li {
  position: relative;
  padding: 8px 0 8px 0;
  padding-right: 30px;
  color: var(--color-text);
}
.check-list li::before {
  content: "✔";
  position: absolute;
  right: 0;
  top: 8px;
  color: var(--color-primary);
  font-weight: 700;
}

/* Stats */
.stats { background: var(--color-dark); }
.stats .section-title { color: #fff; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  margin-top: 20px;
}
.stat-number {
  display: block;
  font-family: 'Heebo', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(52px, 7vw, 80px);
  font-weight: 800;
  color: var(--color-accent);   /* gold — brand brown was too dark on the dark stats bg (WCAG contrast) */
  line-height: 1;
}
.stat-prefix {
  display: block;
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { display: block; margin-top: 8px; color: #cbd5e1; font-size: 15px; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 2 wide cards per row — far tidier than 4 cramped ones */
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* Icon + title stay centred; the explanatory text and the bullet list read as a
   clean right-aligned column so nothing looks cramped. */
.feature-card > p,
.feature-card .check-list { text-align: right; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: 14px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--color-dark); }
.feature-card p { margin: 0; font-size: 14px; color: var(--color-muted); }

/* Services */
.services { background: var(--sec-cream); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-primary);
}
.service-card h3 { margin: 0 0 12px; color: var(--color-dark); }
.service-card p { margin: 0; color: var(--color-muted); }

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step { text-align: center; padding: 10px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.process-step h3 { margin: 0 0 8px; color: var(--color-dark); }
.process-step p { margin: 0; color: var(--color-muted); font-size: 14px; }

/* Comparison */
.comparison { background: var(--color-bg-alt); }
.table-wrap { overflow-x: auto; }
/* Touch/keyboard reach: bigger tap area for the small footer links without any
   visual shift (padding is cancelled by negative margins). */
.footer-info a,
.footer-quick-links a {
  padding: 8px 4px;
  margin: -8px -4px;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 560px;
}
.comparison-table th, .comparison-table td {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.comparison-table thead th {
  background: var(--color-dark);
  color: #fff;
  font-weight: 700;
}
.comparison-table thead th.highlight { background: var(--color-primary); }
.comparison-table td.highlight { background: var(--color-primary-light); font-weight: 700; color: var(--color-primary-dark); }

/* Clients logo strip */
.clients-strip { padding-bottom: 40px; }
.clients-note { text-align: center; color: #5e6672; font-size: 13px; margin: -16px 0 28px; }
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-scroll 44s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
/* Client logos: uniform-height, brand-toned monochrome PNGs */
.logo-item {
  flex: 0 0 auto;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}
.logo-item img {
  height: 100%;
  width: auto;
  display: block;
  opacity: 0.82;
  transition: opacity 0.2s ease;
}
.marquee:hover .logo-item img { opacity: 1; }
/* Night mode: lift the brown logos toward gold so they read on the dark strip */
html.a11y-dark .logo-item img { filter: brightness(1.75) saturate(1.1); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* Project gallery */
.gallery-tile {
  flex: 0 0 auto;
  width: 240px;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Team */
.team { background: var(--color-bg-alt); }
.team-intro {
  max-width: 780px;
  margin: -8px auto 8px;
  text-align: center;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.85;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}
.team-card h3 { margin: 0 0 4px; font-size: 17px; color: var(--color-dark); }
.team-role { display: block; color: var(--color-primary); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.team-card p { margin: 0; font-size: 13px; color: var(--color-muted); line-height: 1.6; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial-card p { margin: 0 0 16px; font-size: 15px; }
.testimonial-source { color: var(--color-accent); font-weight: 600; font-size: 14px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 4px 24px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.faq-item:hover { box-shadow: var(--shadow); border-color: var(--color-primary); }
.faq-item.open { background: var(--color-primary-light); border-color: var(--color-primary); }
.faq-question {
  width: 100%;
  text-align: right;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-icon-wrap {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.faq-item.open .faq-icon-wrap { background: var(--color-primary); }
.faq-icon { position: relative; width: 14px; height: 14px; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, background 0.2s ease;
}
.faq-icon::before { width: 2px; height: 100%; top: 0; left: 50%; transform: translateX(-50%); }
.faq-icon::after { height: 2px; width: 100%; top: 50%; left: 0; transform: translateY(-50%); }
.faq-item.open .faq-icon::before { transform: translateX(-50%) rotate(90deg); }
.faq-item.open .faq-icon::before, .faq-item.open .faq-icon::after { background: #fff; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 280px; }
.faq-answer p { margin: 0 0 20px; color: var(--color-muted); line-height: 1.7; }

/* Contact */
.contact { background: var(--sec-beige); }
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
.contact-details { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(143, 98, 52, 0.35);
}
.form-note { font-size: 14px; color: var(--color-primary-dark); min-height: 18px; margin: 0; }
.form-note-success { color: #1a7f37; font-weight: 700; font-size: 16px; }
/* Keeps a dash glued to its neighbouring words so it never lands at a line edge */
.nowrap { white-space: nowrap; }

.why-intro { padding: 28px 0 0; }
.why-cta { text-align: center; margin-top: 32px; }

/* Footer */
.site-footer { background: var(--color-dark); color: #cbd5e1; padding: 48px 0 0; }
.footer-top { padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px 24px;
  font-size: 14px;
  overflow-x: auto;
  white-space: nowrap;
}
.footer-info, .footer-quick-links { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; flex-shrink: 0; }
.footer-info a, .footer-quick-links a { color: #cbd5e1; text-decoration: none; }
.footer-info a:hover, .footer-quick-links a:hover { color: #fff; }
.footer-divider { color: #8f9499; }   /* mid-grey separator that still meets 4.5:1 on the dark footer */
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  height: 48px;
  margin-bottom: 14px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 10px;
}
.footer-brand p { color: #94a3b8; font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a:hover { color: #fff; }
.footer-contact p { margin: 0 0 8px; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; color: #b0b8c4; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow);
  z-index: 90;
}

/* Accessibility widget */
.a11y-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 90;
}
.a11y-float svg { width: 26px; height: 26px; }
.a11y-panel {
  position: fixed;
  bottom: 86px;
  right: 24px;
  width: 300px;
  /* Reserve space for the fixed header (top) + the float button (bottom) so the
     panel NEVER slides under the header — its title/close stay visible at any
     screen height; it scrolls internally when the toggles don't all fit. */
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 45px -15px rgba(10, 13, 34, 0.35);
  z-index: 120;
  display: none;
  flex-direction: column;
}
.a11y-panel.open { display: flex; }
.a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  position: sticky;   /* title + close stay visible while the toggles scroll */
  top: 0;
  z-index: 1;
}
.a11y-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.a11y-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 16px;
}
.a11y-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  border-radius: 12px;
  padding: 14px 8px;
  cursor: pointer;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.a11y-tile svg { width: 22px; height: 22px; color: var(--color-primary); }
.a11y-tile:hover { border-color: var(--color-primary); }
.a11y-tile.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.a11y-tile.active svg { color: #fff; }
.a11y-reset-all {
  border: none;
  border-top: 1px solid var(--color-border);
  background: none;
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 14px;
  text-align: center;
}
.a11y-reset-all:hover { color: var(--color-primary); }

/* Accessibility effects */
html.a11y-contrast { filter: contrast(1.3) saturate(1.15); }
html.a11y-bigtext { font-size: 122%; }
/* Elements with an explicit px font-size don't inherit the 122% bump, so scale
   them here too — including the footer, legal text and every small label. */
html.a11y-bigtext .footer-top-inner,
html.a11y-bigtext .footer-info,
html.a11y-bigtext .footer-quick-links { font-size: 16px !important; }
html.a11y-bigtext .footer-bottom p { font-size: 16px !important; }
html.a11y-bigtext .eyebrow,
html.a11y-bigtext .section-eyebrow,
html.a11y-bigtext .stat-label,
html.a11y-bigtext .trust-item span,
html.a11y-bigtext .team-role { font-size: 16px !important; }
html.a11y-bigtext .team-card p,
html.a11y-bigtext .service-card p,
html.a11y-bigtext .feature-card p,
html.a11y-bigtext .pain-card p,
html.a11y-bigtext .clients-note,
html.a11y-bigtext .vid-location { font-size: 16px !important; }
html.a11y-bigtext .hero-sub { font-size: 21px !important; }
html.a11y-bigtext .about-text,
html.a11y-bigtext .vision-text,
html.a11y-bigtext .team-intro,
html.a11y-bigtext .apartments-text,
html.a11y-bigtext .legal-content p,
html.a11y-bigtext .legal-content li { font-size: 20px !important; }
html.a11y-bigtext .btn { font-size: 18px !important; }
html.a11y-bigtext .btn-lg { font-size: 19px !important; }
html.a11y-bigtext .nav-links a { font-size: 20px !important; }
html.a11y-bigtext .faq-question { font-size: 19px !important; }
html.a11y-bigtext .service-card h3,
html.a11y-bigtext .team-card h3,
html.a11y-bigtext .feature-card h3 { font-size: 19px !important; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; }
html.a11y-spacing body { letter-spacing: 0.05em; word-spacing: 0.15em; }
html.a11y-hide-images img, html.a11y-hide-images svg:not(.icon-inline) { visibility: hidden !important; }
html.a11y-no-motion *, html.a11y-no-motion *::before, html.a11y-no-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* Respect the operating-system "reduce motion" preference automatically
   (WCAG 2.3.3 / 2.2.2): stop the marquees and disable smooth scrolling. The
   hero video is paused from JavaScript in the same case. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto !important; }
}
html.a11y-readable body { font-family: 'Arial', 'Segoe UI', sans-serif !important; }
html.a11y-lineheight body { line-height: 2.1 !important; }
html.a11y-lineheight p { line-height: 2.1 !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 fill="%230a0d22" stroke="white" stroke-width="1" d="M4 3l7 17 2.2-6.8L20 11z"/></svg>') 4 4, auto !important; }
html.a11y-align body p, html.a11y-align body li { text-align: right !important; }

/* ===== Night mode (accessibility toggle: מצב לילה) ===== */
html.a11y-dark {
  --color-bg: #14100c;
  --color-bg-alt: #1e1712;
  --color-text: #ece4d8;
  --color-muted: #b3a695;
  --color-border: #372c23;
  --color-primary-light: #2a2019;
  --color-primary-dark: #f0e7da;   /* headings / former dark text -> light */
  --color-primary: #d4a45f;        /* brighter gold for contrast on dark */
  --color-accent: #d4a45f;
  /* Alternating section shades, flipped to warm-dark tones for night mode */
  --sec-white: #14100c;
  --sec-cream: #191410;
  --sec-beige: #211a14;
}
html.a11y-dark body { background: var(--color-bg); color: var(--color-text); }
html.a11y-dark .hero {
  background:
    radial-gradient(ellipse 60% 55% at 82% 20%, rgba(212, 164, 95, 0.10), transparent 70%),
    linear-gradient(180deg, #1e1712 0%, #14100c 65%);
}
html.a11y-dark body.page-home .hero { background: #14100c; }
/* Headings that used --color-dark need to become light */
html.a11y-dark .hero h1,
html.a11y-dark .feature-card h3,
html.a11y-dark .service-card h3,
html.a11y-dark .process-step h3,
html.a11y-dark .team-card h3,
html.a11y-dark .faq-question,
html.a11y-dark .service-card h3,
html.a11y-dark .comparison-table td { color: var(--color-text); }
/* Card / panel surfaces -> warm dark */
html.a11y-dark .hero-badge,
html.a11y-dark .pain-card,
html.a11y-dark .feature-card,
html.a11y-dark .service-card,
html.a11y-dark .comparison-table,
html.a11y-dark .team-card,
html.a11y-dark .faq-item,
html.a11y-dark .contact-form,
html.a11y-dark .testimonial-card,
html.a11y-dark .stat-item,
html.a11y-dark .logo-pill,
html.a11y-dark .vid-nav,
html.a11y-dark input,
html.a11y-dark select,
html.a11y-dark textarea {
  background: #211a14;
  color: var(--color-text);
  border-color: var(--color-border);
}
html.a11y-dark .comparison-table th { background: #2a2019; }
html.a11y-dark .comparison-table thead th.highlight,
html.a11y-dark .comparison-table td.highlight { background: rgba(212, 164, 95, 0.18); }
/* Buttons: dark text on the brighter gold */
html.a11y-dark .btn-primary { color: #17110c; }
html.a11y-dark .btn-primary:hover { background: var(--color-accent); box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.6); }
/* Map tooltip */
html.a11y-dark .map-tooltip { background: #2a2019; color: #f0e7da; border-color: rgba(212, 164, 95, 0.4); }
html.a11y-dark .map-tooltip::after { border-top-color: #2a2019; }
html.a11y-dark .vid-nav:disabled:hover { background: #211a14; }
html.a11y-dark .form-note-success { color: #4ade80; }
html.a11y-dark ::placeholder { color: #9d907e; }
/* Accessibility panel itself in night mode */
html.a11y-dark .a11y-panel { background: #1e1712; border-color: var(--color-border); }
html.a11y-dark .a11y-panel-header { background: #211a14; color: var(--color-text); }
html.a11y-dark .a11y-tile { background: #241c15; }
html.a11y-dark .a11y-tile.active,
html.a11y-dark .a11y-tile.active svg { color: #17110c; }

/* Hero fits one screen on desktop/laptop (text + video visible without
   scrolling), and gracefully shrinks its type on short screens. */
@media (min-width: 961px) {
  .hero { padding: 22px 0; }
  .hero-inner {
    min-height: calc(100vh - 100px - 44px);
    max-height: calc(100vh - 100px - 44px);
  }
}
@media (min-width: 961px) and (max-height: 900px) {
  .eyebrow { margin-bottom: 8px; }
  .hero-brand { margin-bottom: 6px; padding-bottom: 10px; font-size: clamp(18px, 1.9vw, 22px); }
  .hero h1 { font-size: clamp(26px, 3.4vw, 42px); margin-bottom: 14px; }
  .hero-sub { font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
  .hero-actions { margin-bottom: 22px; gap: 12px; }
  .hero-trust { gap: 18px; padding-top: 16px; }
}
@media (min-width: 961px) and (max-height: 680px) {
  .hero h1 { font-size: clamp(24px, 3vw, 34px); }
  .hero-sub { display: none; }
  .hero-trust { display: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .solution-inner, .contact-inner { grid-template-columns: 1fr; }
  .solution-image { order: -1; }
  /* Mobile hero: the אסירון text comes first, the promo video below it */
  .hero-content { order: 0; }
  .hero-media { order: 1; }
  .hero-inner { min-height: 0; gap: 28px; }
  .hero-content { align-self: auto; }
  /* Full-bleed portrait video: reaches both screen edges and shows the whole
     filmed (9:16) frame — no side margins, no bars, no rounded card. */
  .hero-media {
    min-height: 0;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    aspect-ratio: 9 / 16;
    border-radius: 0;
    box-shadow: none;
  }
  .hero-media video {
    border-radius: 0;
    box-shadow: none;
  }
  .pain-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .process-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 84px; }
  .header-inner { height: 80px; padding: 0 20px; }
  .logo img { height: 60px; width: auto; }
  .header-actions { gap: 12px; }
  .header-contact-icons { gap: 6px; }
  .header-contact-icons a { width: 34px; height: 34px; }
  .nav-links a { font-size: 18px; }
  /* Footer stacks on mobile: the quick-links sit below the contact details,
     everything centred — no sideways scrolling. */
  .footer-top-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    white-space: normal;
    font-size: 13px;
    gap: 12px;
    text-align: center;
  }
  .footer-info, .footer-quick-links { flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
  .footer-top-inner .icon-inline { width: 15px; height: 15px; }
}

@media (max-width: 600px) {
  .pain-grid, .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* ===== Apartments home teaser: video placeholders ===== */
.apartments-videos-title {
  font-family: 'Heebo', 'Segoe UI', Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-align: right;
  margin: 48px 0 16px;
}
.video-carousel {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vid-nav {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.vid-nav svg { width: 20px; height: 20px; }
.vid-nav:hover { background: var(--color-primary); color: #fff; }
.vid-nav:active { transform: scale(0.94); }
.vid-nav:disabled { opacity: 0.35; cursor: default; box-shadow: none; }
.vid-nav:disabled:hover { background: #fff; color: var(--color-primary-dark); }
.video-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 4px 2px 12px;
  flex: 1 1 auto;
  min-width: 0;
}
.video-slot {
  position: relative;
  flex: 0 0 220px;
  aspect-ratio: 1 / 1; /* square video cards */
  scroll-snap-align: start;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #5e6672; /* meets 4.5:1 on the light slot background */
  text-align: center;
}
.video-slot svg { width: 34px; height: 34px; opacity: 0.6; }
.video-slot span { font-size: 13px; }
.video-slot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* show the whole portrait frame, no crop/zoom, no blur */
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}
/* Play/pause control. Paused = large centred play button (video starts only on
   click); playing = small pause button in the corner. */
.vid-toggle {
  position: absolute;
  z-index: 3;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(44, 32, 21, 0.62);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, width 0.2s ease, height 0.2s ease;
  /* default = playing state: small, bottom-left corner */
  bottom: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
}
.vid-toggle:hover { background: rgba(44, 32, 21, 0.85); }
.vid-toggle svg { width: 15px; height: 15px; fill: #fff; }
.vid-toggle .ic-play { display: none; }
.vid-toggle .ic-pause { display: block; }
/* paused = large centred play button */
.vid-toggle.is-paused {
  top: 50%;
  left: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  background: rgba(44, 32, 21, 0.72);
}
.vid-toggle.is-paused:hover { background: rgba(44, 32, 21, 0.9); }
.vid-toggle.is-paused svg { width: 26px; height: 26px; }
.vid-toggle.is-paused .ic-play { display: block; }
.vid-toggle.is-paused .ic-pause { display: none; }

/* Location caption, bottom-right of each video tile (site font). */
.vid-location {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(44, 32, 21, 0.82);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.vid-location::before {
  content: "";
  width: 11px;
  height: 11px;
  flex: none;
  background: currentColor;
  -webkit-mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
  mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
  opacity: 0.9;
}
/* Enlarge / fullscreen button, top-right corner of each video tile. */
.vid-fs {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(44, 32, 21, 0.62);
  color: #fff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.vid-fs:hover { background: rgba(44, 32, 21, 0.88); }
.vid-fs svg { width: 17px; height: 17px; fill: #fff; }

/* Enlarge modal — a bigger, proportional view of the clip (not full-screen). */
.vid-modal[hidden] { display: none; }
.vid-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.vid-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 8, 0.74);
  cursor: pointer;
}
.vid-modal__box {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 88vw;
}
.vid-modal__video {
  display: block;
  width: auto;
  height: auto;
  max-height: 86vh;
  max-width: 88vw;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.vid-modal__close {
  position: absolute;
  top: -14px;
  inset-inline-end: -14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--color-text, #2c2015);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.vid-modal__close:hover { background: #f0e9e1; }
.vid-modal__close svg { width: 20px; height: 20px; }
@media (max-width: 560px) {
  .vid-modal__close { top: -12px; inset-inline-end: -6px; }
}
.apartments-cta { text-align: center; margin-top: 32px; }
@media (max-width: 640px) {
  .video-slot { flex-basis: 168px; }
  .vid-nav { width: 36px; height: 36px; }
  .vid-nav svg { width: 17px; height: 17px; }
}

/* ===== Apartments coverage map ===== */
.apartments-intro {
  margin: 56px 0 0;
}
.apartments-intro-text {
  max-width: 760px;
  margin: 0 auto;
}
.apartments-intro-text .apartments-text {
  max-width: none;
  margin: 0 0 18px;
  text-align: center;
}
.apartments-intro-text .apartments-text:last-child { margin-bottom: 0; }
.coverage-eyebrow-wrap {
  text-align: center;
  margin: 64px 0 0;
}
.coverage-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0;
}
.coverage-wrap {
  position: relative;
  max-width: 560px;
  width: 100%;
  margin: 28px auto 0;
}
@media (max-width: 860px) {
  .coverage-wrap { max-width: 420px; }
}
.coverage-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Interactive coverage-map markers ===== */
:root {
  --map-icon-main: #8a623d;
  --map-icon-accent: #1f6f78;
  --map-icon-light: #f8efe4;
  --map-icon-shadow: rgba(60, 40, 25, 0.18);
}
.map-icons-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.map-region-zone {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  padding: 0;
  background: rgba(138, 98, 61, 0);
  border: none;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.15s ease;
}
.map-region-zone:focus-visible {
  outline: 2px solid var(--map-icon-accent);
  outline-offset: 2px;
}

.map-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, calc(-100% - 10px));
  background: var(--map-icon-light);
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(138, 98, 61, 0.35);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
  box-shadow: 0 8px 20px rgba(60, 40, 25, 0.18);
}
.map-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--map-icon-light);
}
.map-tooltip.show { opacity: 1; }

/* ===== Home page hero: full-bleed video with the logo/header overlaid on top
   (Rivram-style). Video bleeds to the top-left of the page, behind a transparent
   header; the copy sits on the right. Header turns solid once you scroll. ===== */
body.page-home .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
body.page-home .site-header::before {   /* legibility scrim behind the transparent logo */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,10,6,0.62), rgba(15,10,6,0.12) 70%, rgba(15,10,6,0));
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}
/* Premium dark-glass controls while the header is transparent over the video */
body.page-home .site-header:not(.scrolled) .header-contact-icons a {
  background: rgba(24, 17, 11, 0.55);
  color: var(--color-accent);
  border: 1px solid rgba(212, 164, 95, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
body.page-home .site-header:not(.scrolled) .header-contact-icons a:hover {
  background: var(--color-accent);
  color: #17110c;
  border-color: var(--color-accent);
}
body.page-home .site-header:not(.scrolled) .nav-toggle span {
  background: var(--color-accent);
}
/* Header controls grouped inside one translucent glass capsule (reference look):
   round gold buttons + a filled round hamburger. */
body.page-home .header-actions {
  gap: 9px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(20, 14, 9, 0.34);
  border: 1px solid rgba(212, 164, 95, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
body.page-home .header-contact-icons { gap: 9px; }
body.page-home .header-contact-icons a {
  width: 42px;
  height: 42px;
  background: rgba(30, 21, 14, 0.5);
  border: 1px solid rgba(212, 164, 95, 0.5);
  color: var(--color-accent);
}
/* Hamburger becomes a matching round button, filled a touch more so it reads as
   the primary control (like the reference). */
body.page-home .nav-toggle {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  gap: 4px;
  border-radius: 50%;
  background: rgba(120, 82, 42, 0.6);
  border: 1px solid rgba(212, 164, 95, 0.6);
}
body.page-home .nav-toggle span {
  width: 17px;
  background: var(--color-accent);
}
/* Keep the capsule readable once the header turns solid on scroll */
body.page-home .site-header.scrolled .header-actions {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 164, 95, 0.4);
}
body.page-home .site-header.scrolled {
  position: fixed;
  background: var(--color-dark);
  border-bottom: 1px solid rgba(199, 154, 99, 0.38);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.65);
}
body.page-home .site-header.scrolled::before { opacity: 0; }

body.page-home .hero {
  padding: 0;
  min-height: 100vh;
  background: #FAF8F3;   /* clean warm-ivory panel the copy sits on */
  overflow: hidden;
}
body.page-home .hero::before { display: none; }
body.page-home .hero-inner {
  position: static;
  display: block;
  max-width: none;
  min-height: 100vh;
  max-height: none;
  padding: 0;
}
body.page-home .hero-media {
  position: absolute;
  top: 0; bottom: 0; left: 0;   /* physical left, full height, bleeds to the edge */
  width: 60%;
  min-height: 0;
  margin: 0;
  z-index: 0;
  /* Almost the old rectangular video, just tilted slightly. The element itself is
     clipped a hair WIDER than the video and painted black→brown (logo-emblem
     tones) — that sliver shows as a thin dark line along the diagonal edge. */
  clip-path: polygon(0 0, 97.35% 0, 89.35% 100%, 0 100%);
  background: linear-gradient(180deg, #a58a63 0%, #7c6544 100%);   /* dark-beige line */
  /* Soft shadow OUTSIDE the edge only, cast onto the ivory panel. */
  filter: drop-shadow(5px 0 20px rgba(50, 34, 20, 0.22));
}
body.page-home .hero-media video {
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
  max-height: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Video sits just inside, leaving the dark line exposed on the diagonal edge. */
  clip-path: polygon(0 0, 97% 0, 89% 100%, 0 100%);
}
body.page-home .hero-content {
  position: relative;
  z-index: 2;
  margin-left: 58%;             /* ~42% content panel; clears the dissolve */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Top padding shrinks on short screens so all the copy shows at 100% zoom */
  padding: clamp(96px, 12vh, 132px) clamp(22px, 3.4vw, 56px) clamp(32px, 5vh, 56px);
  box-sizing: border-box;
}
/* Keep the two CTAs on ONE row (side by side, never stacked) inside the panel */
body.page-home .hero-actions {
  flex-wrap: nowrap;
  gap: 12px;
  margin-bottom: clamp(22px, 3.4vh, 36px);
}
body.page-home .hero-actions .btn-lg {
  padding: 15px clamp(16px, 1.8vw, 26px);
  font-size: 16px;
  white-space: nowrap;
}

@media (max-width: 960px) {
  /* Mobile: video full-width at the very top (logo overlaid on it), copy below */
  body.page-home .hero { min-height: 0; }
  body.page-home .hero-inner { display: flex; flex-direction: column; min-height: 0; }
  body.page-home .hero-media {
    position: relative;
    top: auto; bottom: auto; left: auto;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    /* Shorter on mobile so the heading AND the paragraph below it stay on-screen */
    aspect-ratio: 1 / 1;
    max-height: 40vh;
    order: -1;
    clip-path: none;   /* full rectangle when stacked on mobile */
    filter: none;
    background: none;
  }
  body.page-home .hero-media video { clip-path: none; }
  body.page-home .hero-content {
    margin-left: 0;
    min-height: 0;
    text-align: center;
    align-items: center;
    padding: 22px 22px 8px;
  }
  /* More compact heading on mobile so the longer copy below it stays visible */
  body.page-home .hero h1 { font-size: clamp(23px, 6.6vw, 30px); line-height: 1.2; margin-bottom: 14px; }
  body.page-home .hero-sub { font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
}

/* Owner popup — הצעה לבעלי דירות (premium card) */
.owner-popup {
  position: fixed;
  bottom: 96px;
  left: 28px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #fdfbf7;
  border: 1px solid rgba(199, 154, 99, 0.45);
  border-radius: 18px;
  box-shadow: 0 14px 34px -18px rgba(44, 32, 21, 0.32);
  padding: 18px 18px 16px;
  z-index: 110;
  animation: owner-popup-in 0.55s ease-out both;
}
.owner-popup[hidden] { display: none; }
@keyframes owner-popup-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .owner-popup { animation: none; }
}
.owner-popup-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #6d675e;
  cursor: pointer;
  border-radius: 50%;
}
.owner-popup-close svg { width: 13px; height: 13px; }
.owner-popup-close:hover { background: #f1ece3; color: var(--color-dark); }
.owner-popup-title {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
}
.owner-popup-text {
  margin: 0 0 13px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-muted);
}
.owner-popup-btn {
  display: block;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 11px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.owner-popup-btn:hover { background: var(--color-primary-dark); }
@media (max-width: 640px) {
  .owner-popup { left: 14px; right: 14px; width: auto; max-width: 340px; bottom: 90px; padding: 16px 16px 14px; }
  .owner-popup-title { font-size: 15px; }
  .owner-popup-close { width: 38px; height: 38px; top: 6px; left: 6px; }
  .owner-popup-close svg { width: 17px; height: 17px; }
}
