/* ==========================================================================
   styles.css — גיליון הסגנון היחיד של האתר
   כלנית ציוד עזרה ראשונה
   --------------------------------------------------------------------------
   מבנה הקובץ:
   1.  משתני עיצוב (צבעים, גופן, מרווחים)  ← כאן משנים צבעים
   2.  איפוס בסיסי וטיפוגרפיה
   3.  רכיבי עזר (container, כפתורים, דילוג לתוכן)
   4.  כותרת עליונה וניווט
   5.  דף הבית — פתיח ופרטי העסק
   6.  פוטר וסרגל פעולה צף
   7.  עמוד דף ההזמנה (order.html)
   8.  עמודי תוכן (פרטיות / תנאי שימוש / נגישות / 404)
   9.  רספונסיביות
   10. נגישות (פוקוס, הפחתת אנימציות, הדפסה)
   ========================================================================== */

/* ==========================================================================
   1. משתני עיצוב — כל שינוי צבע מתבצע כאן ומשפיע על כל האתר
   ========================================================================== */
:root {
  /* צבע מותג ראשי — ירוק רפואי עמוק */
  --brand-900: #0B453F;
  --brand-800: #0F544C;
  --brand-700: #14655C;   /* הצבע הראשי לכפתורים וקישורים */
  --brand-600: #2E7D6B;
  --brand-200: #C9E0D9;
  --brand-100: #E3EFEB;
  --brand-50:  #F1F6F4;

  /* צבע דגש חם — בהשראת הכלנית (בשימוש מדוד) */
  --accent-700: #9C142B;
  --accent-600: #C0203A;
  --accent-50:  #FCF1F3;

  /* טקסט ורקעים ניטרליים */
  --ink:        #1C2A27;
  --ink-soft:   #40514D;
  --muted:      #64756F;
  --surface:    #FFFFFF;
  --bg:         #FBFAF8;
  --bg-alt:     #F5F8F7;
  --line:       #E2E9E6;
  --line-strong:#CBD9D4;

  /* טיפוגרפיה */
  --font-base: "Heebo", "Rubik", "Segoe UI", Arial, "Helvetica Neue", sans-serif;
  --fs-body: 1.0625rem;   /* 17px — נוח לקריאה גם למבוגרים */

  /* מרווחים, פינות וצללים */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 37, .06), 0 2px 8px rgba(16, 42, 37, .05);
  --shadow-md: 0 6px 18px rgba(16, 42, 37, .08), 0 2px 6px rgba(16, 42, 37, .05);
  --container: 1100px;
  --header-h: 72px;
}

/* ==========================================================================
   2. איפוס בסיסי וטיפוגרפיה
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden; /* מניעת גלילה אופקית */
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.28; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.35em; }
li { margin-bottom: .4em; }

a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-800); }

img, svg { max-width: 100%; height: auto; display: block; }

strong { font-weight: 700; }

