/* ============================================================
   Dream House — כרמיאל · קבוצת הנדל"ן שמגשימה חלום
   Dark-luxe night design: void black, coral/teal/gold aurora
   (brand colors from their logo), glass, glow, condensed type.
   ============================================================ */

:root {
  --void: #0b0e13;
  --void-2: #10141c;
  --coral: #f0663f;
  --coral-soft: #ff8a5c;
  --teal: #5fb3b3;
  --gold: #f7d074;
  --text: #f4f1ec;
  --dim: #9aa3ae;
  --glass: rgb(255 255 255 / .05);
  --glass-2: rgb(255 255 255 / .08);
  --gborder: 1px solid rgb(255 255 255 / .12);
  --wa: #22c15e;
  --r: 14px;
  --r-lg: 22px;
  --font-display: 'Karantina', 'Arial Hebrew', cursive;
  --font-body: 'Heebo', '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(--text);
  background: var(--void);
  line-height: 1.7;
  overflow-x: clip;
}

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

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

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: .01em; }

h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: .6rem; }

.grad {
  background: linear-gradient(90deg, var(--coral) 0%, var(--gold) 55%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--teal);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--teal); }

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

.stars { color: var(--gold); letter-spacing: .1em; }

/* ---------- Custom cursor (desktop only) ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(240 102 63 / .9) 0%, rgb(240 102 63 / 0) 70%);
  box-shadow: 0 0 24px 6px rgb(240 102 63 / .35);
  pointer-events: none;
  z-index: 100;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, opacity .3s ease;
  opacity: 0;
}
.cursor.on { opacity: 1; }
.cursor.big { width: 54px; height: 54px; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- Aurora blobs + grain ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
  will-change: transform;
}
.blob-a { width: 46vw; height: 46vw; background: #f0663f44; top: -12%; inset-inline-start: -8%; animation: drift 17s ease-in-out infinite alternate; }
.blob-b { width: 38vw; height: 38vw; background: #5fb3b344; bottom: -18%; inset-inline-end: -6%; animation: drift 21s ease-in-out infinite alternate-reverse; }
.blob-c { width: 26vw; height: 26vw; background: #f7d07433; top: 30%; inset-inline-end: 28%; animation: drift 25s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vw, -5vh) scale(1.15); }
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
  will-change: transform;
}
.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: 2.5px solid var(--gold);
  outline-offset: 3px;
}

.btn-coral {
  background: linear-gradient(120deg, var(--coral) 0%, #d94f2b 100%);
  color: #fff;
  box-shadow: 0 8px 34px -10px rgb(240 102 63 / .65);
}
.btn-coral:hover { box-shadow: 0 12px 44px -8px rgb(240 102 63 / .85); }

.btn-ghost { background: var(--glass); color: var(--text); border-color: rgb(255 255 255 / .18); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-line { background: transparent; color: var(--text); border-color: rgb(255 255 255 / .2); padding: .55rem 1.2rem; font-size: .95rem; }
.btn-line:hover { border-color: var(--coral); color: var(--coral-soft); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding: .8rem 0;
  background: transparent;
  transition: background-color .3s ease, backdrop-filter .3s ease;
}
.site-header.solid { background: rgb(11 14 19 / .8); backdrop-filter: blur(12px); border-bottom: var(--gborder); }
.header-inner { display: flex; align-items: center; gap: 2rem; }

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.05; }
.brand-en { font-family: var(--font-display); font-size: 1.7rem; color: var(--text); letter-spacing: .03em; }
.brand-en b { color: var(--coral); font-weight: 700; }
.brand-he { font-size: .68rem; color: var(--dim); letter-spacing: .08em; }

.main-nav { display: flex; gap: 1.5rem; margin-inline-start: auto; }
.main-nav a {
  color: var(--dim);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(1100px 500px at 85% -10%, #16202b 0%, transparent 60%),
    var(--void);
  padding: 7.5rem 0 4rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(4rem, 11vw, 9rem);
  margin-bottom: 1.2rem;
}
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--dim); max-width: 48ch; font-weight: 300; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  margin-top: 2.6rem;
  list-style: none;
  font-size: .95rem;
  color: var(--dim);
}
.hero-trust li { display: flex; align-items: center; gap: .5rem; }

/* floating glass listing card */
.hero-card {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: var(--gborder);
  background: var(--glass);
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .8);
  text-decoration: none;
  color: var(--text);
  transform: rotate(-2.5deg);
  animation: floaty 7s ease-in-out infinite;
  max-width: 460px;
  justify-self: start;
  cursor: pointer;
}
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
.hero-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero-card-info {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  background: rgb(11 14 19 / .78);
  backdrop-filter: blur(10px);
  border: var(--gborder);
  border-radius: 12px;
  padding: .7rem 1.1rem;
  display: flex;
  flex-direction: column;
}
.hero-card-info b { font-weight: 700; }
.hero-card-info i { font-style: normal; color: var(--gold); font-size: .92rem; }

