/* ALFA landing page.
   Desktop (>=768px) reproduces the designer's Wix Studio layout exactly: every size is
   the Wix value measured at a 1920px viewport, expressed in --u (1 Wix px = 100vw / 1920),
   so the page scales with the viewport the same way Wix does.
   Below 768px a stacked mobile layout is used (the Wix file had no mobile design).
   *-text colors are the brand colors deepened just enough to pass WCAG AA (3:1, large text). */

@font-face {
  font-family: "Assistant";
  src: url("/assets/fonts/assistant-hebrew.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Assistant";
  src: url("/assets/fonts/assistant-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-hebrew.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #3c4d6d;
  --coral: #f58c77;
  --sage: #8aa99b;
  --coral-text: #d9654f;
  --sage-text: #6a8c7d;
  --muted: #5a6680;
  color-scheme: light;

  /* Mobile scale */
  --gutter: 20px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #fff;
  color: var(--navy);
  font-family: "Assistant", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.3;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
b, strong { font-weight: 700; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

.c-coral { color: var(--coral-text); }
.c-sage { color: var(--sage-text); }
.c-navy { color: var(--navy); }

/* Desktop-only line breaks placed exactly where the Wix design breaks */
.lb { display: none; }
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute; inset-inline-start: 8px; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* =====================================================================
   MOBILE (default)
   ===================================================================== */
.wrap { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
.sec { margin-top: 36px; }
.cover { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* Fixed CTA */
.cta-float {
  position: fixed; z-index: 50; top: 14px; right: calc(var(--gutter) + 8px);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; text-decoration: none; font-weight: 700;
  font-size: 17px; padding: 8px 20px; border-radius: 999px;
  box-shadow: 0 0 0 4px var(--coral);
}

/* Hero */
.hero { position: relative; margin-top: 12px; }
.hero-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy); }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; top: 0; left: -2.4%; width: 29.4%; }  /* 470/1600 of the hero, like Wix */
.hero-badge img { width: 100%; }

/* Text styles */
.t-lead { font-size: 22px; line-height: 1.1; text-align: center; font-weight: 400; }
.t-lead .line { display: block; }
.t-display { font-size: 44px; line-height: .9; text-align: center; font-weight: 400; }
.t-display span { display: block; }
.t-loc { font-size: 30px; line-height: 1.05; text-align: center; font-weight: 400; }

/* Pattern artwork: one tile, cropped per placement */
.pattern {
  background: var(--sage) url("/assets/img/pattern-600.webp") center / cover;
  border-radius: var(--radius);
}
@supports (background-image: image-set(url("x.avif") type("image/avif"))) {
  .pattern { background-image: image-set(url("/assets/img/pattern-600.avif") type("image/avif"), url("/assets/img/pattern-600.webp") type("image/webp")); }
}
.pattern-card { aspect-ratio: 629 / 196; }
.pattern-band { height: 10px; border-radius: 0; background-size: 300px; width: calc(100% - 2 * var(--gutter)); margin: 36px auto 0; }

/* Two-part sections stack: text, then media */
.pair { display: grid; gap: 20px; }
.pair .media { order: 2; }

/* Gallery marquee (full-bleed) */
.gallery { margin-top: 36px; }
.marquee { overflow: hidden; }
/* LTR track: images run left-to-right in Wix order, clones follow on the right */
.marquee-track { display: flex; width: max-content; direction: ltr; }
/* spacing via padding (not gap) so a 50% shift lands exactly on the cloned set */
.marquee-track li { flex: 0 0 auto; padding-inline-end: 12px; }
.marquee-track img { height: 220px; width: auto; border-radius: var(--radius); }
.marquee.is-running .marquee-track { animation: marquee var(--marquee-duration, 60s) linear infinite; }
.marquee.is-running:hover .marquee-track,
.marquee.is-running:focus-within .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } } /* moves left, like the Wix gallery */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; }
  .marquee-track li { scroll-snap-align: center; }
  .marquee.is-running .marquee-track { animation: none; }
}