/* מספרי טלפון, פקס ואימייל — שמירה על כיווניות נכונה בתוך טקסט עברי */
.ltr, .num { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.nowrap { white-space: nowrap; }
.break-word { overflow-wrap: anywhere; word-break: break-word; }

/* [hidden] חייב לגבור על כללי display של רכיבים (נעשה בו שימוש ב-js/main.js) */
[hidden] { display: none !important; }

/* ==========================================================================
   3. רכיבי עזר
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: 720px; }

.section { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }
.section-title { text-align: center; margin-bottom: 2rem; }

.kicker {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--brand-700);
  background: var(--brand-100);
  border-radius: 999px;
  padding: .35em 1em;
  margin-bottom: 1rem;
}

.lead { font-size: 1.1rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* כפתורים — גדולים ונוחים ללחיצה גם במובייל */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 54px;
  padding: .7em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.btn--primary { background: var(--brand-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-800); color: #fff; }

.btn--outline { background: #fff; color: var(--brand-800); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--brand-700); color: var(--brand-800); background: var(--brand-50); }

.btn--accent { background: var(--accent-600); color: #fff; }
.btn--accent:hover { background: var(--accent-700); color: #fff; }

.btn--sm { min-height: 46px; padding: .5em 1.15em; font-size: .95rem; }
.btn--lg { min-height: 62px; font-size: 1.1rem; padding: .8em 1.9em; }
.btn--block { width: 100%; }

.btn .icon { width: 20px; height: 20px; flex: none; }
.btn--lg .icon { width: 22px; height: 22px; }

/* קישור דילוג לתוכן — מופיע רק בעת ניווט במקלדת */
.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 1000;
  background: var(--brand-800);
  color: #fff;
  padding: .75em 1.25em;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ==========================================================================
   4. כותרת עליונה וניווט
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; }
.brand__logo { width: 36px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: 1.05rem; color: var(--brand-900); }
.brand__tag  { font-size: .78rem; color: var(--muted); font-weight: 500; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block;
  padding: .55em .85em;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav__link:hover { background: var(--brand-50); color: var(--brand-800); }
.nav__link[aria-current="page"] { color: var(--brand-800); background: var(--brand-100); }

.header-actions { display: flex; align-items: center; gap: .5rem; margin-inline-start: .75rem; }

/* כפתור החיוג שבתוך רשימת הניווט מוצג במובייל בלבד */
.nav__cta { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--brand-900);
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ==========================================================================
   5. דף הבית — פתיח ופרטי העסק
   ========================================================================== */
.intro {
  text-align: center;
  padding: clamp(2.25rem, 1.5rem + 3vw, 4rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem);
  background:
    radial-gradient(760px 340px at 50% -10%, var(--brand-100) 0%, rgba(227, 239, 235, 0) 65%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.intro__inner { max-width: 640px; }
.intro__logo { width: 58px; height: 70px; margin: 0 auto 1rem; }
.intro__title { margin-bottom: .25rem; }
.intro__number { color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.intro__text { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 2rem; }
.intro__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* כרטיס פרטי העסק */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.35rem, 1rem + 1.5vw, 2rem);
}

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.05rem; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; margin: 0; }
.contact-list .icon { width: 22px; height: 22px; color: var(--brand-700); flex: none; margin-top: .3em; }
.contact-list .label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.contact-list .value { font-weight: 700; font-size: 1.05rem; }
.contact-list .value a { text-decoration: none; }
.contact-list .value a:hover { text-decoration: underline; }

.contact-actions { display: grid; gap: .7rem; margin-top: 1.75rem; }

/* סימון ברור לערך שטרם עודכן (כתובת העסק) */
.placeholder-note {
  display: inline-block;
  background: var(--accent-50);
  border: 1px dashed #E4B8C0;
  color: var(--accent-700);
  border-radius: var(--radius-sm);
  padding: .3em .7em;
  font-size: .95rem;
  font-weight: 700;
}

/* ==========================================================================
   6. פוטר וסרגל פעולה צף
   ========================================================================== */
.site-footer { background: var(--brand-900); color: rgba(255,255,255,.82); padding: 2.25rem 0 1.5rem; }
.site-footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-top { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: .65rem; }
.footer-brand__name { color: #fff; font-weight: 800; font-size: 1.05rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0; }
.footer-links a { font-weight: 600; }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,.16);
  margin-top: 1.75rem; padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .88rem;
}

/* סרגל פעולה צף למובייל */
.mobile-bar {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  gap: .6rem;
  padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(16,42,37,.08);
}
.mobile-bar .btn { flex: 1; min-height: 52px; font-size: 1rem; }

/* ==========================================================================
   7. עמוד דף ההזמנה (order.html)
   --------------------------------------------------------------------------
   עמוד עצמאי ומינימלי, שנועד להיפתח מקישור בוואטסאפ:
   כותרת קטנה, המסמך עצמו, כפתורי הורדה/פתיחה ופרטי קשר קצרים.
   ========================================================================== */
.order-page { background: var(--bg-alt); }

.order-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: .6rem 16px;
}
.order-brand {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  text-decoration: none; color: var(--brand-900); font-weight: 800; font-size: 1rem;
}
.order-brand img { width: 26px; height: 31px; }

.order-main {
  max-width: 1000px;
  margin-inline: auto;
  padding: 1.1rem 16px 2rem;
}
.order-title { text-align: center; font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.1rem); margin-bottom: .15rem; }
.order-subtitle { text-align: center; color: var(--muted); margin-bottom: 1.1rem; font-size: .98rem; }

/* אזור המסמך */
.doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* הטמעת ה-PDF — מוצגת במסכים רחבים בלבד */
.doc__embed { display: none; width: 100%; height: min(76vh, 780px); border: 0; background: var(--bg-alt); }
.doc__nosupport { padding: 2rem; text-align: center; color: var(--muted); }

/* תצוגה מקדימה של הדף — ברירת המחדל במובייל ובכל דפדפן שאינו מטמיע PDF */
.doc__preview { display: block; text-decoration: none; color: inherit; }
.doc__preview img { width: 100%; height: auto; }
.doc__hint {
  display: block;
  text-align: center;
  padding: .7rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--brand-800);
  font-weight: 700;
  font-size: .95rem;
  background: var(--brand-50);
}

.doc-help { text-align: center; color: var(--muted); font-size: .9rem; margin: .8rem 0 0; }
.doc-actions { display: grid; gap: .7rem; margin-top: .8rem; }

/* פרטי קשר קצרים בתחתית עמוד ההזמנה */
.order-contact {
  margin-top: 1.75rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
}
.order-contact__label { margin: 0 0 .5rem; color: var(--muted); font-weight: 600; }
.order-contact__phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 1.45rem; font-weight: 800; color: var(--brand-800);
  text-decoration: none; padding: .35em .6em; border-radius: var(--radius-sm);
}
.order-contact__phone:hover { background: var(--brand-50); }
.order-contact__phone .icon { width: 22px; height: 22px; }
.order-contact__mail {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: .35rem; font-size: .98rem; font-weight: 600;
}
.order-contact__mail .icon { width: 18px; height: 18px; }

