/* ============================================================
   Ploni Font Family
   ============================================================ */
@font-face {
  font-display: swap;
  font-family: 'Ploni';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/ploni woff/ploni-light-aaa.woff') format('woff');
}
@font-face {
  font-display: swap;
  font-family: 'Ploni';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/ploni woff/ploni-regular-aaa.woff') format('woff');
}
@font-face {
  font-display: swap;
  font-family: 'Ploni';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/ploni woff/ploni-medium-aaa.woff') format('woff');
}
@font-face {
  font-display: swap;
  font-family: 'Ploni';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/ploni woff/ploni-demibold-aaa.woff') format('woff');
}
@font-face {
  font-display: swap;
  font-family: 'Ploni';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/ploni woff/ploni-bold-aaa.woff') format('woff');
}
@font-face {
  font-display: swap;
  font-family: 'Ploni';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/ploni woff/ploni-black-aaa.woff') format('woff');
}

/* ============================================================
   Design Tokens — sourced from Figma variable panel (Hex mode)
   ============================================================
   --navy       : #4C4F6D  (שנקר סגול)   — hero bg, button, text on light
   --off-white  : #FAFAF5  (שנקר בז׳ בהיר) — form card bg, PRESALE box bg, button text
   --beige      : #EDE8D6  (שנקר בז׳ כהה) — bottom icon strip bg
   --white      : #FFFFFF  — brush stroke fill, general white
   ============================================================ */
:root {
  /* Brand colors */
  --navy:      #4C4F6D;
  --off-white: #FAFAF5;
  --beige:     #EDE8D6;
  --white:     #FFFFFF;

  /* Design unit: 1px in the 1920x1080 Figma frame.
     Picks the smaller of the two scale factors (width vs height) so
     the entire hero — at the design's 16:9 aspect — fits within the
     viewport with no scrolling needed. On 16:9 monitors both factors
     are equal; on shorter monitors height takes over and the hero
     scales down proportionally. Below 1024px, the mobile layout stacks
     and uses --um. */
  --u: min(calc(100vw / 1920), calc(100vh / 1080));

  /* Semantic aliases */
  --color-bg:          var(--navy);
  --color-text-light:  var(--off-white);
  --color-text-dark:   var(--navy);
  --color-form-bg:     var(--off-white);
  --color-strip-bg:    var(--beige);
  --color-btn-bg:      var(--navy);
  --color-btn-text:    var(--off-white);

  /* Typography scale — Figma canvas ~2188px → normalized to 1440px (×0.658) */
  --fs-presale:     clamp(42px, 5.3vw, 77px);  /* 116.79px → 77px */
  --fs-price:       clamp(24px, 2.9vw, 41px);  /* 62.94px  → 41px */
  --fs-apt-types:   clamp(14px, 1.1vw, 16px);  /* 24.63px  → 16px */
  --fs-form-title:  clamp(14px, 1.1vw, 17px);  /* 24.63px  → 16px */
  --fs-btn:         clamp(14px, 1.1vw, 16px);  /* 24.63px  → 16px */
  --fs-strip-title: clamp(22px, 2.6vw, 40px);  /* 48.975px → 40px */
  --fs-icon-label:  clamp(11px, 0.95vw, 14px);
  --fs-input:       clamp(13px, 0.95vw, 14px);
  --fs-small:       clamp(10px, 0.75vw, 11px);

  /* Spacing */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  40px;

  /* Radii — from Figma inspect (Rectangle 17) */
  --radius-card:   20px;   /* 27.925px normalized */
  --radius-btn:    4px;    /* confirmed from Rectangle 19 */
  --radius-input:  0px;    /* inputs appear square in design */

  /* Shadows — confirmed from form card inspect */
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.15);

  /* Layout */
  --hero-height:   100vh;
  --strip-height:  clamp(110px, 17.5vh, 210px);
  --logo-max-w:    180px;
  --form-width:    clamp(260px, 22vw, 320px);
}