/* hero entrance: pure CSS blur-in */
.hero-line { opacity: 0; animation: dreamIn 1s cubic-bezier(.22, .9, .32, 1) forwards; }
.hero-copy .hero-line:nth-child(1) { animation-delay: .1s; }
.hero-copy .hero-line:nth-child(2) { animation-delay: .22s; }
.hero-copy .hero-line:nth-child(3) { animation-delay: .38s; }
.hero-copy .hero-line:nth-child(4) { animation-delay: .52s; }
.hero-copy .hero-line:nth-child(5) { animation-delay: .66s; }
.hero-card.hero-line { animation-delay: .8s; }
@keyframes dreamIn {
  from { opacity: 0; transform: translateY(26px); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* ---------- Services: expanding panels ---------- */
.services { padding: 6rem 0; background: var(--void-2); }
.panels { display: flex; gap: 1rem; margin-top: 2.2rem; }
.panel {
  flex: 1;
  min-height: 300px;
  background: var(--glass);
  border: var(--gborder);
  border-radius: var(--r-lg);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .6rem;
  transition: flex .55s cubic-bezier(.5, 0, .2, 1), background-color .4s ease, border-color .4s ease;
  cursor: pointer;
  overflow: hidden;
}
.panel svg { width: 34px; height: 34px; color: var(--teal); margin-bottom: auto; }
.panel h3 { font-size: 2rem; color: var(--text); }
.panel p {
  color: var(--dim);
  font-size: .98rem;
  max-height: 0;
  opacity: 0;
  transition: max-height .55s ease, opacity .45s ease .1s;
}
.panel:hover, .panel:focus-visible {
  flex: 2.4;
  background: var(--glass-2);
  border-color: rgb(240 102 63 / .5);
}
.panel:hover p, .panel:focus-visible p { max-height: 200px; opacity: 1; }
.panel:hover svg, .panel:focus-visible svg { color: var(--coral-soft); }

/* ---------- Listings: snap carousel ---------- */
.listings { padding: 6rem 0 5rem; overflow: clip; }
.listings-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.car-nav { display: flex; gap: .6rem; }
.car-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: var(--gborder);
  background: var(--glass);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.car-btn:hover { border-color: var(--coral); color: var(--coral-soft); }
.car-btn svg { width: 22px; height: 22px; }

.carousel {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .5rem max(4vw, calc((100vw - 1200px) / 2)) 1.5rem;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.lcard {
  flex: 0 0 380px;
  scroll-snap-align: start;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--glass);
  border: var(--gborder);
  text-decoration: none;
  color: var(--text);
  position: relative;
  transition: border-color .3s ease, box-shadow .3s ease;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
}
.lcard:hover { border-color: rgb(247 208 116 / .55); box-shadow: 0 24px 60px -24px rgb(240 102 63 / .35); }
.lcard img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.lcard-body {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.3rem 1.3rem;
}
.lcard-body b { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--gold); line-height: 1; }
.lcard-body span { color: var(--dim); font-size: .95rem; margin-top: .3rem; }
.lcard-tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: linear-gradient(120deg, var(--coral), #d94f2b);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .85rem;
  border-radius: 999px;
}
.lcard-more {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgb(95 179 179 / .14), rgb(240 102 63 / .12));
  text-align: center;
}
.lcard-more-inner { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 2rem; }
.lcard-more-inner b { font-family: var(--font-display); font-size: 4rem; color: var(--teal); line-height: 1; }
.lcard-more-inner span { color: var(--text); font-weight: 500; }
.lcard-more-inner i { font-style: normal; color: var(--gold); font-weight: 700; margin-top: .8rem; }