.order-footer {
  text-align: center;
  padding: 1.25rem 16px 2rem;
  color: var(--muted);
  font-size: .88rem;
}
.order-footer p { margin: 0 0 .35rem; }

/* ==========================================================================
   8. עמודי תוכן (פרטיות / תנאי שימוש / נגישות / 404)
   ========================================================================== */
.page-hero {
  background: linear-gradient(180deg, var(--brand-50) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 1.5rem + 2.5vw, 3.25rem) 0;
}
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: .75rem; }
.breadcrumb a { color: var(--brand-700); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 2.25rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-inline-start: 1.35em; }
.callout {
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ==========================================================================
   9. רספונסיביות
   ========================================================================== */
@media (max-width: 820px) {
  /* ניווט מובייל */
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .75rem 20px 1.25rem;
    margin: 0;
  }
  .nav[hidden] { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav__link { padding: .85em .75em; font-size: 1.05rem; }
  .nav__cta { display: block; margin-top: .75rem; }
  .header-inner { position: relative; }
  .nav-toggle { display: inline-flex; margin-inline-start: auto; }
  .header-actions { display: none; }
}

@media (max-width: 760px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 78px; }             /* מקום לסרגל הצף */
  .order-page { padding-bottom: 0; }         /* בעמוד ההזמנה אין סרגל צף */
  .footer-legal { flex-direction: column; gap: .4rem; }
}

@media (max-width: 480px) {
  :root { --fs-body: 1.03rem; }
  .intro__actions .btn { width: 100%; }
  .brand__tag { display: none; }
}

/* הטמעת ה-PDF רק במסכים רחבים, שבהם הדפדפן בדרך כלל תומך בכך */
@media (min-width: 900px) {
  .doc__embed { display: block; }
  .doc__preview { display: none; }
}

/* מכשירי מובייל — תמיד תצוגה מקדימה, גם במסך רחב (מסומן ב-js/main.js) */
.force-preview .doc__embed { display: none !important; }
.force-preview .doc__preview { display: block !important; }

/* ==========================================================================
   10. נגישות
   ========================================================================== */

/* מצב פוקוס ברור לניווט במקלדת */
:focus-visible {
  outline: 3px solid var(--accent-600);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible, .nav__link:focus-visible { outline-offset: 3px; }

/* כיבוד העדפת מערכת להפחתת תנועה */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* תמיכה בניגודיות גבוהה */
@media (prefers-contrast: more) {
  :root { --muted: #4A5C58; --line: #B6C4C0; }
}

/* טקסט לקוראי מסך בלבד */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* הדפסה */
@media print {
  .site-header, .mobile-bar, .intro__actions, .contact-actions, .doc-actions, .skip-link { display: none !important; }
  body { background: #fff; padding: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
