/* ===== Wild Table ===== */
@font-face { font-family: "Leon"; src: url("fonts/Leon-ProductRegular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Leon"; src: url("fonts/Leon-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --cream: #F9F6F1;   /* רקע מרכזי */
  --cream2: #F3EDE3;  /* רקע משני */
  --earth: #493B32;   /* טקסט וכותרות */
  --bordo: #702F3B;   /* צבע מותג */
  --peach: #D3A184;   /* צבע משלים */
  --r: 20px;
  --h2: clamp(2.4rem, 6.4vw, 5rem); /* גודל אחד לכל הכותרות הראשיות */
  --gutter: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { background: var(--cream); color: var(--earth); font-family: "Leon", system-ui, sans-serif; font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--bordo); outline-offset: 4px; border-radius: 999px; }
h2 { font-weight: 700; font-size: var(--h2); line-height: 1.05; text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h2 b { color: var(--bordo); font-weight: 700; }
/* כותרות מחולקות: חלק קטן ושקט, וחלק גדול */
h2 .sm { display: block; font-size: .42em; font-weight: 400; line-height: 1.25; margin-bottom: .3em; }
.eyebrow { font-size: 16px; font-weight: 700; color: var(--bordo); margin-bottom: 18px; }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--earth); color: var(--cream); padding: 8px 16px; border-radius: 999px; }
.skip:focus { top: 16px; }

/* ===== כפתורים ===== */
.btn { display: inline-block; background: var(--bordo); color: var(--cream); text-decoration: none; padding: 15px 32px; font-weight: 700; border-radius: 999px; transition: background .2s, color .2s; }
.btn:hover { background: var(--earth); }

/* ===== ראש העמוד ===== */
.top { position: fixed; inset-inline: 0; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); pointer-events: none; transition: background-color .3s; }
.top.on { background: rgb(249 246 241 / .94); box-shadow: 0 1px 0 rgb(73 59 50 / .08); pointer-events: auto; }
.top > * { pointer-events: auto; }
.top .mark { display: flex; align-items: center; gap: 6px; direction: ltr; font-weight: 700; font-size: 20px; letter-spacing: -.01em; text-decoration: none; color: var(--earth); padding: 4px 0; border-radius: 6px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.top.on .mark { opacity: 1; visibility: visible; }
.top .mark .sprig { color: #7d8f74; flex: none; }
.top .talk { background: var(--cream); text-decoration: none; font-size: 16px; padding: 8px 18px; border-radius: 999px; box-shadow: 0 0 0 1px rgb(73 59 50 / .15); }
/* תפריט עליון */
.top-start { display: flex; align-items: center; gap: 10px; }
.top-end { display: flex; align-items: center; gap: 8px; }
.top .talk { white-space: nowrap; }
.menu-btn { display: grid; place-content: center; gap: 6px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 1px rgb(73 59 50 / .15); cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--earth); transition: translate .25s, rotate .25s; }
.top.open .menu-btn span:first-child { translate: 0 4px; rotate: 45deg; }
.top.open .menu-btn span:last-child { translate: 0 -4px; rotate: -45deg; }
.menu { position: absolute; top: 100%; inset-inline: 0; display: grid; padding: 8px var(--gutter) 24px; background: var(--cream); box-shadow: 0 12px 24px rgb(73 59 50 / .12); opacity: 0; visibility: hidden; translate: 0 -8px; transition: opacity .25s, visibility .25s, translate .25s; }
.top.open .menu { opacity: 1; visibility: visible; translate: 0 0; }
.top.open { background: var(--cream); }
.menu a { font-size: 24px; text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgb(73 59 50 / .1); }
.menu a:last-child { border-bottom: 0; }
.menu a:hover { color: var(--bordo); }
section[id] { scroll-margin-top: 72px; }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .menu { position: absolute; inset-inline: auto; top: 50%; left: 50%; translate: -50% -50%; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--cream); box-shadow: 0 0 0 1px rgb(73 59 50 / .15); opacity: 1; visibility: visible; transition: background-color .3s, box-shadow .3s; }
  .top.on .menu { background: transparent; box-shadow: none; }
  .menu a { font-size: 16px; padding: 6px 14px; border: 0; border-radius: 999px; }
  .menu a:hover { background: var(--cream2); }
}

