/* ============================================================
   קקטוס עיצובים — Cactus Designs
   Warm premium carpentry studio · Hebrew RTL
   Palette: cream / oak / walnut / cactus green (from the logo)
   Type:    Frank Ruhl Libre (display) · Heebo (body)
   ============================================================ */

:root {
  --cream:        #F7F2E9;
  --cream-deep:   #EFE7D8;
  --sand:         #E9DFCC;
  --oak:          #B1885A;
  --oak-soft:     rgba(177, 136, 90, .22);
  --walnut:       #63482E;
  --ink:          #2A2118;
  --ink-soft:     #5C5142;
  --cactus:       #5C7048;
  --cactus-deep:  #465737;
  --cactus-tint:  #EAEFE2;
  --dark-bg:      #241C13;
  --dark-soft:    #35291C;
  --white:        #FFFDF9;
  --danger:       #A9432F;

  --font-display: "Frank Ruhl Libre", "Times New Roman", serif;
  --font-body:    "Heebo", "Arial Hebrew", sans-serif;

  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(42, 33, 24, .07);
  --shadow-md: 0 10px 34px rgba(42, 33, 24, .13);
  --shadow-lg: 0 24px 60px rgba(42, 33, 24, .22);

  --ease-out:  cubic-bezier(.22, 1, .36, 1);

  /* z-scale */
  --z-header:   50;
  --z-menu:     60;
  --z-modal:    70;
  --z-lightbox: 80;
  --z-toast:    90;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* overflow-x על body לבדו לא מספיק בספארי במובייל — צריך גם על html,
   אחרת גלישה קטנה של אלמנט אחד מאפשרת לגרור את כל הדף לצדדים. */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%; /* מונע הגדלת טקסט אוטומטית בסיבוב המסך */
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--cactus); color: var(--white); }

/* ---------- דילוג לתוכן (WCAG 2.4.1) ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  inset-inline-start: 1rem;
  z-index: calc(var(--z-toast) + 1);
  padding: .8rem 1.4rem;
  background: var(--cactus-deep);
  color: var(--white);
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 0; }

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

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; font-weight: 900; }

h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }

h2 em, h1 .accent { font-style: normal; color: var(--cactus); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  /* cactus-deep ולא cactus: על רקע החול (sand/cream-deep) הירוק הבהיר
     יורד ל־4.1:1 ונופל בתקן 5568 / WCAG AA. הכהה נותן 5.9:1 ומעלה. */
  color: var(--cactus-deep);
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--oak);
  border-radius: 2px;
}
.eyebrow.light { color: #C8D3B4; }

/* גרסת הכותרת העליונה בהירו: יושבת על תצלום עמוס, אז היא צריכה
   ניגודיות אמיתית — זהב חם במקום ירוק עמום, פונט התצוגה הסריפי
   לאלגנטיות, וצל רך שמפריד אותה מהרקע בלי להכביד. */
.eyebrow-hero {
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  font-weight: 500;
  letter-spacing: .22em;
  color: #E8D4B0;
  text-shadow: 0 1px 12px rgba(28, 21, 13, .85), 0 1px 3px rgba(28, 21, 13, .7);
}
.eyebrow-hero::before {
  width: 46px;
  height: 1.5px;
  background: linear-gradient(to left, #E8D4B0, rgba(232, 212, 176, .25));
  box-shadow: 0 1px 6px rgba(28, 21, 13, .6);
}

.section-sub {
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: .7em;
}

/* ---------- Layout helpers ---------- */
.container { width: min(1160px, 92vw); margin-inline: auto; }

.section { padding: clamp(4rem, 9vw, 7rem) 0; }

.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head h2 { margin-top: .35em; }

.section-sand { background: var(--cream-deep); }

.section-dark { background: var(--dark-bg); color: var(--cream); }
.section-dark .section-sub { color: #C7BBA8; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: calc(var(--z-header) + 1);
  background: transparent;
  pointer-events: none;
}
#progressBar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--oak), var(--cactus));
  border-radius: 0 3px 3px 0;
  transition: width .1s linear;
}

/* ---------- Dovetail divider (signature motif from the logo) ---------- */
.dovetail-divider {
  height: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='26' viewBox='0 0 96 26'%3E%3Cpath d='M0 0h96v9h-40l8 17H32l8-17H0z' fill='%23B1885A' fill-opacity='.28'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 96px 26px;
}
.dovetail-divider.flip { transform: scaleY(-1); }

/* ---------- Buttons ---------- */
/* display:inline-flex גובר על תכונת hidden — צריך כלל מפורש */
.btn[hidden] { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .7em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .22s var(--ease-out), color .22s var(--ease-out),
              border-color .22s var(--ease-out), box-shadow .22s var(--ease-out),
              transform .15s var(--ease-out);
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--cactus);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(92, 112, 72, .35);
}
.btn-primary:hover { background: var(--cactus-deep); box-shadow: 0 8px 26px rgba(70, 87, 55, .42); }