/* ============================================================
   Base Reset
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  /* Two-tone bg so overscroll shows navy at top and beige at bottom.
     The 50% stops mean the actual mid-page color is irrelevant — only
     the top/bottom edges affect rubber-band overscroll. Body content
     covers the visible page so this gradient is only seen in overscroll. */
  background: linear-gradient(
    to bottom,
    var(--navy)   0%,
    var(--navy)  50%,
    var(--beige) 50%,
    var(--beige) 100%
  );
  min-height: 100vh;
}

body {
  font-family: 'Ploni', Arial, sans-serif;
  direction: rtl;
  background-color: var(--navy);   /* fills below hero so no html-gradient beige shows in main area */
  min-height: 100vh;                /* body fills viewport — html gradient only seen in overscroll */
  color: var(--off-white);
  cursor: default;
  overflow-x: hidden;
}

/* Thank-you page: any body bg visible below the strip should be beige
   (the strip color), so the main area continues into beige past the
   strip. Top overscroll still gets navy from the html gradient. */
body:has(.hero--thankyou) {
  background-color: var(--beige);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: underline;
}

/* ============================================================
   Hero Section — locked to Figma 1920x1080 aspect, scales linearly.
   Aspect ratio kept exact so the hero.svg image (which contains the
   navy panel + brush-stroke + building photo) fills without crop and
   absolute-positioned children line up with image content.
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  /* Inverse-scale: 1090vw → 613px, 1920vw → 800px */
  height: clamp(500px, calc(367px + 22.53vw), 850px);
  /* Always extend down to the strip's top so no navy gap shows
     between the hero image and the icon strip. */
  min-height: calc(100vh - 110px);
  overflow: hidden;
  background-color: var(--navy);
}

/* Hero composition served from Cloudflare Images. Height set to 108%
   per design ask so the image bleeds slightly past the hero bottom. */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;                            /* explicit physical-left anchor (RTL ignores `inset` + width) */
  right: auto;
  bottom: 0;
  width: 90%;                         /* 10% smaller than container */
  height: 108%;
  object-fit: cover;
  /* Anchor the image's LEFT edge to the container's left edge so cropping
     happens on the right (no bg shows on the left). */
  object-position: left top;
  z-index: 0;
  pointer-events: none;
}

/* No-op overlay (legacy markup) */
.hero-overlay { display: none; }

/* Brush-stroke is now baked into the Cloudflare hero image — class hidden. */
.brush-stroke { display: none; }

/* ============================================================
   Logo + project label (Group 1 in Figma: x=1470, y=112, 367x98)
   ============================================================ */
.project-logo {
  position: absolute;
  top: calc(72 * var(--u));
  right: calc(83 * var(--u));     /* 1920 - (1470 + 367) */
  width: calc(367 * var(--u));
  height: auto;
  z-index: 5;
}

/* Project label is baked into the logo group in Figma; hide the
   separate HTML span so markup stays valid without double-rendering */
.project-label { display: none; }

/* ============================================================
   Badge "הבניה בעיצומה" (Figma: 1289:2570, x=830, y=140, 228x228)
   Default rule below — then per-breakpoint overrides on desktop
   so you can tune the badge's position/size at each width range.
   Mobile (≤1024) keeps its own rules inside the mobile @media.
   ============================================================ */
.badge-construction {
  position: absolute;
  top: calc(90 * var(--u));
  left: calc(830 * var(--u));
  width: calc(228 * var(--u));
  height: auto;
  z-index: 6;
  pointer-events: none;
}

/* Desktop badge — per-breakpoint overrides. Edit each block freely. */

/* 1920+ (large monitors) */
@media (min-width: 1920px) {
  .badge-construction {
    top: calc(90 * var(--u));
    left: calc(830 * var(--u));
    width: calc(228 * var(--u));
  }
}

/* 1700-1919 */
@media (min-width: 1700px) and (max-width: 1919px) {
  .badge-construction {
    top: calc(90 * var(--u));
    left: calc(830 * var(--u));
    width: calc(228 * var(--u));
  }
}

