/* ============ עמית — סושיאל לאירועים ============ */
@font-face {
  font-family: 'Ellinia CLM';
  src: url('../assets/fonts/ElliniaCLM-Light.otf') format('opentype');
  font-weight: 300 400;
  font-display: swap;
}
@font-face {
  font-family: 'Ellinia CLM';
  src: url('../assets/fonts/ElliniaCLM-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #111111;
  --white: #ffffff;
  --off-white: #faf9f7;
  --grey: #6b6b6b;
  --light-grey: #e8e6e2;
  --font-serif: 'Ellinia CLM', 'Frank Ruhl Libre', serif;
  --font-sans: 'Assistant', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.25; }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 18px;
}

.section-head { text-align: center; margin-bottom: 56px; }

.section-head .divider {
  width: 48px; height: 1px; background: var(--black);
  margin: 22px auto 0;
}

section { padding: 96px 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--light-grey);
  transition: transform 0.3s;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.logo { font-family: var(--font-serif); font-size: 1.5rem; letter-spacing: 0.02em; }
.logo-img img { height: 52px; width: auto; display: block; }
.logo small {
  display: block; font-family: var(--font-sans); font-size: 0.62rem;
  letter-spacing: 0.4em; color: var(--grey); text-transform: uppercase;
  margin-top: -4px;
}

.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 0.95rem; position: relative; padding: 4px 0;
}
.nav a::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 1px;
  background: var(--black); transition: width 0.3s;
}
.nav a:hover::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--black); padding: 8px 22px !important;
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--black); color: var(--white); }
.nav-cta::after { display: none; }

.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--black); margin: 5px 0; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 130px 0 60px;
  background: var(--off-white);
}

.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 60px; align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  white-space: pre-line;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 1.15rem; color: var(--grey); max-width: 480px; margin-bottom: 36px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 36px; font-size: 1rem;
  font-family: var(--font-sans); cursor: pointer;
  border: 1px solid var(--black); transition: all 0.3s;
}
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: transparent; color: var(--black); }
.btn-light { background: transparent; color: var(--black); }
.btn-light:hover { background: var(--black); color: var(--white); }

.hero-media { position: relative; justify-self: center; }

.hero-video-frame {
  width: min(340px, 80vw);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  position: relative;
  background: var(--black);
}
.hero-video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* מסגרת כפולה בסגנון עריכתי */
.hero-video-frame::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  border: 1px solid rgba(255,255,255,0.6);
  margin: 14px; pointer-events: none;
}
.hero-media::after {
  content: ''; position: absolute; top: 18px; right: -18px;
  width: 100%; height: 100%;
  border: 1px solid var(--black); z-index: -1;
}

.scroll-hint {
  position: absolute; bottom: 28px; right: 50%; transform: translateX(50%);
  font-size: 0.7rem; letter-spacing: 0.3em; color: var(--grey);
  writing-mode: vertical-rl;
}
.scroll-hint::after {
  content: ''; display: block; width: 1px; height: 40px;
  background: var(--grey); margin: 10px auto 0;
  animation: scrollLine 1.8s infinite;
}
@keyframes scrollLine { 0% {transform: scaleY(0); transform-origin: top;} 50% {transform: scaleY(1); transform-origin: top;} 51% {transform-origin: bottom;} 100% {transform: scaleY(0); transform-origin: bottom;} }

/* ---------- About ---------- */
.about { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 70px; align-items: center;
}
.about-img { position: relative; }
.about-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.about-img::after {
  content: ''; position: absolute; top: -16px; left: -16px;
  width: 100%; height: 100%; border: 1px solid var(--black); z-index: -1;
}
.about-text .section-head { text-align: right; margin-bottom: 24px; }
.about-text .section-head .divider { margin: 22px 0 0; }
.about-text p { color: var(--grey); font-size: 1.08rem; white-space: pre-line; }

