/* ===== Maayan Sax — base ===== */
:root {
  --bg:        #0e0f13;
  --bg-2:      #15171d;
  --bg-3:      #1c1f27;
  --line:      #2a2e39;
  --brass:     #d4a53a;
  --brass-2:   #f0c766;
  --text:      #f2eee6;
  --muted:     #a7a396;
  --radius:    14px;
  --maxw:      1120px;
  --font:      'Assistant', 'Heebo', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--brass-2); text-decoration: none; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* פריטים ב-grid לא מתכווצים כברירת מחדל וגורמים לטקסט לגלוש/להיחתך */
.about-boxes > *, .contact-grid > *,
.cards > * { min-width: 0; }
h1, h2, h3, p, li, figcaption { overflow-wrap: break-word; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
/* אחרי הגלילה הראשונה ההדר מקבל רקע — לפני זה הוא שקוף מעל התמונה */
.site-header.scrolled {
  background: rgba(14,15,19,.82);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.site-header:not(.scrolled) .brand,
.site-header:not(.scrolled) .nav a,
.site-header:not(.scrolled) .nav-toggle { text-shadow: 0 1px 14px rgba(0,0,0,.7); }
.site-header:not(.scrolled) .nav a { color: rgba(255,255,255,.92); }
.site-header:not(.scrolled) .nav-toggle { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.25); }
.site-header .wrap {
  display: flex; align-items: center; gap: 18px;
  height: 64px; position: relative;
}
.brand { font-weight: 800; font-size: 20px; letter-spacing: .2px; color: var(--text); }
.brand span { color: var(--brass); }
.nav { margin-inline-start: auto; display: flex; gap: 6px; }
.nav a {
  color: var(--muted); padding: 8px 12px; border-radius: 8px;
  font-size: 15px; transition: .18s;
}
.nav a:hover { color: var(--text); background: var(--bg-3); }
.nav-toggle {
  display: none; margin-inline-start: auto;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 6px 12px; font-size: 18px; cursor: pointer;
}

/* ===== Hero =====
   Sticky image, full viewport height. The scrolling block below it rides over
   the photo; its first section starts transparent and fades into the page
   background, so the photo dissolves instead of being cut by a hard edge.
   sticky and not fixed - on iOS a fixed element jumps when the URL bar moves. */
.hero {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(10,11,14,.80) 0%, rgba(10,11,14,.55) 22%, rgba(10,11,14,.20) 58%, rgba(10,11,14,.50) 100%);
}

/* The background sits on the sections themselves, not on the wrapper, so
   .intro can start out transparent over the photo. */
.page-body { position: relative; z-index: 1; }
.page-body > section:not(.intro) { background: var(--bg); }
footer { position: relative; z-index: 1; background: var(--bg); }

/* The title travels with the text instead of staying pinned to the photo.
   A negative margin lifts it onto the image on the first screen, and the fade
   to black is measured in pixels so it does not shift with text length. */
.intro {
  margin-top: -22vh; padding: 0 0 10px;
  background: linear-gradient(to bottom, rgba(14,15,19,0) 0, var(--bg) 230px);
}
.intro h1 {
  font-size: clamp(34px, 5.6vw, 58px); line-height: 1.12; margin: 0 0 34px; font-weight: 800;
  text-shadow: 0 2px 26px rgba(0,0,0,.7);
}
.intro h1 em { font-style: normal; color: var(--brass); }
.intro p.lead { font-size: 20px; color: #ddd8cc; max-width: 46ch; margin: 0 0 28px; }
.intro + section { border-top: 0; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; transition: .18s;
}
.btn-primary { background: var(--brass); color: #16130a; }
.btn-primary:hover { background: var(--brass-2); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-2); }

/* ===== Sections ===== */
section { padding: 78px 0; }
section + section { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: 38px; max-width: 62ch; }
.sec-head h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 12px; font-weight: 800; }
.sec-head h2::after {
  content: ''; display: block; width: 52px; height: 3px;
  background: var(--brass); border-radius: 2px; margin-top: 14px;
}
.sec-head p { color: var(--muted); margin: 0; font-size: 18px; }

/* About */
/* הטקסט ושתי הקופסאות שמתחתיו חולקים את אותו רוחב, ומיושרים זה מול זה */
.about-text, .about-boxes { max-width: 780px; }
.about-text p { color: #ddd8cc; }
.about-text p:first-child { margin-top: 0; }
.about-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; margin-top: 32px; }
.styles-box {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 24px 26px;
}
.styles-box h3 {
  margin: 0 0 16px; font-size: 18px; color: var(--brass);
  display: flex; align-items: center; gap: 9px;
}
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.chips li {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px; font-size: 16px;
}
.ensembles { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ensembles li {
  position: relative; padding-inline-start: 20px; font-size: 16px; color: var(--muted);
}
.ensembles li::before {
  content: '●'; position: absolute; inset-inline-start: 0;
  color: var(--brass); font-size: 10px; top: 6px;
}

/* Events */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: .2s;
}
.card:hover { border-color: rgba(212,165,58,.5); transform: translateY(-3px); }
.card .ico { font-size: 30px; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.quotes > * { min-width: 0; }
.quote {
  position: relative; margin: 0;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 24px 22px;
}
.quote::before {
  content: '”'; position: absolute; top: -6px; inset-inline-end: 18px;
  font-size: 84px; line-height: 1; color: var(--brass); opacity: .35;
  font-family: Georgia, serif;
}
.quote .stars { color: var(--brass-2); letter-spacing: 3px; font-size: 16px; margin-bottom: 8px; }
.quote blockquote { margin: 0 0 18px; font-size: 17px; line-height: 1.7; }
.quote figcaption {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line); padding-top: 12px;
}
.quote figcaption strong { color: var(--brass-2); font-size: 16px; }
.quote figcaption span { color: var(--muted); font-size: 14px; }

