/* =========================================================================
   מול מדבר — עיצוב האתר
   מבוסס על ערכת המיתוג: Heebo, 4 צבעי המותג, מוטיב ההר.
   ========================================================================= */

:root {
  /* ארבעת צבעי המותג המקוריים — קבועים, לא משתנים בין ערכות נושא */
  --paper: #faf7f2;
  --sand: #efe6d8;
  --wood: #9a6233;
  --wood-dark: #83522a;
  --espresso: #3a2a1f;

  /* משתנים סמנטיים — אלה מתחלפים במצב "ערב מדברי" */
  --bg: var(--paper);
  --bg-alt: var(--sand);
  --ink: var(--espresso);
  --accent: var(--wood);
  --accent-dark: var(--wood-dark);
  --accent-text: #643713;
  --stat-bg: rgba(250, 247, 242, 0.92);
  --accent-soft: #e0b584;
  --header-bg: rgba(239, 230, 216, 0.82);
  --glass-bg: rgba(250, 247, 242, 0.6);
  --glass-bg-strong: rgba(250, 247, 242, 0.65);
  --glass-border: rgba(255, 255, 255, 0.6);
  --input-bg: #fff;
  --input-border: rgba(58, 42, 31, 0.62);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 45px -25px rgba(58, 42, 31, 0.35);
  --shadow-card: 0 10px 30px -18px rgba(58, 42, 31, 0.3);
  --container: 1180px;
  --header-h: 76px;
}

/* ---------- ערכת נושא "ערב מדברי" ---------- */
[data-theme="evening"] {
  --bg: #211712;
  --bg-alt: #2f2017;
  --ink: #f3e7da;
  --accent: #e0a868;
  --accent-dark: #c98a4a;
  --accent-text: #e9bd88;
  --stat-bg: rgba(40, 28, 20, 0.92);
  --accent-soft: #f0c99a;
  --header-bg: rgba(27, 19, 14, 0.85);
  --glass-bg: rgba(40, 28, 20, 0.55);
  --glass-bg-strong: rgba(40, 28, 20, 0.62);
  --glass-border: rgba(255, 255, 255, 0.12);
  --input-bg: rgba(255, 255, 255, 0.06);
  --input-border: rgba(255, 255, 255, 0.5);
  --shadow-soft: 0 20px 45px -20px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
}
[data-theme="evening"] .blob-sand { opacity: 0.06; }
[data-theme="evening"] .btn-primary,
[data-theme="evening"] .building-tab.active,
[data-theme="evening"] .building-tab:hover { color: #211712; }
[data-theme="evening"] .field option { color: #211712; }
[data-theme="evening"] .about-grid img,
[data-theme="evening"] .location-map { box-shadow: var(--shadow-soft); }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding: calc(var(--header-h) + 16px) 0 96px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: "Heebo", system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(154, 98, 51, 0.07), transparent 42%),
    radial-gradient(circle at 88% 94%, rgba(58, 42, 31, 0.06), transparent 46%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-weight: 800;
  margin: 0 0 0.5em;
  line-height: 1.25;
  color: var(--ink);
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

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

section { position: relative; }

/* ---------- פס התקדמות גלילה ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  z-index: 300;
  transition: width 0.1s linear;
}

/* ---------- בועות דקורטיביות (glassmorphism backdrop) ---------- */
.has-blobs { overflow: hidden; }
.has-blobs > .container { position: relative; z-index: 1; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation-name: blob-float;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.blob-wood { background: var(--wood); }
.blob-espresso { background: var(--espresso); opacity: 0.22; }
.blob-sand { background: #fff; opacity: 0.5; }
@keyframes blob-float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(36px, -28px) scale(1.18); }
}

/* ---------- זכוכית (glassmorphism) ---------- */
.glass {
  background: rgba(250, 247, 242, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.glass-dark {
  background: rgba(58, 42, 31, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(250, 247, 242, 0.14);
}

.section-pad { padding: 96px 0; }
@media (max-width: 720px) {
  .section-pad { padding: 64px 0; }
}

.section-alt { background: var(--bg-alt); transition: background-color 0.4s ease; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--accent-text);
  margin-bottom: 14px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--ink); opacity: 0.8; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: rgba(250, 247, 242, 0.65);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.magnetic { transition: transform 0.15s ease-out, background 0.2s ease, box-shadow 0.2s ease; }

.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- באנר הכרזה ---------- */
.announce-bar {
  background: var(--espresso);
  color: var(--paper);
  font-size: 0.85rem;
  text-align: center;
  padding: 10px 16px;
}
.announce-bar a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  margin-inline-start: 8px;
}

/* ---------- הדר ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(154, 98, 51, 0.14);
  transition: background-color 0.4s ease;
}
.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}
.brand img { height: 36px; width: auto; }
.logo-evening { display: none; }
[data-theme="evening"] .logo-day { display: none; }
[data-theme="evening"] .logo-evening { display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.main-nav a:hover { opacity: 1; color: var(--accent-text); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--ink);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.icon-btn:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--ink);
  border: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    inset-inline: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid rgba(58,42,31,0.08);
  }
}

/* ---------- הירו ---------- */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(46,32,23,0.34) 0%, rgba(46,32,23,0.62) 30%, rgba(46,32,23,0.72) 62%, rgba(46,32,23,0.9) 100%);
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide .kb {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  animation: kenburns 9s ease-out forwards;
}
.hero-slide.alt .kb { animation-name: kenburns-alt; }
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.14) translate(-1.5%, -1%); }
}
@keyframes kenburns-alt {
  from { transform: scale(1.1) translate(1%, 1%); }
  to { transform: scale(1.22) translate(-1%, -1.5%); }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 120px;
  width: 100%;
}
.hero-scroll-cue {
  position: absolute;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.65);
  border-radius: 20px;
}
.hero-scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 3px;
  background: #fff;
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(0); }
}
@media (max-width: 600px) { .hero-scroll-cue { display: none; } }
.hero-logo-mark { display: block; height: 64px; width: auto; margin-bottom: 22px; overflow: visible; }
.hero-logo-mark path {
  fill: none;
  stroke: #fff;
  stroke-width: 64;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1.2;
  stroke-dashoffset: 1.2;
  animation: draw-logo 1.5s 0.2s cubic-bezier(.4,0,.2,1) forwards;
}
.hero-logo-mark path + path { animation-delay: 0.9s; }
@keyframes draw-logo { to { stroke-dashoffset: 0; } }

