/* =========================================================
   מילה במילה — Landing page styles
   Mobile-first · RTL · pure CSS (no JS, no frameworks)
   Palette & layout matched to the Adobe XD design.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* colors */
  --c-cream:     #fdf6f0;  /* page background            */
  --c-peach:     #f8e4d9;  /* accent section bands       */
  --c-peach-2:   #fcefe8;  /* soft tints                 */
  --c-hero-1:    #fdeee6;  /* hero gradient (light)      */
  --c-hero-2:    #f6dccd;  /* hero gradient (peach)      */
  --c-ink:       #242424;  /* near-black headings (sans) */
  --c-text:      #4f4a44;  /* body text                  */
  --c-muted:     #8a7f78;  /* gray: nav, quotes, labels  */
  --c-brand:     #9a5e4a;  /* brand brown (kicker/hover) */
  --c-wordmark:  #45342a;  /* dark brown wordmark        */
  --c-clay:      #c17a5e;  /* terracotta accent (ב)      */
  --c-red:       #c0392b;  /* feature titles / accents   */
  --c-rose:      #c9806c;  /* buttons, links             */
  --c-rose-dark: #b26a56;  /* hover                      */
  --c-line:      #d9c6bb;  /* warm borders               */
  --c-input:     #9a9088;  /* input borders (design)     */
  /* team avatar colors */
  --c-avatar-red:   #d6453f;
  --c-avatar-green: #57a877;
  --c-avatar-blue:  #2f6fb0;

  /* typography — design uses a heavy geometric sans (Heebo) everywhere,
     with the serif (Frank Ruhl Libre) reserved for the logo wordmark only */
  --font-body:  "Heebo", "Segoe UI", system-ui, sans-serif;
  --font-head:  "Heebo", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Frank Ruhl Libre", Georgia, serif;

  /* spacing & layout */
  --container: 1440px;
  --container-narrow: 980px;
  --radius: 14px;
  --section-y: 4rem;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* keep anchor targets clear of the fixed header */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--c-ink);
  line-height: 1.2;
  margin: 0;
}

p { margin: 0; }

a { color: var(--c-rose); text-decoration: none; }
a:hover { color: var(--c-rose-dark); }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }

.section--accent { background: var(--c-peach); }

.section__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 2rem;
}
.section__title--center { text-align: center; }
/* Some titles in the design are a soft taupe rather than near-black */
.section__title--muted { color: var(--c-muted); }
/* "נעים להכיר" heading — same terracotta as the hero title */
#meet { color: rgb(175, 127, 110); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn--primary {
  background: var(--c-rose);
  color: #fff;
}
.btn--primary:hover {
  background: var(--c-rose-dark);
  color: #fff;
  transform: translateY(-2px);
}
/* Outlined / ghost button — matches the hero CTA in the design */
.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border: 1.5px solid var(--c-ink);
  border-radius: 6px;
  padding: 0.9rem 2.2rem;
}
.btn--ghost:hover {
  background: var(--c-ink);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Header (floating, stays on top while scrolling) ---------- */
.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--c-cream) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--c-line) 45%, transparent);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.header__logo {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}

