/* Hadar Nail Studio – עיצוב בסיסי */
:root {
  --brown: #5A3A28;
  --text: #3E2A1F;
  --text-2: #6B4E3D;
  --cream: #F7EFE6;
  --wood: #E9D6C1;
  --caramel: #A9805F;
  --line: #F0E4D8;
  --border: #C9AE94;
  --white: #FFFFFF;
  --radius: 16px;
  --font: 'Assistant', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--brown); }
a:hover { color: var(--text); }

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

.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  background: var(--white);
  color: var(--brown);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { top: 8px; }

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

.wrap { max-width: 560px; margin: 0 auto; }

/* ---------- כותרת ---------- */
.hero {
  background: var(--brown);
  color: var(--cream);
  padding: 20px 20px 28px;
}
.hero .wrap { display: flex; flex-direction: column; gap: 20px; }

.topbar { display: flex; justify-content: space-between; align-items: center; }

.pill-link {
  color: var(--cream);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--caramel);
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.pill-link:hover { color: var(--white); background: rgba(255,255,255,.06); }

.icon-link {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cream);
}
.icon-link:hover { color: var(--white); }

.logo {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 0;
  font-weight: normal;
}
.logo-main {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 56px;
  letter-spacing: 5px;
  padding-left: 5px;
  line-height: 1;
  color: var(--cream);
}
.logo-line { width: 120px; height: 1px; background: var(--wood); }
.logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 7px;
  padding-left: 7px;
  color: var(--wood);
}

.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.btn-light, .btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-size: 15px; font-weight: 600;
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 44px;
}
.btn-light { background: var(--cream); color: var(--brown); border: 1px solid var(--cream); }
.btn-light:hover { background: var(--white); color: var(--brown); }
.btn-outline { background: transparent; color: var(--cream); border: 1px solid var(--caramel); }
.btn-outline:hover { color: var(--white); background: rgba(255,255,255,.06); }

.address { text-align: center; font-size: 14px; color: var(--wood); margin: 0; font-style: normal; }

/* ---------- פס חופשה ---------- */
.vacation {
  background: var(--wood);
  color: var(--text);
  padding: 12px 20px;
  text-align: center;
  font-weight: 600;
}
.vacation[hidden] { display: none; }

/* ---------- תוכן ---------- */
main { padding-bottom: 110px; }

.tabs { display: flex; gap: 8px; padding: 18px 20px 6px; }
.tab {
  flex: 1;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--brown);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--brown); border-color: var(--brown); color: var(--white); }

.card {
  margin: 12px 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 4px 18px;
}

.price-list, .hours-list { list-style: none; margin: 0; padding: 0; }
.price-list li, .hours-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.price-list li:last-child, .hours-list li:last-child { border-bottom: none; }
.price-list .price { font-weight: 600; white-space: nowrap; }

.card h2 {
  font-size: 13px; font-weight: 700; color: var(--text-2);
  margin: 12px 0 0;
}
.extras li { padding: 6px 0; font-size: 15px; border-bottom: none; }

.hours-list .closed { color: var(--text-2); }

/* ---------- כפתור קבוע ---------- */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 16px 20px 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  background: var(--cream);
  border-top: 1px solid var(--wood);
  z-index: 10;
}
.book-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px;
  max-width: 520px; margin: 0 auto;
  border-radius: 14px;
  background: var(--brown);
  color: var(--white);
  text-decoration: none;
  font-size: 18px; font-weight: 700;
}
.book-btn:hover { background: var(--text); color: var(--white); }

/* ---------- דף פשוט ---------- */
.simple-page { padding: 40px 20px; text-align: center; }
.simple-page h1 { color: var(--brown); }

.site-footer { padding: 20px 20px 8px; text-align: center; }
.site-footer nav { display: flex; gap: 6px 18px; justify-content: center; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); font-size: 14px; padding: 8px 0; display: inline-block; }

/* ---------- סרגל עליון בדפים פנימיים ---------- */
.appbar {
  background: var(--white);
  border-bottom: 1px solid var(--wood);
  padding: 12px 12px 16px;
}
.appbar-row {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 560px; margin: 0 auto;
}
.appbar h1 { margin: 0; font-size: 19px; font-weight: 700; }
.icon-btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--text);
  border-radius: 50%; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--cream); color: var(--text); }
.appbar-spacer { width: 44px; }

