/* =========================================================
   eshtai.media - צילומי פרופיל מקצועיים ללינקדאין
   ========================================================= */

/* ---------- טוקנים ---------- */
:root {
  --ink: #1C2330;         /* טקסט ראשי */
  --muted: #5B6270;       /* טקסט משני */
  --paper: #FAFAF8;       /* רקע עיקרי */
  --backdrop: #E6E7E3;    /* אפור רקע סטודיו */
  --backdrop-2: #D6D8D2;  /* אפור כהה לפלייסהולדרים של תמונות */
  --accent: #2B4C7E;      /* כחול דיו - כפתורים וקישורים */
  --accent-dark: #1F3960;
  --line: #D3D5D0;
  --ph: #FFF1A8;          /* סימון placeholder */

  --serif: "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  --sans: "Assistant", "Arial Hebrew", Arial, sans-serif;

  --wrap: 1120px;
  --gap: clamp(1.25rem, 3vw, 2rem);
}

/* ---------- בסיס ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.measure { max-width: 38rem; }

/* ---------- טיפוגרפיה ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .35em;
}
p { margin: 0 0 1em; }

/* placeholders - לחפש class="ph" ב-HTML כדי למצוא את כולם */
.ph {
  background: var(--ph);
  padding: 0 .25em;
  border-radius: 3px;
}

/* ---------- דילוג לתוכן ---------- */
.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: .5rem 1rem;
}
.skip:focus { top: 1rem; }

/* ---------- כותרת עליונה ---------- */
.site-head { padding: 1.25rem 0; }
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .01em;
  color: var(--ink);
  text-decoration: none;
}
.head-cta {
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

/* ---------- כפתורים ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  padding: .9rem 2.2rem;
  border-radius: 999px;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:focus-visible { outline-offset: 4px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(1.5rem, 5vw, 4.5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: 5fr 7fr;   /* טקסט מימין, תמונה רוחבית משמאל */
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;               /* ראש התמונה בגובה ראש הכותרת */
}
.hero-media { margin-top: .4rem; }  /* יישור עדין לקו העליון של אותיות הכותרת */
.hero h1 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); }
.hero-lead {
  font-size: clamp(1.15rem, 1.8vw, 1.3rem);
  color: var(--muted);
  max-width: 34rem;
}
.price {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 1.4rem 0 1.1rem;
}
.price small {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  margin-inline-start: .4rem;
}
.hero-note {
  font-size: 1rem;
  color: var(--muted);
  margin-top: .9rem;
}
.hero-credits {
  max-width: 34rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--muted);
}

/* תמונת Hero רוחבית - יחס בסיס 16:9 */
.hero-media {
  --hero-focus: 50% 0%;    /* במחשב: מיקוד למעלה, כדי לא לחתוך את השיער */
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-focus);
}

/* תמונות: קובץ שקיים מכסה את הפלייסהולדר; קובץ חסר מוסר ב-onerror */
.hero-media,
.about-media { position: relative; }
.hero-media > img,
.about-media > img,
.ba-layer > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media > img { object-position: var(--hero-focus); }

/* פלייסהולדר לתמונה - אפור רקע סטודיו */
.media-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  background: radial-gradient(ellipse at 50% 40%, #F1F2EE 0%, var(--backdrop) 60%, var(--backdrop-2) 100%);
}

/* ---------- מקטעים ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.tint { background: var(--backdrop); }
.section-intro { color: var(--muted); max-width: 38rem; }

/* מה מקבלים */
.includes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 3.5rem;
  margin-top: 2.5rem;
}
.includes p { margin: 0; }
.extras {
  max-width: 38rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* עבודות לדוגמה */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.gallery figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  background: var(--backdrop-2);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .95rem;
  overflow: hidden;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* איך זה עובד - רצף אמיתי, לכן ממוספר */
.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: .6rem;
  color: var(--accent);
}
.steps p { margin: 0; color: var(--muted); }

/* הכנה לצילום */
.prep {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3.5rem;
  margin-top: 2.5rem;
}
.prep p { margin: 0; }

/* מחיר */
.pricing { text-align: center; }
.pricing .measure { margin: 0 auto; }
.pricing .big {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  margin: .3rem 0 .4rem;
}
.pricing .vat { color: var(--muted); margin-bottom: 1.5rem; }
.pricing .policy { font-size: 1rem; color: var(--muted); margin-top: 1.1rem; }

/* לפני ואחרי */
.ba {
  --pos: 50%;
  position: relative;
  direction: ltr;               /* מכניקת המחוון שמאל-ימין, גם באתר RTL */
  max-width: 880px;
  margin: 2rem 0 0 auto;         /* מיושר לימין, כמו הכותרת (margin פיזי כי הרכיב LTR) */
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  user-select: none;
}
.ba-layer {
  position: absolute;
  inset: 0;
}