/* ---------- Team ---------- */
.team { padding: 5.5rem 0; background: var(--void-2); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.tm {
  background: var(--glass);
  border: var(--gborder);
  border-radius: var(--r);
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  transition: border-color .25s ease, transform .25s ease;
}
.tm:hover { border-color: rgb(95 179 179 / .5); transform: translateY(-4px); }
.tm-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: #fff;
  background: linear-gradient(135deg, var(--coral) 0%, var(--teal) 100%);
  margin-bottom: .7rem;
}
.tm b { font-weight: 700; }
.tm i { font-style: normal; color: var(--dim); font-size: .85rem; }

/* ---------- Valuation glass panel ---------- */
.valuation { padding: 6rem 0; }
.glass-panel {
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
  background:
    linear-gradient(var(--void-2), var(--void-2)) padding-box,
    linear-gradient(135deg, var(--coral) 0%, var(--gold) 50%, var(--teal) 100%) border-box;
  border: 1.5px solid transparent;
}
.valuation-copy p { color: var(--dim); max-width: 46ch; }
.stars-line { margin-top: 1.4rem; color: var(--text) !important; font-weight: 500; }

.valuation-form { display: flex; flex-direction: column; gap: .3rem; }
.valuation-form label { font-weight: 500; font-size: .9rem; margin-top: .6rem; color: var(--dim); }
.valuation-form input, .valuation-form select {
  font: inherit;
  color: var(--text);
  padding: .8rem 1rem;
  border: var(--gborder);
  border-radius: var(--r);
  background: rgb(255 255 255 / .04);
}
.valuation-form input::placeholder { color: #5c6672; }
.valuation-form select option { background: var(--void-2); color: var(--text); }
.valuation-form .btn { margin-top: 1.2rem; }
.form-note { font-size: .82rem; color: var(--dim); margin-top: .7rem; }
.form-note a { color: var(--gold); font-weight: 700; text-decoration: none; }

/* ---------- Contact ---------- */
.contact { padding: 5.5rem 0; background: var(--void-2); }
.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(--teal); font-size: .8rem; letter-spacing: .12em; }
.contact-list span { font-weight: 500; }
.contact-list a { color: var(--gold); font-weight: 700; text-decoration: none; font-size: 1.15rem; }
.contact-ctas { display: flex; gap: .9rem; flex-wrap: wrap; }
.brand-card {
  background: #000;
  border: var(--gborder);
  border-radius: var(--r-lg);
  overflow: hidden;
  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(--gborder);
}
.contact-map iframe {
  width: 100%; height: 100%;
  border: 0;
  min-height: 420px;
  filter: invert(88%) hue-rotate(185deg) saturate(.6) brightness(.9);
}

/* ---------- Footer ---------- */
.site-footer { background: #070a0f; color: var(--dim); padding: 2.2rem 0; border-top: var(--gborder); }
.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-size: 1.3rem; color: var(--text); }
.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(--gold); }
.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 0 0 6px rgb(34 193 94 / .15), 0 12px 30px -8px rgb(34 193 94 / .55);
  transition: box-shadow .25s ease;
}
.wa-fab:hover { box-shadow: 0 0 0 10px rgb(34 193 94 / .2), 0 12px 34px -6px rgb(34 193 94 / .7); }
.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: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: #fff;
}
.mobile-bar svg { width: 1.1em; height: 1.1em; }
.mb-call { background: linear-gradient(120deg, var(--coral), #d94f2b); }
.mb-wa { background: var(--wa); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 3.4rem; }
  .hero-card { justify-self: center; transform: rotate(-1.5deg); }
  .panels { flex-direction: column; }
  .panel { min-height: 0; }
  .panel p { max-height: none; opacity: 1; }
  .panel svg { margin-bottom: .6rem; }
  .glass-panel, .contact-inner { grid-template-columns: 1fr; gap: 2.4rem; }
}

@media (max-width: 640px) {
  .btn-line { display: none; }
  .mobile-bar { display: grid; }
  .wa-fab { bottom: 78px; left: 14px; width: 52px; height: 52px; }
  .lcard { flex-basis: 300px; }
  .hero { padding-top: 6.5rem; }
  .hero h1 { font-size: clamp(3.4rem, 16vw, 5.2rem); }
  .carousel { padding-inline: 4vw; }
}

/* ---------- Reduced motion: stop infinite loops only ---------- */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  .hero-card { animation-iteration-count: 1; }
}
