/* ============================================================
   נעם אהרון — בית הנדל"ן · חדרה
   Personal-brand design: white / vivid green / black (from logo),
   portrait hero, sticky story, editorial listing rows, deal ledger.
   ============================================================ */

:root {
  --green: #4fae3d;
  --green-2: #3c8f2e;
  --green-soft: #e9f5e5;
  --black: #141614;
  --ink: #1d201d;
  --ink-soft: #5a615a;
  --white: #ffffff;
  --off: #f7f9f6;
  --line: #e3e8e1;
  --r: 16px;
  --r-lg: 26px;
  --shadow: 0 18px 50px -20px rgb(20 22 20 / .25);
  --font: 'Rubik', 'Segoe UI', sans-serif;
}

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

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

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

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

section { scroll-margin-top: 90px; position: relative; }

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

h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: var(--black); }

h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin-bottom: .5rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--green-2);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--green); }
.eyebrow.light { color: var(--green); }

.sec-head { margin-bottom: 2.4rem; }
.sec-sub { color: var(--ink-soft); font-size: 1.08rem; max-width: 52ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.9rem;
  border-radius: 14px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.btn-green { background: var(--green); color: #fff; box-shadow: 0 12px 30px -12px rgb(79 174 61 / .7); }
.btn-green:hover { background: var(--green-2); }

.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #2a2e2a; }

.btn-white { background: #fff; color: var(--green-2); }
.btn-white:hover { box-shadow: 0 12px 34px -12px rgb(0 0 0 / .4); }

.btn-sm { padding: .55rem 1.2rem; font-size: .95rem; }

/* ---------- Header ---------- */
.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: .6rem 0;
}
.site-header.solid { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.6rem; }

.brand { display: flex; align-items: center; gap: .65rem; color: var(--black); text-decoration: none; }
.brand-logo { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-weight: 800; font-size: 1.2rem; }
.brand-text small { font-size: .72rem; color: var(--ink-soft); letter-spacing: .06em; }

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

/* ---------- Hero ---------- */
.hero {
  padding: clamp(7rem, 14vh, 9.5rem) 0 4.5rem;
  background:
    radial-gradient(700px 340px at 12% 8%, var(--green-soft) 0%, transparent 60%),
    var(--white);
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  font-weight: 900;
  margin-bottom: 1.2rem;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 47ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.9rem;
  margin-top: 2.4rem;
  list-style: none;
  font-size: .97rem;
  color: var(--ink-soft);
  border-top: 1.5px solid var(--line);
  padding-top: 1.3rem;
}
.hero-trust li { display: flex; align-items: center; gap: .45rem; }
.hero-trust li::before { content: '✓'; color: var(--green); font-weight: 900; }
.hero-trust b { color: var(--black); font-weight: 800; }

.hero-photo { position: relative; justify-self: center; }
.photo-frame {
  width: min(400px, 78vw);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  border: 4px solid rgb(79 174 61 / .0);
  pointer-events: none;
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 22px -18px -18px 22px;
  border-radius: var(--r-lg);
  background: var(--green);
  z-index: -1;
  opacity: .9;
}
.photo-frame img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.photo-badge {
  position: absolute;
  bottom: 20px;
  inset-inline-start: -14px;
  background: var(--black);
  color: #fff;
  border-radius: 14px;
  padding: .75rem 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.photo-badge strong { font-weight: 800; }
.photo-badge span { font-size: .8rem; opacity: .8; }

/* hero entrance — pure CSS */
.hero-line { opacity: 0; animation: rise .85s cubic-bezier(.22, .9, .32, 1) forwards; }
.hero-copy .hero-line:nth-child(1) { animation-delay: .08s; }
.hero-copy .hero-line:nth-child(2) { animation-delay: .2s; }
.hero-copy .hero-line:nth-child(3) { animation-delay: .34s; }
.hero-copy .hero-line:nth-child(4) { animation-delay: .48s; }
.hero-copy .hero-line:nth-child(5) { animation-delay: .6s; }
.hero-photo.hero-line { animation-delay: .35s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Story: sticky scrollytelling ---------- */
.story { background: var(--off); padding: 5.5rem 0; }
.story-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.story-sticky {
  position: sticky;
  top: 120px;
}
.story-num {
  font-size: clamp(6rem, 14vw, 11rem);
  font-weight: 900;
  line-height: 1;
  color: var(--green);
  transition: opacity .3s ease;
}
.story-sticky-label {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--black);
  margin-top: .6rem;
}
.story-chapters { display: grid; gap: clamp(4rem, 12vh, 7rem); padding-block: 2rem 4rem; }
.chapter {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3.4vw, 2.6rem);
  box-shadow: 0 10px 34px -22px rgb(20 22 20 / .25);
}
.chapter h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .6rem; }
.chapter h3::before { content: '— '; color: var(--green); }
.chapter p { color: var(--ink-soft); font-size: 1.06rem; max-width: 54ch; }

/* ---------- Listings: editorial rows ---------- */
.listings { padding: 6rem 0 4.5rem; }
.rows { border-top: 2px solid var(--black); }
.row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.35rem .4rem;
  border-bottom: 1.5px solid var(--line);
  text-decoration: none;
  color: var(--black);
  transition: background-color .2s ease, padding .25s ease;
  cursor: pointer;
}
.row:hover { background: var(--green-soft); padding-inline-start: 1.1rem; }
.row-place { display: flex; flex-direction: column; }
.row-place b { font-weight: 800; font-size: clamp(1.1rem, 2.2vw, 1.5rem); }
.row-place i { font-style: normal; color: var(--ink-soft); font-size: .95rem; }
.row-price { font-weight: 900; font-size: clamp(1.05rem, 2vw, 1.4rem); color: var(--green-2); white-space: nowrap; }
.row-arrow { font-size: 1.4rem; font-weight: 900; color: var(--black); opacity: 0; transform: translateX(8px); transition: opacity .2s ease, transform .2s ease; }
.row:hover .row-arrow { opacity: 1; transform: none; }