.btn-outline {
  border-color: rgba(255, 253, 249, .75);
  color: var(--white);
  backdrop-filter: blur(4px);
  background: rgba(255, 253, 249, .08);
}
.btn-outline:hover { background: rgba(255, 253, 249, .18); border-color: var(--white); }

.btn-ghost {
  color: var(--ink);
  border-color: rgba(42, 33, 24, .22);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(42, 33, 24, .05); }

.btn-lg { min-height: 56px; padding: .8em 2.1em; font-size: 1.06rem; }

.btn-block { width: 100%; }

.link-btn {
  color: var(--cactus);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--cactus-deep); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: var(--z-header);
  transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out),
              padding .3s var(--ease-out);
  padding: 14px 0;
}
.site-header.scrolled {
  background: rgba(247, 242, 233, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 6px 0;
}

.header-inner {
  width: min(1240px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo {
  width: 52px; height: 52px;
  object-fit: contain;
  border-radius: 12px;
  transition: transform .25s var(--ease-out);
}
.brand:hover .brand-logo { transform: rotate(-4deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-size: 1.18rem; font-weight: 900; }
.brand-text small { font-size: .72rem; color: var(--ink-soft); letter-spacing: .06em; }

/* Hero (transparent header) state — light text over photo */
.site-header:not(.scrolled) .brand-text strong,
.site-header:not(.scrolled) .main-nav a,
.site-header:not(.scrolled) .btn-auth { color: var(--white); }
.site-header:not(.scrolled) .brand-text small { color: rgba(255, 253, 249, .8); }
.site-header:not(.scrolled) .btn-auth { border-color: rgba(255, 253, 249, .5); }
.site-header:not(.scrolled) .btn-auth:hover { background: rgba(255, 253, 249, .14); border-color: var(--white); }
.site-header:not(.scrolled) .hamburger span { background: var(--white); }

.main-nav { display: flex; gap: 1.6rem; }
.main-nav a {
  position: relative;
  font-weight: 500;
  font-size: .98rem;
  padding: .35em 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 100%; height: 2px;
  background: var(--cactus);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .28s var(--ease-out);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.site-header:not(.scrolled) .main-nav a::after { background: var(--oak); }

.header-actions { display: flex; align-items: center; gap: .8rem; }
.btn-auth { min-height: 44px; padding: .45em 1.2em; font-size: .95rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  align-items: center;
  border-radius: 10px;
}
.hamburger span {
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: rgba(36, 28, 19, .97);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease-out), visibility .35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}
.mobile-menu a {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), color .2s;
}
.mobile-menu a:hover { color: var(--oak); }
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(1) { transition-delay: .05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: .1s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .2s; }
.mobile-menu.open a:nth-child(5) { transition-delay: .25s; }
.mobile-menu.open a:nth-child(6) { transition-delay: .3s; }
.mobile-menu .btn { margin-top: 1.2rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -8% 0;
  z-index: -2;
  will-change: transform;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(28, 21, 13, .82) 0%, rgba(28, 21, 13, .35) 45%, rgba(28, 21, 13, .45) 100%);
}

.hero-content {
  width: min(1160px, 92vw);
  margin-inline: auto;
  padding: 120px 0 90px;
}

.hero-title {
  font-size: clamp(2.7rem, 7.2vw, 5.4rem);
  font-weight: 900;
  margin: .4em 0 .35em;
  letter-spacing: -.015em;
}
.hero-line { display: block; }
.hero-title .accent { color: #D9C29B; }

.hero-sub {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  font-weight: 300;
  max-width: 46ch;
  color: rgba(255, 253, 249, .92);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

/* hero entrance */
.hero-reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: heroIn .9s var(--ease-out) forwards;
  animation-delay: calc(.15s + var(--d, 0) * .13s);
}
@keyframes heroIn {
  to { opacity: 1; transform: none; }
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255, 253, 249, .85);
  font-size: .8rem;
  letter-spacing: .14em;
}
.scroll-cue-track {
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 253, 249, .6);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-cue-dot {
  width: 4px; height: 9px;
  background: var(--white);
  border-radius: 3px;
  animation: cueDot 1.8s var(--ease-out) infinite;
}
@keyframes cueDot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * .12s);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Stats ---------- */
.stats { padding: clamp(2.6rem, 5vw, 4rem) 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  font-weight: 900;
  color: var(--walnut);
  line-height: 1.1;
}
/* walnut ולא oak — oak על הקרם הוא 2.9:1 בלבד ונופל בתקן. */
.stat-num .pct { font-size: .6em; color: var(--walnut); }
.stat-label { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease-out), translate .3s var(--ease-out),
              opacity .8s var(--ease-out), transform .8s var(--ease-out);
  cursor: default;
}
.service-card:hover { box-shadow: var(--shadow-md); translate: 0 -6px; }

