/* בוק בת מצווה · בראל צילום
   צבעי המותג מתוך "עזרים/קובץ מיתוג.docx" · פונט Rubik
   אותה שפה של שאר הדפים, בגרסה פורטפוליו: יותר תמונות, פחות טקסט */

:root {
  --bg: #faf8f5;
  --text: #655d58;
  --pink: #e6c2bf;
  --tan: #c9ad7f;

  --ink: var(--text);
  --muted: color-mix(in oklab, var(--text) 78%, var(--bg));
  --line: color-mix(in oklab, var(--text) 16%, var(--bg));
  --blush: color-mix(in oklab, var(--pink) 22%, var(--bg));
  --stone: color-mix(in oklab, var(--text) 7%, var(--bg));

  --radius: 10px;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Rubik", system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 6vw, 2.9rem); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; top: 12px; right: 12px; z-index: 50; background: var(--bg); padding: 8px 14px; border-radius: 8px; transform: translateY(-300%); }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--tan);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.en { direction: ltr; unicode-bidi: isolate; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 1.5px solid transparent; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font: 500 16px/1 "Rubik", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s;
}
.btn:hover { background: color-mix(in oklab, var(--text) 88%, var(--tan)); transform: translateY(-1px); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: color-mix(in oklab, var(--text) 35%, var(--bg)); }
.btn--ghost:hover { background: var(--stone); border-color: var(--text); }
.btn--block { width: 100%; }

/* ---------- סרגל עליון ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--max); margin-inline: auto; padding: 20px var(--gutter);
}
.topbar__logo img { width: 150px; height: auto; }
.topbar__nav { display: flex; align-items: center; gap: 6px; }
.topbar__nav .navlink { display: none; font-size: 15px; font-weight: 500; text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.topbar__nav .navlink:hover { background: var(--stone); }
@media (min-width: 760px) { .topbar__nav .navlink { display: inline-block; } }
.icon-link {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: var(--text); transition: background-color .2s;
}
.icon-link:hover { background: var(--stone); }
.icon-link svg { width: 21px; height: 21px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(8px, 3vw, 40px) clamp(64px, 10vw, 120px); }
.hero__grid { display: grid; gap: 28px; }
.hero h1 { font-size: clamp(2.5rem, 10vw, 4.8rem); line-height: 1.05; margin-top: 16px; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--tan); }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%;
  border-radius: var(--radius); background: var(--stone);
}
.hero__lead { font-size: clamp(1.1rem, 3.6vw, 1.3rem); line-height: 1.75; font-weight: 300; color: var(--ink); max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1.05fr; column-gap: 80px; row-gap: 26px;
    grid-template-areas: "head media" "body media"; align-items: end;
  }
  .hero__head { grid-area: head; }
  .hero__body { grid-area: body; align-self: start; }
  .hero__media { grid-area: media; }
  .hero__media img { aspect-ratio: 4 / 5.2; }
  .hero__media::before {
    content: ""; position: absolute; top: -18px; left: -18px; width: 44%; height: 42%; z-index: -1;
    border-top: 1px solid var(--tan); border-left: 1px solid var(--tan); border-radius: var(--radius) 0 0 0;
  }
}

/* ---------- אזורי תוכן ---------- */
.section { padding-block: clamp(72px, 11vw, 130px); }
.section--stone { background: var(--stone); }
.section--tight { padding-block: clamp(56px, 8vw, 100px); }
.section__head { margin-bottom: clamp(30px, 5vw, 52px); }
.section__head .eyebrow { margin-bottom: 14px; }
.section__head--center { text-align: center; }
.section__head--center .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 3.6vw, 1.3rem); line-height: 1.75; color: var(--ink); font-weight: 300; }

/* ---------- גלריות ---------- */
.g-item a { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stone); cursor: zoom-in; height: 100%; }
.g-item img { width: 100%; height: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform .9s var(--ease); }
.g-item a:hover img { transform: scale(1.03); }

/* פסיפס: שתי תמונות גדולות ושאר התמונות סביבן */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; grid-auto-flow: dense; }
.mosaic .g-item--big { grid-column: span 2; grid-row: span 2; }
.mosaic .g-item--big img { aspect-ratio: auto; }
@media (min-width: 1040px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .mosaic .g-item--end { grid-column: 3 / span 2; }
}

