/* ============================================================
   יעדים נכסים ונדל"ן — כרמיאל
   Palette: pine green / warm stone / brass
   Type: Frank Ruhl Libre (display) + Assistant (body)
   ============================================================ */

:root {
  --pine: #16342c;
  --pine-2: #0e241e;
  --moss: #3e5f51;
  --stone: #f0ede5;
  --sand: #e5dfd0;
  --brass: #b98c3f;
  --brass-2: #d8b269;
  --ink: #1f2723;
  --ink-soft: #4c574f;
  --cream: #f6f3ea;
  --wa: #22c15e;
  --radius: 14px;
  --shadow: 0 18px 50px -18px rgb(14 36 30 / .35);
  --font-display: 'Frank Ruhl Libre', 'Times New Roman', serif;
  --font-body: 'Assistant', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

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

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }

h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); color: var(--pine); margin-bottom: .5rem; }

/* split-word animation targets */
[data-split] .sw, .statement-text .sw { display: inline-block; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brass), var(--brass-2));
  transform: scaleX(0);
  transform-origin: right center;
  z-index: 70;
  pointer-events: none;
}

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

.eyebrow {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--brass);
  text-transform: none;
  margin-bottom: .8rem;
}
.eyebrow.light { color: var(--brass-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }

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

.btn-ghost { background: transparent; color: var(--cream); border-color: rgb(246 243 234 / .55); }
.btn-ghost:hover { background: rgb(246 243 234 / .12); }

.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: #a67a30; }

.btn-outline { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-outline:hover { background: var(--pine); color: var(--cream); }

.btn-phone { background: transparent; color: inherit; border-color: currentColor; padding: .5rem 1.1rem; font-size: .95rem; }
.btn-phone svg { width: 1.05em; height: 1.05em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  color: var(--cream);
  padding: .9rem 0;
  transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.solid {
  background: var(--pine-2);
  box-shadow: 0 6px 24px -12px rgb(0 0 0 / .5);
  padding: .55rem 0;
}
.header-inner { display: flex; align-items: center; gap: 2rem; }

.brand { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; color: var(--brass-2); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.brand-text small { font-size: .72rem; letter-spacing: .12em; opacity: .85; }

.main-nav { display: flex; gap: 1.4rem; margin-inline-start: auto; }
.main-nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
  opacity: .92;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, opacity .2s ease;
}
.main-nav a:hover { opacity: 1; border-bottom-color: var(--brass-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--cream);
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -8%;
  background: url('../img/karmiel-panorama.jpg') center 62% / cover no-repeat;
  z-index: -2;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(200deg, rgb(14 36 30 / .28) 0%, rgb(14 36 30 / .55) 55%, rgb(14 36 30 / .92) 100%);
}
.hero-content { padding: 9rem 0 7rem; max-width: 720px; }
.hero h1 {
  font-size: clamp(2.8rem, 7.2vw, 5.4rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--brass-2); }
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.3rem); opacity: .95; max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  margin-top: 2.6rem;
  list-style: none;
  font-size: .95rem;
  opacity: .92;
}
.hero-trust li { display: flex; align-items: center; gap: .45rem; }
.hero-trust li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brass-2);
  flex: none;
}
.hero-trust li span { font-weight: 700; color: var(--brass-2); }

.scroll-cue {
  position: absolute;
  bottom: 26px;
  inset-inline-start: 50%;
  translate: -50% 0;
  width: 26px; height: 42px;
  border: 2px solid rgb(246 243 234 / .6);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
[dir="rtl"] .scroll-cue { translate: 50% 0; }
.scroll-cue span {
  width: 4px; height: 9px;
  border-radius: 999px;
  background: var(--brass-2);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: .2; }
}

/* ---------- Pillars ---------- */
.pillars { background: var(--pine); color: var(--cream); padding: 3.6rem 0; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem;
}
.pillar h3 {
  font-size: 1.15rem;
  color: var(--brass-2);
  margin-bottom: .4rem;
  padding-top: .9rem;
  border-top: 2px solid var(--brass);
}
.pillar p { font-size: .95rem; opacity: .88; }

/* ---------- Statement (scroll word-fill) ---------- */
.statement { padding: clamp(6rem, 14vh, 10rem) 0; background: var(--stone); }
.statement-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.4vw, 4.4rem);
  line-height: 1.3;
  color: var(--pine);
  max-width: 22ch;
}
.statement-text .sw { opacity: .13; }