.service-media { overflow: hidden; aspect-ratio: 4 / 3; }
.service-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.service-card:hover .service-media img { transform: scale(1.06); }

.service-body { padding: 1.5rem 1.6rem 1.7rem; }
.service-body h3 { font-size: 1.45rem; margin-bottom: .4em; }
.service-body p { color: var(--ink-soft); font-size: .98rem; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--cactus);
  cursor: pointer;
  transition: color .2s, gap .25s var(--ease-out);
}
.service-link:hover { color: var(--cactus-deep); gap: .7em; }
.service-link svg { transform: scaleX(-1); } /* RTL arrow points left */

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out), filter .4s;
}
.gallery-item:hover img { transform: scale(1.07); filter: brightness(1.06); }

.gallery-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2rem 1.1rem .85rem;
  background: linear-gradient(to top, rgba(20, 14, 8, .85), transparent);
  color: var(--cream);
  font-size: .9rem;
  font-weight: 500;
  text-align: right;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption { opacity: 1; transform: none; }

/* ---------- Process ---------- */
.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  counter-reset: step;
}
.process-step {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--oak);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out),
              box-shadow .3s var(--ease-out);
}
.process-step:hover { box-shadow: var(--shadow-md); }
.process-step:nth-child(even) { border-top-color: var(--cactus); }

.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--oak-soft);
  -webkit-text-stroke: 1.5px var(--oak);
  line-height: 1;
  display: block;
  margin-bottom: .5rem;
}
.process-step:nth-child(even) .step-num { -webkit-text-stroke-color: var(--cactus); }
.process-step h3 { font-size: 1.25rem; margin-bottom: .35em; }
.process-step p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote-mark { color: var(--oak); opacity: .8; }
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.55;
}
.testimonial figcaption { color: var(--ink-soft); font-size: .9rem; margin-top: auto; }

/* ---------- Booking ---------- */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.booking-intro h2 { margin-top: .35em; }

.booking-perks {
  list-style: none;
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.booking-perks li {
  display: flex;
  align-items: center;
  gap: .7em;
  font-weight: 500;
}
.booking-perks svg { color: var(--cactus); flex-shrink: 0; }

.booking-signin-note {
  margin-top: 1.8rem;
  padding: 1rem 1.2rem;
  background: var(--cactus-tint);
  border-inline-start: 4px solid var(--cactus);
  border-radius: 10px;
  font-size: .95rem;
}
.booking-signin-note.hidden { display: none; }

.booking-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-md);
  border-top: 5px solid var(--cactus);
}
.booking-card h3 { font-size: 1.5rem; margin-bottom: 1.2rem; }