/* 1500-1699 */
@media (min-width: 1500px) and (max-width: 1699px) {
  .badge-construction {
    top: calc(110 * var(--u));
    left: calc(750 * var(--u));
    width: calc(228 * var(--u));
  }
}

/* 1300-1499 */
@media (min-width: 1300px) and (max-width: 1499px) {
  .badge-construction {
    top: calc(130 * var(--u));
    left: calc(830 * var(--u));
    width: calc(228 * var(--u));
  }
}

/* 1100-1299 */
@media (min-width: 1100px) and (max-width: 1299px) {
  .badge-construction {
    top: calc(150 * var(--u));
    left: calc(880 * var(--u));
    width: calc(228 * var(--u));
  }
}

/* 1025-1099 (just above mobile breakpoint) */
@media (min-width: 1025px) and (max-width: 1099px) {
  .badge-construction {
    top: calc(250 * var(--u));
    left: calc(1100 * var(--u));
    width: calc(228 * var(--u));
  }
}

/* ============================================================
   Headline block — PRESALE + price + apt types
   Figma positions:
     PRESALE box:  x=1358  y=280  477x108
     Price line:   x=1355  y=411  482x58
     Apt types:    x=1361  y=471  471x40
   All three share right-edge ~4.4% from visual right.
   ============================================================ */
.headline {
  /* Pinned to viewport with a 60px gap above the form's top edge.
     22 (form bottom offset) + ~512 (form height at --u=1) + 60 (gap) = 594. */
  position: fixed;
  bottom: calc(534 * var(--u) + 60px);
  right: calc(75 * var(--u));
  width: calc(500 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  z-index: 7;          /* above form (6) and strip (4) */
}

.presale-box {
  background-color: var(--off-white);
  padding: calc(2 * var(--u)) calc(24 * var(--u));
  margin-bottom: calc(24 * var(--u));
  width: 100%;
  text-align: center;
}

.presale-box h1 {
  font-size: calc(106 * var(--u));
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  letter-spacing: 0.035em;
}

.price-line {
  /* Use a system stack instead of Ploni — its digit kerning was overlapping
     characters in the price string. Hebrew chars in this stack still render
     cleanly (Arial Hebrew / Tahoma both ship with browsers). */
  font-family: 'Heebo', 'Assistant', 'Arial Hebrew', Tahoma, Arial, sans-serif;
  font-size: calc(52 * var(--u));
  font-weight: 700;
  color: var(--off-white);
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: calc(10 * var(--u));
  text-align: center;
  width: 100%;
  white-space: nowrap;
}

/* Let BIDI flow naturally in RTL parent — no forced ltr / isolate
   that caused character overlap. */
.price-line .price-num {
  display: inline-block;
}

/* On desktop, all price spans inherit a single uniform size from .price-line.
   The mobile breakpoint overrides each span with its specific Figma size. */
.price-line .price-num span {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: 0;
}

/* Prefix / dash / currency use the Ploni brand font.
   The amount (digits) is handled via inline style on the element so
   the class doesn't accidentally pick up the Ploni rule that causes
   digit overlap. */
.price-line .price-num span.price-prefix,
.price-line .price-num span.price-dash,
.price-line .price-num span.price-currency {
  font-family: 'Ploni', Arial, sans-serif;
}

/* Currency symbol (₪) is rendered slightly smaller than the digits/prefix */
.price-line .price-num span.price-currency {
  font-size: calc(45 * var(--u)) !important;
}

/* Desktop-only: bigger price font + edge-to-edge justify on price/apt-types.
   Mobile keeps its own values inside the @media (max-width: 1024px) block. */
@media (min-width: 1025px) {
  .price-line {
    font-size: calc(65.4 * var(--u));    /* 5% smaller than 72 */
    text-align: justify;
    text-align-last: justify;
  }

  .price-line .price-num {
    display: block;
    text-align: justify;
    text-align-last: justify;
  }

  .apt-types-line {
    text-align: justify;
    text-align-last: justify;
  }
}

.apt-types-line {
  /* Figma exact: 41.68px DemiBold, line 39.42px, off-white. */
  font-family: 'Ploni', Arial, sans-serif;
  font-size: calc(44.68 * var(--u));
  font-weight: 600;
  color: var(--off-white);
  line-height: calc(39.42 * var(--u));
  text-align: center;
  width: 100%;
  word-wrap: break-word;
}

/* ============================================================
   Form card (Figma: 1260:2045, x=1493, y=570, 337x479)
   Right margin: (1920-1831)/1920 = 4.6%
   Extends down to y=1049 — overlapping the bottom strip slightly.
   ============================================================ */
.form-card {
  /* Pinned to the viewport bottom (like the strip) so the form's
     position is independent of the hero's height. Bottom 22*--u puts
     the form's bottom edge ~22px above the viewport bottom — inside
     the strip area, with z-index 6 > strip's z-index 4 so it sits
     on top of the strip's beige bar. */
  position: fixed;
  bottom: calc(22 * var(--u));
  right: calc(89 * var(--u));     /* 1920 - 1831 */
  width: calc(337 * var(--u));
  background-color: var(--color-form-bg);
  border-radius: calc(27.92 * var(--u));     /* Figma Rectangle 17 */
  box-shadow: 0 calc(4 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, 0.15);
  padding: calc(28 * var(--u)) calc(22 * var(--u)) calc(20 * var(--u));
  z-index: 6;
  color: var(--navy);
}

/* ============================================================
   Form innards — styles only (markup untouched per AGENTS.md)
   ============================================================ */
.lead-form h2 {
  font-size: calc(24 * var(--u));
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: calc(16 * var(--u));
}

.form-group {
  margin-bottom: calc(11 * var(--u));
}

.form-group input,
.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"] {
  width: 100%;
  padding: calc(10 * var(--u)) calc(14 * var(--u));
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-input);
  background-color: transparent;
  font-family: 'Ploni', Arial, sans-serif;
  font-size: calc(18 * var(--u));
  color: var(--navy);
  text-align: right;
  outline: none;
  transition: border-color 0.2s ease;
}