/* שלבים */
.stepper {
  display: flex; align-items: flex-start; gap: 8px;
  list-style: none; margin: 12px auto 0; padding: 0 16px;
  max-width: 400px;
}
.stepper li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); }
.stepper .line { flex: 1; height: 2px; background: var(--wood); margin-top: 15px; }
.stepper .line.done { background: var(--brown); }
.step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: #EFE3D6; color: var(--text-2);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.stepper li[aria-current="step"] { color: var(--text); font-weight: 700; }
.stepper li[aria-current="step"] .step-dot { background: var(--brown); color: var(--white); }
.stepper li.done .step-dot { background: var(--wood); color: var(--brown); }
.stepper li.done { color: var(--text); }

/* ---------- תוכן דף פנימי ---------- */
.page { max-width: 560px; margin: 0 auto; padding: 16px 20px 130px; display: flex; flex-direction: column; gap: 12px; }
.page h2 { font-size: 17px; font-weight: 700; margin: 6px 0 0; }
.hint { font-size: 13px; color: var(--text-2); margin: -4px 0 0; }
.summary-chip { background: var(--white); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: #4A3428; margin: 0; }

fieldset.plain { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
fieldset.plain legend { font-size: 17px; font-weight: 700; padding: 0; margin-bottom: 10px; }

.option {
  display: flex; align-items: center; gap: 12px;
  background: var(--white);
  border: 1px solid var(--wood);
  border-radius: 14px;
  padding: 13px 15px;
  cursor: pointer;
}
.option:has(input:checked) { border: 2px solid var(--brown); padding: 12px 14px; }
.option input { width: 20px; height: 20px; accent-color: var(--brown); margin: 0; flex: none; }
.option .opt-text { flex: 1; display: flex; flex-direction: column; }
.option .opt-name { font-size: 16px; font-weight: 600; }
.option .opt-note { font-size: 13px; color: var(--text-2); }
.option .opt-price { font-weight: 700; white-space: nowrap; }

.check-list { background: var(--white); border-radius: 14px; padding: 2px 14px; display: flex; flex-direction: column; }
.check-row { display: flex; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; }
.check-row:last-child { border-bottom: none; }
.check-row input { width: 20px; height: 20px; accent-color: var(--brown); margin: 0; flex: none; }
.check-row .grow { flex: 1; padding-block: 8px; }
.item-note { display: block; font-size: 13px; color: var(--text-2); font-weight: 400; line-height: 1.4; }

/* פס שבוע */
.week-nav { display: flex; align-items: center; justify-content: space-between; }
.week-nav h2 { margin: 0; font-size: 17px; }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--brown); background: var(--brown); color: var(--white);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.round-btn:disabled { background: transparent; border-color: var(--border); color: var(--border); cursor: default; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.day {
  height: 76px; border-radius: 12px;
  border: 1px solid var(--wood); background: var(--white);
  font-family: inherit; color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 0; cursor: pointer; min-width: 0;
}
.day .d-letter { font-size: 13px; }
.day .d-num { font-size: 18px; font-weight: 700; }
.day .d-state { font-size: 11px; color: #2F5A2B; }
.day[aria-pressed="true"] { border: 2px solid var(--brown); }
.day:disabled { background: #F2E8DD; color: var(--text-2); cursor: default; }
.day:disabled .d-state { color: var(--text-2); }
.day.full .d-state { color: #9B2C2C; }

.times { display: flex; flex-wrap: wrap; gap: 10px; }
.time {
  min-width: 100px; height: 48px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--brown);
  background: var(--white); color: var(--brown);
  font-family: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
}
.time[aria-pressed="true"] { background: var(--brown); color: var(--white); }
.empty-note { background: var(--white); border-radius: 12px; padding: 14px; color: var(--text-2); margin: 0; }

/* טופס */
.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  min-height: 46px; border-radius: 10px;
  border: 1px solid #A8896E; background: var(--white);
  padding: 0 12px; font-family: inherit; font-size: 16px; color: var(--text); font-weight: 400;
}
.field textarea { padding: 10px 12px; min-height: 70px; resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border: 2px solid #9B2C2C; }
.field-error { color: #9B2C2C; font-size: 14px; font-weight: 600; margin: 0; }
.field-error:empty { display: none; }
.seg { display: flex; gap: 10px; }
.seg label {
  flex: 1; min-height: 46px; border-radius: 10px; border: 1px solid #A8896E; background: var(--white);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; cursor: pointer;
}
.seg label:has(input:checked) { border: 2px solid var(--brown); font-weight: 600; }
.seg input { accent-color: var(--brown); margin: 0; width: 18px; height: 18px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; padding: 6px 0; cursor: pointer; }
.consent input { width: 20px; height: 20px; accent-color: var(--brown); margin: 2px 0 0; flex: none; }
.consent.boxed { background: #EFE3D6; border-radius: 10px; padding: 10px 12px; }

.form-alert {
  background: #FBE9E9; color: #7A1F1F; border-radius: 12px; padding: 12px 14px; font-weight: 600; margin: 0;
}
.form-alert:empty { display: none; }

/* סרגל תחתון */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--white); border-top: 1px solid var(--wood);
  padding: 14px 20px 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 10;
}
.bottom-bar-row { display: flex; align-items: center; gap: 14px; max-width: 520px; margin: 0 auto; }
.bottom-sum { display: flex; flex-direction: column; min-width: 0; }
.bottom-sum .label { font-size: 13px; color: var(--text-2); }
.bottom-sum .value { font-size: 18px; font-weight: 700; white-space: nowrap; }
.primary-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; border-radius: 14px; border: none;
  background: var(--brown); color: var(--white);
  font-family: inherit; font-size: 17px; font-weight: 700;
  text-decoration: none; cursor: pointer; padding: 0 16px;
}
.primary-btn:hover { background: var(--text); color: var(--white); }
.primary-btn[aria-disabled="true"], .primary-btn:disabled { opacity: .55; cursor: default; }
.secondary-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; border-radius: 12px; border: 1px solid #A8896E;
  background: transparent; color: var(--brown);
  font-family: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; padding: 0 14px;
}
.secondary-btn:hover { background: var(--white); color: var(--text); }

/* מסך "נשלח" */
.done-screen { max-width: 560px; margin: 0 auto; padding: 40px 24px 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--wood); color: var(--brown); display: flex; align-items: center; justify-content: center; }
.done-screen h1 { margin: 0; font-size: 28px; text-align: center; }
.done-screen > p { margin: 0; font-size: 17px; text-align: center; color: #4A3428; }
.details-card { width: 100%; background: var(--white); border-radius: 16px; padding: 6px 18px; margin: 0; }
.details-card div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 8px 0; }
.details-card dt { color: var(--text-2); }
.details-card dd { margin: 0; font-weight: 600; text-align: left; }
.dark-card { width: 100%; background: var(--brown); color: var(--cream); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.dark-card h2 { margin: 0; font-size: 17px; }
.dark-card p { margin: 0; font-size: 15px; color: var(--wood); }
.cream-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; border-radius: 12px; background: var(--cream); color: var(--brown);
  text-decoration: none; font-size: 17px; font-weight: 700;
}
.cream-btn:hover { background: var(--white); color: var(--brown); }
.wide { width: 100%; flex: none; }

/* תגיות סטטוס */
.badge { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.badge-pending { color: #7A4E0E; background: #FBEFD9; }
.badge-ok { color: #2F5A2B; background: #E3EEDD; }
.badge-off { color: #5C4636; background: #EFE3D6; }

/* כרטיס תור */
.appt { background: var(--white); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.appt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.appt-when { font-size: 18px; font-weight: 700; margin: 0; }
.appt-what { font-size: 15px; color: #4A3428; margin: 2px 0 0; }
.appt-actions { display: flex; gap: 10px; }
.appt-actions .primary-btn { min-height: 46px; font-size: 15px; border-radius: 12px; }
.late-note { background: var(--cream); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: #4A3428; margin: 0; }

.login-card { background: var(--white); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.login-card h2 { margin: 0; }
.login-card p { margin: 0; font-size: 15px; color: #4A3428; }

dialog.confirm {
  border: none; border-radius: 16px; padding: 20px; max-width: 340px; width: calc(100% - 32px);
  color: var(--text); background: var(--white);
}
dialog.confirm::backdrop { background: rgba(30, 18, 10, .5); }
dialog.confirm h2 { margin: 0 0 8px; font-size: 18px; }
dialog.confirm p { margin: 0 0 16px; }
dialog.confirm .row { display: flex; gap: 10px; }

.loading { text-align: center; color: var(--text-2); padding: 24px 0; }

/* ---------- דפי טקסט (תקנון וכו') ---------- */
.prose { max-width: 680px; margin: 0 auto; padding: 20px 20px 60px; }
.prose h1 { font-size: 26px; color: var(--brown); }
.prose h2 { font-size: 19px; margin-top: 28px; }
.prose p, .prose li { font-size: 16px; }
.prose .meta { color: var(--text-2); font-size: 14px; }

/* בחירת כמות לתוספת */
.qty-row { display: flex; align-items: center; gap: 8px; padding: 4px 32px 12px 0; border-bottom: 1px solid var(--line); }
.qty-label { font-size: 14px; color: var(--text-2); margin-inline-end: 4px; }
.qty-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid #A8896E; background: var(--white);
  font-family: inherit; font-size: 16px; font-weight: 700; color: var(--brown); cursor: pointer;
}
.qty-btn[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: var(--white); }
.qty-btn:focus-visible { outline: 3px solid var(--caramel); outline-offset: 2px; }

.star-note { margin: 4px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.star-note strong { color: var(--text); }

/* תקנון בתוך קביעת התור */
.terms-step-title { margin: 0; font-size: 20px; color: var(--brown); }
.terms-card { background: var(--white); border: 1px solid var(--wood); border-radius: 14px; padding: 4px 16px; }
.terms-card p, .terms-card li { font-size: 15px; line-height: 1.6; }
.terms-card ul { padding-inline-start: 20px; margin: 8px 0; }
.terms-card li { margin-bottom: 6px; }
.terms-card h3 { font-size: 16px; margin: 16px 0 4px; }

/* ---------- כפתור נגישות ---------- */
/* פינה שמאלית תחתונה; בדפים עם סרגל קבוע למטה – מעליו */
:root { --a11y-bottom: 16px; }
body:has(.book-bar:not([hidden])), body:has(.bottom-bar:not([hidden])) { --a11y-bottom: 108px; }
.a11y-toggle {
  position: fixed; left: 12px; bottom: var(--a11y-bottom);
  width: 46px; height: 46px;
  border: 2px solid var(--cream); border-radius: 50%;
  background: var(--brown); color: var(--white);
  box-shadow: 0 3px 12px rgba(0,0,0,.22);
  display: flex; align-items: center; justify-content: center;
  z-index: 50; cursor: pointer;
}
.a11y-toggle:focus-visible { outline: 3px solid var(--caramel); outline-offset: 2px; }
.a11y-panel {
  position: fixed; left: 12px; bottom: calc(var(--a11y-bottom) + 56px);
  max-height: calc(100vh - var(--a11y-bottom) - 72px); overflow-y: auto;
  width: 220px; background: var(--white); color: var(--text);
  border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.2);
  padding: 14px; z-index: 51;
  display: flex; flex-direction: column; gap: 6px;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { margin: 0 0 4px; font-size: 17px; }
.a11y-opt {
  min-height: 44px; border-radius: 10px; border: 1px solid #A8896E; background: var(--white);
  font-family: inherit; font-size: 15px; color: var(--text); cursor: pointer; text-align: right; padding: 0 12px;
}
.a11y-opt[aria-pressed="true"] { background: var(--brown); color: var(--white); border-color: var(--brown); }
.a11y-panel a { font-size: 14px; padding: 6px 0; }

html.a11y-big body { zoom: 1.15; }
html.a11y-bigger body { zoom: 1.3; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-contrast {
  --brown: #000000; --text: #000000; --text-2: #1A1A1A; --cream: #FFFFFF; --wood: #000000;
  --caramel: #000000; --line: #000000; --border: #000000;
}
html.a11y-contrast body, html.a11y-contrast .card, html.a11y-contrast .option, html.a11y-contrast .day, html.a11y-contrast .appt { background: #FFFFFF; color: #000000; }
html.a11y-contrast .hero, html.a11y-contrast .dark-card { background: #000000; color: #FFFFFF; }
html.a11y-contrast .logo-sub, html.a11y-contrast .address, html.a11y-contrast .dark-card p { color: #FFFFFF; }
html.a11y-contrast a { color: #0000C0; }
html.a11y-contrast .hero a, html.a11y-contrast .book-btn, html.a11y-contrast .primary-btn { color: #FFFFFF; }
html.a11y-contrast .btn-light, html.a11y-contrast .cream-btn { color: #000000; background: #FFFFFF; }

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