.field { margin-bottom: 1.15rem; }
.field label, .field-label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: .4rem;
}
.field .optional { color: var(--ink-soft); font-weight: 400; font-size: .85em; }

.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid rgba(42, 33, 24, .16);
  border-radius: 10px;
  padding: .72em .95em;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cactus);
  box-shadow: 0 0 0 3px rgba(92, 112, 72, .18);
}
.field textarea { resize: vertical; min-height: 80px; }

.time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .55rem;
}
.time-slot {
  padding: .55em .3em;
  border: 1.5px solid rgba(42, 33, 24, .18);
  border-radius: 9px;
  text-align: center;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--cream);
  transition: background-color .18s, border-color .18s, color .18s, transform .12s;
}
.time-slot:hover { border-color: var(--cactus); }
.time-slot:active { transform: scale(.95); }
.time-slot.selected {
  background: var(--cactus);
  border-color: var(--cactus);
  color: var(--white);
}
.time-slot:disabled {
  opacity: .38;
  cursor: not-allowed;
  text-decoration: line-through;
}

.booking-fineprint {
  margin-top: .9rem;
  font-size: .85rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-bg);
  color: #D9CFBF;
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
}
.footer-logo {
  width: 84px;
  border-radius: 16px;
  margin-bottom: 1rem;
  background: var(--cream);
  padding: 6px;
}
.footer-brand p { font-size: .95rem; max-width: 38ch; color: #B7AB97; }

.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-col h4 {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.1rem;
  margin-bottom: .4rem;
}
.footer-col a { transition: color .2s; width: fit-content; }
.footer-col a:hover { color: var(--oak); }
.footer-col p { font-size: .92rem; color: #B7AB97; }

.footer-bottom {
  border-top: 1px solid rgba(217, 207, 191, .15);
  padding: 1.2rem 0;
  text-align: center;
  font-size: .85rem;
  color: #9A8E7B;
}
.footer-legal { margin-top: .45rem; }
.footer-legal a { color: #C7BBA8; text-decoration: underline; }
.footer-legal a:hover { color: var(--cream); }

/* ---------- Modals ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(28, 21, 13, .6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease-out), visibility .3s;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  width: min(430px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem 2rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(.97);
  transition: transform .35s var(--ease-out);
}
.modal-backdrop.open .modal { transform: none; }

.modal-close {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background-color .2s, color .2s;
}
.modal-close:hover { background: var(--cream-deep); color: var(--ink); }

.modal-logo { width: 64px; margin: 0 auto .8rem; }
.modal h3 { text-align: center; font-size: 1.6rem; }
.modal-sub { text-align: center; color: var(--ink-soft); font-size: .95rem; margin: .4rem 0 1.4rem; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream-deep);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1.4rem;
}
.auth-tab {
  padding: .55em;
  border-radius: 9px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.auth-tab.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.auth-error {
  background: #F7E5E0;
  color: var(--danger);
  border-radius: 9px;
  padding: .6em .9em;
  font-size: .9rem;
  margin-bottom: 1rem;
}

/* Account */
.account-subtitle {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.2rem 0 .7rem;
}
.meetings-list { display: flex; flex-direction: column; gap: .7rem; }
.meetings-list[hidden] { display: none; }
.meeting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  background: var(--cream);
  border: 1.5px solid rgba(42, 33, 24, .1);
  border-inline-start: 4px solid var(--cactus);
  border-radius: 12px;
  padding: .8rem 1rem;
}
.meeting-info strong { display: block; font-size: .98rem; }
.meeting-info span { font-size: .86rem; color: var(--ink-soft); }
.meeting-cancel {
  color: var(--danger);
  font-size: .85rem;
  font-weight: 600;
  padding: .4em .7em;
  border-radius: 8px;
  transition: background-color .2s;
  flex-shrink: 0;
}
.meeting-cancel:hover { background: #F7E5E0; }
.meetings-empty {
  text-align: center;
  color: var(--ink-soft);
  font-size: .95rem;
  padding: 1.4rem 0;
  border: 1.5px dashed rgba(42, 33, 24, .2);
  border-radius: 12px;
}
.account-actions {
  display: flex;
  gap: .8rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}
.account-actions .btn { flex: 1; min-width: 140px; }

/* ---------- Booking confirmation ---------- */
.confirm-check {
  width: 66px; height: 66px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cactus-tint);
  color: var(--cactus);
  animation: popIn .45s var(--ease-out);
}
@keyframes popIn {
  0% { transform: scale(.5); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.confirm-note {
  text-align: center;
  font-size: .95rem;
  margin-bottom: 1.1rem;
}

.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .35);
}
.btn-whatsapp:hover { background: #1EBE5A; box-shadow: 0 8px 26px rgba(30, 190, 90, .45); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(20, 14, 8, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease-out), visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox figure {
  max-width: min(1100px, 94vw);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.lightbox img {
  max-height: 76vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  transform: scale(.96);
  transition: transform .35s var(--ease-out);
}
.lightbox.open img { transform: none; }
.lightbox figcaption {
  text-align: center;
  color: var(--cream);
  font-size: .95rem;
}

.lightbox-close, .lightbox-nav {
  position: absolute;
  color: var(--cream);
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 253, 249, .1);
  transition: background-color .2s;
  z-index: 2;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 253, 249, .22); }
.lightbox-close { top: 18px; inset-inline-end: 18px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { inset-inline-start: 14px; }
.lightbox-nav.next { inset-inline-end: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: var(--z-toast);
  background: var(--ink);
  color: var(--cream);
  padding: .85em 1.5em;
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility .35s;
  max-width: 92vw;
  text-align: center;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.success { background: var(--cactus-deep); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .btn-auth span { display: none; }
  .btn-auth { padding: .45em .8em; border-radius: 12px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }

  .services-grid { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
    gap: 10px;
  }
  .gallery-caption { opacity: 1; transform: none; font-size: .8rem; padding: 1.4rem .8rem .6rem; }

  .process-steps { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }

  .booking-layout { grid-template-columns: 1fr; }
  .time-slots { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .lightbox-nav { display: none; }

  .hero-content { padding-top: 100px; }
  .scroll-cue { display: none; }

  /* אזורי לחיצה באצבע — 44px הוא המינימום המומלץ.
     קישורי הפוטר היו 29px, מה שהופך חיוג ושליחת מייל למתסכלים. */
  .footer-col a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .modal-close { width: 44px; height: 44px; }

  /* גלילה אנכית בלבד — חוסמת גרירה לצדדים גם אם משהו גולש */
  body { overscroll-behavior-x: none; }
}

/* 360 ולא 400: אייפון 12–15 הם 390px רוחב, ושם 3 עמודות עדיין נוחות
   ומקצרות את הגלילה. 2 עמודות נשמרות למסכים קטנים באמת. */
@media (max-width: 400px) {
  .brand-text small { display: none; }
}
@media (max-width: 360px) {
  .time-slots { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-reveal, .reveal { opacity: 1; transform: none; }
  .hero-bg { inset: 0; }
}

/* ============================================================
   Booking — guest fields, errors, manage link
   ============================================================ */
/* display:contents כדי שהשדות יתנהגו כאילו הם ישירות בטופס.
   צריך כלל מפורש ל־[hidden], אחרת display:contents גובר עליו. */
.guest-fields { display: contents; }
.guest-fields[hidden] { display: none; }

.booking-as-user {
  background: var(--cactus-tint);
  color: var(--cactus-deep);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 18px;
}

.setup-banner {
  position: fixed;
  inset-inline: 12px;
  bottom: 12px;
  z-index: var(--z-toast);
  background: var(--danger);
  color: var(--white);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: var(--shadow-md);
}
.setup-banner code {
  background: rgba(255, 255, 255, .18);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 14px;
}

.manage-link-box {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--sand);
  text-align: start;
}
.manage-link-box p { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }

.manage-link-row { display: flex; gap: 8px; }
.manage-link-row input {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  padding: 10px 12px;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--font-body);
}
.manage-link-row .btn { flex-shrink: 0; padding: 10px 16px; font-size: 14px; }

.meeting-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink-soft);
  margin-top: 4px;
}
.meeting-badge.confirmed { background: var(--cactus-tint); color: var(--cactus-deep); }

/* ============================================================
   Admin dashboard + guest meeting page
   ============================================================ */
.admin-body { background: var(--cream-deep); }

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--white);
  border-bottom: 1px solid var(--sand);
  padding: 14px clamp(16px, 4vw, 40px);
}
.admin-header-actions { display: flex; align-items: center; gap: 12px; }
.admin-who { font-weight: 600; font-size: 15px; }