/* ---------- Listings ---------- */
.listings { padding: 6rem 0 4.5rem; overflow: hidden; }
.listings-head { margin-bottom: 2.6rem; }
.rail-wrap { position: relative; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
@media (min-width: 1021px) {
  .listings { padding: 3.5rem 0 2.5rem; }
  .listings-head { margin-bottom: 1.6rem; }
  .cards.rail {
    display: flex;
    width: max-content;
    gap: 1.6rem;
    padding-inline-start: max(4vw, calc((100vw - 1160px) / 2));
    padding-inline-end: 6vw;
  }
  .cards.rail .card { flex: 0 0 375px; width: 375px; }
}
@media (max-width: 1020px) {
  .rail-wrap { width: min(1160px, 92%); margin-inline: auto; }
}

.card-final { background: linear-gradient(165deg, var(--pine) 0%, var(--pine-2) 100%); }
.card-final-inner {
  padding: 2.6rem 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  margin: auto 0;
}
.card-final h3 { font-family: var(--font-display); font-size: 2rem; line-height: 1.2; color: var(--cream); }
.card-final p { color: rgb(246 243 234 / .8); }
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 34px -18px rgb(14 36 30 / .28);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.card:hover .card-media img { transform: scale(1.06); }
.card-tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: rgb(14 36 30 / .82);
  color: var(--cream);
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-price {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--pine);
}
.card-body h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; color: var(--ink-soft); margin: .15rem 0 .8rem; }
.card-specs, .card-perks { list-style: none; display: flex; flex-wrap: wrap; }
.card-specs { gap: .4rem 1.1rem; font-weight: 700; font-size: .95rem; color: var(--ink); }
.card-specs li + li { position: relative; padding-inline-start: 1.1rem; }
.card-specs li + li::before {
  content: '·';
  position: absolute;
  inset-inline-start: .25rem;
  color: var(--brass);
  font-weight: 900;
}
.card-perks { gap: .45rem; margin-top: .8rem; }
.card-perks li {
  font-size: .8rem;
  background: var(--stone);
  color: var(--ink-soft);
  padding: .22rem .7rem;
  border-radius: 999px;
}
.card-cta {
  margin-top: auto;
  padding-top: 1.1rem;
  font-weight: 700;
  color: var(--pine);
  text-decoration: none;
  transition: color .2s ease;
}
.card-cta:hover { color: var(--brass); }

.listings-tail { padding: 1rem 0 4.5rem; }
.listings-more {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ---------- Valuation (lead magnet) ---------- */
.valuation {
  background:
    radial-gradient(900px 420px at 12% -10%, rgb(184 140 63 / .18), transparent 60%),
    linear-gradient(160deg, var(--pine) 0%, var(--pine-2) 100%);
  color: var(--cream);
  padding: 5.5rem 0;
}
.valuation-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4rem;
  align-items: center;
}
.valuation h2 { color: var(--cream); }
.valuation h2 em { font-style: normal; color: var(--brass-2); }
.valuation-copy p { opacity: .92; max-width: 50ch; }
.valuation-points { list-style: none; margin-top: 1.4rem; display: grid; gap: .6rem; }
.valuation-points li { display: flex; gap: .6rem; align-items: baseline; font-weight: 600; }
.valuation-points li::before { content: '✓'; color: var(--brass-2); font-weight: 900; }

.valuation-form {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 2rem 2.1rem 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.valuation-form h3 { font-size: 1.4rem; color: var(--pine); margin-bottom: .8rem; }
.valuation-form label { font-weight: 700; font-size: .9rem; margin-top: .6rem; }
.valuation-form input,
.valuation-form select {
  font: inherit;
  padding: .7rem .9rem;
  border: 1.5px solid #cfc9b8;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
.valuation-form input::placeholder { color: #a8a08d; }
.valuation-form .btn { margin-top: 1.2rem; justify-content: center; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: .8rem; text-align: center; }
.form-note a { color: var(--pine); font-weight: 700; }

/* ---------- Journey (signature) ---------- */
.journey { padding: 6rem 0; background: var(--sand); }
.journey-track { position: relative; max-width: 640px; margin-inline: auto; margin-top: 3rem; }
.jdot {
  position: absolute;
  inset-inline-start: 15px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brass-2);
  box-shadow: 0 0 0 5px rgb(185 140 63 / .22), 0 0 18px rgb(216 178 105 / .8);
  z-index: 2;
  will-change: top;
}
.journey-svg {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 21px;
  width: 4px;
  height: 100%;
  color: var(--brass);
}
.journey-steps { list-style: none; display: grid; gap: 3.2rem; }
.jstep {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  opacity: .45;
  transition: opacity .5s ease;
}
.jstep.active { opacity: 1; }
.jnum {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brass);
  background: var(--stone);
  border: 2px solid var(--brass);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  position: relative;
  z-index: 1;
  transition: background-color .4s ease, color .4s ease;
}
.jstep.active .jnum { background: var(--pine); color: var(--brass-2); border-color: var(--pine); }
.jstep h3 { font-size: 1.3rem; color: var(--pine); margin-bottom: .3rem; }
.jstep p { color: var(--ink-soft); max-width: 46ch; }

/* ---------- Panorama band ---------- */
.band {
  position: relative;
  height: 46vh;
  min-height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.band-bg {
  position: absolute;
  inset: -18% 0;
  background: url('../img/karmiel-band.jpg') center 40% / cover no-repeat;
  z-index: -1;
}
.band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(14 36 30 / .48);
  z-index: -1;
}
.band-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 500;
  color: var(--cream);
  max-width: 24ch;
}