/* ---------- Services ---------- */
.services { background: var(--black); color: var(--white); }
.services .section-label { color: #999; }
.services .section-head .divider { background: var(--white); }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: #333;
  border: 1px solid #333;
}
.service-card {
  background: var(--black); padding: 44px 32px;
  transition: background 0.3s;
}
.service-card:hover { background: #1c1c1c; }
.service-card .icon { margin-bottom: 20px; }
.service-card .icon svg { width: 36px; height: 36px; stroke: var(--white); }
.service-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service-card p { color: #aaa; font-size: 0.98rem; }

/* ---------- Gallery ---------- */
.gallery { background: var(--off-white); }

.gallery-grid {
  columns: 3; column-gap: 18px;
}
.gallery-item {
  break-inside: avoid; margin-bottom: 18px; position: relative;
  overflow: hidden; cursor: pointer; background: var(--black);
}
.gallery-item img, .gallery-item video {
  width: 100%; transition: transform 0.6s, opacity 0.4s;
}
.gallery-item:hover img { transform: scale(1.04); opacity: 0.85; }
.gallery-item .play-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.gallery-item .play-badge svg { width: 14px; height: 14px; fill: #fff; margin-right: 2px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,10,10,0.95);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img, .lightbox video {
  max-width: 90vw; max-height: 88vh; object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 20px; left: 24px; background: none; border: none;
  color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.2rem;
  transition: background 0.3s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.15); }
.lightbox-prev { right: 22px; }
.lightbox-next { left: 22px; }

/* ---------- Pricing ---------- */
.pricing { background: var(--white); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px;
  align-items: stretch;
}
.price-card {
  border: 1px solid var(--light-grey);
  padding: 44px 34px; text-align: center;
  display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  background: var(--white);
}
.price-card:hover { border-color: var(--black); transform: translateY(-4px); }
.price-card.highlighted { border-color: var(--black); background: var(--black); color: var(--white); }
.price-card .badge {
  position: absolute; top: -13px; right: 50%; transform: translateX(50%);
  background: var(--white); color: var(--black); border: 1px solid var(--black);
  font-size: 0.75rem; letter-spacing: 0.15em; padding: 3px 16px;
  white-space: nowrap;
}
.price-card.highlighted .badge { background: var(--black); color: var(--white); border-color: var(--white); }
.price-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.price-card .price {
  font-family: var(--font-serif); font-size: 2.6rem; margin: 18px 0 4px;
}
.price-card .note { font-size: 0.85rem; color: var(--grey); margin-bottom: 26px; }
.price-card.highlighted .note { color: #bbb; }
.price-card ul { list-style: none; text-align: center; flex: 1; margin-bottom: 30px; }
.price-card li {
  padding: 9px 0; font-size: 0.98rem;
  border-bottom: 1px solid var(--light-grey);
}
.price-card.highlighted li { border-color: #333; }
.price-card li:last-child { border-bottom: none; }
.price-card .btn { width: 100%; }
.price-card.highlighted .btn-dark { background: var(--white); color: var(--black); border-color: var(--white); }
.price-card.highlighted .btn-dark:hover { background: transparent; color: var(--white); }
.pricing-note { text-align: center; color: var(--grey); font-size: 0.9rem; margin-top: 32px; }
.pricing-group-title {
  text-align: center; font-size: 1.6rem; margin: 52px 0 28px;
  display: flex; align-items: center; gap: 18px; justify-content: center;
}
.pricing-group-title::before, .pricing-group-title::after {
  content: ''; height: 1px; background: var(--light-grey); flex: 1; max-width: 120px;
}
#pricing-grid > .pricing-group-title:first-child { margin-top: 0; }
.pricing-info {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 48px;
}
.pricing-info-box { border: 1px solid var(--light-grey); padding: 26px 24px; background: var(--off-white); }
.pricing-info-box h4 {
  font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 12px;
  text-align: center; letter-spacing: 0.04em;
}
.pricing-info-box ul { list-style: none; }
.pricing-info-box li {
  font-size: 0.92rem; color: #444; padding: 6px 0;
  border-bottom: 1px dashed var(--light-grey); text-align: center;
}
.pricing-info-box li:last-child { border-bottom: none; }

/* ---------- Contact ---------- */
.contact { background: var(--off-white); text-align: center; }
.contact p.lead { color: var(--grey); max-width: 520px; margin: 0 auto 40px; font-size: 1.1rem; }
.contact-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.contact-links { display: flex; gap: 34px; justify-content: center; flex-wrap: wrap; color: var(--grey); font-size: 0.95rem; }
.contact-links a { display: flex; align-items: center; gap: 8px; transition: color 0.3s; }
.contact-links a:hover { color: var(--black); }
.contact-links svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black); color: #888;
  padding: 30px 0; text-align: center; font-size: 0.85rem;
}
.site-footer .logo { color: var(--white); margin-bottom: 6px; }

/* ---------- נגישות ---------- */
.skip-link {
  position: absolute; top: -60px; right: 16px; z-index: 300;
  background: var(--black); color: var(--white); padding: 12px 24px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid currentColor; outline-offset: 3px;
}

/* מצבי נגישות (מופעלים מהווידג'ט) */
html.a11y-font-1 { font-size: 112.5%; }
html.a11y-font-2 { font-size: 127%; }
html.a11y-grayscale body { filter: grayscale(1); }
html.a11y-dark body { filter: invert(1) hue-rotate(180deg); background: #000; }
html.a11y-dark body img, html.a11y-dark body video { filter: invert(1) hue-rotate(180deg); }
html.a11y-links a { text-decoration: underline !important; font-weight: 600; }
html.a11y-readable body, html.a11y-readable body * { font-family: Arial, Helvetica, sans-serif !important; }
html.a11y-nomotion *, html.a11y-nomotion *::before, html.a11y-nomotion *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html.a11y-nomotion .reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* כפתור וואטסאפ צף */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(0,0,0,0.3); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* הווידג'ט עצמו */
.a11y-widget { position: fixed; bottom: 22px; left: 22px; z-index: 150; font-family: var(--font-sans); }
.a11y-toggle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--black); color: var(--white); border: 1px solid var(--black);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25); transition: transform 0.2s;
}
.a11y-toggle:hover { transform: scale(1.07); }
.a11y-toggle svg { width: 28px; height: 28px; }
.a11y-panel {
  position: absolute; bottom: 62px; left: 0; width: 240px;
  background: var(--white); border: 1px solid var(--black);
  padding: 14px; box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.a11y-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.a11y-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.a11y-opt {
  display: block; width: 100%; text-align: right; background: none;
  border: 1px solid var(--light-grey); padding: 9px 12px; margin-bottom: 6px;
  font-size: 0.9rem; cursor: pointer; font-family: inherit; transition: 0.2s;
}
.a11y-opt:hover { border-color: var(--black); }
.a11y-opt[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.a11y-opt[aria-pressed="true"]::before { content: '✓ '; }
.a11y-reset {
  display: block; width: 100%; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.85rem; color: var(--grey); padding: 8px 0 4px;
  text-decoration: underline;
}
.a11y-statement { display: block; text-align: center; font-size: 0.85rem; color: var(--grey); text-decoration: underline; padding-top: 2px; }

/* ---------- עמודי מסמכים (הצהרות) ---------- */
.doc-page { background: var(--white); }
.doc-main { max-width: 760px; margin: 0 auto; padding: 120px 24px 80px; }
.doc-main h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.doc-main .doc-date { color: var(--grey); font-size: 0.9rem; margin-bottom: 36px; }
.doc-main h2 { font-size: 1.4rem; margin: 34px 0 10px; }
.doc-main p, .doc-main li { color: #333; margin-bottom: 12px; }
.doc-main ul { padding-right: 22px; margin-bottom: 12px; }
.doc-main a { text-decoration: underline; }
.footer-links { margin-top: 10px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: #aaa; font-size: 0.85rem; }
.footer-links a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s, transform 0.8s; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  section { padding: 68px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero-text p { margin: 0 auto 32px; }
  .hero-ctas { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-text .section-head { text-align: center; }
  .about-text .section-head .divider { margin: 22px auto 0; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; column-gap: 12px; }
  .gallery-item { margin-bottom: 12px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  .nav {
    position: fixed; top: 68px; right: 0; left: 0;
    background: var(--white); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--light-grey);
    max-height: 0; overflow: hidden; transition: max-height 0.35s;
  }
  .nav.open { max-height: 400px; }
  .nav a { padding: 16px 24px; border-top: 1px solid var(--light-grey); }
  .nav-cta { border: none; border-top: 1px solid var(--light-grey) !important; padding: 16px 24px !important; }
  .menu-btn { display: block; }
  .menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn.open span:nth-child(2) { opacity: 0; }
  .menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
