/* ============================================================
   ליהיא צ'רנוביצקי — מנהלת סושיאל ויוצרת תוכן
   RTL Hebrew landing page
   ============================================================ */

:root{
  /* warm nude / taupe palette */
  --tan:        #C4A484;
  --tan-dark:   #B8956F;
  --sand:       #E8D5C4;
  --rose:       #D7C2B8;
  --cream:      #FDFBF9;
  --white:      #FFFFFF;
  --brown:      #8B7355;
  --espresso:   #3D2B1F;
  --espresso-d: #2A1F17;

  --ink:        #2C2723;
  --ink-2:      #57504A;
  --ink-3:      #8A827B;
  --line:       #EEE9E4;

  --radius-sm: 14px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 10px rgba(61,43,31,.05);
  --shadow:    0 10px 30px rgba(61,43,31,.07);
  --shadow-lg: 0 24px 60px rgba(61,43,31,.12);

  --container: 1140px;
  --header-h:  76px;
}

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

html{ scroll-behavior:smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body{
  margin:0;
  font-family:'Heebo', 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-weight:400;
  font-size:16px;
  line-height:1.75;
  color:var(--ink);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }

.container{ width:100%; max-width:var(--container); margin-inline:auto; padding-inline:24px; }
.container.narrow{ max-width:820px; }

/* ---------- typography ---------- */
h1,h2,h3{ margin:0; font-weight:300; line-height:1.25; letter-spacing:-.01em; }
h1{ font-size:clamp(2rem, 6.2vw, 4.2rem); }
h2{ font-size:clamp(1.6rem, 3.6vw, 2.5rem); }
h3{ font-size:1.2rem; font-weight:600; line-height:1.45; }

.accent{ color:var(--tan); font-weight:600; }
.strong{ font-weight:600; }
.center{ text-align:center; }

.eyebrow{
  color:var(--tan);
  font-size:.8rem;
  font-weight:500;
  letter-spacing:.22em;
  margin:0 0 14px;
}
.eyebrow.center{ text-align:center; }

.block-strong{ display:block; margin-top:8px; font-weight:600; color:var(--ink); }
.block-accent{ display:block; margin-top:8px; font-weight:600; color:var(--tan); }

.section-lead{
  max-width:640px; margin:16px auto 0;
  text-align:center; color:var(--ink-2);
}

.prose{ color:var(--ink-2); }
.prose p{ margin:0 0 16px; }

/* ---------- sections ---------- */
.section{ padding:clamp(64px, 9vw, 110px) 0; }
.section-white{ background:var(--white); }
.section-cream{ background:var(--cream); }
.section-fade{ background:linear-gradient(to bottom, var(--cream), var(--white)); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:2px solid transparent; border-radius:999px;
  font-family:inherit; font-size:1rem; font-weight:500; line-height:1;
  padding:14px 28px; cursor:pointer;
  transition:transform .25s ease, background-color .25s ease, color .25s ease,
             border-color .25s ease, box-shadow .25s ease;
}
.btn .ico{ width:20px; height:20px; }
.btn-solid{
  background:var(--tan); color:#fff;
  box-shadow:0 10px 26px rgba(196,164,132,.32);
}
.btn-solid:hover{ background:var(--tan-dark); transform:translateY(-2px) scale(1.02); }
.btn-outline{ border-color:var(--tan); color:var(--tan); background:transparent; }
.btn-outline:hover{ background:var(--tan); color:#fff; transform:translateY(-2px) scale(1.02); }
.btn-sm{ padding:10px 22px; font-size:.92rem; }
.btn-lg{ padding:17px 38px; font-size:1.06rem; }
.btn-block{ width:100%; }

/* ---------- header ---------- */
.site-header{
  position:fixed; inset-block-start:0; inset-inline:0; z-index:60;
  padding:20px 0;
  transition:padding .35s ease, background-color .35s ease, box-shadow .35s ease;
}
.site-header.scrolled{
  padding:10px 0;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 1px 0 var(--line), var(--shadow-sm);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand{
  display:flex; flex-direction:column; line-height:1.1;
  font-size:1.12rem; font-weight:600; letter-spacing:.14em; color:var(--brown);
  direction:ltr;
}
.brand-sub{
  font-size:.6rem; font-weight:400; letter-spacing:.28em;
  color:var(--tan); text-transform:uppercase; margin-top:3px;
}

/* ---------- hero ---------- */
.hero{
  position:relative; overflow:hidden;
  min-height:100svh;
  display:flex; align-items:center;
  padding:calc(var(--header-h) + 40px) 0 60px;
}
.hero-inner{ position:relative; z-index:2; text-align:center; max-width:860px; }

.blob{ position:absolute; border-radius:50%; filter:blur(90px); pointer-events:none; }
.blob-a{ inset-block-start:6%; inset-inline-end:-4%; width:340px; height:340px; background:rgba(196,164,132,.22); }
.blob-b{ inset-block-end:4%; inset-inline-start:-6%; width:430px; height:430px; background:rgba(232,213,196,.42); }
.ring{
  position:absolute; inset-block-start:50%; inset-inline-start:50%;
  width:min(660px, 92vw); aspect-ratio:1;
  transform:translate(50%, -50%);
  border:1px solid rgba(196,164,132,.16); border-radius:50%;
  pointer-events:none;
}

/* ---------- live strip (replaces the round hero photo) ----------
   Exactly four cards fit the viewport; the rest wait their turn in the loop.
   The track holds the items twice and slides by -50%, so when the animation
   restarts the second copy is already where the first began and the seam is
   invisible. --live-duration is the admin's chosen speed.

   Note: this deliberately keeps animating under prefers-reduced-motion. The
   strip was specified as always moving, and honouring the setting here left it
   frozen and wrapped onto two rows for anyone with it enabled. */
.live-strip{
  --live-gap:14px;
  position:relative;
  /* Stays inside the container. A 100vw full-bleed overflowed by half the
     scrollbar (100vw counts it, the container's 50% does not), which put a
     horizontal scrollbar on the page for a few pixels of extra width. */
  width:100%;
  /* the card width is a quarter of THIS box; without a container context the
     percentage resolves against the max-content track and blows up */
  container-type:inline-size;
  /* How many cards are across at once. The card's aspect ratio then decides the
     height, so the strip is the same shape on a phone as on a desktop instead
     of keeping four across and shrinking each photo to a sliver. */
  --live-visible:4;
  margin-block-end:30px;
  overflow:hidden;
  -webkit-mask-image:linear-gradient(to left, transparent, #000 7%, #000 93%, transparent);
          mask-image:linear-gradient(to left, transparent, #000 7%, #000 93%, transparent);
}
.live-track{
  display:flex; flex-wrap:nowrap; gap:var(--live-gap);
  width:max-content;
  /* The loop translates half the track, so with fewer cards across the same
     duration makes photos cross a narrow screen roughly twice as fast. Scaling
     by 4/visible keeps a card on screen for the same time on a phone as on a
     desktop — the admin's speed setting then means the same thing everywhere. */
  animation:live-scroll calc(var(--live-duration, 45s) * (4 / var(--live-visible)))
            linear infinite;
  will-change:transform;
}
@keyframes live-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(50%); }
}
/* four across the strip: 4 cards + 3 gaps fill it exactly */
.live-card{
  flex:0 0 calc((100cqi - (var(--live-visible) - 1) * var(--live-gap))
                / var(--live-visible));
  /* 5/7 is the ratio the desktop layout already had (192.5 x 270). Stating it
     explicitly keeps the crop identical at every width — before this the
     height came from a vw clamp, so photos were cropped to 0.71 on desktop but
     1.03 on a tablet and 0.55 on a phone. */
  aspect-ratio:5 / 7;
  margin:0;
  border-radius:var(--radius-lg); overflow:hidden;
  background:var(--sand);
  box-shadow:0 10px 26px rgba(61,43,31,.14);
}
.live-card img,
.live-card video{
  width:100%; height:100%; object-fit:cover; display:block;
  object-position:center 28%;
}
@media (hover:hover){
  .live-strip:hover .live-track{ animation-play-state:paused; }
}

/* Fewer across as the screen narrows, so each photo keeps a usable size. The
   strip stays ~30% of the viewport height at every width, which is what it
   already was on desktop. */
@media (max-width:900px){
  .live-strip{ --live-visible:3; }
}
@media (max-width:620px){
  .live-strip{ --live-visible:2; --live-gap:10px; }
}

.eyebrow-pill{
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.82); backdrop-filter:blur(6px);
  border:1px solid rgba(196,164,132,.24); border-radius:999px;
  padding:9px 20px; margin-bottom:26px;
  font-size:.9rem; color:var(--ink-2);
  box-shadow:var(--shadow-sm);
}
.eyebrow-pill .ico{ width:17px; height:17px; fill:var(--tan); }

.hero h1 .accent{ display:block; margin-top:6px; }
.hero h1 .h1-small{
  display:block; margin-top:10px; font-weight:300;
  font-size:clamp(1.3rem, 3.6vw, 2.4rem); color:var(--ink);
}
.hero-lead{
  margin:26px auto 34px; max-width:620px;
  font-size:clamp(1.02rem, 2vw, 1.22rem); color:var(--ink-2);
}
.hero-cta{ display:flex; flex-wrap:wrap; gap:14px; justify-content:center; }

.social-row{ display:flex; gap:12px; justify-content:center; margin-top:38px; }
.social-btn{
  width:48px; height:48px; border-radius:50%;
  display:grid; place-items:center;
  background:#fff; border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
  transition:transform .25s ease, background-color .25s ease, border-color .25s ease;
}
.social-btn .ico{ width:21px; height:21px; fill:var(--brown); transition:fill .25s ease; }
.social-btn:hover{ transform:translateY(-3px); background:var(--tan); border-color:var(--tan); }
.social-btn:hover .ico{ fill:#fff; }

.scroll-hint{
  display:block; width:32px; height:32px; margin:44px auto 0;
  color:rgba(196,164,132,.6);
  animation:bob 2.2s ease-in-out infinite;
}
.scroll-hint svg{ width:100%; height:100%; }
@keyframes bob{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(9px);} }

/* ---------- about ---------- */
.about-grid{
  display:grid; grid-template-columns:1fr 1fr;
  gap:clamp(32px, 5vw, 64px); align-items:center;
  max-width:1020px; margin-inline:auto;
}
.about-media{ position:relative; }
.about-glow{
  position:absolute; inset:-18px;
  background:rgba(196,164,132,.12); border-radius:var(--radius-xl); filter:blur(40px);
}
.about-stack{ position:relative; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.about-img{
  margin:0; aspect-ratio:4/5; border-radius:var(--radius-lg);
  overflow:hidden; box-shadow:var(--shadow-lg); background:var(--sand);
}
.about-img img{ width:100%; height:100%; object-fit:cover; }
.about-img-offset{ margin-top:34px; }
.role{ margin:0 0 20px; font-size:1.16rem; color:var(--ink); }
.about-text h2{ margin-bottom:12px; }

/* ---------- problems ---------- */
.problem-list{ margin-top:36px; display:grid; gap:10px; }
.problem{
  display:flex; align-items:center; gap:14px;
  padding:18px 22px; border-radius:var(--radius-lg);
  background:linear-gradient(to left, var(--cream), transparent);
  font-size:1.05rem; color:var(--ink-2);
  transition:background .3s ease;
}
.problem:hover{ background:linear-gradient(to left, rgba(196,164,132,.14), transparent); }
.dot{
  width:9px; height:9px; border-radius:50%; background:var(--tan);
  flex-shrink:0; transition:transform .3s ease;
}
.problem:hover .dot{ transform:scale(1.6); }

.callout{
  margin-top:44px; padding:32px;
  border-radius:var(--radius-xl);
  background:linear-gradient(135deg, rgba(196,164,132,.12), rgba(232,213,196,.22));
  border:1px solid rgba(196,164,132,.16);
}
.callout p{ margin:0; font-size:1.15rem; color:var(--ink-2); }

/* ---------- services cards ---------- */
.cards{
  margin-top:52px;
  display:grid; grid-template-columns:repeat(3, 1fr); gap:20px;
}
.card{
  padding:30px 28px; border-radius:var(--radius-lg);
  background:#fff; border:1px solid var(--line);
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover{
  transform:translateY(-8px);
  border-color:rgba(196,164,132,.32);
  box-shadow:0 18px 40px rgba(196,164,132,.16);
}
.card-ico{
  width:54px; height:54px; border-radius:var(--radius);
  display:grid; place-items:center; margin-bottom:20px;
  background:rgba(196,164,132,.12);
  transition:background .3s ease;
}
.card:hover .card-ico{ background:rgba(196,164,132,.22); }
.card-ico svg{ width:26px; height:26px; fill:var(--tan); }
.card h3{ margin-bottom:10px; color:var(--ink); }
.card p{ margin:0; color:var(--ink-2); font-size:.97rem; }

/* ---------- link cards (hoo.be style) ---------- */
.links{ margin-top:46px; display:grid; gap:12px; }
.link-card{
  display:flex; align-items:center; gap:16px;
  padding:16px 20px; border-radius:var(--radius);
  background:#fff; border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.link-card:hover{
  transform:translateY(-3px);
  border-color:rgba(196,164,132,.35);
  box-shadow:0 14px 32px rgba(196,164,132,.16);
}
.link-emoji{
  width:52px; height:52px; flex-shrink:0; border-radius:var(--radius-sm);
  display:grid; place-items:center;
  background:linear-gradient(135deg, rgba(215,194,184,.34), rgba(232,213,196,.5));
}
.link-emoji svg{ width:24px; height:24px; fill:var(--brown); }
.link-thumb{
  width:52px; height:52px; flex-shrink:0; border-radius:var(--radius-sm);
  object-fit:cover; background:var(--sand);
}
.link-text{ display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; }
.link-title{ font-weight:600; color:var(--ink); }
.link-sub{ font-size:.86rem; color:var(--ink-3); }
.link-arrow{
  width:20px; height:20px; flex-shrink:0; color:var(--tan);
  transition:transform .25s ease;
}
.link-card:hover .link-arrow{ transform:translateX(-4px); }

/* ---------- fit / not fit ---------- */
.fit-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:clamp(28px, 4vw, 48px);
  max-width:960px; margin-inline:auto;
}
.tag{
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 18px; border-radius:999px; margin-bottom:22px;
  font-size:.9rem; font-weight:500;
}
.tag .ico{ width:16px; height:16px; }
.tag-yes{ background:#EAF5EE; color:#3F7A55; }
.tag-yes .ico{ fill:#4E8F66; }
.tag-no{ background:#F1EFED; color:var(--ink-3); }
.tag-no .ico{ fill:var(--ink-3); }

.fit-list{ display:grid; gap:12px; }
.fit-item{
  display:flex; align-items:center; gap:12px;
  padding:16px 18px; border-radius:var(--radius);
}
.fit-item .ico{ width:20px; height:20px; flex-shrink:0; }
.fit-item.yes{ background:#F4FAF6; border:1px solid #E1EFE6; color:var(--ink-2); }
.fit-item.yes .ico{ fill:#4E8F66; }
.fit-item.no{ background:#F8F7F6; border:1px solid #EFEDEB; color:var(--ink-3); }
.fit-item.no .ico{ fill:#B6AFA9; }

/* ---------- why me ---------- */
.why-grid{
  margin-top:46px;
  display:grid; grid-template-columns:1fr 1fr; gap:14px;
}
.why-item{
  display:flex; align-items:center; gap:16px;
  padding:20px 22px; border-radius:var(--radius-lg);
  background:#fff; border:1px solid var(--line);
  color:var(--ink-2);
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.why-item:hover{
  transform:translateY(-3px);
  border-color:rgba(196,164,132,.3);
  box-shadow:var(--shadow);
}
.why-ico{
  width:42px; height:42px; flex-shrink:0; border-radius:50%;
  display:grid; place-items:center; background:rgba(196,164,132,.12);
}
.why-ico svg{ width:20px; height:20px; fill:var(--tan); }

/* ---------- contact ---------- */
.contact-grid{
  display:grid; grid-template-columns:1fr 1fr;
  gap:clamp(32px, 5vw, 60px); align-items:start;
  max-width:1020px; margin-inline:auto;
}
.contact-methods{ display:grid; gap:12px; margin-top:30px; }
.method{
  display:flex; align-items:center; gap:16px;
  padding:14px 18px; border-radius:var(--radius);
  background:#fff; border:1px solid var(--line);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.method:hover{
  transform:translateY(-2px);
  border-color:rgba(196,164,132,.32);
  box-shadow:var(--shadow);
}
.method-ico{
  width:46px; height:46px; flex-shrink:0; border-radius:var(--radius-sm);
  display:grid; place-items:center;
}
.method-ico svg{ width:22px; height:22px; }
.method-ico.wa{ background:#E4F5E9; } .method-ico.wa svg{ fill:#3E9B5F; }
.method-ico.ig{ background:#FBE9F0; } .method-ico.ig svg{ fill:#D6538C; }
.method-ico.tel{ background:rgba(196,164,132,.14); } .method-ico.tel svg{ fill:var(--tan); }
.method-ico.mail{ background:#EDEFF6; } .method-ico.mail svg{ fill:#6B7FB0; }
.method-text{ display:flex; flex-direction:column; min-width:0; }
.method-text b{ font-weight:500; color:var(--ink); }
.method-text small{ font-size:.85rem; color:var(--ink-3); overflow:hidden; text-overflow:ellipsis; }

/* ---------- form ---------- */
.form{
  padding:clamp(26px, 3.4vw, 38px);
  background:#fff; border:1px solid var(--line);
  border-radius:var(--radius-xl); box-shadow:var(--shadow);
}
.field{ margin-bottom:18px; }
.field label{
  display:block; margin-bottom:7px;
  font-size:.9rem; font-weight:500; color:var(--ink-2);
}
.field input,
.field select,
.field textarea{
  width:100%; padding:13px 16px;
  font-family:inherit; font-size:1rem; color:var(--ink);
  background:var(--cream);
  border:1px solid var(--line); border-radius:var(--radius-sm);
  transition:border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea{ resize:vertical; min-height:110px; }
.field select{
  appearance:none; cursor:pointer;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A827B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-size:18px;
  background-position:left 16px center;
  padding-inline-start:44px;
}
.field input::placeholder,
.field textarea::placeholder{ color:#B9B2AC; }
.field input:focus,
.field select:focus,
.field textarea:focus{
  outline:none; background:#fff;
  border-color:var(--tan);
  box-shadow:0 0 0 3px rgba(196,164,132,.16);
}
.field input:invalid:not(:placeholder-shown){ border-color:#D89B92; }

.form-note{
  margin:14px 0 0; font-size:.78rem; line-height:1.6; color:var(--ink-3); text-align:center;
}
.form-success{
  margin:14px 0 0; padding:13px 16px; border-radius:var(--radius-sm);
  background:#EAF5EE; color:#3F7A55; font-size:.94rem; text-align:center;
}

/* ---------- footer ---------- */
.site-footer{ padding:56px 0 40px; background:#1E1A17; color:#fff; }
.footer-top{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px;
}
.footer-name{ margin:0 0 4px; font-size:1.3rem; font-weight:300; }
.footer-role{ margin:0; font-size:.9rem; color:rgba(255,255,255,.5); }
.footer-social{ display:flex; gap:12px; }
.footer-social a{
  width:42px; height:42px; border-radius:50%;
  display:grid; place-items:center;
  background:rgba(255,255,255,.09);
  transition:background .25s ease, transform .25s ease;
}
.footer-social a:hover{ background:var(--tan); transform:translateY(-3px); }
.footer-social svg{ width:19px; height:19px; fill:#fff; }
.footer-bottom{
  margin-top:34px; padding-top:26px;
  border-top:1px solid rgba(255,255,255,.09); text-align:center;
}
.footer-bottom p{ margin:0; font-size:.84rem; color:rgba(255,255,255,.42); }

/* ---------- floating whatsapp ---------- */
.fab{
  position:fixed; inset-block-end:22px; inset-inline-start:22px; z-index:70;
  width:54px; height:54px; border-radius:50%;
  display:grid; place-items:center;
  background:#3E9B5F; box-shadow:0 10px 26px rgba(62,155,95,.36);
  opacity:0; visibility:hidden; transform:translateY(14px);
  transition:opacity .3s ease, transform .3s ease, visibility .3s ease, background-color .25s ease;
}
.fab.visible{ opacity:1; visibility:visible; transform:translateY(0); }
.fab:hover{ background:#34884F; }
.fab svg{ width:27px; height:27px; fill:#fff; }

/* ---------- scroll reveal ---------- */
.reveal{
  opacity:0; transform:translateY(26px);
  transition:opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.in{ opacity:1; transform:none; }

/* ---------- responsive ---------- */
@media (max-width: 960px){
  .cards{ grid-template-columns:repeat(2, 1fr); }
}

@media (max-width: 780px){
  :root{ --header-h:64px; }
  .about-grid,
  .fit-grid,
  .why-grid,
  .contact-grid{ grid-template-columns:1fr; }
  .about-media{ max-width:420px; margin-inline:auto; }
  .about-text{ text-align:center; }
  .about-text .eyebrow{ text-align:center; }
  .cards{ grid-template-columns:1fr; }
  .hero{ min-height:auto; padding-top:calc(var(--header-h) + 56px); }
  .ring{ display:none; }
  .section{ padding:64px 0; }
  .contact-grid .eyebrow,
  .contact-grid h2,
  .contact-grid .prose{ text-align:center; }
  .footer-top{ flex-direction:column; text-align:center; }
}

@media (max-width: 480px){
  .container{ padding-inline:18px; }
  .hero-cta{ flex-direction:column; }
  .hero-cta .btn{ width:100%; }
  .hero-photo{ width:112px; height:112px; }
  .social-row{ gap:9px; }
  .social-btn{ width:44px; height:44px; }
  .brand-sub{ display:none; }
  .callout{ padding:24px 20px; }
  .link-card{ padding:14px 16px; gap:13px; }
  .link-emoji,.link-thumb{ width:46px; height:46px; }
  .fab{ inset-block-end:16px; inset-inline-start:16px; }
}

/* ---------- a11y ---------- */
:focus-visible{ outline:3px solid var(--espresso); outline-offset:2px; border-radius:4px; }
/* on dark surfaces the dark ring would vanish — flip it there */
.lb :focus-visible, .site-footer :focus-visible{ outline-color:#fff; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.01ms !important; animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  .reveal{ opacity:1; transform:none; }
  /* The live strip is specified as always moving. Left to the blanket rule
     above it froze at a .01ms duration, which is what made it look broken. */
  .live-track{
    animation-duration:calc(var(--live-duration, 45s)
                           * (4 / var(--live-visible))) !important;
    animation-iteration-count:infinite !important;
  }
}

/* ============================================================
   Site navigation (shared: landing + gallery pages)
   ============================================================ */

.header-inner{ gap:20px; }

.nav{ display:flex; align-items:center; margin-inline:auto; }
/* Collapsed the CTA is hidden, so a centred nav leaves the burger stranded in
   the middle of the bar. Push it to the inline-end — the left edge under RTL —
   so it sits exactly where "צור קשר" does on wider screens. */
body.nav-collapsed .nav{ margin-inline-start:auto; margin-inline-end:0; }

/* the CTA must share the pill's optical band, not float inside it */
.header-cta{
  padding:13px 26px;
  box-shadow:0 6px 16px rgba(196,164,132,.28);
}

/* ---------- auth entry, inside the nav pill ---------- */
.nav-auth-item{ display:flex; align-items:center; }
.nav-auth-item::before{
  /* start side already carries the 3px flex gap, so 7px there balances 10px */
  content:""; width:1px; height:18px; margin-inline:7px 10px;
  background:var(--line); flex-shrink:0;
}
.nav-menu .nav-auth-item a{ gap:7px; max-width:190px; }
.nav-menu .nav-auth-item svg{
  /* stroked, to match the caret's hairline weight — a filled glyph made the
     login entry the heaviest thing in the header */
  width:15px; height:15px; flex-shrink:0;
  fill:none; stroke:currentColor; stroke-width:1.8;
  stroke-linecap:round; stroke-linejoin:round; opacity:.8;
}
.nav-menu .nav-auth-item span{
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

body.nav-collapsed .nav-auth-item{ display:block; }
body.nav-collapsed .nav-auth-item::before{
  width:auto; height:1px; margin:10px 0 6px; display:block;
}
body.nav-collapsed .nav-menu .nav-auth-item a{ max-width:none; }

/* ---------- burger (mobile only) ---------- */
.nav-toggle{
  display:none; position:relative; z-index:120;
  width:42px; height:42px; padding:0; cursor:pointer;
  background:#fff; border:1px solid var(--line); border-radius:50%;
  align-items:center; justify-content:center;
  box-shadow:var(--shadow-sm);
  transition:border-color .25s ease;
}
.nav-toggle:hover{ border-color:rgba(196,164,132,.45); }
.nav-burger, .nav-burger::before, .nav-burger::after{
  position:absolute; width:17px; height:2px; border-radius:2px;
  background:var(--brown); transition:transform .28s ease, opacity .2s ease;
}
.nav-burger::before, .nav-burger::after{ content:""; inset-inline-start:0; }
.nav-burger::before{ transform:translateY(-5.5px); }
.nav-burger::after{ transform:translateY(5.5px); }
body.nav-open .nav-burger{ background:transparent; }
body.nav-open .nav-burger::before{ transform:rotate(45deg); }
body.nav-open .nav-burger::after{ transform:rotate(-45deg); }

/* ---------- menu ---------- */
/* When the bar behind it is opaque white the pill's own white skin is
   invisible, leaving a stray rounded outline — drop the skin in that case.
   Scoped to :not(.nav-collapsed): in drawer mode .nav-menu is the panel
   itself, and .site-header.scrolled .nav-menu (0,3,0) would otherwise outrank
   body.nav-collapsed .nav-menu (0,2,1) and render the whole drawer
   transparent as soon as the page is scrolled. */
body:not(.nav-collapsed) .site-header.scrolled .nav-menu,
body:not(.nav-collapsed) .gal-header .nav-menu{
  background:transparent; border-color:transparent; box-shadow:none;
}
.nav-menu{
  display:flex; align-items:center; gap:3px;
  list-style:none; margin:0; padding:5px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(196,164,132,.22);
  border-radius:999px;
  box-shadow:0 2px 14px rgba(61,43,31,.06);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
}
.nav-menu > li{ position:relative; }

.nav-menu a:not(.btn),
.nav-sub-toggle{
  display:inline-flex; align-items:center; gap:6px;
  padding:9px 16px; border-radius:999px;
  font-family:inherit; font-size:.93rem; font-weight:500; line-height:1;
  color:var(--brown); background:transparent; border:0; cursor:pointer;
  white-space:nowrap;
  transition:color .22s ease, background-color .22s ease;
}
.nav-menu a:not(.btn):hover,
.nav-sub-toggle:hover{ color:var(--espresso); background:rgba(196,164,132,.2); }

.nav-menu a:not(.btn).is-active,
.nav-menu a:not(.btn).is-current,
.is-current-parent > .nav-sub-toggle{
  color:#fff; font-weight:600;
  background:var(--tan);
  box-shadow:0 3px 10px rgba(196,164,132,.34);
}

.nav-caret{ width:13px; height:13px; transition:transform .25s ease; }
.nav.sub-open .nav-caret{ transform:rotate(180deg); }

/* ---------- submenu ---------- */
.nav-sub{
  position:absolute; inset-block-start:calc(100% + 10px); inset-inline-end:0;
  min-width:212px; padding:7px; margin:0; list-style:none;
  background:#fff; border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow-lg);
  opacity:0; visibility:hidden; transform:translateY(-7px);
  transition:opacity .22s ease, transform .22s ease, visibility .22s ease;
  z-index:110;
}
.nav.sub-open .nav-sub{ opacity:1; visibility:visible; transform:none; }
.nav-sub a{
  display:flex; width:100%; padding:11px 14px;
  border-radius:11px; font-size:.9rem;
}
.nav-sub{ background:#fff; }

/* ---------- backdrop ---------- */
.nav-backdrop{
  position:fixed; inset:0; z-index:55;
  background:rgba(30,26,23,.42);
  backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px);
  animation:navfade .24s ease;
}
.nav-backdrop[hidden]{ display:none; }
@keyframes navfade{ from{opacity:0} to{opacity:1} }

body.nav-open{ overflow:hidden; }

/* ---------- mobile drawer ---------- */
/* ---------- collapsed (drawer) mode ----------
   Driven by body.nav-collapsed, which nav.js sets ONLY when the inline links
   do not fit the header — not at a fixed breakpoint. A wide phone in landscape
   keeps the inline bar; a narrow desktop window collapses. */
body:not(.nav-collapsed) .nav-backdrop{ display:none !important; }
body:not(.nav-collapsed) .nav-drawer-cta{ display:none; }

body.nav-collapsed .nav-toggle{ display:flex; }
body.nav-collapsed .header-cta{ display:none; }

body.nav-collapsed .nav-menu{
  background:#fff; border:0; border-radius:0;
  backdrop-filter:none; -webkit-backdrop-filter:none;
  position:fixed; inset-block:0; inset-inline-end:0; z-index:100;
  width:min(310px, 84vw);
  flex-direction:column; align-items:stretch; justify-content:flex-start;
  gap:2px; padding:calc(var(--header-h) + 18px) 18px 26px;
  box-shadow:16px 0 46px rgba(61,43,31,.16);
  /* docked at inset-inline-end, the LEFT edge under dir="rtl", so it hides
     off the left rather than flying across the viewport */
  transform:translateX(-102%);
  transition:transform .32s cubic-bezier(.22,.61,.36,1);
  overflow-y:auto; overscroll-behavior:contain;
  visibility:hidden;
}
body.nav-collapsed.nav-open .nav-menu{ transform:none; visibility:visible; }

/* A filtered ancestor becomes the containing block for its position:fixed
   descendants. The header carries backdrop-filter once .scrolled (and always
   on gallery pages), which trapped the drawer inside the ~108px header box —
   the panel collapsed and the menu appeared to float with no background.
   The blur is pointless while the drawer's backdrop covers the page anyway. */
body.nav-open .site-header{
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

body.nav-collapsed .nav-menu a:not(.btn),
body.nav-collapsed .nav-sub-toggle{
  width:100%; justify-content:flex-start;
  padding:13px 15px; border-radius:12px; font-size:1rem;
}
body.nav-collapsed .nav-sub-toggle{ justify-content:space-between; }

body.nav-collapsed .nav-sub{
  position:static; min-width:0; padding:2px 0 6px;
  border:0; box-shadow:none; background:transparent;
  opacity:1; visibility:visible; transform:none;
  max-height:0; overflow:hidden;
  transition:max-height .3s ease;
}
body.nav-collapsed .nav.sub-open .nav-sub{ max-height:230px; }
body.nav-collapsed .nav-sub a{ padding-inline-start:30px; font-size:.94rem; color:var(--ink-3); }
body.nav-collapsed .nav-sub a::before{
  content:""; width:5px; height:5px; border-radius:50%;
  background:var(--sand); margin-inline-end:9px; flex-shrink:0;
}

body.nav-collapsed .nav-drawer-cta{
  display:block; margin-top:16px; padding-top:16px;
  border-top:1px solid var(--line);
}
body.nav-collapsed .nav-drawer-cta .btn{ width:100%; }

/* while nav.js measures natural inline width, keep the menu off-screen */
.nav-measuring .nav-menu{
  position:absolute !important; visibility:hidden !important;
  transform:none !important; flex-direction:row !important;
  width:auto !important; max-height:none !important;
}

@media (prefers-reduced-motion: reduce){
  .nav-menu, .nav-sub, .nav-burger,
  .nav-burger::before, .nav-burger::after, .nav-caret{ transition:none; }
  .nav-backdrop{ animation:none; }
}