.lead-form input::placeholder {
  color: var(--navy);
  opacity: 0.55;
}

.lead-form input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(76, 79, 109, 0.15);
}

/* Honeypot stays hidden */
#website {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* Checkbox — use native input with accent-color so click + visual state
   are handled by the browser reliably. Fixed 16px so it stays clickable
   at any viewport. */
.lead-form input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  position: static !important;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  flex-shrink: 0;
  accent-color: var(--navy);
  vertical-align: middle;
}

.checkbox-group {
  margin: var(--sp-sm) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
}

.checkbox-group label {
  font-size: calc(13 * var(--u));
  color: var(--navy);
  line-height: 1.3;
  text-align: right;
  cursor: pointer;
}

.privacy-notice {
  font-size: calc(13 * var(--u));        /* match .checkbox-group label */
  color: var(--navy);
  text-align: right;
  line-height: 1.3;
  margin-bottom: calc(12 * var(--u));
  /* Indent right edge by (checkbox width + gap) so the privacy text
     starts at the same point as the .checkbox-group label text. */
  padding-inline-start: calc(16px + var(--sp-sm));
}

.privacy-notice a {
  color: var(--navy);
  text-decoration: underline;
}

/* Submit button */
#btnSubmit {
  width: 100%;
  padding: calc(10 * var(--u)) calc(16 * var(--u));
  margin-top: calc(8 * var(--u));
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text);
  border: none;
  border-radius: calc(4 * var(--u));
  font-family: 'Ploni', Arial, sans-serif;
  font-size: calc(20 * var(--u));
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(6 * var(--u));
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#btnSubmit span {
  display: inline-block;
  transform: scaleX(-1);
}

#btnSubmit:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(76, 79, 109, 0.35);
  transform: translateY(-2px);
}

#btnSubmit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ============================================================
   Bottom icon strip — "השורה הראשונה של חולון"
   Figma: full-bleed (−3 to 2185 on 1920 viewport), 189px tall.
   Title center ~59.6% from left (doesn't extend to far right;
   form-card occupies that area). Icons group starts 3.7% from left.
   ============================================================ */