/* ---------- Mobile nav toggle (hamburger) ---------- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile: nav collapses into a dropdown panel below the header */
.nav {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  display: none;
  background: var(--c-cream);
  border-bottom: 1px solid var(--c-line);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.nav.is-open { display: block; }
.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 0;
}
.nav__link {
  color: var(--c-muted);
  font-weight: 500;
  font-size: 1.15rem;
}
.nav__link:hover { color: var(--c-brand); }
/* link that leaves the current page — shown with a small external icon */
.nav__link--external {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.nav__ext-icon { flex-shrink: 0; opacity: 0.75; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  /* fallback while the video loads */
  background: linear-gradient(135deg, var(--c-hero-1), var(--c-hero-2));
}
/* background video, veiled by .hero::after so the text stays readable */
.hero__video {
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 140%; /* oversize + shift left so the animation clears the text on the right */
  height: 100%;
  object-fit: cover;
  filter: contrast(1.15) saturate(1.4) brightness(0.97);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left,
    var(--c-hero-2) 0%,
    rgba(246, 220, 205, 0.9) 22%,
    rgba(253, 238, 230, 0.3) 45%,
    rgba(253, 238, 230, 0) 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start; /* RTL: content sits on the right */
  align-items: stretch;
  padding-block: 0;
}
.hero__content {
  text-align: right;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(40rem, 92vh, 56rem);
  padding-block: 7.5rem 5rem;
}
.hero__cta-block { margin-top: 0; }
.hero__kicker {
  font-family: var(--font-serif);
  color: var(--c-brand);
  letter-spacing: 0.5em;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero__kicker::before,
.hero__kicker::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--c-brand);
  opacity: 0.6;
}
.hero__brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 4.6rem);
  line-height: 1;
  color: var(--c-wordmark);
  margin-bottom: 2.2rem;
}
.hero__brand-accent { color: var(--c-clay); }
/* Studio logo (wordmark) used in place of the styled hero text */
.hero__logo {
  width: 100%;
  max-width: 24rem;
  height: auto;
  margin-bottom: 2.2rem;
}
.hero__title {
  font-size: clamp(2.5rem, 6.5vw, 4rem);
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 0.6rem;
}
.hero__title-accent { color: rgb(175, 127, 110); }
.hero__subtitle {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 1.8rem;
}
/* Hero CTA: wide rectangle, soft taupe outline, muted label (per the design) */
.hero__cta-block .btn--ghost {
  display: block;
  text-align: center;
  color: var(--c-text);
  border-color: #b9a89d;
  border-radius: 4px;
  padding: 1rem 2rem;
  margin-top: 200px;
}
.hero__cta-block .btn--ghost:hover {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}

/* ---------- About ---------- */
.about__text {
  text-align: center;
  font-size: 1.1rem;
  color: var(--c-muted);
}

/* ---------- Team ---------- */
.team { background: var(--c-peach); }
.team__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.team-card { text-align: center; }

/* Whole card is a link to the editor's page */
.team-card__link {
  display: block;
  color: inherit;
  border-radius: var(--radius);
  padding: 1rem 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.team-card__link:hover,
.team-card__link:focus-visible {
  color: inherit;
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
}
.team-card__link:hover .team-card__role { color: var(--c-red); }

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate; /* keep transformed imgs clipped to the circle */
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}
.avatar--red   { background: var(--c-avatar-red); }
.avatar--green { background: var(--c-avatar-green); }
.avatar--blue  { background: var(--c-avatar-blue); }

/* Photo avatars: real headshots given a consistent circular crop.
   A shared grayscale tone unifies the different backgrounds/lighting,
   and each photo is zoomed + nudged so the faces sit centred at a
   similar scale. */
.avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar__img--adina  { transform: scale(1.18) translate(0, 8%); }
.avatar__img--ayelet { transform: scale(1.35) translate(6%, 12%); }

.team-card__name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 0.2rem;
}
.team-card__role {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 0.5rem;
}
.team-card__quote {
  color: var(--c-muted);
  max-width: 34ch;
  margin-inline: auto;
}
/* "לפירוט" affordance at the bottom of the card (the whole card is the link) */
.team-card__more {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--c-rose);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.team-card__link:hover .team-card__more { color: var(--c-rose-dark); }

/* ---------- Editor detail page ----------
   RTL order: avatar on the right, text in the middle, and the books
   photo showing through on the left, clear of the content */