/* ---------- About ---------- */
.about { padding: 6rem 0; }
.about-inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow);
}
.about-badge {
  position: absolute;
  bottom: -18px;
  inset-inline-end: -14px;
  background: var(--pine);
  color: var(--cream);
  border-radius: 12px;
  padding: .9rem 1.3rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.about-badge strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--brass-2); }
.about-badge 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.2rem 0 1.8rem; }
.about-values span {
  border: 1.5px solid var(--brass);
  color: var(--pine);
  font-weight: 700;
  font-size: .9rem;
  padding: .35rem 1rem;
  border-radius: 999px;
}

/* ---------- Testimonials ---------- */
.testimonials { padding: 5.5rem 0; background: var(--pine-2); color: var(--cream); }
.testimonials h2 { color: var(--cream); margin-bottom: 2.4rem; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.quote {
  background: rgb(246 243 234 / .06);
  border: 1px solid rgb(246 243 234 / .14);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.quote p { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.7; }
.quote footer { font-size: .9rem; color: var(--brass-2); font-weight: 600; }
.quote footer small { display: block; color: rgb(246 243 234 / .45); font-weight: 400; margin-top: .2rem; }

/* ---------- Areas ---------- */
.areas { padding: 5rem 0; text-align: center; }
.areas h2 { margin-bottom: 1.8rem; }
.area-chips { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; max-width: 720px; margin-inline: auto; }
.area-chips span {
  background: #fff;
  border: 1.5px solid var(--sand);
  padding: .5rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--pine);
  box-shadow: 0 4px 14px -8px rgb(14 36 30 / .2);
}

/* ---------- Contact ---------- */
.contact { background: linear-gradient(160deg, var(--pine) 0%, var(--pine-2) 100%); color: var(--cream); padding: 5.5rem 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: stretch; }
.contact h2 { color: var(--cream); margin-bottom: 1.6rem; }
.contact-list { list-style: none; display: grid; gap: 1.1rem; margin-bottom: 2rem; }
.contact-list li { display: grid; gap: .1rem; }
.contact-list strong { color: var(--brass-2); font-size: .85rem; letter-spacing: .08em; }
.contact-list a { color: var(--cream); font-weight: 700; text-decoration: none; font-size: 1.15rem; }
.contact-list a:hover { color: var(--brass-2); }
.contact-ctas { display: flex; gap: .9rem; flex-wrap: wrap; }
.contact-map { border-radius: var(--radius); overflow: hidden; min-height: 380px; box-shadow: var(--shadow); }
.contact-map iframe { width: 100%; height: 100%; border: 0; min-height: 380px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-2); color: rgb(246 243 234 / .75); padding: 2.2rem 0; border-top: 1px solid rgb(246 243 234 / .12); }
.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); color: var(--cream); 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(--brass-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: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px -8px rgb(34 193 94 / .6);
  transition: transform .2s ease;
}
.wa-fab:hover { transform: scale(1.08); }
.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(--pine); }
.mb-wa { background: var(--wa); }

/* ---------- Hero entrance: pure CSS so it can never be clobbered by JS refreshes ---------- */
.hero-line {
  opacity: 0;
  animation: heroIn 1s cubic-bezier(.22, .9, .32, 1) forwards;
}
.hero-content .hero-line:nth-child(1) { animation-delay: .15s; }
.hero-content .hero-line:nth-child(2) { animation-delay: .3s; }
.hero-content .hero-line:nth-child(3) { animation-delay: .48s; }
.hero-content .hero-line:nth-child(4) { animation-delay: .64s; }
.hero-content .hero-line:nth-child(5) { animation-delay: .8s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .valuation-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 2.6rem; }
  .main-nav { display: none; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-content { padding: 7.5rem 0 6rem; }
  .btn-phone { display: none; }
  .mobile-bar { display: grid; }
  .wa-fab { bottom: 78px; left: 14px; width: 52px; height: 52px; }
  .about-badge { inset-inline-end: 8px; }
  body { padding-bottom: 0; }
}

/* ---------- Reduced motion: only continuous/looping effects are disabled ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; }
}