.ba-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-after {
  z-index: 1;
}

.ba-before {
  z-index: 2;
  clip-path: inset(0 0 0 var(--pos));   /* "לפני" בצד ימין, מהקו והלאה */
}

.ba-after .media-ph {
  background: #EEF0EC;
  padding-right: 50%;                    /* הטקסט הזמני במרכז החצי השמאלי */
}

.ba-before .media-ph {
  padding-left: 50%;                     /* הטקסט הזמני במרכז החצי הימני */
}
.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(28, 35, 48, .15);
  pointer-events: none;
  z-index: 3;
}
.ba-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(28, 35, 48, .25);
}
.ba-line::before {                /* חצים בתוך הידית */
  content: "\2194";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: var(--accent);
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;                   /* מעל התמונות, הקו והתוויות, כדי שהגרירה תעבוד */
}
.ba:focus-within .ba-line::after { outline: 3px solid var(--accent); outline-offset: 3px; }
.ba-tag {
  position: absolute;
  top: 1rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: rgba(28, 35, 48, .72);
  color: #fff;
  font-size: .9rem;
  pointer-events: none;
  z-index: 3;
}
.ba-tag-before { right: 1rem; }
.ba-tag-after { left: 1rem; }
.ba-hint { max-width: 880px; font-size: .95rem; color: var(--muted); margin-top: .9rem; }

/* מי מצלם אתכם */
.about {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-media {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-text p:last-child { margin-bottom: 0; }

/* FAQ */
.faq {
  max-width: 46rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 0;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.2rem; color: var(--muted); }

/* הגעה וקשר */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3.5rem;
  margin-top: 2rem;
}
.contact p { margin: 0 0 .5rem; }

/* ---------- פוטר ---------- */
.site-foot {
  padding: 2.5rem 0 6rem; /* מרווח תחתון עבור הכפתור הצף במובייל */
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--muted);
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
}
.site-foot p { margin: 0; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-foot a { color: var(--muted); }

/* ---------- CTA צף - מובייל בלבד ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  padding: .75rem var(--gap) calc(.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(250, 250, 248, .96);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn {
  display: block;
  text-align: center;
  padding: .8rem 1rem;
}
.sticky-cta[hidden] { display: none !important; }

/* ---------- רספונסיביות ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 4 / 3; margin-top: 0; --hero-focus: 50% 35%; }  /* מובייל: ללא שינוי */
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 320px; }
  .ba { aspect-ratio: 4 / 5; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .includes,
  .prep,
  .contact { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .sticky-cta { display: block; }
  .head-cta { display: none; }
}

@media (min-width: 861px) {
  .site-foot { padding-bottom: 2.5rem; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
}

/* ---------- עמודים משפטיים (פרטיות, נגישות, ביטול) ---------- */
.legal { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2.4rem; }
.legal .updated { color: var(--muted); font-size: 1rem; margin-bottom: 2rem; }
.legal ul { padding-inline-start: 1.4rem; margin: 0 0 1em; }
.legal li { margin-bottom: .3em; }
.legal .address { line-height: 1.9; }
.site-foot a[aria-current="page"] { color: var(--ink); text-decoration: none; }

/* ---------- טופס ביטול עסקה ---------- */
.cancel-form {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.cancel-form label { display: grid; gap: .35rem; font-weight: 600; }
.cancel-form input[type="text"],
.cancel-form input[type="tel"] {
  font: inherit;
  font-weight: 400;
  padding: .6rem .7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
.cancel-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .4rem; }
.cancel-form legend { font-weight: 600; margin-bottom: .35rem; }
.cancel-form label.inline { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.cancel-form .form-error { margin: 0; color: #8A2E1B; min-height: 0; }
.cancel-form .form-error:empty { display: none; }
.cancel-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cancel-actions .btn { font-size: 1.05rem; padding: .75rem 1.6rem; border: 0; cursor: pointer; font-family: inherit; }
.btn-secondary { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn-secondary:hover { background: var(--backdrop); color: var(--accent-dark); }

/* מספרי טלפון לא נשברים בין שורות */
a[href^="https://wa.me"] { white-space: nowrap; }

/* קישור "ביטול עסקה" בראש העמוד הראשי - נשאר גלוי גם במובייל */
.head-links { display: flex; align-items: center; gap: 1.5rem; }
.head-cancel { font-size: 1rem; font-weight: 600; color: var(--ink); }
.cancel-form .optional { font-weight: 400; color: var(--muted); font-size: .9rem; }
.cancel-actions .btn[hidden] { display: none; }

/* תמונת הסטודיו בסקשן "איך מגיעים" */
.studio-media { margin: 1.5rem 0 2rem; }
.studio-media img { width: 100%; height: auto; border-radius: 4px; display: block; }