.editor {
  background:
    /* peach veil — solid under the content, fading toward the books */
    linear-gradient(to left,
      var(--c-hero-2) 0%,
      rgba(246, 220, 205, 0.9) 45%,
      rgba(253, 238, 230, 0.35) 68%,
      rgba(253, 238, 230, 0) 85%),
    url("images/books-background.jpg") left calc(50% - 100px) / cover no-repeat,
    linear-gradient(135deg, var(--c-hero-1), var(--c-hero-2));
  /* ~85% of the photo's full-image height: close to uncropped, but short
     enough to leave vertical slack so background-position can shift the
     visible slice. The second term keeps the section tall enough for
     stacked content on narrow screens, where 100vw alone would be too short */
  min-height: max(calc(100vw * 742 / 1200 * 0.85), calc(var(--section-y) + 4.8rem + 30rem));
  padding-top: calc(var(--section-y) + 4.8rem); /* clear the floating header */
}
.editor__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}
.avatar--lg {
  width: 276px;
  height: 276px;
  font-size: 2rem;
  flex-shrink: 0;
}
.editor__text { max-width: 60ch; }
.editor__name {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 0.3rem;
}
.editor__role {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 1.6rem;
}
.editor__bio {
  color: var(--c-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.editor__creds {
  display: grid;
  gap: 0.35rem;
  color: var(--c-muted);
  margin-bottom: 1.8rem;
}
.editor__back { font-weight: 600; }

@media (min-width: 768px) {
  .editor__inner {
    flex-direction: row; /* RTL: avatar first = rightmost */
    justify-content: flex-start; /* hug the right edge, leaving the books visible on the left */
    align-items: center;
    text-align: right;
    gap: 4rem;
    transform: translateX(20%); /* nudge the content right, clear of the books */
  }
  .editor__inner .avatar--lg { margin: 0; } /* cancel the auto-centering margin inside the row */
  .editor__text { max-width: 46ch; }
}

/* ---------- Process: scroll-driven story ----------
   The section is tall; a full-screen sticky pane stays pinned while
   scrolling through it, and JS swaps the visible step by progress. */
.story {
  position: relative;
  height: 420vh;
}
.story__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 4.5rem; /* keep clear of the floating header */
}
.story__stage {
  position: relative;
  height: 20rem;
}
.story__step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.story__step.is-active {
  opacity: 1;
  transform: none;
}
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin: 0 auto;
  border: 1.5px solid var(--c-ink);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--c-ink);
}
.step__num--story {
  width: 156px;
  height: 156px;
  font-size: 3.85rem;
  border-width: 2px;
}
.story__label {
  display: block;
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  color: var(--c-ink);
  max-width: 22ch;
}
/* progress rail — pinned to the right edge (RTL start side) */
.story__rail {
  position: absolute;
  inset-inline-start: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.9rem;
}
/* continuous line behind the dots */
.story__rail::before {
  content: "";
  position: absolute;
  inset-block: 8px;
  inset-inline-start: 5px;
  width: 1px;
  background: var(--c-line);
}
.story__mark {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.story__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--c-muted);
  background: var(--c-cream); /* cover the rail line */
  flex-shrink: 0;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.story__caption {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-muted);
  transition: color 0.3s ease, transform 0.3s ease;
}
.story__mark.is-active .story__dot {
  background: var(--c-clay);
  border-color: var(--c-clay);
  transform: scale(1.35);
}
.story__mark.is-active .story__caption {
  color: var(--c-clay);
  font-weight: 700;
  transform: translateX(-3px);
}
@media (min-width: 768px) {
  .story__rail { display: flex; }
}
/* tiny letter-spaced scroll hint at the bottom of the pinned pane;
   terracotta pill (same brown as the hero "חולמים" accent) that
   fades away once the last step is reached */
.story__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
  background: rgb(175, 127, 110);
  padding: 0.45rem 1.1rem 0.45rem 1.3rem; /* extra left pad balances the letter-spacing */
  border-radius: 999px;
  opacity: 0.9;
  transition: opacity 0.45s ease;
}
.story--done .story__scroll-hint { opacity: 0; }

