/* ============================================================
   [שם הצלם] — צלם אירועים · מערכת עיצוב "גלריה כהה"
   RTL · Mobile-First · WCAG 2.2 AA
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #111113;
  --bg-deep: #0c0c0e;
  --surface: #1c1c1f;
  --border: #2e2e33;
  --text: #f5f2ec;
  --text-muted: #b5b0a6;
  --gold: #c9a96a;
  --gold-dark: #b08e4f;
  --wa: #25d366;
  --wa-dark: #1fb959;
  --on-wa: #0b2b1b;
  --on-gold: #1a1204;
  --error: #f2a2a2;
  --font-body: "Heebo", "Segoe UI", Arial, sans-serif;
  --font-display: "Frank Ruhl Libre", "Times New Roman", serif;
  --container: 1140px;
  --pad: 20px;
  --radius: 8px;
  --shadow: 0 4px 16px rgba(0, 0, 0, .4);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100svh;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; }
[id] { scroll-margin-top: 5rem; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 5vw + 1rem, 3.5rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.625rem, 3vw + .75rem, 2.375rem); font-weight: 500; }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); font-weight: 500; line-height: 1.3; }
p, li { max-width: 65ch; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
.muted { color: var(--text-muted); }
.eyebrow {
  display: block; color: var(--gold); font-size: .8125rem; font-weight: 500;
  letter-spacing: .12em; margin-block-end: 12px;
}
.lead { font-size: 1.125rem; }
.phone-num { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: 64px; }
.section-head { margin-block-end: 32px; }
.grid { display: grid; gap: 24px; }

/* ---------- Focus & skip ---------- */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }
.skip-link {
  position: absolute; inset-inline-start: 8px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--on-gold); font-weight: 500;
  padding: 12px 20px; border-radius: var(--radius); transition: top .15s;
}
.skip-link:focus { top: 8px; color: var(--on-gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius);
  font-weight: 500; text-decoration: none; border: 0; cursor: pointer;
  transition: background-color .15s, transform .15s, color .15s;
}
.btn:active { transform: scale(.98); }
.btn svg { flex: none; }
.btn-wa { background: var(--wa); color: var(--on-wa); }
.btn-wa:hover { background: var(--wa-dark); color: var(--on-wa); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-dark); color: var(--on-gold); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.btn-outline:hover { background: rgba(201, 169, 106, .12); color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 599px) { .btn-row .btn { flex: 1 1 100%; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17, 17, 19, .85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 60px;
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.logo:hover { color: var(--gold); }
.main-nav { order: 2; }
.header-cta { order: 3; }
.main-nav ul { display: flex; gap: 0; list-style: none; padding: 0; flex-wrap: nowrap; }
.main-nav a {
  display: block; padding: 10px 10px; color: var(--text); text-decoration: none;
  border-radius: var(--radius); font-weight: 500; white-space: nowrap;
  font-size: .9375rem;
}
.main-nav a:hover { color: var(--gold); background: rgba(201, 169, 106, .08); }
.main-nav a[aria-current="page"] { color: var(--gold); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); width: 48px; height: 48px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold); }
.header-phone { min-height: 44px; padding: 8px 16px; }

@media (max-width: 899px) {
  .main-nav {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    height: calc(100svh - 60px); background: var(--bg);
    padding: 24px var(--pad); overflow-y: auto; z-index: 99;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 8px; font-size: 1.25rem; border-block-end: 1px solid var(--border); border-radius: 0; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-wa-desktop { display: none; }
}
@media (min-width: 900px) {
  .header-inner { min-height: 72px; }
  .header-phone { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 85svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(17, 17, 19, .92) 0%, rgba(17, 17, 19, .55) 45%, rgba(17, 17, 19, .25) 100%);
}
.hero-content { position: relative; z-index: 1; padding-block: 64px 48px; width: 100%; }
.hero-content .lead { margin-block: 16px 28px; color: var(--text); }
.hero-trust { margin-block-start: 20px; color: var(--text-muted); font-size: .9375rem; }
.hero.hero-inner-page { min-height: 40svh; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.gallery button {
  padding: 0; border: 0; background: none; cursor: pointer; display: block;
  border-radius: var(--radius); overflow: hidden;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery .g-wide { grid-column: span 2; }
.full-bleed { max-width: 1600px; margin-inline: auto; }
@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .gallery .g-wide { grid-column: span 2; }
}
@media (hover: hover) {
  .gallery button:hover img { transform: scale(1.03); }
}

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; margin: auto; }
.lightbox::backdrop { background: rgba(12, 12, 14, .95); }
.lightbox-inner { position: relative; display: grid; place-items: center; min-width: min(92vw, 900px); }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox .lb-btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(28, 28, 31, .85); color: var(--text); border: 1px solid var(--border);
  cursor: pointer; display: grid; place-items: center;
}
.lightbox .lb-btn:hover { border-color: var(--gold); color: var(--gold); }
.lb-close { top: 8px; inset-inline-end: 8px; }
.lb-prev { inset-inline-start: 8px; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 8px; top: 50%; translate: 0 -50%; }
.lb-count {
  position: absolute; bottom: 8px; inset-inline-start: 50%; translate: 50% 0;
  color: var(--text); font-size: .875rem; background: rgba(28, 28, 31, .85);
  padding: 4px 12px; border-radius: 999px;
}