/* ===== פתיחה ===== */
.intro { position: relative; height: 230svh; }
.stick { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.kicker { position: absolute; top: 18svh; inset-inline: 0; text-align: center; font-size: 16px; font-weight: 700; color: var(--bordo); opacity: calc(1 - var(--p, 0) * 3); }
.title { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: .06em; font-weight: 700; line-height: .85; letter-spacing: -.02em; font-size: clamp(5.5rem, 27vw, 17rem); white-space: nowrap; direction: ltr; }
.title .w { opacity: calc(1 - var(--p, 0) * 1.6); }
.frame { position: relative; flex: none; width: 78vw; height: 48vw; border-radius: var(--r); overflow: hidden; background: var(--earth); }
.frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(73 59 50 / .85), rgb(73 59 50 / 0) 60%); opacity: var(--say, 0); }
.say { position: absolute; z-index: 2; inset-inline: clamp(20px, 5vw, 72px); bottom: clamp(28px, 7vh, 72px); direction: rtl; text-align: start; white-space: normal; color: var(--cream); font-size: clamp(2rem, 7vw, 5.6rem); line-height: 1; letter-spacing: 0; opacity: var(--say, 0); translate: 0 calc((1 - var(--say, 0)) * 30px); }
.say span { display: block; }
.say .a { color: var(--cream); font-size: .5em; margin-bottom: .25em; }
.say .b { color: var(--peach); }
.sub { position: absolute; inset-inline: var(--gutter); bottom: calc(clamp(18px, 4svh, 36px) + 100px); text-align: center; font-size: clamp(1.05rem, 1.6vw, 1.35rem); text-wrap: balance; color: var(--earth); opacity: calc(1 - var(--p, 0) * 4); }
.hint { position: absolute; bottom: clamp(18px, 4svh, 36px); left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 16px; color: var(--bordo); text-decoration: none; opacity: calc(1 - var(--p, 0) * 4); border-radius: 8px; padding: 4px 8px; }
@media (min-width: 900px) {
  .sub { bottom: auto; top: calc(50% + clamp(5.5rem, 27vw, 17rem) * .43 + 2.2rem); }
}
.hint:focus-visible { outline: 2px solid var(--bordo); outline-offset: 2px; }

/* פרחים שמבצבצים מהצדדים */
.peek { position: absolute; width: var(--w, 200px); pointer-events: none; z-index: 3; will-change: transform; }
.euc { top: 9svh !important; width: 100px; }
@media (max-width: 899px) {
  .title { font-size: clamp(5.5rem, min(27vw, 16svh), 17rem); }
  .frame { height: min(48vw, 30svh); }
  .kicker { top: 14svh; }
  .euc { top: -1svh !important; width: 84px; }
}

/* ===== מי אני ===== */
.about { position: relative; padding: clamp(72px, 9vw, 120px) var(--gutter) clamp(88px, 10vw, 140px); display: grid; gap: 40px; }
.about h2 { margin-bottom: 28px; }
.about-text p:not(.eyebrow) { max-width: 46ch; margin-bottom: 16px; }
.about-photo img { display: block; width: 100%; max-height: 68svh; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; border-radius: var(--r); }

/* פרח קטן שנושר בגלילה */
.fall { position: absolute; z-index: 3; width: clamp(120px, 14vw, 200px); top: 20px; inset-inline-start: calc(50% - clamp(60px, 7vw, 100px)); pointer-events: none; will-change: transform; }

/* ===== שירותים: תמונה רחבה שמתחלפת בגלילה ===== */
.services { position: relative; height: 320svh; padding: 0 var(--gutter); }
.svc-stage { position: sticky; top: 76px; height: calc(100svh - 96px); border-radius: var(--r); overflow: hidden; background: var(--earth); color: var(--cream); }
.svc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.06; transition: opacity .9s ease, scale 1.6s ease; }
.svc-img.on { opacity: 1; scale: 1; }
.svc-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(73 59 50 / .92) 0%, rgb(73 59 50 / .55) 45%, rgb(73 59 50 / .05) 75%); }
.svc { position: absolute; z-index: 2; inset-inline: clamp(24px, 5vw, 72px); bottom: clamp(56px, 9vh, 96px); max-width: 30rem; display: grid; gap: 14px; opacity: 0; translate: 0 24px; transition: opacity .6s ease, translate .6s ease; pointer-events: none; }
.svc.on { opacity: 1; translate: 0 0; transition-delay: .15s; pointer-events: auto; }
.svc .num { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; font-weight: 400; color: var(--peach); }
.svc h3 { font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; text-wrap: balance; }
.svc-bars { position: absolute; z-index: 2; inset-inline-end: clamp(20px, 4vw, 56px); bottom: clamp(56px, 9vh, 96px); list-style: none; padding: 0; display: flex; gap: 8px; }
.svc-bars li { width: 34px; height: 3px; border-radius: 3px; background: rgb(249 246 241 / .35); transition: background .4s; }
.svc-bars li.on { background: var(--cream); }
@media (max-width: 599px) { .svc-bars { inset-inline-end: auto; inset-inline-start: clamp(24px, 5vw, 72px); bottom: 24px; } .svc { bottom: 52px; } }
@media (min-width: 900px) {
  .svc-shade { background: linear-gradient(to left, rgb(73 59 50 / .9) 0%, rgb(73 59 50 / .6) 38%, rgb(73 59 50 / 0) 70%); }
  .svc { top: 50%; bottom: auto; translate: 0 calc(-50% + 24px); }
  .svc.on { translate: 0 -50%; }
}