/* ---------- סליידר יום / ערב מדברי בהירו ---------- */
.hero-compare {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
/* מסנן את מה שמתחתיו, ולכן תמיד תואם לשקופית הפעילה */
.hero-compare-evening {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  -webkit-backdrop-filter: brightness(0.55) sepia(0.45) saturate(1.5) hue-rotate(-12deg) contrast(1.08);
  backdrop-filter: brightness(0.55) sepia(0.45) saturate(1.5) hue-rotate(-12deg) contrast(1.08);
  pointer-events: none;
}
.hero-compare-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: rgba(255,255,255,0.6);
}
.hero-compare-knob {
  position: absolute;
  top: 26%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 26px rgba(0,0,0,0.35);
  pointer-events: auto;
  touch-action: none;
  cursor: ew-resize;
}
.hero-compare-knob svg { width: 20px; height: 20px; }
/* ימין תמיד יום ושמאל תמיד ערב, בלי קשר לשפה */
.hero-compare-labels {
  direction: rtl;
  position: absolute;
  top: 22px;
  inset-inline: 22px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}
.hero-compare-labels span {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(40,27,19,0.78);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
@media (max-width: 640px) {
  .hero-compare-knob { width: 40px; height: 40px; }
  .hero-compare-labels { top: 14px; inset-inline: 14px; }
  .hero-compare-labels span { font-size: 0.7rem; padding: 5px 12px; }
}

/* ---------- רצועת נתונים מונפשת (counters) ---------- */
.stats-strip {
  position: relative;
  z-index: 3;
  margin-top: -58px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-soft);
}
.stat-item {
  background: var(--stat-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 26px 18px;
  text-align: center;
}
.stat-value {
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--accent-text);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.88rem; opacity: 0.8; }
@media (max-width: 700px) {
  .stats-strip { margin-top: -34px; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ---------- טעינת תמונות blur-up ---------- */
.img-blur-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.img-blur-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(16px);
  transform: scale(1.04);
  transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s ease;
}
.img-blur-wrap img.loaded {
  opacity: 1;
  filter: blur(0);
  transform: none;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 820px;
}
.hero .subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 560px;
  color: rgba(255,255,255,0.92);
  margin-bottom: 34px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- אודות ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.about-image .img-blur-wrap {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .about-image { order: -1; }
}

/* ---------- יתרונות ---------- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .highlights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .highlights-grid { grid-template-columns: 1fr; } }

.highlight-card {
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease;
}
.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -22px rgba(58, 42, 31, 0.4);
}
.highlight-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.highlight-icon svg { width: 26px; height: 26px; }
.highlight-card h3 { font-size: 1.1rem; }
.highlight-card p { opacity: 0.8; font-size: 0.95rem; margin: 0; }

/* ---------- דירות ---------- */
.building-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.building-tab {
  padding: 10px 26px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.building-tab.active,
.building-tab:hover { background: var(--accent); color: #fff; }

.units-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .units-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .units-grid { grid-template-columns: 1fr; } }

.unit-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.units-grid { perspective: 1400px; }
.unit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -22px rgba(58, 42, 31, 0.4);
}
.unit-card .thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
}
.unit-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.unit-card:hover .thumb img { transform: scale(1.06); }
.unit-card .body { padding: 20px 22px 24px; }
.unit-card .code { color: var(--accent-text); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; }
.unit-card h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.unit-card .rooms { font-size: 0.9rem; opacity: 0.75; margin-bottom: 6px; }
.unit-card .feature { font-size: 0.88rem; color: var(--accent-text); font-weight: 500; }