.icon-strip {
  /* Stick to viewport bottom (not just hero bottom) so any html
     beige gradient below the hero is hidden behind the strip. */
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  /* Fixed height across the whole desktop range (1025-1920+).
     Mobile breakpoint (≤1024) overrides with its own auto height. */
  height: 110px;
  background-color: var(--color-strip-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Form-card occupies right 426px (337 + 89 margin) of viewport;
     +97.9px Figma gap → padding-inline-start = 524px */
  padding-inline-start: calc(524 * var(--u));
  padding-inline-end: calc(70 * var(--u));
  z-index: 4;
}

.icon-strip__title {
  font-size: calc(40 * var(--u));
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.15;
}

/* On desktop, hide the inline <br> so the title stays one line.
   Mobile breakpoint shows it again for the 2-line stack. */
.icon-strip__title br {
  display: none;
}

/* Thank-you page: Figma desktop frame has no icon strip — hide it.
   Mobile breakpoint re-enables it. */
.hero--thankyou .icon-strip {
  display: none;
}

/* Thank-you desktop: no icon strip, so the hero should fill the
   entire viewport (instead of stopping ~110px above the bottom). */
@media (min-width: 1025px) {
  .hero--thankyou {
    min-height: 100vh;
  }
}

/* Decorative brush-stroke vector — mobile only */
.strip-decoration {
  display: none;
}

.icon-strip__icons {
  display: flex;
  align-items: flex-start;
  gap: calc(36 * var(--u));
  flex-wrap: nowrap;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(10 * var(--u));
  min-width: calc(108 * var(--u));
}

.icon-item img,
.icon-item svg {
  width: calc(108 * var(--u));
  height: calc(73 * var(--u));
  object-fit: contain;
}

.icon-item__label {
  font-size: calc(20 * var(--u));
  font-weight: 400;
  color: var(--navy);
  text-align: center;
  white-space: nowrap;
}

/* Placeholder box shown until real SVG icons land in Commit 3 */
.icon-item__placeholder {
  width: clamp(32px, 3.5vw, 50px);
  height: clamp(32px, 3.5vw, 50px);
  border: 1.5px dashed var(--navy);
  border-radius: 4px;
  opacity: 0.3;
}

/* ============================================================
   Disclaimer — small vertical text
   ============================================================ */
.disclaimer {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 6px;
  transform: translateY(-50%);
  font-size: 9px;
  color: var(--off-white);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  opacity: 0.6;
  z-index: 5;
}

/* ============================================================
   Mobile-only screen image + badge wrapper
   On desktop: wrap is invisible to layout (display: contents) so the
   badge inside it positions relative to .hero, not the wrapper. The
   image itself stays hidden via .m-screen { display: none }.
   ============================================================ */
.m-screen-wrap {
  display: contents;
}

.m-screen {
  display: none;
}

/* ============================================================
   Thank-you message (unused on main page, kept for compat)
   ============================================================ */
#thankYouMessage {
  display: none;
  text-align: center;
  color: var(--off-white);
  padding-top: 50px;
}

#thankYouMessage h2 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.5em;
}

#thankYouMessage p {
  font-size: 1.2em;
}

/* ============================================================
   Thank-you page — Figma exact (1920x1080 desktop frame)
     Title    62.166px Bold  line 1.18  top 430.37  right 79.09  w 637.101
     Subtitle 43px     Medium line 1.07  top 512.12               w 529.95
     Body     28px     Medium line 1.07  top 660.75               w 388.223
     Button   24.631px Bold              top 735.39               218.579x38.951
                                                                   radius 4 beige bg navy text
   All right-edges align to ~79px from viewport right.
   ============================================================ */
.ty-content {
  position: absolute;
  top: calc(430.37 * var(--u));
  right: calc(79.09 * var(--u));
  z-index: 5;
  color: var(--off-white);
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-start;        /* RTL: flex-start = visual right edge */
}

.ty-title {
  width: calc(637.101 * var(--u));
  font-size: calc(62.166 * var(--u));
  line-height: 1.18;
  font-weight: 700;
  color: var(--off-white);
  margin-bottom: calc(8.39 * var(--u));
}