/* ---------- Cards ---------- */
.cards { grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards > :last-child:nth-child(3n-2) { grid-column: 2; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body ul { list-style: none; padding: 0; display: grid; gap: 8px; color: var(--text-muted); }
.card-body ul li::before { content: "✦ " / ""; color: var(--gold); }
.card-link { margin-block-start: auto; font-weight: 500; text-decoration: none; }
.card-link::after { content: " ←" / ""; }

/* ---------- Steps ---------- */
.steps { grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: step; padding: 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
.step::before {
  content: counter(step); display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; margin-block-end: 12px;
  background: var(--gold); color: var(--on-gold); font-weight: 700; font-family: var(--font-display);
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-block-end: 8px; scrollbar-color: var(--border) transparent;
}
.carousel-nav { display: flex; gap: 8px; margin-block-start: 12px; }
.carousel-nav button {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: var(--surface); color: var(--gold); border: 1px solid var(--border);
  display: grid; place-items: center;
}
.carousel-nav button:hover { border-color: var(--gold); }
@media (min-width: 900px) { .carousel-nav { display: none; } }
.testimonials > * { scroll-snap-align: start; }
@media (min-width: 900px) { .testimonials { grid-auto-flow: row; grid-auto-columns: unset; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.testimonial {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.testimonial::before { content: "”" / ""; font-family: var(--font-display); font-size: 3rem; line-height: .5; color: var(--gold); }
.testimonial footer { color: var(--text-muted); font-size: .875rem; margin-block-start: auto; }

/* ---------- FAQ ---------- */
.faq-item { border-block-end: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; padding: 20px 8px; font-weight: 500; font-size: 1.0625rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font: inherit; display: inline; }
.faq-item summary::after { content: "+" / ""; color: var(--gold); font-size: 1.5rem; flex: none; transition: rotate .2s; }
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item .faq-answer { padding: 0 8px 20px; color: var(--text-muted); }
.faq-item .faq-answer a { color: var(--gold); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--surface); border-block: 1px solid var(--border);
  text-align: center; padding-block: 48px;
}
.cta-band .btn-row { justify-content: center; margin-block-start: 24px; }
.cta-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 24px; margin-block: 8px;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 20px; max-width: 560px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 500; margin-block-end: 6px; }
.field .hint { font-size: .8125rem; color: var(--text-muted); margin-block-start: 4px; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); transition: border-color .15s;
}
.field input:focus-visible, .field select:focus-visible { border-color: var(--gold); outline-offset: 0; }
.field input[type="tel"] { direction: ltr; text-align: end; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field .error-msg { color: var(--error); font-size: .875rem; margin-block-start: 6px; }
.form-status { margin-block-start: 16px; font-weight: 500; }
.form-status.ok { color: var(--wa); }
.form-status.err { color: var(--error); }
.form-note { font-size: .8125rem; color: var(--text-muted); margin-block-start: 8px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; inset-inline-start: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: var(--on-wa); display: grid; place-items: center;
  box-shadow: var(--shadow); transition: transform .2s, opacity .3s;
}
.wa-float:hover { background: var(--wa-dark); transform: translateY(-2px); }
.wa-float:focus-visible { outline: 3px solid var(--text); box-shadow: 0 0 0 6px var(--bg); }
.wa-float[hidden] { display: none; }

/* ---------- Sticky mobile CTA bar (genre pages) ---------- */
.sticky-cta {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 95;
  display: flex; gap: 1px; background: var(--border);
  padding-block-end: env(safe-area-inset-bottom);
  border-block-start: 1px solid var(--border);
}
.sticky-cta a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; font-weight: 500; text-decoration: none;
}
.sticky-cta .s-phone { background: var(--surface); color: var(--gold); }
.sticky-cta .s-wa { background: var(--wa); color: var(--on-wa); }
@media (min-width: 900px) { .sticky-cta { display: none; } }
body.has-sticky-cta { padding-block-end: 64px; }
@media (max-width: 899px) { body.has-sticky-cta .wa-float { display: none; } }
@media (min-width: 900px) { body.has-sticky-cta { padding-block-end: 0; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-block: 16px 0; font-size: .875rem; color: var(--text-muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "‹" / ""; margin-inline: 6px; color: var(--border); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table-hint { display: none; font-size: .8125rem; color: var(--text-muted); margin-block-start: 8px; }
@media (max-width: 640px) { .table-hint { display: block; } }
table.pricing { border-collapse: collapse; width: 100%; min-width: 520px; }
.pricing th, .pricing td { padding: 12px 16px; text-align: start; border-block-end: 1px solid var(--border); }
.pricing th { color: var(--gold); font-weight: 500; }
.pricing caption { text-align: start; color: var(--text-muted); font-size: .875rem; padding-block-end: 8px; caption-side: top; }

/* ---------- Trust strip ---------- */
.trust-strip { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: center; text-align: center; padding-block: 24px; }
.trust-strip .t-num { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; color: var(--gold); unicode-bidi: plaintext; }
.trust-strip .t-label { color: var(--text-muted); font-size: .875rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-block-start: 1px solid var(--gold); margin-block-start: 64px; }
.footer-grid { display: grid; gap: 32px; padding-block: 48px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.0625rem; font-family: var(--font-body); font-weight: 500; color: var(--gold); margin-block-end: 12px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer a {
  color: var(--text-muted); text-decoration: none;
  display: inline-block; padding-block: 8px;
}
.site-footer ul { gap: 0; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-bottom {
  border-block-start: 1px solid var(--border); padding-block: 20px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  color: var(--text-muted); font-size: .875rem;
}

/* ---------- Reveal animation (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 16px; transition: opacity .5s ease-out, translate .5s ease-out; }
  .js .reveal.in { opacity: 1; translate: 0 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- Desktop spacing ---------- */
@media (min-width: 900px) {
  .section { padding-block: 96px; }
  .container { --pad: 32px; }
}

/* ---------- About layout ---------- */
.about-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.4fr 1fr; } }
.about-grid img { border-radius: var(--radius); width: 100%; max-width: 400px; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.updated-note { font-size: .8125rem; color: var(--text-muted); }
