/* =========================================================================
   בסיס לדף נחיתה (הועתק וצומצם מ-public/bat-mitzvah/cards/css/styles.css של 12 רגעים)
   קובץ עצמאי לכל דף: לא מקשרים לקובץ עיצוב של דף אחר, כדי ששינוי שם לא ישבור כאן.

   צבעים: מוגדרים פעם אחת ב-:root לפי תפקיד, לא לפי שם הצבע.
   להחלפת פלטה מחליפים רק את הבלוק הזה (פלטות מוכנות בסוף הקובץ, בהערה).
   כל צבע שמשמש לטקסט חייב ניגודיות 4.5:1 לפחות מול הרקע שלו (scripts/check_page.py בודק).
   ========================================================================= */

:root {
  /* ---- פלטה: צבעי המותג (טורקיז + ורוד בייבי, visual-style.md) ---- */
  --c-bg:           #fffaf9;  /* רקע ראשי + פס בסיס (כמעט לבן, כדי שכרטיסים לבנים יבלטו) */
  --c-band-a:       #fcdde4;  /* פס צבע א (ורוד, קצת יותר כהה מהבלאש #ffe9ef) */
  --c-band-b:       #e3f5f3;  /* פס צבע ב (טורקיז בהיר מאוד) */
  --c-accent:       #f9bdc0;  /* מילוי כפתור בהובר, תגיות (ורוד בייבי) */
  --c-accent-deep:  #8e3a50;  /* טקסט/מסגרת כפתור, נקודות רשימה, סמן הקלדה */
  --c-accent2:      #c9ece8;  /* כרטיס מודגש, תגית הצלחה */
  --c-accent2-deep: #006a62;  /* מחיר, קישורים, תבליטים (טורקיז כהה לטקסט) */
  --c-underline:    #01a99d;  /* קו תחתון מתחת למילים בכותרות (טורקיז המותג) */
  --c-ink:          #2b2b2c;  /* טקסט עיקרי */
  --c-ink-soft:     #525254;  /* טקסט משני */
  --c-white:        #ffffff;
  --c-error:        #b3453a;

  --font-body: 'Heebo', 'Segoe UI', Arial, sans-serif;
  --font-head: var(--font-body);

  --radius-md: 1rem;
  --radius-lg: 1.75rem;
  --shadow-card: 0 6px 20px rgba(43, 43, 44, 0.08);
  --shadow-card-hover: 0 10px 28px rgba(43, 43, 44, 0.14);
  --focus-ring: 3px solid #2b6cb0;
  --focus-ring-offset: 2px;
  --transition-fast: 160ms ease;
}

@media (prefers-reduced-motion: reduce) {
  :root { --transition-fast: 0ms; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- איפוס ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 1rem;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 0.5em; font-family: var(--font-head); }
p { margin: 0 0 1em; }

/* hidden חייב לנצח כל display אחר (אחרת אקורדיונים ושדות מותנים לא נסגרים) */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; right: 1rem; top: -3rem; z-index: 1000;
  background: var(--c-ink); color: var(--c-white);
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }

/* פוקוס גלוי לניווט במקלדת */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-radius: 4px;
}

/* ---------- טפסים ---------- */
.field { margin-bottom: 1.1rem; text-align: right; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
fieldset.field { border: 0; margin: 0 0 1.1rem; padding: 0; min-width: 0; }
.field legend { display: block; width: 100%; padding: 0; font-weight: 600; margin-bottom: 0.35rem; }

/* כל סוג שדה חדש (number, url, date...) להוסיף כאן, אחרת הוא יוצא בלי עיצוב (קרה עם tel) */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], select, textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid rgba(43,43,44,0.25);
  border-radius: 0.7rem;
  background: var(--c-white);
  color: var(--c-ink);
}
textarea { min-height: 6rem; resize: vertical; }

/* בלי כחול של הדפדפן: גם תיבות סימון וגם כפתורי בחירה בצבע הפלטה */
input[type="checkbox"], input[type="radio"] { accent-color: var(--c-accent-deep); }

input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--c-error); }
fieldset[aria-invalid="true"] { outline: 2px solid var(--c-error); outline-offset: 4px; border-radius: 0.7rem; }

.field-hint { font-size: 0.85rem; color: var(--c-ink-soft); margin-top: 0.35rem; }
.field-hint.above { margin: 0 0 0.35rem; }
.field-error { font-size: 0.85rem; color: var(--c-error); margin-top: 0.35rem; font-weight: 600; }
.req { color: var(--c-error); }

