/* ============================================================
   שפע נכסים — כרמיאל ומשגב · יהודית חזקי
   Editorial split-screen design: airy light, navy/sky/bronze,
   bento listings, sticky-stack process. (Distinct from template A)
   ============================================================ */

:root {
  --navy: #1c3563;
  --navy-2: #122344;
  --sky: #4aa8d8;
  --sky-soft: #e4f1f9;
  --bronze: #9d7150;
  --bronze-2: #c59b74;
  --cloud: #f7f9fc;
  --mist: #e3e9f2;
  --ink: #1d2635;
  --ink-soft: #4d5a6e;
  --white: #ffffff;
  --wa: #22c15e;
  --r: 10px;
  --r-lg: 18px;
  --border: 1.5px solid var(--mist);
  --shadow-soft: 0 10px 40px -18px rgb(18 35 68 / .18);
  --font-display: 'Suez One', 'Arial Hebrew', serif;
  --font-body: 'Assistant', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: clip;
}

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

section { scroll-margin-top: 84px; }

.container { width: min(1200px, 92%); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.25; color: var(--navy); }

h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: .6rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--bronze);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 34px; height: 2px; background: var(--bronze); }
.eyebrow.light { color: var(--bronze-2); }
.eyebrow.light::before { background: var(--bronze-2); }

.section-sub { color: var(--ink-soft); font-size: 1.1rem; max-width: 50ch; margin-bottom: 2.2rem; }

/* ---------- Buttons: squared, editorial ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.7rem;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); box-shadow: var(--shadow-soft); }

.btn-bronze { background: var(--bronze); color: #fff; }
.btn-bronze:hover { background: #86603f; }

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

.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #1daf53; box-shadow: 0 10px 28px -10px rgb(34 193 94 / .5); }

.btn-ghost-l { background: transparent; color: var(--navy); border-color: var(--mist); }
.btn-ghost-l:hover { border-color: var(--navy); }

/* ---------- Header: light bar ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / .92);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid transparent;
  transition: border-color .3s ease;
  padding: .7rem 0;
}
.site-header.solid { border-bottom-color: var(--mist); }
.header-inner { display: flex; align-items: center; gap: 2rem; }

.brand { display: flex; align-items: center; gap: .6rem; color: var(--navy); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; color: var(--sky); }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }
.brand-text small { font-size: .7rem; letter-spacing: .1em; color: var(--ink-soft); }

.main-nav { display: flex; gap: 1.5rem; margin-inline-start: auto; }
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .97rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover { color: var(--navy); border-bottom-color: var(--bronze); }

.btn-phone { background: var(--navy); color: #fff; padding: .55rem 1.15rem; font-size: .95rem; border-radius: var(--r); }
.btn-phone:hover { background: var(--navy-2); }
.btn-phone svg { width: 1.05em; height: 1.05em; }

/* ---------- Split hero ---------- */
.hero2 {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 100svh;
  align-items: stretch;
  background: var(--cloud);
}
.hero2-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(6.5rem, 12vh, 9rem) clamp(1.5rem, 6vw, 5.5rem) 4rem;
}
.hero2 h1 {
  font-size: clamp(2.7rem, 5.6vw, 5rem);
  margin-bottom: 1.3rem;
  text-wrap: balance;
}
.hero2 h1 em { font-style: normal; color: var(--bronze); }
.hero2-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; }
.hero2-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero2-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.8rem;
  margin-top: 2.6rem;
  list-style: none;
  font-size: .95rem;
  color: var(--ink-soft);
  padding-top: 1.4rem;
  border-top: var(--border);
}
.hero2-trust li { display: flex; align-items: center; gap: .45rem; }
.hero2-trust li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); flex: none; }
.hero2-trust strong { color: var(--navy); font-weight: 700; }