/* ===== גלריה ===== */
.gallery { padding: 0 0 clamp(110px, 14vw, 170px); }
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 0 var(--gutter) 40px; }
.gallery-title { line-height: .95; position: relative; isolation: isolate; }
.gallery-title .sm { margin: .25em 0 0; }
/* ענף אקליפטוס ששוכב ליד "לשולחן" */
.lie { position: relative; display: inline-block; width: 3.6em; height: 1em; margin-inline-start: .1em; vertical-align: middle; }
.lie img { position: absolute; height: 3.6em; width: auto; max-width: none; left: 50%; top: 50%; translate: -50% -50%; rotate: -84deg; pointer-events: none; }
.pause { font: inherit; font-size: 16px; color: var(--earth); background: transparent; border: 1px solid rgb(73 59 50 / .35); border-radius: 999px; padding: 8px 18px; cursor: pointer; flex: none; }
.pause:hover { border-color: var(--earth); }
.strip { overflow: hidden; }
.strip:focus-visible { outline: 3px solid var(--bordo); outline-offset: 4px; }
.track { display: flex; width: max-content; align-items: center; }
.track img { display: block; margin-inline-end: clamp(16px, 3vw, 40px); width: auto; height: clamp(220px, 32vw, 440px); object-fit: cover; border-radius: var(--r); }
.track img:nth-child(3n+1) { height: clamp(260px, 38vw, 520px); }
.track img:nth-child(3n+2) { margin-top: 90px; }