/* Gallery — שתי שורות שגוללים בהן הצידה, באותו סגנון כמו פס הסרטונים */
.gallery {
  display: grid; grid-auto-flow: column dense;
  grid-template-rows: repeat(2, 300px); grid-auto-columns: 225px; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.gallery figure {
  margin: 0; min-width: 0; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-3); cursor: zoom-in; position: relative;
}
.gallery figure.is-wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 24px 14px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font-size: 14px;
}
@media (max-width: 620px) {
  .gallery { grid-template-rows: repeat(2, 230px); grid-auto-columns: 172px; gap: 10px; }
}

/* פס שגוללים הצידה — משותף לווידאו ולגלריה */
.carousel { position: relative; }

/* Videos — פס שורטס */
.shorts-track {
  display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.short {
  flex: 0 0 260px; scroll-snap-align: start;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.short-frame {
  display: block; width: 100%; aspect-ratio: 9/16;
  border: 0; background: #000;
}
.short .meta { padding: 12px 16px; }
.short h3 { margin: 0 0 4px; font-size: 17px; }
.short p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.carousel-nav {
  position: absolute; top: calc(50% - 40px); transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(14,15,19,.85); border: 1px solid var(--brass); color: var(--brass-2);
  font-size: 30px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding-bottom: 4px;
}
.carousel-nav:hover { background: var(--bg-3); }
.carousel-nav.prev { right: -10px; }
.carousel-nav.next { left: -10px; }
.carousel-nav[hidden] { display: none; }
/* בטלפון גוללים עם האצבע, החיצים רק מפריעים */
@media (max-width: 620px) {
  .short { flex-basis: 72%; }
  .carousel-nav { display: none; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.contact-list a, .contact-list span {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 18px; color: var(--text); transition: .18s;
}
.contact-list a:hover { border-color: var(--brass); }
.contact-list .ico { font-size: 20px; color: var(--brass); }
.contact-list .ico svg { width: 22px; height: 22px; display: block; }
.note {
  background: rgba(212,165,58,.07); border: 1px dashed rgba(212,165,58,.4);
  border-radius: var(--radius); padding: 20px 22px; color: var(--muted); font-size: 16px;
}
.note strong { color: var(--brass-2); }

/* Footer */
footer {
  border-top: 1px solid var(--line); padding: 30px 0;
  color: var(--muted); font-size: 15px; text-align: center;
}

/* ===== כפתור וואטסאפ צף =====
   דבוק לצד ימין של המסך בכל גלילה. z-index מתחת ללייטבוק (100)
   ומעל ההדר (50). התווית נפתחת במעבר עכבר, במובייל רק העיגול. */
.wa-float {
  position: fixed; right: 18px; bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 15px; border-radius: 999px;
  background: #25d366; color: #fff; text-decoration: none;
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.wa-float::after {
  content: 'דברו איתי בוואטסאפ';
  font-size: 15px; font-weight: 600; white-space: nowrap;
  max-width: 0; overflow: hidden; opacity: 0;
  transition: max-width .25s ease, opacity .2s ease;
}
.wa-float:hover { background: #1fbe5b; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.5); }
.wa-float:hover::after, .wa-float:focus-visible::after { max-width: 220px; opacity: 1; }
.wa-float:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(6,6,8,.94); align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; border-radius: 10px; object-fit: contain; }
.lightbox button {
  position: absolute; top: 22px; inset-inline-end: 26px;
  background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; line-height: 1;
}

/* Placeholder badge */
.is-placeholder::before {
  content: attr(data-ph); position: absolute; z-index: 2;
  top: 10px; inset-inline-start: 10px;
  background: rgba(0,0,0,.65); color: var(--brass); font-size: 12px;
  padding: 3px 10px; border-radius: 999px; letter-spacing: .5px;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-boxes, .contact-grid { grid-template-columns: 1fr; }
  .nav {
    display: none; position: absolute; top: 64px; inset-inline: 0;
    flex-direction: column; background: var(--bg-2);
    border-bottom: 1px solid var(--line); padding: 10px 18px; gap: 2px;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  section { padding: 58px 0; }
  .wa-float { right: 14px; bottom: 16px; height: 54px; padding: 0 13px; }
  .wa-float::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float, .wa-float::after { transition: none; }
  html { scroll-behavior: auto; }
}