.hero2-media { position: relative; overflow: hidden; min-height: 46vh; }
.hero2-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  animation: heroWipe 1.2s cubic-bezier(.65, 0, .35, 1) both;
  will-change: transform;
}
@keyframes heroWipe {
  from { clip-path: inset(0 0 0 100%); }
  to   { clip-path: inset(0 0 0 0); }
}
.hero2-caption {
  position: absolute;
  bottom: 18px;
  inset-inline-start: 18px;
  background: rgb(255 255 255 / .92);
  color: var(--navy);
  font-size: .85rem;
  font-weight: 700;
  padding: .5rem 1rem;
  border-radius: 8px;
  z-index: 2;
}

/* hero copy entrance (pure CSS — never clobbered by JS) */
.hero-line { opacity: 0; animation: lineIn .9s cubic-bezier(.22, .9, .32, 1) forwards; }
.hero2-copy .hero-line:nth-child(1) { animation-delay: .1s; }
.hero2-copy .hero-line:nth-child(2) { animation-delay: .24s; }
.hero2-copy .hero-line:nth-child(3) { animation-delay: .4s; }
.hero2-copy .hero-line:nth-child(4) { animation-delay: .54s; }
.hero2-copy .hero-line:nth-child(5) { animation-delay: .68s; }
@keyframes lineIn {
  from { opacity: 0; transform: translateX(-38px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Marquee strip ---------- */
.marquee {
  background: var(--navy);
  color: var(--cloud);
  overflow: hidden;
  padding: 1rem 0;
  border-block: 3px solid var(--bronze);
}
.marquee-track {
  display: flex;
  gap: 3.2rem;
  width: max-content;
  animation: marq 26s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3.2rem;
}
.marquee span::after { content: '◆'; color: var(--bronze-2); font-size: .7em; }
@keyframes marq { to { transform: translateX(50%); } }

/* ---------- Stats (scrub counters) ---------- */
.stats { padding: 5.5rem 0 4.5rem; background: var(--white); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat { border-inline-start: var(--border); padding-inline-start: 2rem; }
.stat:first-child { border-inline-start: none; padding-inline-start: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--navy);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: .15em;
}
.stat-num small { font-size: .45em; color: var(--bronze); }
.stat-label { color: var(--ink-soft); font-weight: 600; margin-top: .5rem; }

/* ---------- Bento listings ---------- */
.listings { padding: 4.5rem 0 5.5rem; background: var(--cloud); }
.listings-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.listings-head .section-sub { margin-bottom: 0; }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 235px;
  gap: 1.1rem;
}
.tile {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
  cursor: pointer;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .65s ease;
}
.tile:hover img { transform: scale(1.07); }
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(8deg, rgb(10 20 40 / .88) 0%, rgb(10 20 40 / .25) 45%, rgb(10 20 40 / .05) 70%);
}
.tile-feat { grid-column: span 2; grid-row: span 2; }
.tile-info {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.tile-price { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.tile-feat .tile-price { font-size: 2.2rem; }
.tile-name { font-weight: 700; font-size: 1rem; }
.tile-specs { font-size: .88rem; opacity: .85; }
.tile-tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: rgb(255 255 255 / .92);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 700;
  padding: .28rem .8rem;
  border-radius: 7px;
}
.tile-wa {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--wa);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.tile:hover .tile-wa, .tile:focus-visible .tile-wa { opacity: 1; transform: none; }
.tile-wa svg { width: 22px; height: 22px; color: #fff; }

.tile-cta {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bronze) 0%, #86603f 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .6rem;
  padding: 1.8rem;
  border-radius: var(--r-lg);
  color: #fff;
  text-decoration: none;
  transition: box-shadow .25s ease;
  cursor: pointer;
}
.tile-cta:hover { box-shadow: var(--shadow-soft); }
.tile-cta h3 { color: #fff; font-size: 1.7rem; line-height: 1.2; }
.tile-cta p { opacity: .9; }
.tile-cta .fake-btn {
  margin-top: .4rem;
  align-self: flex-start;
  background: #fff;
  color: var(--bronze);
  font-weight: 800;
  padding: .55rem 1.3rem;
  border-radius: var(--r);
}

/* ---------- Sticky-stack process ---------- */
.process { padding: 5.5rem 0 6rem; background: var(--white); }
.process-head { max-width: 620px; margin-bottom: 3rem; }
.stack-cards { display: grid; gap: 1.4rem; }
.scard {
  position: sticky;
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  min-height: 300px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: start;
  box-shadow: 0 -8px 30px -18px rgb(18 35 68 / .3);
}
.scard:nth-child(1) { top: 92px; background: var(--navy); color: var(--cloud); }
.scard:nth-child(2) { top: 116px; background: #24427a; color: var(--cloud); }
.scard:nth-child(3) { top: 140px; background: var(--sky-soft); color: var(--ink); }
.scard:nth-child(4) { top: 164px; background: #efe4d8; color: var(--ink); }
.scard:nth-child(5) { top: 188px; background: var(--navy-2); color: var(--cloud); }
.scard-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--bronze-2);
}
.scard:nth-child(3) .scard-num, .scard:nth-child(4) .scard-num { color: var(--bronze); }
.scard h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .5rem; color: inherit; }
.scard p { max-width: 52ch; opacity: .92; font-size: 1.05rem; }

/* ---------- Quote rotator ---------- */
.quotes2 { background: var(--navy); color: var(--cloud); padding: 5.5rem 0; text-align: center; }
.quotes2 .eyebrow { justify-content: center; }
.quotes2-stat { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); color: #fff; margin-bottom: 2.6rem; }
.quotes2-stat em { font-style: normal; color: var(--bronze-2); }
.rotator { position: relative; max-width: 760px; margin-inline: auto; min-height: 200px; }
.rquote {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.rquote.active { opacity: 1; pointer-events: auto; }
.rquote p { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.7; font-family: var(--font-display); }
.rquote footer { margin-top: 1.2rem; color: var(--bronze-2); font-weight: 600; }
.rquote footer small { display: block; color: rgb(245 247 250 / .45); font-weight: 400; font-size: .78rem; margin-top: .2rem; }
.rdots { display: flex; gap: .55rem; justify-content: center; margin-top: 2rem; }
.rdots button {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: none;
  background: rgb(245 247 250 / .3);
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}
.rdots button.active { background: var(--bronze-2); transform: scale(1.25); }

/* ---------- Valuation band ---------- */
.valuation { padding: 5.5rem 0; background: var(--white); }
.valuation-box {
  border: var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  background: var(--cloud);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.valuation h2 em { font-style: normal; color: var(--bronze); }
.valuation-copy p { color: var(--ink-soft); max-width: 46ch; }
.valuation-points { list-style: none; margin-top: 1.2rem; display: grid; gap: .5rem; }
.valuation-points li { display: flex; gap: .6rem; align-items: baseline; font-weight: 600; }
.valuation-points li::before { content: '✓'; color: var(--sky); font-weight: 900; }

.valuation-form { display: flex; flex-direction: column; gap: .3rem; }
.valuation-form h3 { font-size: 1.35rem; margin-bottom: .7rem; }
.valuation-form label { font-weight: 700; font-size: .9rem; margin-top: .55rem; }
.valuation-form input, .valuation-form select {
  font: inherit;
  padding: .75rem .95rem;
  border: var(--border);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
}
.valuation-form input::placeholder { color: #9aa6b8; }
.valuation-form .btn { margin-top: 1.1rem; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: .7rem; }
.form-note a { color: var(--navy); font-weight: 700; }

/* ---------- About: collage ---------- */
.about { padding: 5.5rem 0 6.5rem; background: var(--cloud); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-collage { position: relative; min-height: 460px; }
.about-collage img {
  position: absolute;
  border-radius: var(--r-lg);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  border: 6px solid #fff;
}
.ac-1 { width: 68%; height: 74%; top: 0; inset-inline-start: 0; }
.ac-2 { width: 52%; height: 56%; bottom: 0; inset-inline-end: 0; }
.about-badge2 {
  position: absolute;
  bottom: 8%;
  inset-inline-start: 4%;
  background: var(--navy);
  color: var(--cloud);
  border-radius: var(--r);
  padding: .9rem 1.4rem;
  z-index: 2;
  box-shadow: var(--shadow-soft);
}
.about-badge2 strong { font-family: var(--font-display); font-weight: 400; color: var(--bronze-2); font-size: 1.15rem; display: block; }
.about-badge2 span { font-size: .82rem; opacity: .9; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 56ch; }
.about-values { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.3rem 0 1.8rem; }
.about-values span {
  background: var(--sky-soft);
  color: var(--navy);
  font-weight: 700;
  font-size: .9rem;
  padding: .38rem 1rem;
  border-radius: var(--r);
}

/* ---------- Areas: inline editorial list ---------- */
.areas { padding: 4.5rem 0; background: var(--white); text-align: center; border-block: var(--border); }
.areas h2 { margin-bottom: 1.4rem; }
.areas-line {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: var(--ink-soft);
  max-width: 900px;
  margin-inline: auto;
  line-height: 2;
}
.areas-line b { color: var(--navy); font-weight: 400; }
.areas-line i { font-style: normal; color: var(--bronze); padding-inline: .55rem; }

/* ---------- Contact ---------- */
.contact { padding: 5.5rem 0; background: var(--cloud); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: stretch; }
.contact-list { list-style: none; display: grid; gap: 1rem; margin: 1.6rem 0 2rem; }
.contact-list li { display: grid; gap: .05rem; }
.contact-list strong { color: var(--bronze); font-size: .82rem; letter-spacing: .08em; }
.contact-list span { font-weight: 600; }
.contact-list a { color: var(--navy); font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.contact-list a:hover { color: var(--sky); }
.contact-ctas { display: flex; gap: .9rem; flex-wrap: wrap; }
.brand-card {
  background: #fff;
  border: var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 1.2rem;
  width: min(280px, 100%);
  margin-top: 2rem;
}
.brand-card img { width: 100%; height: auto; }
.contact-map { border-radius: var(--r-lg); overflow: hidden; min-height: 420px; border: var(--border); }
.contact-map iframe { width: 100%; height: 100%; border: 0; min-height: 420px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); color: rgb(245 247 250 / .75); padding: 2.2rem 0; }
.footer-inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand strong { font-family: var(--font-display); font-weight: 400; color: #fff; font-size: 1.1rem; }
.footer-brand span { font-size: .85rem; }
.footer-nav { display: flex; gap: 1.2rem; margin-inline-start: auto; }
.footer-nav a { color: inherit; text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--bronze-2); }
.footer-legal { width: 100%; font-size: .8rem; opacity: .7; }

/* ---------- Floating WhatsApp + mobile bar ---------- */
.wa-fab {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px -8px rgb(34 193 94 / .55);
  transition: transform .2s ease;
}
.wa-fab:hover { transform: translateY(-3px); }
.wa-fab svg { width: 30px; height: 30px; }

.mobile-bar {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 55;
  display: none;
  grid-template-columns: 1fr 1fr;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.mobile-bar.visible { transform: translateY(0); }
.mobile-bar a {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  color: #fff;
}
.mobile-bar svg { width: 1.1em; height: 1.1em; }
.mb-call { background: var(--navy); }
.mb-wa { background: var(--wa); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .hero2 { grid-template-columns: 1fr; }
  .hero2-media { order: -1; min-height: 42vh; }
  .hero2-media img { height: 120%; }
  .hero2-copy { padding: 2.6rem 6vw 3.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .stat { border-inline-start: none; padding-inline-start: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .tile-feat { grid-column: span 2; grid-row: span 2; }
  .tile-cta { grid-column: span 2; }
  .valuation-box, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .about-collage { min-height: 380px; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .tile-feat { grid-column: span 1; grid-row: span 2; }
  .tile-cta { grid-column: span 1; }
  .btn-phone { display: none; }
  .mobile-bar { display: grid; }
  .wa-fab { bottom: 78px; left: 14px; width: 52px; height: 52px; }
  .scard { grid-template-columns: 1fr; min-height: 0; }
  .scard-num { font-size: 2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .marquee span, .marquee-track { gap: 1.8rem; }
}

/* ---------- Reduced motion: slow the infinite loop ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 60s; }
}
