/* =========================================================
   אלקטרה Lifestyle | פארק אפעל צפון – נובמבר סייל 2026
   ========================================================= */


:root {
  --navy: #00202c;
  --ink: #374a55;
  --rule: #6d8593;
  --gold-1: #a2653a;
  --gold-2: #dba36d;
  --gold-grad: linear-gradient(to right, var(--gold-1) 0%, #c48a56 55%, var(--gold-2) 100%);
  --btn-grad: linear-gradient(100deg, #e2b482 0%, #c88a55 45%, #a9693d 100%);
  --col: clamp(450px, 31vw, 640px);
  --font: "Almoni", "Assistant", "Heebo", Arial, sans-serif;
  --font-tzar: "Almoni Tzar", "Almoni", "Heebo", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #ececec url("../img/bg-concrete.webp") center top / cover fixed;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);  }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout (desktop) ----------
   RTL grid: first column (hero) is on the right, content on the left – as in the design. */
.lp {
  display: grid;
  grid-template-columns: 1fr var(--col);
  min-height: 100vh;
}

/* ---------- Hero ---------- */
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  border-radius: 48px 0 0 48px;           /* physical: top-left / bottom-left */
  container-type: size;
  background: #4b80b6;
}
.hero::after {                              /* darkening corner behind the legal line */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 45% at 100% 100%, rgba(18, 40, 66, .78), rgba(18, 40, 66, 0) 100%);
  pointer-events: none;
}
.hero__stage {                              /* emulates object-fit: cover so the banner stays glued to the plinth */
  position: absolute;
  left: 50%; top: 50%;
  width: max(100cqw, 100cqh * 1.4058);
  aspect-ratio: 1448 / 1030;
  transform: translate(-50%, -50%);
}
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__offer {
  position: absolute;
  left: 10.8%;
  top: 60.3%;
  width: 53.8%;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .25));
}
.hero__logo {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 10.6cqh;
  width: 23.2cqh;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .28));
}
.hero__logo img { width: 100%; }
.hero__frame {
  position: absolute;
  z-index: 1;
  top: 20px; bottom: 20px; left: 20px; right: -4px;
  border: 1.5px solid rgba(255, 255, 255, .85);
  border-right: 0;
  border-radius: 30px 0 0 30px;
  pointer-events: none;
}
.hero__legal {
  position: absolute;
  z-index: 2;
  right: 40px;
  bottom: 30px;
  color: #fff;
  font-size: 13px;
}

/* ---------- Content ---------- */
.content {
  display: flex;
  align-items: center;
  min-height: 100vh;
}
.content__inner {
  width: 100%;
  container-type: inline-size;
  padding: 28px clamp(28px, 3.45vw, 66px) 16px;
  text-align: center;
}

.sale {
  background: var(--navy);
  border: 1.5px solid #b07443;
  padding: 4px 8px 0;
  font-family: var(--font-tzar);
  font-weight: 700;
  line-height: 1.12;
}
.sale__title { display: block; font-size: min(55px, 11.6cqi); font-weight: 400;  }
.sale__sub { display: none; font-size: 33px; font-weight: 400; }
.sale sup { font-size: .42em; vertical-align: .9em; }

.headline {
  margin-top: 24px;
  font-family: var(--font-tzar);
  font-weight: 700;
  font-size: min(40px, 8.6cqi);
  line-height: 1.03;
  color: var(--navy);
}
.intro {
  margin-top: 14px;
  font-size: 16px;
  line-height: 27px;
  text-align: justify;
  text-align-last: center;
}

.features {
  list-style: none;
  margin-top: 24px;
  border-top: 1px solid var(--rule);
  text-align: right;
}
.features li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 4px 0;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(13.5px, 3.33cqi, 15.5px);
  line-height: 1.2;
  color: var(--navy);
}
.features img { flex: 0 0 auto; width: 21px; height: 21px; }