.admin-main { padding: clamp(24px, 5vw, 48px) 0 80px; }

.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 38px);
  max-width: 480px;
  margin: 0 auto;
}
.admin-card h2 { font-family: var(--font-display); font-size: 26px; margin-bottom: 10px; }
.admin-card p { color: var(--ink-soft); font-size: 16px; margin-bottom: 12px; }
.admin-card code {
  background: var(--cream);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 14px;
}
.admin-card .btn { margin-top: 8px; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.admin-stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.admin-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
  color: var(--cactus-deep);
}
.admin-stat span { font-size: 14px; color: var(--ink-soft); }

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.admin-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-filter {
  border: 1px solid var(--sand);
  background: var(--white);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s var(--ease-out);
}
.admin-filter:hover { border-color: var(--oak); color: var(--ink); }
.admin-filter.active {
  background: var(--cactus);
  border-color: var(--cactus);
  color: var(--white);
}

.admin-meeting {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  border-inline-start: 4px solid var(--sand);
  box-shadow: var(--shadow-sm);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.admin-meeting.status-pending   { border-inline-start-color: var(--oak); }
.admin-meeting.status-confirmed { border-inline-start-color: var(--cactus); }
.admin-meeting.status-cancelled { opacity: .55; }

.admin-meeting-when strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--walnut);
}
.admin-meeting-when span { font-size: 13px; color: var(--ink-soft); }