/* Features */
.features-title { font-size: 40px; line-height: .95; font-weight: 700; color: var(--coral-text); text-align: center; }
.feature-list { display: grid; gap: 18px; margin-top: 22px; }
.feature { display: flex; align-items: center; gap: 14px; }
.feature img { width: 76px; flex: 0 0 auto; }
.feature div { font-size: 19px; line-height: 1.15; }
.feature h3 { font-size: inherit; font-weight: 700; }
.feature p { font-weight: 400; }

/* Nearby icons */
.nearby { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; margin-top: 26px; text-align: center; font-size: 22px; line-height: 1; }
.nearby li { display: flex; flex-direction: column; align-items: center; }
.nearby img { width: 100%; margin-bottom: 6px; }
.nearby .k { font-weight: 700; color: var(--navy); }
.nearby .v { color: var(--coral-text); }

/* Minutes + map */
.t-minutes { font-size: 44px; line-height: .85; font-weight: 700; text-align: center; color: var(--sage-text); }
.map img { aspect-ratio: 862 / 625; }

/* Contact */
.contact { margin-top: 44px; scroll-margin-top: 80px; }
.lead-form { display: grid; gap: 16px; }
.contact-title {
  text-align: center; font-size: 32px; line-height: .95; font-weight: 400;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.fields { display: grid; gap: 14px; }
.field { display: grid; gap: 4px; }
.field label { font-weight: 700; color: var(--sage-text); font-size: 24px; line-height: 1.2; }
.field input {
  font: inherit; font-size: 18px; color: var(--navy); width: 100%;
  border: 1px solid #8a8a8a; border-radius: 10px; padding: 10px 12px; background: #fff;
}
.field input[dir="ltr"] { text-align: right; }
.field input, .consent, .disclaimer { font-family: "Rubik", "Assistant", system-ui, sans-serif; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--navy); }
.disclaimer { font-size: 15px; line-height: 1.5; }
.btn-submit {
  font: inherit; font-weight: 700; font-size: 24px; width: 100%; cursor: pointer;
  border: 0; border-radius: 12px; padding: 8px; background: var(--coral-text); color: #fff;
}
.btn-submit:disabled { opacity: .6; cursor: wait; }
.form-error { background: #b3261e; color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Footer */
.site-footer { margin-top: 48px; padding-bottom: 32px; display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 13px; }
.site-footer img { width: min(100%, 320px); margin-bottom: 18px; }
.site-footer p { margin: 0; }

/* =====================================================================
   DESKTOP: Wix geometry (values = Wix px at 1920 viewport)
   Content box: x 160..1760 (1600 wide). Grids use direction:ltr so that
   column numbers match the Wix x-coordinates; text inside stays RTL.
   ===================================================================== */
@media (min-width: 768px) {
  :root { --u: calc(100vw / 1920); --radius: calc(20 * var(--u)); }
  .lb { display: inline; }
  body { font-size: max(calc(25 * var(--u)), 14px); }
  .wrap { width: calc(1600 * var(--u)); }

  .cta-float {
    top: calc(79 * var(--u)); right: calc(226 * var(--u)); /* Wix box (incl. 9px ring) at 1364,70 */
    width: calc(321 * var(--u)); height: calc(96 * var(--u)); padding: 0;
    font-size: max(calc(37 * var(--u)), 15px);
    box-shadow: 0 0 0 calc(9 * var(--u)) var(--coral);
  }

  /* Hero: y 30, 1600 x 691; badge 470 x 682 at x -38 */
  .hero { margin-top: calc(30 * var(--u)); }
  .hero-media { aspect-ratio: auto; height: calc(691 * var(--u)); }
  .hero-badge { left: calc(-38 * var(--u)); width: calc(470 * var(--u)); }

  .pair { direction: ltr; gap: 0; align-items: center; }
  .pair > * { direction: rtl; grid-row: 1; }
  .pair .media { order: 0; }
  .cover { border-radius: var(--radius); }
  .pattern-card { aspect-ratio: auto; height: calc(196 * var(--u)); border-radius: calc(28 * var(--u)); }

  .t-lead { font-size: calc(51 * var(--u)); line-height: .9; }
  .t-display { font-size: calc(95 * var(--u)); line-height: .85; }
  .t-loc { font-size: calc(70 * var(--u)); line-height: .95; }

  /* Intro (y 748): text x25 w904 | pattern x972 w629 */
  .intro { margin-top: calc(27 * var(--u)); grid-template-columns: calc(25 * var(--u)) calc(904 * var(--u)) 1fr calc(629 * var(--u)); align-items: start; }
  .intro .text { grid-column: 2; margin-top: calc(7 * var(--u)); }
  .intro .media { grid-column: 4; }

  /* Nature (y 972): image x0 980x479 | text x1050 w533 */
  .nature { margin-top: calc(28 * var(--u)); grid-template-columns: calc(980 * var(--u)) 1fr calc(533 * var(--u)) calc(17 * var(--u)); }
  .nature .media { grid-column: 1; height: calc(479 * var(--u)); }
  .nature .text { grid-column: 3; margin-bottom: calc(28 * var(--u)); }

  /* Summary (y 1502): pattern x0 w629 | text x697 w879 */
  .summary { margin-top: calc(51 * var(--u)); grid-template-columns: calc(629 * var(--u)) 1fr calc(879 * var(--u)) calc(24 * var(--u)); }
  .summary .media { grid-column: 1; }
  .summary .text { grid-column: 3; line-height: 1; }

  /* Gallery (y 1753): items 476 high, 32 apart */
  .gallery { margin-top: calc(55 * var(--u)); }
  .marquee-track li { padding-inline-end: calc(32 * var(--u)); }
  .marquee-track img { height: calc(476 * var(--u)); }

  /* Pattern strips: 18 high; #1 x301 w1298 (flush right), #2 x72 w1232 */
  .pattern-band { height: calc(18 * var(--u)); background-size: calc(600 * var(--u)); }
  /* physical left margin + auto right: in RTL an over-constrained margin-left would be ignored */
  .band-1 { margin: calc(62 * var(--u)) auto 0 calc(461 * var(--u)); width: calc(1298 * var(--u)); }
  .band-2 { margin: calc(83 * var(--u)) auto 0 calc(232 * var(--u)); width: calc(1232 * var(--u)); }

  /* Features: title y 2379 (box right edge at 1469); rows from y 2503, icon right edge 1486 */
  .features { margin-top: calc(70 * var(--u)); }
  .features-title { font-size: calc(95 * var(--u)); line-height: .85; text-align: right; margin-inline-start: calc(291 * var(--u)); }
  .feature-list { margin-top: calc(43 * var(--u)); margin-inline-start: calc(274 * var(--u)); gap: 0; }
  .feature { gap: calc(15 * var(--u)); min-height: calc(200 * var(--u)); }
  .feature img { width: calc(197 * var(--u)); }
  .feature:last-child img { width: calc(220 * var(--u)); margin-inline-end: calc(-12 * var(--u)); margin-inline-start: calc(-12 * var(--u)); }
  .feature div { font-size: calc(51 * var(--u)); line-height: 1; }

  /* Location head (y 3353): text x25 w954 | pattern x1020 w581 */
  .loc-head { margin-top: calc(130 * var(--u)); grid-template-columns: calc(25 * var(--u)) calc(954 * var(--u)) 1fr calc(581 * var(--u)); }
  .loc-head .text { grid-column: 2; }
  .loc-head .media { grid-column: 4; }

  /* Nearby (y 3591): four 344 cards spread across 1600; labels 50/1.0 */
  .nearby { grid-template-columns: repeat(4, calc(344 * var(--u))); justify-content: space-between; gap: 0; margin-top: calc(42 * var(--u)); font-size: calc(50 * var(--u)); }
  .nearby img { margin-bottom: calc(-6 * var(--u)); }

  /* Map (y 4090): map x0 862x625 | text x949 w592 */
  .loc-map { margin-top: calc(61 * var(--u)); grid-template-columns: calc(862 * var(--u)) 1fr calc(592 * var(--u)) calc(59 * var(--u)); }
  .loc-map .media { grid-column: 1; }
  .loc-map .text { grid-column: 3; margin-bottom: calc(58 * var(--u)); }
  .t-minutes { font-size: calc(95 * var(--u)); line-height: .8; }

  /* Contact: title y 4795 (w954); form x344 w909 */
  .contact { margin-top: calc(80 * var(--u)); }
  .lead-form { width: calc(909 * var(--u)); margin-inline: auto; gap: 0; grid-template-columns: 100%; }
  /* title box is 954 wide, 22.5 wider than the form on each side */
  .contact-title { font-size: calc(75 * var(--u)); line-height: .9; margin-inline: calc(-22.5 * var(--u)); text-underline-offset: calc(10 * var(--u)); }
  .fields { margin-top: calc(59 * var(--u)); grid-template-columns: 1fr 1fr; gap: calc(53 * var(--u)); }
  .field { gap: calc(9 * var(--u)); }
  .field label { font-size: calc(50 * var(--u)); line-height: calc(62 * var(--u)); }
  .field input { font-size: max(calc(25 * var(--u)), 15px); height: max(calc(47 * var(--u)), 38px); padding: 0 calc(14 * var(--u)); border-radius: calc(11 * var(--u)); }
  .consent { margin-top: calc(25 * var(--u)); font-size: max(calc(25 * var(--u)), 13px); line-height: 1.5; gap: calc(14 * var(--u)); min-height: calc(75 * var(--u)); }
  .consent input { width: max(calc(22 * var(--u)), 16px); height: max(calc(22 * var(--u)), 16px); margin-top: calc(8 * var(--u)); }
  .disclaimer { margin-top: calc(24 * var(--u)); font-size: max(calc(25 * var(--u)), 13px); line-height: 1.5; min-height: calc(75 * var(--u)); }
  .btn-submit { margin-top: calc(24 * var(--u)); height: calc(82 * var(--u)); font-size: calc(50 * var(--u)); border-radius: calc(20 * var(--u)); padding: 0; }
  .form-error { margin-top: calc(24 * var(--u)); font-size: max(calc(25 * var(--u)), 15px); }

  /* Footer: partners 511 wide at y 5443; links 20px */
  .site-footer { margin-top: calc(98 * var(--u)); padding-bottom: calc(50 * var(--u)); font-size: max(calc(20 * var(--u)), 12px); gap: calc(8 * var(--u)); }
  .site-footer img { width: calc(511 * var(--u)); margin-bottom: calc(70 * var(--u)); }
}

/* Simple pages (thank-you, accessibility, 404) */
.page { width: min(100% - 40px, 860px); margin: 48px auto; }
.page-logo { width: 120px; margin: 0 auto 24px; }
.page h1 { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; margin-bottom: 24px; }
.page h2 { font-size: clamp(22px, 2.4vw, 32px); margin: 32px 0 12px; }
.page p, .page li { font-size: 18px; line-height: 1.6; margin-bottom: 12px; }
.page ul { list-style: disc; padding-inline-start: 24px; }
.page-center { text-align: center; }
.page .cta-link { display: inline-block; margin-top: 16px; }

/* Below ~1040px the 13px floor on the form texts makes the Wix breaks fall early */
@media (min-width: 768px) and (max-width: 1039px) { .consent .lb, .disclaimer .lb { display: none; } }