/* סגירה: תמונות גדולות בעמודות מדורגות */
.stagger { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
.stagger .g-item:nth-child(even) { margin-top: 48px; }
@media (min-width: 900px) {
  .stagger { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .stagger .g-item:nth-child(even) { margin-top: 0; }
  .stagger .g-item:nth-child(3n+2) { margin-top: 90px; }
  .stagger .g-item:nth-child(n+4) { margin-top: -60px; }
  .stagger .g-item:nth-child(5) { margin-top: 30px; }
}

/* ---------- החוויה ---------- */
.exp { display: grid; gap: 40px; align-items: center; }
.exp__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius); }
@media (max-width: 899px) { .exp__media { width: 72%; margin-inline: auto 0; } }
@media (min-width: 900px) { .exp { grid-template-columns: .85fr 1fr; gap: 96px; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__label { font-size: 14px; font-weight: 500; color: var(--tan); letter-spacing: .06em; padding-top: 3px; }
.steps p { color: var(--ink); }

/* ---------- חבילות ---------- */
.packages { display: grid; gap: 20px; max-width: 980px; margin-inline: auto; }
@media (min-width: 820px) { .packages { grid-template-columns: 1fr 1fr; gap: 28px; } }
.pkg { display: flex; flex-direction: column; background: var(--bg); border-radius: calc(var(--radius) + 4px); overflow: hidden; }
.pkg__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 25%; }
.pkg__body { display: flex; flex-direction: column; flex: 1; padding: 28px 26px 26px; }
.pkg__kicker { font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--tan); }
.pkg h3 { font-size: clamp(1.45rem, 4.4vw, 1.75rem); margin-top: 6px; }
.pkg__price { margin: 14px 0 0; font-size: 1.3rem; color: var(--ink); }
.pkg__price b { font-weight: 300; font-size: 2.6rem; letter-spacing: -0.02em; line-height: 1; }
.pkg__fit { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--radius); background: var(--blush); font-size: 15.5px; line-height: 1.65; color: var(--ink); }
.pkg .checks { margin: 18px 0 26px; flex: 1; }
.pkg .btn { margin-top: auto; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 9px 28px 9px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.6; color: var(--ink); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before {
  content: ""; position: absolute; right: 2px; top: 16px; width: 11px; height: 6px;
  border-left: 1.5px solid var(--tan); border-bottom: 1.5px solid var(--tan); transform: rotate(-45deg);
}

/* ---------- יצירת קשר ---------- */
.contact { background: var(--text); color: var(--bg); border-radius: clamp(24px, 5vw, 44px) clamp(24px, 5vw, 44px) 0 0; }
.contact h2 { color: var(--bg); }
.contact__grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1.2fr 1fr; gap: 88px; } }
.contact .lead { color: color-mix(in oklab, var(--bg) 86%, var(--text)); margin-top: 18px; }
.contact__actions { display: grid; gap: 12px; }
.contact .btn { background: var(--bg); color: var(--text); min-height: 58px; font-size: 17px; }
.contact .btn:hover { background: var(--pink); }
.contact .btn--ghost { background: transparent; color: var(--bg); border-color: color-mix(in oklab, var(--bg) 40%, var(--text)); }
.contact .btn--ghost:hover { background: color-mix(in oklab, var(--bg) 10%, var(--text)); border-color: var(--bg); }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact__row .btn { font-size: 16px; min-height: 52px; padding: 0 12px; gap: 8px; white-space: nowrap; }
.contact__row { grid-template-columns: 1.15fr 1fr; }
.me { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
.me img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.me b { display: block; font-weight: 500; }
.me span { font-size: 14.5px; color: color-mix(in oklab, var(--bg) 72%, var(--text)); }

/* ---------- פוטר ---------- */
.footer { background: var(--text); color: color-mix(in oklab, var(--bg) 72%, var(--text)); padding: 0 var(--gutter) 40px; }
.footer__inner {
  max-width: calc(var(--max) - 2 * var(--gutter)); margin-inline: auto; padding-top: 28px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 18%, var(--text));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13.5px;
}
.footer .icon-link { color: var(--bg); }
.footer .icon-link:hover { background: color-mix(in oklab, var(--bg) 12%, var(--text)); }
.footer__links { display: flex; gap: 4px; }

/* ---------- לייטבוקס ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #2e2926; color: var(--bg);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lb__count { direction: ltr; unicode-bidi: isolate; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-size: 14px; letter-spacing: .06em; }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 12px; }
.lb__stage img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 4px; user-select: none; }
.lb__btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: color-mix(in oklab, var(--bg) 10%, transparent); color: var(--bg); cursor: pointer;
  transition: background-color .2s;
}
.lb__btn:hover { background: color-mix(in oklab, var(--bg) 22%, transparent); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__nav { display: flex; justify-content: center; gap: 14px; padding: 14px 0 max(18px, env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .lb__stage { padding: 0 90px; }
  .lb__stage img { max-height: calc(100dvh - 96px); }
  .lb__nav { position: absolute; inset: 50% 20px auto; justify-content: space-between; padding: 0; pointer-events: none; transform: translateY(-50%); }
  .lb__nav .lb__btn { pointer-events: auto; width: 56px; height: 56px; }
}

/* ---------- CTA צף במובייל ---------- */
.float-cta {
  position: fixed; inset: auto 12px 12px; z-index: 20;
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.float-cta.is-visible { transform: none; }
.float-cta .btn { width: 100%; box-shadow: 0 18px 36px -18px color-mix(in oklab, var(--text) 80%, transparent); }
@media (min-width: 900px) { .float-cta { display: none; } }

/* ---------- אנימציית כניסה עדינה ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .g-item img { transition: none; }
}