.price {
  padding: 14px 0 12px;
  font-weight: 700;
  line-height: 1;
  position: relative;
}
.price::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: linear-gradient(to right, rgba(169,105,61,0), #c88a55 30%, #dba36d 70%, rgba(219,163,109,0));
}
.price p { display: inline-block; }
.price__units { font-size: min(29.5px, 6.4cqi); }
.price__from { font-size: min(41px, 8.85cqi); margin-top: 4px; }
.price__ils { font-size: .73em; }
.price__units, .price__from { display: table; margin-inline: auto; }

/* ---------- Lead form ---------- */
.lead { margin-top: 26px; }
.lead__title {
  font-size: 23px;
  font-weight: 400;
  color: var(--navy);
}
.lead__form { margin-top: 12px; }
.lead__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field input {
  width: 100%;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 0;
  background: #fff;
  padding: 0 12px;
  font: 400 15px var(--font);
  color: var(--navy);
  text-align: right;
}
.field input::placeholder { color: var(--ink); opacity: .85; }
.field input:focus { outline: 2px solid var(--gold-1); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: #c0392b; }

.lead__bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}
.lead__consents { flex: 1; display: grid; gap: 8px; text-align: right; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.check input { position: absolute; opacity: 0; width: 14px; height: 14px; margin: 0; }
.check__box {
  flex: 0 0 auto;
  width: 13px; height: 13px;
  margin-top: 1px;
  border: 1px solid var(--navy);
  background: rgba(255,255,255,.4);
}
.check input:checked + .check__box {
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23dba36d' stroke-width='1.8'/%3E%3C/svg%3E") center / 90% no-repeat;
}
.check input:focus-visible + .check__box { outline: 2px solid var(--gold-1); outline-offset: 2px; }

.btn {
  flex: 0 0 auto;
  min-width: 84px;
  height: 36px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-grad);
  color: #fff;
  font: 400 18px var(--font);
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(120, 70, 30, .25);
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.btn[disabled] { opacity: .65; cursor: wait; }

.lead__msg:empty { display: none; }
.lead__msg { margin-top: 6px; font-size: 13px; color: #b0302a; text-align: right; }
.lead__thanks {
  margin-top: 14px;
  padding: 18px;
  background: rgba(255,255,255,.75);
  border: 1px solid #c88a55;
  color: var(--navy);
  font-size: 16px;
}
.lead__thanks-title { font-family: var(--font-tzar); font-weight: 700; font-size: 28px; margin-bottom: 4px; }

/* ---------- Footer ---------- */
.foot { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 28px; }
.foot__logo { width: 132px; }
.foot__legal { display: none; margin-top: 18px; font-size: 14px; color: var(--ink); }
.foot__links { display: flex; gap: 14px; font-size: 12px; }
.foot__links a { color: var(--ink); }

/* ---------- Cookie bar ---------- */
.cookies {
  position: fixed;
  z-index: 50;
  left: 16px; bottom: 16px;
  max-width: 420px;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}
.cookies[hidden] { display: none; }
.cookies p { flex: 1; margin: 0; }
.btn--sm { min-width: 70px; height: 32px; font-size: 15px; }

/* ---------- Mobile sticky CTA strip ---------- */
.mobile-cta { display: none; }

/* ---------- Short desktop screens (laptops) – tighten vertical rhythm ---------- */
@media (min-width: 900px) and (max-height: 920px) {
  .content__inner { padding-top: 20px; padding-bottom: 12px; }
  .headline { margin-top: 16px; }
  .intro { margin-top: 10px; line-height: 25px; }
  .features { margin-top: 16px; }
  .features li { min-height: 34px; padding: 2px 0; }
  .price { padding: 10px 0 9px; }
  .lead { margin-top: 16px; }
  .lead__form { margin-top: 8px; }
  .lead__bottom { margin-top: 8px; }
  .foot { margin-top: 12px; }
}
@media (min-width: 900px) and (max-height: 820px) {
  .sale__title { font-size: min(48px, 10.4cqi); }
  .headline { font-size: min(34px, 7.4cqi); }
  .intro { font-size: 15px; line-height: 23px; }
  .features li { min-height: 31px; }
  .price__units { font-size: min(25px, 5.4cqi); }
  .price__from { font-size: min(35px, 7.6cqi); }
  .lead__title { font-size: 20px; }
}

/* =========================================================
   Mobile / tablet (design width 360)
   ========================================================= */
@media (max-width: 899px) {
  body { background: #e6e6e6 url("../img/bg-mobile.webp") center top / cover no-repeat scroll; }
  .lp { display: block; }

  .hero {
    position: relative;
    height: auto;
    min-height: 0;
    aspect-ratio: 360 / 460;
    max-height: 88vh;
    width: 100%;
    border-radius: 0 0 24px 24px;
    container-type: normal;
  }
  .hero::after { display: none; }
  .hero__stage { position: absolute; inset: 0; width: auto; aspect-ratio: auto; transform: none; }
  .hero__img { object-position: 50% 100%; }
  .hero__offer, .hero__legal { display: none; }
  .hero__logo {
    left: 50%;
    top: min(14.7vw, 60px);
    width: min(65.6vw, 300px);
    transform: translateX(-50%);
  }
  .hero__frame {
    top: -4px; left: 8px; right: 8px; bottom: 8px;
    border: 1.5px solid rgba(255, 255, 255, .85);
    border-top: 0;
    border-radius: 0 0 18px 18px;
  }

  .content { min-height: 0; display: block; }
  .content__inner { max-width: 520px; margin: 0 auto; padding: 20px 20px 28px; }

  .sale { padding: 6px 10px 4px; border-width: 1px; }
  .sale__title { font-size: min(36px, 9.6vw); font-weight: 700; }
  .sale__sub { display: block; font-size: min(31px, 8.3vw); line-height: 1; padding-bottom: 4px;  }

  .headline { font-size: min(32px, 8.2vw); margin-top: 24px;  }
  .intro { font-size: 18px; line-height: 28px; margin-top: 14px; padding-inline: 10px; text-align: justify; text-align-last: right; }

  .features { border: 0; margin-top: 28px; padding-inline: 10px; }
  .features li { border: 0; align-items: flex-start; gap: 14px; padding: 0; min-height: 0; margin-bottom: 18px; font-size: 18px; line-height: 22px; }
  .features img { width: 32px; height: 32px; }

  .price { margin-top: 8px; padding: 14px 0; }
  .price::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px;
    background: linear-gradient(to right, rgba(169,105,61,0), #c88a55 30%, #dba36d 70%, rgba(219,163,109,0));
  }
  .price__units { font-size: 26px; }
  .price__from { font-size: 36px; }
  .price__ils { font-size: 26.5px; }

  .lead { margin-top: 30px; }
  .lead__title { font-size: 22px; font-weight: 700; color: var(--ink); }
  .lead__form { margin-top: 16px; padding-inline: 10px; }
  .lead__fields { grid-template-columns: 1fr; gap: 10px; }
  .field input { height: 40px; font-size: 18px; text-align: center; }
  .field input::placeholder { color: #00302e; }

  .lead__bottom { display: block; margin-top: 16px; }
  .lead__consents { gap: 10px; }
  .check { font-size: 14px; line-height: 15px; gap: 12px; color: #3a4a55; }
  .check__box { width: 14px; height: 14px; }
  .lead .btn { width: 100%; height: 36px; margin-top: 16px; border-radius: 0; font-size: 25px; font-weight: 700; }
  .lead__msg { text-align: center; }

  .foot { margin-top: 30px; flex-direction: column; gap: 12px; }
  .foot__logo { width: 222px; }
  .foot__legal { display: block; }

  .cookies { left: 10px; right: 10px; bottom: 10px; max-width: none; }

  .mobile-cta {
    display: block;
    position: fixed;
    z-index: 40;
    left: 0; right: 0; bottom: 0;
    height: 42px;
    padding: 5px 0;
    background: #bc8557;
    color: #fff;
    font: 700 22px/32px var(--font);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s ease;
  }
  .mobile-cta.is-hidden { transform: translateY(100%); pointer-events: none; }
  .foot { padding-bottom: 42px; }
}