.row-float {
  position: fixed;
  width: 300px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 24px 60px -18px rgb(20 22 20 / .45);
  pointer-events: none;
  opacity: 0;
  z-index: 40;
  transition: opacity .18s ease;
  transform: translate(-50%, -110%) rotate(2.5deg);
}
.row-float.on { opacity: 1; }
@media (pointer: coarse) { .row-float { display: none; } }

.rows-more {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Deals ledger ---------- */
.deals { background: var(--black); color: #fff; padding: 5.5rem 0; }
.deals h2 { color: #fff; }
.deals .sec-sub { color: rgb(255 255 255 / .65); }
.ledger { list-style: none; border-top: 1.5px solid rgb(255 255 255 / .18); }
.deal {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1.4rem;
  align-items: center;
  padding: 1.05rem .3rem;
  border-bottom: 1.5px solid rgb(255 255 255 / .12);
  font-size: .98rem;
}
.deal-date {
  font-weight: 800;
  color: var(--black);
  background: var(--green);
  border-radius: 8px;
  padding: .15rem .6rem;
  font-size: .85rem;
}
.deal-place { color: rgb(255 255 255 / .88); }
.deal-side { color: rgb(255 255 255 / .5); font-size: .85rem; white-space: nowrap; }
.deal-price { font-weight: 900; color: var(--green); white-space: nowrap; }
.ledger-note { margin-top: 1.4rem; font-size: .85rem; color: rgb(255 255 255 / .45); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(115deg, var(--green) 0%, var(--green-2) 100%); color: #fff; padding: 3.6rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.cta-band p { opacity: .95; max-width: 50ch; }

/* ---------- Areas ---------- */
.areas { padding: 5rem 0; background: var(--white); }
.area-tags { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.area-tags span {
  border: 2px solid var(--black);
  border-radius: 12px;
  padding: .45rem 1.1rem;
  font-weight: 700;
  font-size: .95rem;
}

/* ---------- Contact ---------- */
.contact { background: var(--off); padding: 5.5rem 0; }
.contact-grid { 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.5rem 0 1.9rem; }
.contact-list li { display: grid; gap: .05rem; }
.contact-list strong { color: var(--green-2); font-size: .8rem; letter-spacing: .1em; }
.contact-list span { font-weight: 600; }
.contact-list a { color: var(--black); font-weight: 800; text-decoration: none; font-size: 1.12rem; }
.contact-list a:hover { color: var(--green-2); }
.brand-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem 1.6rem;
  width: min(230px, 100%);
  margin-top: 2rem;
}
.contact-map { border-radius: var(--r-lg); overflow: hidden; min-height: 420px; border: 1.5px solid var(--line); }
.contact-map iframe { width: 100%; height: 100%; border: 0; min-height: 420px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgb(255 255 255 / .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 { color: #fff; font-weight: 800; }
.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(--green); }
.footer-legal { width: 100%; font-size: .8rem; opacity: .7; }

/* ---------- Mobile call bar ---------- */
.mobile-bar {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 55;
  display: none;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.mobile-bar.visible { transform: translateY(0); }
.mobile-bar a {
  padding: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  color: #fff;
  background: var(--green);
}
.mobile-bar svg { width: 1.15em; height: 1.15em; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-photo { order: -1; }
  .story-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .story-sticky { position: static; display: flex; align-items: baseline; gap: 1rem; }
  .story-num { font-size: 4rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.4rem; }
}

@media (max-width: 640px) {
  .btn-sm { display: none; }
  .mobile-bar { display: block; }
  .row { grid-template-columns: 1fr auto; }
  .row-arrow { display: none; }
  .deal { grid-template-columns: auto 1fr; grid-template-rows: auto auto; }
  .deal-side { grid-column: 2; }
  .deal-price { grid-column: 1 / -1; justify-self: end; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