.ty-subtitle {
  width: calc(529.95 * var(--u));
  font-size: calc(43 * var(--u));
  line-height: 1.07;
  font-weight: 500;
  color: var(--off-white);
  margin-bottom: calc(102.62 * var(--u));
}

.ty-body {
  width: calc(388.223 * var(--u));
  font-size: calc(28 * var(--u));
  line-height: 1.07;
  font-weight: 500;
  color: var(--off-white);
  margin-bottom: calc(14.72 * var(--u));
}

.ty-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(6 * var(--u));
  width: calc(218.579 * var(--u));
  height: calc(38.951 * var(--u));
  background: var(--beige);
  color: var(--navy);
  border: none;
  border-radius: calc(4 * var(--u));
  font-family: 'Ploni', Arial, sans-serif;
  font-size: calc(24.631 * var(--u));
  line-height: calc(23.947 * var(--u));
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ty-link span {
  display: inline-block;
  transform: scaleX(-1);
}

.ty-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

/* ============================================================
   MOBILE BREAKPOINTS
   ============================================================ */

/* No tablet breakpoint needed — --u-based scaling handles 1024-1920
   range linearly. Mobile breakpoint (≤768px) below switches to stacked. */

/* Mobile / narrow viewport (≤ 1024px) — stacked layout matching Figma 375x1446.
   Above 1024 the desktop --u scaling lives unrestricted; below 1024 the desktop
   layout starts breaking visually so we switch to mobile stack. */