/* ===== איך עובדים ===== */
.process { position: relative; background: var(--cream2); padding: clamp(96px, 12vw, 160px) var(--gutter); border-radius: 28px 28px 0 0; }
.process h2 { max-width: 16ch; margin-bottom: clamp(48px, 7vw, 88px); position: relative; z-index: 4; }
/* ציר זמן בצורת גבעול שגדל בגלילה */
.timeline { position: relative; z-index: 4; --grow: 0; }
.steps { list-style: none; padding: 0; display: grid; gap: 44px; }
.steps li { position: relative; padding-inline-start: 44px; }
.steps span { display: block; font-weight: 700; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: var(--bordo); margin-bottom: 10px; }
.steps h3 { font-weight: 700; font-size: 22px; margin-bottom: 6px; }
/* טלפון: גבעול ישר לאורך הצד */
/* בטלפון: גבעול מתפתל לאורך השלבים, שנבנה לפי המיקום של הניצנים */
.stem-v { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.stem-v path { fill: none; stroke-linecap: round; }
.stem-v .stem-track { stroke: rgb(211 161 132 / .55); stroke-width: 2; }
.stem-v .stem-grow { stroke: var(--earth); stroke-width: 2.5; }
.stem-line { display: none; }
/* ניצן: עיגול קטן עם עלה, שנפתח כשמגיעים אליו */
.bud { position: absolute; inset-inline-start: 2px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream2); border: 2px solid var(--peach); transition: background .5s, border-color .5s, scale .5s; z-index: 1; }
.bud::after { content: ""; position: absolute; width: 12px; height: 6px; border-radius: 0 100% 0 100%; background: #7d8f74; top: -9px; inset-inline-start: 8px; rotate: -30deg; scale: 0; transform-origin: left bottom; transition: scale .5s .1s; }
.bud.on { background: var(--bordo); border-color: var(--bordo); scale: 1.2; }
.bud.on::after { scale: 1; }
.bloom { position: absolute; width: 64px; inset-inline-start: -18px; bottom: -22px; scale: 0; rotate: -60deg; transition: scale .7s cubic-bezier(.3,1.6,.5,1), rotate .7s; pointer-events: none; }
.bloom.on { scale: 1; rotate: 0deg; }

/* ===== המלצות ===== */
.quotes { background: var(--cream2); padding: 0 var(--gutter) clamp(110px, 14vw, 180px); display: grid; gap: 56px; justify-content: center; justify-items: center; text-align: center; }
.quote { max-width: 40ch; }
.quote::before { content: "”"; display: block; text-align: center; font-weight: 700; font-size: 4.5rem; line-height: .7; color: var(--peach); margin-bottom: 8px; }
.quote blockquote { font-size: 18px; line-height: 1.65; }
.quote figcaption { margin-top: 12px; font-weight: 700; color: var(--bordo); }

/* ===== יצירת קשר ===== */
.contact { position: relative; background: var(--bordo); color: var(--cream); padding: clamp(80px, 9vw, 120px) var(--gutter) clamp(56px, 6vw, 88px); text-align: center; display: grid; justify-items: center; gap: 28px; border-radius: 28px 28px 0 0; margin-top: -28px; }
.contact a:focus-visible, .foot a:focus-visible { outline-color: var(--cream); }
.wa-float:focus-visible { outline-color: var(--earth); }
.contact h2 { max-width: 18ch; }
.contact h2 .big { color: var(--peach); display: block; }
.contact h2 .sm { color: var(--cream); }
.btn-big { background: var(--cream); color: var(--bordo); font-size: 20px; padding: 18px 40px; }
.btn-big:hover { background: var(--peach); color: var(--earth); }
.links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.links a { display: inline-block; padding: 10px 4px; text-decoration: none; border-bottom: 1px solid rgb(249 246 241 / .4); }
.links a:hover { border-color: var(--cream); }
.links a[href^="mailto"], .links a[href^="https"], .links a[href^="tel"] { direction: ltr; unicode-bidi: isolate; }

.foot { background: var(--bordo); color: rgb(249 246 241 / .85); display: flex; justify-content: space-between; padding: 18px var(--gutter); font-size: 16px; border-top: 1px solid rgb(249 246 241 / .15); }

/* ===== וואטסאפ צף ===== */
.wa-float { position: fixed; z-index: 40; bottom: 18px; inset-inline-start: 18px; display: grid; place-items: center; width: 58px; height: 58px; background: var(--bordo); color: var(--cream); border-radius: 50%; box-shadow: 0 6px 20px rgb(73 59 50 / .25); opacity: 0; translate: 0 20px; pointer-events: none; transition: opacity .3s, translate .3s; }
.wa-float.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.wa-float:hover { background: var(--earth); }

/* ===== מחשב ===== */
@media (min-width: 900px) {
  .title { flex-direction: row; font-size: clamp(6rem, 13vw, 15rem); gap: .12em; }
  .frame { width: 30vw; height: .8em; }
  .euc { top: 12svh !important; width: var(--w); }
  .kicker { top: 14svh; }
  .about { grid-template-columns: 1.1fr 1fr; align-items: center; column-gap: 6vw; }
  .about-photo { margin-inline-end: calc(var(--gutter) * -1); }
  .about-photo img { aspect-ratio: 3/4; border-start-end-radius: 0; border-end-end-radius: 0; }
  .quotes { grid-template-columns: repeat(3, minmax(0, 30ch)); align-items: start; column-gap: 5vw; row-gap: 0; }
  /* שלוש ההמלצות באותו גובה: הציטוט והשם מתיישרים */
  .quote { display: grid; grid-template-rows: subgrid; grid-row: span 3; height: 100%; }
  .quote figcaption { align-self: end; }
}
@media (min-width: 1100px) {
  /* מחשב: גבעול גלי לרוחב, הניצנים יושבים עליו */
  .stem-v { display: none; }
  .stem-line { display: block; position: absolute; inset-inline: 0; top: 0; width: 100%; height: 40px; overflow: visible; }
  .stem-line path { fill: none; stroke-width: 2; stroke-linecap: round; }
  .stem-track { stroke: rgb(211 161 132 / .55); }
  .stem-grow { stroke: var(--earth); stroke-width: 2.5; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .steps li { padding: 64px 0 0; padding-inline-end: 36px; }
  .bud { inset-inline-start: -9px; top: 11px; }
  .bloom { inset-inline-start: auto; inset-inline-end: -40px; bottom: auto; top: -14px; }
}

/* ===== תנועה ===== */
@media (prefers-reduced-motion: no-preference) {
  .track { animation: slide 55s linear infinite; }
  /* החץ בפתיחה יורד ועולה בעדינות */
  .hint svg { animation: nudge 1.8s ease-in-out infinite; }
  @keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 7px; } }
  /* פרח שמתנדנד לאט, כמו ברוח */
  .sway { transform-origin: 30% 60%; animation: sway 5s ease-in-out infinite alternate; }
  @keyframes sway { from { rotate: -6deg; } to { rotate: 7deg; } }
  .strip:hover .track, .strip:focus-within .track, .strip.paused .track { animation-play-state: paused; }
  @keyframes slide { to { transform: translateX(33.3333%); } }
  .reveal { opacity: 0; translate: 0 32px; transition: opacity .8s ease-out, translate .8s ease-out; }
  .reveal.in { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-img, .svc { transition: none; scale: 1; }
  html { scroll-behavior: auto; }
  .intro { height: 100svh; }
  .strip { overflow-x: auto; }
}