/* ---------- גלריה ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 14px;
}
.gallery-grid .g-item {
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-grid .g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid .g-item:hover img { transform: scale(1.07); }
.gallery-grid .g-item.span-2 { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .gallery-grid .g-item.span-2 { grid-column: span 2; grid-row: span 1; }
}

/* ---------- מיקום ---------- */
.location-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  line-height: 0;
}
.location-map iframe { width: 100%; height: 360px; border: 0; }
.points-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.points-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  font-weight: 500;
}
.points-list .dist { color: var(--accent-text); font-weight: 700; }
.points-note { margin: 10px 0 0; font-size: 0.8rem; color: var(--ink-soft, var(--ink)); opacity: 0.85; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 860px) { .location-wrap { grid-template-columns: 1fr; } }

/* ---------- צור קשר ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }

.contact-form {
  display: grid;
  gap: 16px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--input-border);
  background: var(--input-bg);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  transition: background-color 0.4s ease, border-color 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-note { font-size: 0.88rem; margin: 0; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.form-note span:empty { display: none; }
.field-check { display: flex; gap: 10px; align-items: flex-start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.field-check label { font-size: 0.95rem; }
.field-error { margin: 6px 0 0; font-size: 0.9rem; font-weight: 500; color: #9a2c1c; }
.field [aria-invalid="true"] { border-color: #9a2c1c; }
[data-theme="evening"] .field-error { color: #ffb4a4; }
[data-theme="evening"] .field [aria-invalid="true"] { border-color: #ffb4a4; }
.form-status { font-weight: 700; min-height: 1.2em; }
.form-status.ok { color: #24591f; }
.form-status.err { color: #9a2c1c; }
[data-theme="evening"] .form-status.ok { color: #a9dba3; }
[data-theme="evening"] .form-status.err { color: #ffb4a4; }

.contact-side {
  background: rgba(58, 42, 31, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(250, 247, 242, 0.14);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.contact-side h3 { color: #fff; }
.contact-side .person { font-weight: 800; font-size: 1.2rem; margin-bottom: 2px; }
.contact-side .role { margin-bottom: 26px; }
.contact-links { display: grid; gap: 12px; position: relative; z-index: 1; }
.contact-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(250,247,242,0.08);
  font-weight: 500;
  transition: background 0.2s;
}
.contact-links a:hover { background: rgba(250,247,242,0.18); }
.contact-links svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact-side .mountain-bg {
  position: absolute;
  bottom: -30px;
  inset-inline-end: -40px;
  width: 260px;
  opacity: 0.12;
  pointer-events: none;
}

/* ---------- פוטר ---------- */
.site-footer {
  background: var(--espresso);
  color: rgba(250,247,242,0.85);
  padding: 56px 0 28px;
  position: relative;
  overflow: hidden;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(250,247,242,0.15);
  position: relative;
  z-index: 1;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: #fff; }
.footer-brand img { height: 42px; }
.footer-tagline { opacity: 0.7; max-width: 320px; margin-top: 10px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: 0.9rem; opacity: 0.75; margin-bottom: 8px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.8rem;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}
.footer-credit { position: relative; z-index: 1; margin-top: 40px; text-align: center; font-size: 0.9rem; color: #dccbb8; }
.credit-rule { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 14px; color: #e0a868; }
.credit-rule::before, .credit-rule::after { content: ""; width: 100px; height: 1px; background: var(--wood); transform: scaleX(0); transition: transform 0.9s 0.25s ease; }
.credit-rule::before { transform-origin: right; }
.credit-rule::after { transform-origin: left; }
[dir="rtl"] .credit-rule::before { transform-origin: left; }
[dir="rtl"] .credit-rule::after { transform-origin: right; }
.credit-rule svg { width: 20px; height: 20px; }
.footer-credit.in-view .credit-rule::before, .footer-credit.in-view .credit-rule::after { transform: none; }
.footer-credit.in-view .credit-rule svg { animation: heartbeat 1.1s 0.7s ease both; }
@keyframes heartbeat { 0%, 45%, 100% { transform: scale(1); } 20% { transform: scale(1.35); } 65% { transform: scale(1.2); } }
.credit-name { font-size: 1.75rem; font-weight: 700; letter-spacing: 0.2em; margin-right: -0.2em; line-height: 1.5; color: #e0a868; transition: color 0.4s ease; }
.footer-credit:hover .credit-name { color: #f7dcb8; }
.credit-services { color: #f3e7da; margin-bottom: 4px; }
.footer-credit a { display: inline-block; padding: 8px 12px; white-space: nowrap; text-underline-offset: 4px; }
.footer-credit a:hover { color: #fff; text-decoration: underline; }
.footer-mountain {
  position: absolute;
  bottom: -60px;
  inset-inline-end: -60px;
  width: 420px;
  max-width: 50vw;
  opacity: 0.08;
  pointer-events: none;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(94vw, 1100px);
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 22px;
  inset-inline-end: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close svg { width: 20px; height: 20px; }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

/* backwards ולא both: אחרת האנימציה ממשיכה לדרוס את ה-transform של ההטיה */
.unit-card.pop { animation: pop-in 0.55s ease backwards; }
@keyframes pop-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- כפתורים צפים (FAB) ---------- */
.fab-stack {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.fab-stack.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(58, 42, 31, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fab:hover { transform: translateY(-3px) scale(1.06); }
.fab svg { width: 24px; height: 24px; }
.fab-whatsapp { background: #117a41; color: #fff; }
.fab-phone { background: var(--accent); color: #fff; }

/* ---------- שפה ---------- */
.contact-form .btn { justify-content: center; }
.lang-toggle { border: 0; font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.theme-toggle { border: 0; cursor: pointer; }
.brand-en { display: none; }
html[lang="en"] .brand-en { display: inline; white-space: nowrap; }
html[lang="en"] .brand { gap: 14px; }
.brand img { flex-shrink: 0; }
.legend { margin-top: 14px; border-top: 1px solid var(--input-border); padding-top: 12px; cursor: auto; }
.legend summary { cursor: pointer; font-weight: 500; font-size: 0.9rem; }
.legend dl { margin: 8px 0 0; font-size: 0.86rem; }
.legend dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--input-border); }
.legend dd { margin: 0; text-align: end; white-space: nowrap; }
.legend dd span { display: block; opacity: 0.75; }
@media (max-width: 1120px) and (min-width: 901px) { html[lang="en"] .main-nav { gap: 18px; } }
@media (max-width: 600px) {
  #header-whatsapp { display: none; }
  .header-actions { gap: 6px; }
  .site-footer { padding-bottom: 150px; }
  .site-header .container { gap: 12px; padding: 0 16px; }
  .site-header .brand-en { display: none !important; }
}

/* ---------- כפתור ערכת נושא ---------- */
.theme-toggle svg { transition: transform 0.4s ease; }
.theme-toggle:active svg { transform: rotate(25deg); }

@media (max-width: 600px) {
  .fab { width: 48px; height: 48px; }
  .fab svg { width: 21px; height: 21px; }
  .fab-stack { bottom: 16px; inset-inline-end: 16px; }
}

/* =========================================================================
   נגישות
   ========================================================================= */
:focus-visible { outline: 3px solid var(--focus, #1c5fb8); outline-offset: 3px; border-radius: 3px; }
.hero :focus-visible, .contact-side :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { --focus: #fff; }
[data-theme="evening"] { --focus: #9fd0ff; }
.g-item:focus-visible, .unit-card .thumb:focus-visible { outline-offset: -4px; --focus: #1c5fb8; box-shadow: inset 0 0 0 6px #fff; }
main:focus { outline: none; }
#contact .blob-wood { opacity: 0.16; }

.location-map iframe:focus { outline: 4px solid var(--focus, #1c5fb8); outline-offset: -4px; }

/* טקסט מוגדל: ההדר עובר לתפריט נפתח, והסליידר לא מכסה את הכותרת */
.a11y-large .site-header .brand-en { display: none !important; }
@media (max-width: 1180px) {
  .a11y-large .main-nav { display: none; }
  .a11y-large .nav-toggle { display: inline-flex; }
  .a11y-large .main-nav.open { display: flex; position: absolute; top: var(--header-h); inset-inline: 0; flex-direction: column; gap: 18px; padding: 20px 24px 28px; background: var(--bg); box-shadow: var(--shadow-soft); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
}
@media (max-width: 760px) { .a11y-large .hero-compare, .a11y-large .hero-compare-evening { display: none; } }

.skip-link { position: fixed; top: -80px; inset-inline-start: 16px; z-index: 1000; padding: 12px 22px; border-radius: 0 0 10px 10px; background: #000; color: #fff; font-weight: 700; }
.skip-link:focus { top: 0; }

.motion-toggle { position: absolute; bottom: 74px; inset-inline-end: 24px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 999px; background: rgba(40, 27, 19, 0.72); color: #fff; font: inherit; font-size: 0.88rem; font-weight: 500; cursor: pointer; }
.motion-toggle svg { width: 16px; height: 16px; }
.motion-toggle[hidden] { display: none; }

.a11y { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 400; }
.a11y-button { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #1c4f8f; color: #fff; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5); }
.a11y-button svg { width: 30px; height: 30px; }
.a11y-panel { position: absolute; bottom: 66px; inset-inline-start: 0; width: min(300px, calc(100vw - 48px)); max-height: calc(100vh - 110px); overflow-y: auto; padding: 18px; border: 1px solid #6b7280; border-radius: 14px; background: #fff; color: #111; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5); font-size: 1rem; }
.a11y-panel[hidden] { display: none; }
.a11y-panel button { font: inherit; color: inherit; cursor: pointer; border: 1px solid #6b7280; border-radius: 10px; background: #fff; min-height: 44px; }
.a11y-panel button:hover { background: #eef3fa; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 1.1rem; }
.a11y-head button { width: 44px; }
.a11y-size { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-bottom: 10px; }
.a11y-size output { min-width: 52px; text-align: center; font-weight: 700; }
.a11y-panel .a11y-toggle, .a11y-panel .a11y-reset { display: block; width: 100%; margin-bottom: 8px; padding: 8px 14px; text-align: start; }
.a11y-panel .a11y-toggle[aria-pressed="true"] { background: #1c4f8f; border-color: #1c4f8f; color: #fff; }
.a11y-panel .a11y-toggle[aria-pressed="true"]::after { content: "✓"; float: inline-end; font-weight: 700; }
.a11y-panel .a11y-reset { text-align: center; }
.a11y-panel a { display: block; padding: 8px; text-align: center; color: #1c4f8f; text-decoration: underline; }
@media (max-width: 600px) { .a11y { bottom: 16px; inset-inline-start: 16px; } .a11y-button { width: 48px; height: 48px; } .a11y-panel { bottom: 58px; width: min(300px, calc(100vw - 32px)); } }

.a11y-calm { scroll-behavior: auto; }
.a11y-calm *, .a11y-calm *::before, .a11y-calm *::after { animation: none !important; transition: none !important; }
.a11y-calm .hero-logo-mark path { stroke-dashoffset: 0; }
.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 2px !important; }
.a11y-font *:not(svg):not(path) { font-family: Arial, "Segoe UI", sans-serif !important; letter-spacing: normal !important; }
.a11y-font body { font-weight: 400; }

html.a11y-contrast { --bg: #fff; --bg-alt: #fff; --ink: #000; --accent: #5a2f0c; --accent-dark: #3b1d05; --accent-text: #4a2506; --header-bg: #fff; --glass-bg: #fff; --glass-bg-strong: #fff; --stat-bg: #fff; --glass-border: #000; --input-bg: #fff; --input-border: #000; --focus: #0b3fa8; }
.a11y-contrast body { background: #fff; font-weight: 400; }
.a11y-contrast .blob, .a11y-contrast .mountain-bg, .a11y-contrast .footer-mountain { display: none; }
.a11y-contrast .section-alt { border-block: 1px solid #000; }
.a11y-contrast .hero::after { background: rgba(0, 0, 0, 0.72); }
.a11y-contrast .site-header { border-bottom: 2px solid #000; }
.a11y-contrast .logo-day { display: block !important; }
.a11y-contrast .logo-evening { display: none !important; }
.a11y-contrast .contact-side, .a11y-contrast .site-footer { background: #000; color: #fff; }
.a11y-contrast .contact-links a { border: 1px solid #fff; background: #000; }
.a11y-contrast .footer-credit, .a11y-contrast .credit-services, .a11y-contrast .footer-col a { color: #fff; }
.a11y-contrast .btn-primary, .a11y-contrast .building-tab.active, .a11y-contrast .building-tab:hover { color: #fff; }
.a11y-contrast .icon-btn, .a11y-contrast .nav-toggle, .a11y-contrast .highlight-icon { border: 1px solid #000; }
.a11y-contrast :is(.main-nav a, .section-head p, .highlight-card p, .stat-label, .unit-card .rooms, .legend dd span, .footer-tagline, .footer-col a, .footer-bottom, .role) { opacity: 1; }
.a11y-contrast .field-error, .a11y-contrast .form-status.err { color: #8a0f00; }

/* ---------- דפי מידע ---------- */
.legal-main { max-width: 820px; margin: 0 auto; padding: 56px 24px 96px; }
.legal-main h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.legal-main h2 { font-size: 1.35rem; margin: 2em 0 0.4em; }
.legal-main ul { margin: 0 0 1em; padding-inline-start: 1.3em; }
.legal-main li { margin-bottom: 0.4em; }
.legal-main a { text-decoration: underline; text-underline-offset: 3px; }
.legal-main mark { background: #ffe08a; color: #3a2a1f; padding: 1px 6px; border-radius: 4px; }
.legal-draft { padding: 14px 18px; border: 2px solid #9a6233; border-radius: 10px; font-weight: 500; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.legal-links a { text-decoration: underline; text-underline-offset: 3px; }