/* תיבת סימון + טקסט: הטקסט נשבר בתוך העמודה שלו, לא מתחת לתיבה */
.field-toggle { display: flex; align-items: flex-start; gap: 0.6rem; cursor: pointer; font-weight: 500 !important; }
.field-toggle input { width: 1.25rem; height: 1.25rem; flex-shrink: 0; margin: 0.18rem 0 0; }
.field-toggle a { color: var(--c-accent2-deep); font-weight: 700; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 48px; padding: 0.75rem 1.5rem;
  border-radius: 999px; border: none;
  font: inherit; font-weight: 700; text-decoration: none;
  cursor: pointer;
  transition: box-shadow var(--transition-fast);
}
.btn-block { width: 100%; }
.btn-text { background: none; border: none; cursor: pointer; padding: 0.4rem; min-height: 44px; font: inherit; }

/* כפתור "נוזלי": ריק, ומתמלא מלמטה בהובר/פוקוס/לחיצה. מונפש דרך bottom ולא transform
   (transform קבוע על אלמנט עם טקסט מטשטש את הטקסט). צבע הטקסט נשאר קבוע. */
.btn-liquid {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--c-white);
  color: var(--c-accent-deep);
  border: 2px solid var(--c-accent-deep);
}
.btn-liquid::before {
  content: ""; position: absolute; z-index: -1;
  right: -25%; left: -25%; bottom: -100%; height: 220%;
  border-radius: 45%;
  background: var(--c-accent);
}
@media (hover: hover) and (pointer: fine) {
  .btn-liquid::before { transition: bottom 480ms cubic-bezier(0.5, 1.6, 0.4, 1); }
}
.btn-liquid:hover::before, .btn-liquid:focus-visible::before, .btn-liquid:active::before { bottom: -40%; }
.btn-liquid:disabled { opacity: 0.6; cursor: default; }

.btn-outline { color: var(--c-accent2-deep); border: 2px solid var(--c-accent2-deep); background: transparent; }
.btn-outline:hover, .btn-outline:focus-visible { background: rgba(255,255,255,0.55); }

/* ---------- אקורדיון (שאלות נפוצות) ---------- */
.accordion-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  background: none; border: none; font: inherit; font-weight: 700;
  cursor: pointer; text-align: right; min-height: 44px; color: var(--c-ink);
}
.accordion-toggle .chev { transition: transform var(--transition-fast); flex-shrink: 0; }
.accordion-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* ---------- שלבים עם אייקון, תמונה עגולה, חתימה ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.step {
  display: flex; gap: 1.2rem; align-items: center;
  background: var(--c-white); border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem; box-shadow: var(--shadow-card);
}
.step-num {
  flex-shrink: 0; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--c-accent2); color: var(--c-accent2-deep);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem;
}
.step-icon { width: 2.1rem; height: 2.1rem; object-fit: contain; }
.step h3 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin-bottom: 0.25rem; }
.step p { margin: 0; color: var(--c-ink-soft); font-size: clamp(0.95rem, 1.3vw, 1.05rem); line-height: 1.6; }

.round-photo {
  width: 12.5rem; height: 12.5rem; margin: 0 auto;
  border-radius: 50%; overflow: hidden;
  border: 3px solid var(--c-accent2-deep); box-shadow: 0 0 0 4px var(--c-accent2);
}
.round-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.signature { width: 9rem; height: auto; margin: 0.5rem 0 0; }

/* ניגודיות גבוהה */
@media (prefers-contrast: more) {
  :root { --c-ink-soft: #2b2b2c; }
}

/* =========================================================================
   פלטות מוכנות (להעתיק לבלוק :root למעלה, במקום הפלטה הנוכחית)

   מותג-על "מורן עיצובים בנייר" (visual-style.md): טורקיז + ורוד בייבי.
   הטורקיז המקורי #01a99d בהיר מדי לטקסט על לבן (כ-2.9:1), לכן לטקסט גוון כהה שלו.
     --c-bg:           #fffaf9;
     --c-band-a:       #ffe9ef;
     --c-band-b:       #dff3f1;
     --c-accent:       #f9bdc0;
     --c-accent-deep:  #8e3a50;
     --c-accent2:      #c9ece8;
     --c-accent2-deep: #006a62;
     --c-underline:    #01a99d;
     --c-ink:          #2b2b2c;
     --c-ink-soft:     #525254;
     --font-body: 'Heebo', 'Segoe UI', Arial, sans-serif;
   (פונט: Heebo מ-Google Fonts, במקום IBM Plex Sans Hebrew)
   ========================================================================= */