/* ---------- Why choose us: stacked title + dark bars ---------- */
.why__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
/* RTL: the bars (first child) sit on the right, the title on the left */
.why__title {
  font-size: clamp(3rem, 5.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  color: var(--c-ink);
}
.why__title-line { display: block; }
.why__title-line--brown { color: #6b4a38; }
.why__title-line--rose  { color: #c0836e; }

.why__list {
  display: grid;
  gap: 0.8rem;
}
.why-card {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  background: #453227;
  border-radius: 6px;
  padding: 1rem 1.5rem;
}
.why-card__icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}
.why-card__title {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.1rem;
}
.why-card__text {
  color: #bd9179;
  font-weight: 500;
}

/* ---------- Testimonials carousel ---------- */
.carousel {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}
.testimonials__cta {
  text-align: center;
  margin-top: 2rem;
}
.carousel__viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block: 0.5rem; /* room for the hover lift + shadow */
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__track { display: flex; gap: 1.75rem; }
.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
}
.carousel__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--c-rose);
  border-radius: 50%;
  color: var(--c-rose);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.carousel__arrow:hover:not(:disabled) { background: var(--c-rose); color: #fff; }
.carousel__arrow:disabled { opacity: 0.35; cursor: default; }
.quote-card {
  background: #fff;
  border: 1px solid #8c8c8c;
  border-radius: 0;
  padding: 2rem 1.75rem;
  min-height: 230px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.quote-card__author {
  order: -1; /* name on top, matching the design */
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--c-muted);
}
.quote-card__text {
  color: var(--c-ink);
  font-weight: 500;
}
/* Carousel cards are links to the full recommendation */
.quote-card--link {
  width: 100%;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.quote-card--link:hover {
  color: inherit;
  transform: translateY(-4px);
  border-color: var(--c-rose);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.quote-card__tag {
  display: block;
  color: var(--c-rose);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------- Recommendations page ---------- */
.recs {
  display: grid;
  gap: 2.25rem;
  margin-top: 1rem;
}
.rec {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
}
/* Briefly emphasize the entry a carousel card landed on */
.rec:target { border-color: var(--c-rose); box-shadow: 0 0 0 3px rgba(201, 128, 108, 0.25); }
.rec__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.rec__name { font-size: 1.5rem; font-weight: 800; }
.rec__tag { color: var(--c-rose); font-weight: 600; }
.rec__summary {
  font-weight: 700;
  color: var(--c-brand);
  margin-bottom: 1.2rem;
}
.rec__body { display: grid; gap: 1rem; }
.rec__body--verse { gap: 0; }
.rec__figure { margin: 1.5rem 0 0; }
.rec__img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border: 1px solid var(--c-line);
}

/* ---------- FAQ (native <details>, no JS) ---------- */
/* Design shows plain taupe questions — no boxes, no borders */
.faq__list { display: grid; gap: 1.6rem; }
.faq__item { background: none; border: none; }
.faq__question {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--c-muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.7rem;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::before {
  content: "+";
  color: var(--c-muted);
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.faq__item[open] .faq__question::before { content: "−"; }
.faq__answer {
  color: var(--c-text);
  padding-top: 0.6rem;
}

/* ---------- Contact form ---------- */
.contact-form {
  display: grid;
  gap: 1.5rem;
  background: #fff;
  border: 2px solid #e8d5c8;
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
}
.field { display: grid; gap: 0.5rem; }
.field__label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-brand);
}
.field__input {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c-ink);
  background: transparent;
  border: none;
  border-bottom: 2px solid #d9c6bb;
  border-radius: 0;
  padding: 0.7rem 0.2rem;
  width: 100%;
  text-align: right;
}
.field__input::placeholder { color: var(--c-muted); }
.field__input:focus {
  outline: none;
  border-bottom-color: var(--c-rose);
  box-shadow: none;
}
.field__input--area { resize: vertical; min-height: 160px; }

/* Validation error states */
.field__input--error,
.field__input--error:focus {
  border-color: var(--c-red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}
.field__error {
  color: var(--c-red);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: right;
}
.field__error:empty { display: none; }
.contact-form__submit {
  justify-self: center;
  margin-top: 0.5rem;
  background: #fff;
  color: var(--c-rose);
  border: 2px solid var(--c-rose);
  border-radius: 8px;
  padding: 0.75rem 2.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.contact-form__submit:hover {
  background: var(--c-rose);
  color: #fff;
}

/* Inline submit feedback */
.form-status {
  justify-self: center;
  text-align: center;
  font-weight: 600;
  min-height: 1.4em;
  margin: 0;
}
.form-status:empty { display: none; }
.form-status--sending { color: var(--c-muted); }
.form-status--ok      { color: #2f8f5b; }
.form-status--err     { color: var(--c-red); }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 999;
  background: #25d366;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ---------- Promo popup ---------- */
.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.promo-popup[hidden] { display: none; }
.promo-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 36, 36, 0.55);
}
.promo-popup__box {
  position: relative;
  background: var(--c-cream);
  border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
  padding: 2.5rem 2.25rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: promo-pop 0.25s ease;
}
@keyframes promo-pop {
  from { transform: scale(0.94); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.promo-popup__close {
  position: absolute;
  top: 0.6rem;
  left: 0.9rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--c-muted);
  cursor: pointer;
}
.promo-popup__close:hover { color: var(--c-ink); }
.promo-popup__text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--c-ink);
  margin: 0 0 1.5rem;
}
.promo-popup__cta { width: 100%; }

/* ---------- Footer ---------- */
.footer {
  background: var(--c-ink);
  color: #f1e8e2;
  padding-block: 2rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer__logo {
  height: 40px;
  width: auto;
  /* logo artwork is dark ink on transparent — invert to read against the dark footer */
  filter: brightness(0) invert(1);
}
.footer__copy { color: #cdbfb8; font-size: 0.92rem; }
.footer__link { color: #cdbfb8; text-underline-offset: 3px; }
.footer__link:hover { color: #fff; }

/* =========================================================
   Responsive — tablet & up
   ========================================================= */
@media (min-width: 768px) {
  :root { --section-y: 5.5rem; }

  .team__grid    { grid-template-columns: repeat(3, 1fr); }
  .why__inner    { grid-template-columns: 1.5fr 1fr; } /* RTL: bars right, title left */
  .carousel__slide { flex-basis: calc((100% - 1.75rem) / 2); }

  .section__title { font-size: 2.6rem; }

  /* Full nav returns; the hamburger is mobile-only */
  .header__inner { justify-content: center; gap: 2.5rem; padding-block: 1.4rem; }
  .header__logo { height: 34px; }
  .nav-toggle { display: none; }
  .nav {
    position: static;
    display: block;
    background: none;
    border-bottom: none;
    box-shadow: none;
  }
  .nav__list { flex-direction: row; flex-wrap: wrap; gap: 0.5rem 2.6rem; padding: 0; }
}

@media (min-width: 1024px) {
  .carousel__slide { flex-basis: calc((100% - 3.5rem) / 3); }
}

/* ---------- Scroll-driven sequential reveal ----------
   Each parent container owns a named view-timeline.
   Children are assigned different slices of that entry range
   so they reveal one after another purely based on scroll position. */
@keyframes reveal-slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@supports (animation-timeline: view()) {
  .team__grid         { view-timeline: --team-tl         block; }
  .why__list          { view-timeline: --features-tl      block; }

  .team-card  { animation: reveal-slide-up linear both; animation-timeline: --team-tl; }
  .why-card   { animation: reveal-slide-up linear both; animation-timeline: --features-tl; }

  /* 3-item group — each item spans 15%, spaced 15% apart, ending at cover 50% */
  .team-card:nth-child(1) { animation-range: cover  5% cover 20%; }
  .team-card:nth-child(2) { animation-range: cover 20% cover 35%; }
  .team-card:nth-child(3) { animation-range: cover 35% cover 50%; }

  /* 4-item group (why cards) */
  .why-card:nth-child(1) { animation-range: cover  5% cover 17%; }
  .why-card:nth-child(2) { animation-range: cover 16% cover 28%; }
  .why-card:nth-child(3) { animation-range: cover 27% cover 39%; }
  .why-card:nth-child(4) { animation-range: cover 38% cover 50%; }

}

/* =========================================================
   Guidance page (ליווי מקצועי) — guidance.html
   ========================================================= */
:root {
  --lv-brown: #46351d;      /* deep coffee brown from the brochure   */
  --lv-terracotta: #b1786a; /* muted terracotta section band         */
  --lv-card-rose: #bc8577;  /* rose benefit cards on the brown band  */
}

.lv-title__accent { color: var(--lv-terracotta); }
.lv-title--light  { color: #fbeee6; }
.lv-title--light .lv-title__bold { color: var(--lv-brown); }
.lv-title--cream  { color: #fbeee6; }

/* short centered rule under section titles */
.lv-rule {
  width: min(420px, 60%);
  height: 1px;
  background: var(--lv-brown);
  margin: 1.6rem auto 3rem;
}
.lv-rule--dark  { background: var(--lv-brown); }
.lv-rule--light { background: #fbeee6; }

/* solid dark-brown CTA button */
.lv-btn-brown {
  background: var(--lv-brown);
  color: #fbeee6;
  border-radius: 10px;
  padding: 0.95rem 2.6rem;
}
.lv-btn-brown:hover {
  background: #5c4729;
  color: #fff;
  transform: translateY(-2px);
}
/* rose highlight inside the brown button, as in the brochure */
.lv-btn-brown__accent { color: var(--lv-card-rose); }

/* ---------- Hero ---------- */
.lv-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--c-peach-2), var(--c-peach));
  padding-top: calc(var(--section-y) + 4.5rem); /* clear the fixed header */
  text-align: center;
}
/* notebook-and-coffee photo from the brochure */
.lv-hero__photo {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 2.5rem;
  order: 2;
  /* fade the top edge into the peach background */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%);
  mask-image: linear-gradient(to bottom, transparent, #000 22%);
}
/* mobile: text first, photo below it */
.lv-hero { display: flex; flex-direction: column; }
.lv-hero__content { order: 1; }
.lv-hero__photo { margin-bottom: calc(var(--section-y) * -1); } /* bleed to the section's bottom edge */

@media (min-width: 900px) {
  .lv-hero { display: block; min-height: 640px; }
  /* photo bleeds on the right, like the brochure */
  .lv-hero__photo {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 58%;
    margin: 0;
    object-fit: cover;
    object-position: center;
    /* fade the photo's left edge into the text column's background */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 25%);
    mask-image: linear-gradient(to right, transparent, #000 25%);
  }
  /* text column on the left */
  .lv-hero__content {
    position: relative;
    z-index: 1;
    width: min(600px, 44%);
    margin-right: 54%;
    margin-left: 3vw;
  }
}
.lv-hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4rem);
  color: var(--lv-brown);
}
.lv-hero__subtitle {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  color: var(--lv-terracotta);
  margin-top: 0.4rem;
}
.lv-hero__block {
  border-top: 1px solid color-mix(in srgb, var(--lv-brown) 45%, transparent);
  margin-top: 2rem;
  padding-top: 2rem;
  color: var(--c-ink);
  font-size: 1.1rem;
  line-height: 1.9;
}
.lv-hero__block strong { color: var(--lv-brown); }
.lv-hero .lv-btn-brown { margin-top: 2.5rem; }

/* ---------- What's included: dark cards on peach ---------- */
.lv-included { background: var(--c-peach-2); }
.lv-included__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.lv-card {
  background: var(--lv-brown);
  color: #f3e2d5;
  border-radius: 28px 28px 28px 8px;
  padding: 2rem 1.4rem;
  text-align: center;
}
.lv-card__icon { display: inline-block; color: #f3e2d5; margin-bottom: 1rem; }
.lv-card__icon img { height: 68px; width: auto; margin-inline: auto; }
.lv-card__title {
  color: #d99f8b;
  font-size: 1.1rem;
  font-weight: 700;
  padding-bottom: 0.6rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid color-mix(in srgb, #f3e2d5 40%, transparent);
}
.lv-card__text { font-size: 0.98rem; line-height: 1.7; }

/* ---------- Who is it for: arch cards on terracotta ---------- */
.lv-fit { background: var(--lv-terracotta); }
.lv-fit__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.lv-arch {
  background: #f8e4d9;
  color: var(--lv-brown);
  border-radius: 999px 999px 24px 24px;
  padding: 3rem 1.5rem 2.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.4rem;
}
.lv-arch__icon { color: var(--lv-brown); }
.lv-arch__text { font-weight: 700; line-height: 1.7; }
.lv-cta { text-align: center; margin-top: 3rem; }

/* ---------- Benefits: rose cards on dark brown ---------- */
.lv-benefits { background: var(--lv-brown); }
.lv-benefits__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  max-width: 920px;
  margin-inline: auto;
}
.lv-benefit {
  position: relative;
  background: var(--lv-card-rose);
  color: #fbeee6;
  border-radius: 18px 18px 18px 4px;
  padding: 2rem 1.6rem;
  text-align: center;
}
/* corner brackets echoing the brochure frames */
.lv-benefit::before,
.lv-benefit::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid #fbeee6;
  opacity: 0.75;
}
.lv-benefit::before {
  top: 12px;
  right: 12px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 12px 0 0;
}
.lv-benefit::after {
  bottom: 12px;
  left: 12px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 12px;
}
.lv-benefit__title {
  font-size: 1.6rem;
  font-weight: 800;
  padding-bottom: 0.5rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid color-mix(in srgb, #fbeee6 55%, transparent);
  display: inline-block;
  padding-inline: 1.2rem;
}
.lv-benefit__text { font-weight: 500; line-height: 1.7; }

/* ---------- Process: arch step cards on peach ---------- */
.lv-process { background: var(--c-peach-2); }
.lv-process__grid {
  position: relative;
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: 1fr;
}
/* connector line running just below the step badges (desktop rows only) */
.lv-process__grid::before {
  content: "";
  display: none;
  position: absolute;
  top: 4.8rem; /* clearly below the "שלב" pills */
  inset-inline: 12.5%;
  height: 2px;
  background: var(--lv-brown);
}
.lv-step {
  background: var(--lv-brown);
  color: #f3e2d5;
  border-radius: 999px 999px 28px 28px;
  padding: 2.2rem 1.5rem 2.8rem;
  text-align: center;
}
/* cream pill with brown text, sitting inside the top of the arch */
.lv-step__badge {
  display: inline-block;
  background: var(--c-peach);
  color: var(--lv-brown);
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.3rem 1.6rem;
  white-space: nowrap;
}
.lv-step__icon { display: block; color: #f3e2d5; margin: 2rem 0 1.6rem; }
.lv-step__icon svg { width: 84px; height: 84px; }
.lv-step__icon img { height: 96px; width: auto; margin-inline: auto; }
.lv-step__title {
  color: #d99f8b;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.lv-step__text { font-size: 0.95rem; line-height: 1.7; }

.lv-closing { text-align: center; margin-top: 3.5rem; }
.lv-closing__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  color: var(--lv-brown);
}
.lv-closing__text {
  color: var(--lv-terracotta);
  font-weight: 600;
  line-height: 1.8;
  margin-top: 0.9rem;
}
.lv-closing__text strong { color: var(--lv-brown); }
.lv-closing .lv-btn-brown { margin-top: 1.8rem; }

@media (min-width: 600px) {
  .lv-included__grid { grid-template-columns: repeat(2, 1fr); }
  .lv-fit__grid      { grid-template-columns: repeat(2, 1fr); }
  .lv-benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .lv-process__grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .lv-included__grid { grid-template-columns: repeat(5, 1fr); }
  .lv-fit__grid      { grid-template-columns: repeat(5, 1fr); }
  .lv-benefits__grid { grid-template-columns: repeat(3, 1fr); }
  .lv-process__grid  { grid-template-columns: repeat(4, 1fr); gap: 3rem; }
  .lv-process__grid::before { display: block; }
  .lv-step { min-height: 420px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
