/* talchoen.gifts.org.il — עיצוב משותף לכל דפי הנחיתה (טל כהן תורג'מן, משרד עורכי דין ונוטריון) */

:root {
  --bg: #0b0b12;
  --gold: #c9a227;
  --gold-dark: #a3811d;
  --on-gold: #17130a;
  --text: #f5f0e6;
  --text-muted: #aca696;
  --danger: #ff8a80;
  --radius: 14px;
  --font: 'Assistant', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100svh;
  background: radial-gradient(ellipse at 50% 15%, #241a06 0%, var(--bg) 60%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
}

a { color: var(--gold); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── סרטון ─────────────────────────────────────────────────────────── */
/* .video-hero הוא אח (לא הורה) של .wa-cta בתוך .video-section - חיוני כדי
   שהכפתור (position: static) לא יצויר מתחת ל-video-frame (position: absolute),
   שכן אלמנטים ממוקמים תמיד מצוירים מעל אלמנטים לא-ממוקמים ללא קשר לסדר ה-DOM. */

.video-section {
  width: 100%;
  max-width: 420px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35), 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* יחס תצוגה לפי סרטון - ברירת מחדל 9:16 (שורטס); סרטונים אחרים (למשל קטעי רדיו) ב-4:5 */
.video-hero[data-aspect="4:5"] { aspect-ratio: 4 / 5; }

.video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  display: block;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-icon {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(11, 11, 18, 0.55);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--text);
  margin-inline-start: 3px;
}

.video-play:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ── כפתור וואטסאפ ────────────────────────────────────────────────── */

.wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  margin: 22px auto 0;
  padding: 15px 30px;
  background: var(--gold);
  color: var(--on-gold);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.35);
  transition: background 0.15s ease, transform 0.1s ease;
}

.wa-cta svg { width: 22px; height: 22px; fill: var(--on-gold); }

.wa-cta:hover { background: var(--gold-dark); }
.wa-cta:active { transform: scale(0.98); }
.wa-cta:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

/* ── תוכן הדף ──────────────────────────────────────────────────────── */

.page-info {
  max-width: 560px;
  margin: 30px auto 0;
  padding: 0 20px;
  text-align: center;
}

.page-info h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.page-info .page-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.page-info--home {
  margin-top: 90px;
}

/* ── נייד: הסרטון תופס את מלוא רוחב המסך (גדול ככל האפשר), והכפתור מתחת לו
   בזרימה הרגילה - יש תמיד מקום, כי גובה הסרטון נגזר מיחס התצוגה שלו (9:16/4:5)
   ולא נכפה עליו גובה מסך מלא. ─────────────────────────────────────────── */

@media (max-width: 767px) {
  .video-section { max-width: none; }

  .video-hero {
    border-radius: 0;
    box-shadow: none;
  }

  .page-info { padding: 0 20px; }
}

/* ── מודל וואטסאפ ──────────────────────────────────────────────────── */

.wa-modal[hidden] { display: none; }

.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.78);
}

.wa-modal-panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #14141e;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.wa-modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(245, 240, 230, 0.25);
  background: transparent;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.wa-modal-close:hover { background: rgba(245, 240, 230, 0.08); }
.wa-modal-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wa-modal-panel h2 {
  font-size: 1.25rem;
  margin: 0 0 6px;
  padding-inline-end: 30px;
}

.wa-modal-panel > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 22px;
}

.form-field {
  margin-bottom: 16px;
  text-align: right;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(245, 240, 230, 0.2);
  background: #0b0b12;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
}

.form-field input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.wa-cta--submit { width: 100%; margin-top: 6px; position: relative; }

.wa-cta--submit .spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid var(--on-gold);
  border-top-color: transparent;
  border-radius: 50%;
  animation: wa-spin 0.7s linear infinite;
}

.wa-cta--submit.loading .btn-label { opacity: 0.6; }
.wa-cta--submit.loading .spinner { display: inline-block; }

@keyframes wa-spin { to { transform: rotate(360deg); } }

.wa-form-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin: 12px 0 0;
  text-align: center;
}

body.modal-open { overflow: hidden; }

/* ── פוטר ──────────────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 50px auto 0;
  padding: 26px 20px 40px;
  text-align: center;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.site-footer .footer-name {
  color: var(--text);
  font-weight: 700;
  margin: 4px 0;
}

.site-footer .footer-disclaimer {
  margin: 14px 0;
  font-size: 0.76rem;
}

.site-footer .footer-credit a {
  color: var(--gold);
  text-decoration: none;
}

.site-footer .footer-credit a:hover { text-decoration: underline; }