@media (max-width: 1024px) {
  :root {
    /* Mobile design unit: 1px in the 375-wide Figma mobile frame.
       Same approach as desktop's --u: scales linearly with viewport
       width so the badge and the .m-screen image (both sized via this
       unit) shrink/grow together — badge stays locked to its image
       position at every mobile width. */
    --um: calc(100vw / 375);
  }

  /* Mobile keeps the html top/bottom gradient defined globally — top
     overscroll shows navy, bottom overscroll shows beige. Body stays
     transparent so the gradient shows where exposed. */
  html, body {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .hero {
    position: relative !important;
    width: 100% !important;            /* not 100vw — that includes scrollbar width on Windows */
    max-width: 100% !important;
    margin: 0 !important;
    height: auto !important;
    min-height: auto !important;
    display: block !important;        /* plain block flow — children are 100% wide by default */
    overflow: hidden !important;       /* clip anything that tries to break out */
    background-color: var(--navy);
  }

  /* Order children stack via wrapper order rules (since we're not using flex anymore,
     we rely on DOM order; HTML already has them in roughly this order, but we'll
     fix any out-of-place items via explicit position). */
  .hero > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .hero-image,
  .hero-overlay,
  .brush-stroke,
  .disclaimer,
  .project-label {
    display: none !important;
  }

  /* Logo — centered horizontally on mobile */
  .project-logo {
    position: static !important;
    display: block !important;
    width: 160px !important;
    height: auto !important;
    margin: 22px auto 12px !important;  /* auto on both sides centers the block */
    order: 0;
  }

  .headline {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    align-self: stretch !important;
    order: 1;
  }

  /* PRESALE box: Figma 237.676 x 53.721, white bg */
  .presale-box {
    padding: 0;
    margin: 0 auto 8px;
    width: 237.676px;
    max-width: 88%;
    height: 53.721px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .presale-box h1 {
    font-size: 58px;
    line-height: 55.037px;
    font-weight: 700;
  }

  /* Price line on mobile */
  .price-line {
    margin: 0 auto 6px;
    text-align: center;
    line-height: 29.66px;
    height: 28.735px;
    font-size: 32px;
  }

  .price-line .price-num {
    display: inline-block;
    direction: ltr;
    unicode-bidi: isolate;
  }

  .price-prefix,
  .price-amount,
  .price-dash {
    font-size: 28px;
    font-weight: 700;
    line-height: 29.66px;
  }

  .price-currency {
    font-size: 14px;
    font-weight: 700;
    line-height: 29.66px;
    margin: 0 1px;
  }

  .apt-types-line {
    font-size: 21.0px;
    line-height: 19.64px;
    font-weight: 600;             /* DemiBold per Figma */
    text-align: center;
  }

  /* Mobile image + badge wrap — becomes the positioning context */
  .m-screen-wrap {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    margin: 14px 0 0 !important;
  }

  .m-screen {
    display: block !important;
    width: 100.5vw !important;
    max-width: 100% !important;
    /* 80vw box: taller than the image's natural ~58vw (so it reads "large")
       but not a full square — keeps side-cropping moderate so more of the
       left/right shows than a square cover crop would. */
    height: 85vw !important;
    object-fit: cover !important;
    object-position: left center !important;   /* show the middle (building) */
    position: relative !important;
    margin: 0 !important;
    z-index: 0;
  }

  /* Badge — absolute position relative to .m-screen-wrap (= image bounds).
     Figma mobile image (Group 4): y=272.81, height 357.97 (image extends
     a bit beyond, but the visible portion in the 375 frame is what we
     care about). Badge (Group 96): y=311.53, x=250.52, size 82.65.
     Position relative to image:
       top  = (311.53 - 272.81) / 357.97 = 10.82%
       right (from image right edge) = (375 - 250.52 - 82.65) / 375 = 11.16%
       width = 82.65 / 375 = 22.04%
     With these as % of .m-screen-wrap (image's natural box), the badge
     stays locked to the same image position at every viewport width. */
  .badge-construction {
    position: absolute !important;
    top: 10.82% !important;
    right: 11.16% !important;
    left: auto !important;
    width: 22.04% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    z-index: 4;
  }

  /* Form card — Figma: 378x478.687, border-radius 27.925px, shadow.
     position: relative + z-index so it sits ABOVE the icon strip
     (extended up via -margin) AND ABOVE the building image
     (overlapped via -margin-top so the rounded top corners sit
     on the photo, matching Figma — no navy gap shows through). */
  .form-card {
    position: relative !important;
    z-index: 2;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    border-radius: 27.925px 27.925px 27.925px 27.925px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
    margin: -20vw 0 0 !important;          /* pull form up less (was -27vw) → form+strip sit lower, more hero shows */
    padding: 28px 24px 22px !important;
    order: 4;
  }

  /* Form title "לתיאום פגישה אישית" — Figma 24.631px Bold */
  .lead-form h2 {
    font-size: 24.631px;
    line-height: 23.947px;
    font-weight: 700;
    margin-bottom: 18px;
  }

  .form-group {
    margin-bottom: 12px;
  }

  /* Inputs — Figma 283.025x38.951, border 1.5px navy, radius 4px, font 16.421px */
  .form-group input,
  .lead-form input[type="text"],
  .lead-form input[type="email"],
  .lead-form input[type="tel"] {
    padding: 8px 14px;
    height: 38.951px;
    font-size: 16.421px;
    line-height: 19.842px;
    font-weight: 500;             /* Medium per Figma */
    border-radius: 4px;
    border: 1.5px solid var(--navy);
  }

  .checkbox-group {
    margin: 12px 0;
  }

  /* Consent text — Figma 11.631px Medium, line-height 16px */
  .checkbox-group label {
    font-size: 11.631px;
    line-height: 16px;
    font-weight: 500;
  }

  .lead-form input[type="checkbox"] {
    width: 14.5px;
    height: 14.5px;
  }

  .privacy-notice {
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
    margin-bottom: 14px;
  }

  /* Submit button — Figma 283.026x38.951, font 24.631px Bold */
  #btnSubmit {
    height: 38.951px;
    padding: 0 16px;
    font-size: 24.631px;
    line-height: 23.947px;
    font-weight: 700;
    border-radius: 4px;
    margin-top: 8px;
  }

  /* Bottom strip — beige bg, title (2 lines centered), 3+2 icon grid.
     Pulled up by negative margin-top so its beige bg extends behind the
     form card (form has higher z-index). Padding-top compensates so the
     title sits in the visible portion below the form card. */
  .icon-strip {
    position: relative !important;
    z-index: 1;
    inset-inline: auto !important;
    inset-block-end: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 22px;
    margin-top: -60px !important;
    /* extra 110px bottom padding leaves room for the 98px decoration below the icons */
    padding: 84px 20px 110px !important;
    order: 5;
  }

  /* Strip title — Figma 37.672px Bold, line-height 0.9, 2 lines */
  .icon-strip__title {
    font-size: 37.672px;
    line-height: 0.9;
    font-weight: 700;
    text-align: center;
    white-space: normal;
    max-width: 100%;
  }

  /* Re-enable the line break on mobile so title stacks "השורה הראשונה / של חולון" */
  .icon-strip__title br {
    display: initial;
  }

  /* Flex-wrap with justify-content: center so the second row (2 icons)
     is centered horizontally instead of left-aligned in the first 2 cols. */
  .icon-strip__icons {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px 16px;
    width: 100%;
    max-width: 340px;
  }

  /* Each icon-item takes 1/3 of the row so 3 fit per line; remainder
     wraps and centers thanks to justify-content. */
  .icon-strip__icons .icon-item {
    flex: 0 0 calc((100% - 32px) / 3);   /* 32 = 2 gaps × 16 between 3 items */
  }

  /* Brush-stroke decoration absolutely positioned at the strip's
     bottom-right corner — flush to the screen's right edge.
     The strip has 110px bottom padding so icons end above the decoration. */
  .strip-decoration {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 168px;
    height: auto;
    margin: 0;
    pointer-events: none;
    z-index: 0;
  }

  .icon-item {
    min-width: 0;
    gap: 8px;
  }

  .icon-item img,
  .icon-item svg {
    width: 78px;
    height: 56px;
  }

  /* Icon labels — Figma 15.353px Bold, line-height 12.208px */
  .icon-item__label {
    font-size: 15.353px;
    line-height: 12.208px;
    font-weight: 700;
  }

  /* Thank-you content — Figma mobile (375x1096):
       Title    24.112px Bold    top 130.9   width 253.797
       Subtitle 16.038px Medium  top 161.02  width 175.242
       Body     16.038px Medium  top 221.88  width 210.967
       Button   15.876px Bold    top 267.29  127.338x25.105 radius 2.578
     All centered horizontally. */
  .ty-content {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    padding: 65.45px 0 0 !important;       /* logo→h1 gap halved (was 130.9) */
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .ty-title {
    width: 253.797px !important;
    max-width: 90%;
    font-size: 24.112px !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
    margin: 0 !important;
  }

  .ty-subtitle {
    width: 175.242px !important;
    max-width: 90%;
    font-size: 16.038px !important;
    line-height: 1.07 !important;
    font-weight: 500 !important;
    margin: 6px 0 0 !important;             /* 161.02 - 130.9 - (24.112*1.18) ≈ 1.6 + tweak */
  }

  .ty-body {
    width: 210.967px !important;
    max-width: 90%;
    font-size: 16.038px !important;
    line-height: 1.07 !important;
    font-weight: 500 !important;
    margin: 43.7px 0 0 !important;          /* 221.88 - 161.02 - (16.038*1.07) ≈ 43.7 */
    margin-inline-start: 0 !important;
  }

  .ty-link {
    width: 127.338px !important;
    height: 25.105px !important;
    font-size: 15.876px !important;
    line-height: 15.435px !important;
    font-weight: 700 !important;
    border-radius: 2.578px !important;
    margin: 11.4px 0 30px !important;       /* +30px gap below the link, before the hero image */
    background: var(--beige) !important;
    color: var(--navy) !important;
    border: none !important;
    padding: 0 !important;
    gap: 4px !important;
  }
}

/* Very small screens (≤ 400px) — keep .price-line and PRESALE sizes
   inherited from the ≤1024 breakpoint so the layout doesn't shrink
   inconsistently below 400px. */
@media (max-width: 400px) {
  .presale-box h1 {
    font-size: 58px;
  }
}