.admin-meeting-body h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-service { font-size: 15px; color: var(--ink-soft); }
.admin-notes {
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--cream);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 6px 0;
}
.admin-contact { font-size: 14px; }
.admin-contact a { color: var(--cactus-deep); text-decoration: none; }
.admin-contact a:hover { text-decoration: underline; }

.admin-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink-soft);
}
.admin-badge.confirmed { background: var(--cactus-tint); color: var(--cactus-deep); }
.admin-badge.cancelled { background: #F0DDD8; color: var(--danger); }

.admin-guest-tag {
  font-size: 12px;
  background: var(--cream-deep);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 1px 8px;
}

.admin-meeting-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

.admin-empty {
  text-align: center;
  color: var(--ink-soft);
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 20px;
}

/* ---------- Guest meeting page ---------- */
.meeting-card { text-align: center; }
.meeting-details {
  text-align: start;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
}
.meeting-details > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--sand);
}
.meeting-details > div:last-child { border-bottom: 0; }
.meeting-details dt { font-size: 14px; color: var(--ink-soft); }
.meeting-details dd { font-weight: 600; text-align: end; }

@media (max-width: 700px) {
  .admin-meeting {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .admin-meeting-when {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .admin-meeting-when strong { font-size: 20px; }
  .admin-meeting-actions { flex-direction: row; flex-wrap: wrap; }
}

/* ============================================================
   עמודי טקסט משפטיים (הצהרת נגישות, מדיניות פרטיות)
   ============================================================ */
.legal-page {
  max-width: 68ch;
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}
.legal-page h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: .4rem;
}
.legal-page h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  margin: 2.4rem 0 .7rem;
  color: var(--cactus-deep);
}
.legal-page p { margin-bottom: 1rem; }
.legal-page ul {
  margin: 0 0 1rem;
  padding-inline-start: 1.3rem;
  list-style: disc;
}
.legal-page li { margin-bottom: .5rem; }
.legal-page a { color: var(--cactus-deep); text-decoration: underline; }
.legal-page a:hover { color: var(--cactus); }
.legal-updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 2rem; }
.legal-contact { list-style: none; padding-inline-start: 0; }
.legal-back { margin-top: 3rem; font-weight: 600; }
