/* ===================================================
   YOGA ISRAELA – Warm Editorial Minimalism
   Cormorant Garamond (display) + Heebo (body/Hebrew)
   =================================================== */

:root {
  /* Palette */
  --warm-white: #fdf8f5;
  --cream: #F0EAE0;
  --cream-dark: #E4DDD0;
  --sand: #CEC4B2;
  --border: #D4CBBA;
  --warm-dark: #1A1815;
  --text-dark: #2d2d2d;
  --text-mid: #5A5550;
  --text-light: #6B6157; /* darkened for WCAG AA 4.5:1 contrast */
  --terracotta: #cf8c7d;
  --terracotta-hov: #b67b6e;
  --sage: #7B9168;

  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Heebo', sans-serif;

  /* Tokens */
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-pill: 100px;
  --shadow-sm: 0 1px 8px rgba(26, 24, 21, 0.07);
  --shadow-md: 0 4px 28px rgba(26, 24, 21, 0.10);
  --transition: 0.25s ease;
}

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

html {
  direction: rtl;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

p {
  color: var(--text-mid);
}

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

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

/* ===== ACCESSIBILITY ===== */

/* Skip navigation link – visually hidden, shown on focus */
.skip-link {
  position: absolute;
  top: -100%;
  right: 0;
  left: 0;
  z-index: 9999;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: -3px;
}

/* Global focus-visible: keyboard only, not mouse clicks */
:focus:not(:focus-visible) {
  outline: none;
}

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

/* Inputs use border-bottom for focus – add a subtle ring instead of outline */
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(207, 140, 125, 0.30);
  border-radius: 2px;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--terracotta);
  color: #2d2d2d;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 2.4rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: var(--terracotta-hov);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(207, 140, 125, 0.42);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ===== LAYOUT ===== */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-inner.narrow {
  max-width: 560px;
}

/* Offset for fixed nav when jumping to anchor */
section {
  scroll-margin-top: 68px;
}

.section-title {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  padding-bottom: 1.4rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 44px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-mid);
  margin-top: 0.75rem;
  margin-bottom: 2.5rem;
  line-height: 1.85;
}

/* ===== NAV ===== */
#navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

#navbar.scrolled {
  background: rgba(253, 252, 248, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 24px rgba(26, 24, 21, 0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 96px;
  width: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.20);
  transition: transform 0.28s ease;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.45s ease;
  letter-spacing: 0.07em;
}

.nav-links a:hover {
  color: white;
}

#navbar.scrolled .nav-links a {
  color: var(--text-mid);
}

#navbar.scrolled .nav-links a:hover {
  color: var(--terracotta);
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  background-image:
    linear-gradient(180deg,
      rgba(20, 13, 7, 0.62) 0%,
      rgba(18, 11, 5, 0.38) 52%,
      rgba(16, 10, 4, 0.62) 100%),
    url('poster/hero-bg.jpg');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, 0.38);
  flex-shrink: 0;
}

#hero h1 {
  color: white;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 0;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.22);
}

.hero-rule {
  width: 44px;
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
  margin: 1.6rem auto;
}

.hero-sub {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 2.8rem;
  line-height: 1.95;
  max-width: 500px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: line-pulse 2.5s ease-in-out infinite;
  z-index: 1;
}

@keyframes line-pulse {

  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 0.7;
    transform: translateX(-50%) translateY(8px);
  }
}

/* ===== ABOUT ===== */
#about {
  background: var(--cream);
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3.5rem;
}

.card {
  padding-top: 1.5rem;
  border-top: 2px solid var(--terracotta);
}

.card-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  color: rgba(26, 24, 21, 0.07);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.card h3 {
  color: var(--text-dark);
  margin-bottom: 0.7rem;
}

.card p {
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ===== CLASSES ===== */
#classes {
  background: var(--warm-white);
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.class-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--warm-white);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.class-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--sand);
}

.class-card--featured {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.class-card--featured:hover {
  border-color: var(--terracotta-hov);
}

.class-card--featured h3,
.class-card--featured p,
.class-card--featured .class-dur {
  color: rgba(45, 45, 45, 0.88);
}

.class-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(181, 103, 58, 0.09);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.2rem;
  width: fit-content;
}

.class-tag--featured {
  color: #2d2d2d;
  background: rgba(45, 45, 45, 0.12);
}

.class-card-cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(45, 45, 45, 0.82);
  text-decoration: underline;
  text-decoration-color: rgba(45, 45, 45, 0.35);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.class-card-cta:hover {
  color: #2d2d2d;
  text-decoration-color: #2d2d2d;
}

.class-card h3 {
  margin-bottom: 0.65rem;
  color: var(--text-dark);
}

.class-card p {
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 1.5rem;
}

.class-dur {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-top: auto;
}

/* ===== CONTACT ===== */
#contact {
  background: var(--cream);
}

.field-group {
  margin-bottom: 1.8rem;
}

label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.optional {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

input,
textarea {
  width: 100%;
  padding: 0.7rem 0;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-light);
}

input:focus,
textarea:focus {
  border-bottom-color: var(--terracotta);
}

input.invalid,
textarea.invalid {
  border-bottom-color: #B33A2C;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.field-error {
  display: none;
  font-size: 0.76rem;
  color: #B33A2C;
  margin-top: 0.3rem;
}

.field-error.visible {
  display: block;
}

.spinner-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--terracotta);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

.form-note {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-light);
  margin-top: 1.2rem;
  line-height: 1.65;
}

/* ===== FOOTER ===== */
footer {
  background: var(--warm-dark);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.20em;
  color: rgba(255, 255, 255, 0.80);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.38);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.80);
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.05em;
}

/* ===== MODAL ===== */
#success-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 21, 0.65);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#success-modal.active {
  display: flex;
}

.modal-box {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 32px 80px rgba(26, 24, 21, 0.22);
  animation: slide-up 0.35s ease;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.modal-box h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 0.7rem;
  color: var(--text-dark);
}

.modal-box p {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  font-size: 0.95rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  font-family: var(--font-body);
}

.modal-close:hover {
  color: var(--text-dark);
}

/* ===== CHATBOT WIDGET ===== */
#chat-widget {
  position: fixed;
  bottom: 5.5rem; /* above WhatsApp button */
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.chat-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(207, 140, 125, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fab-in 0.5s 2.2s both;
  flex-shrink: 0;
  padding: 0;
  overflow: hidden;
}

.chat-fab .chat-icon-open {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.chat-fab:hover {
  transform: scale(1.09);
  box-shadow: 0 6px 30px rgba(207, 140, 125, 0.60);
}

.chat-fab:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* ── Chat panel ── */
.chat-panel {
  width: 320px;
  max-height: 480px;
  background: var(--warm-white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(45, 45, 45, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom left;
  animation: chat-open 0.28s ease both;
}

.chat-panel[hidden] { display: none; }

@keyframes chat-open {
  from { opacity: 0; transform: scale(0.88) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.chat-header {
  background: var(--terracotta);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.55);
}

.chat-header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.chat-header-text strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.chat-header-text span {
  font-size: 0.73rem;
  color: rgba(45, 45, 45, 0.65);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  scroll-behavior: smooth;
}

.chat-msg {
  max-width: 84%;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.65;
}

.chat-msg p { margin: 0; }

.chat-msg.bot {
  background: white;
  color: var(--text-dark);
  border-bottom-right-radius: 3px;
  align-self: flex-start;
  box-shadow: 0 1px 4px rgba(45, 45, 45, 0.08);
}

.chat-msg.user {
  background: var(--terracotta);
  color: var(--text-dark);
  border-bottom-left-radius: 3px;
  align-self: flex-end;
}

.chat-msg.typing {
  background: white;
  align-self: flex-start;
  box-shadow: 0 1px 4px rgba(45, 45, 45, 0.08);
}

.typing-dots {
  display: flex;
  gap: 5px;
  padding: 0.15rem 0.1rem;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  background: var(--terracotta);
  border-radius: 50%;
  animation: dot-bounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-6px); opacity: 1; }
}

/* ── Input row ── */
.chat-input-row {
  display: flex;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-input-row input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  outline: none;
  direction: rtl;
  -webkit-appearance: none;
  appearance: none;
}

.chat-input-row input::placeholder {
  color: var(--text-light);
}

.chat-input-row button {
  padding: 0 0.9rem;
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--terracotta);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.chat-input-row button:hover { color: var(--terracotta-hov); }
.chat-input-row button:disabled { color: var(--border); cursor: default; }

@media (max-width: 400px) {
  .chat-panel { width: calc(100vw - 3rem); }
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.fab-wa {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.38);
  z-index: 200;
  color: white;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fab-in 0.5s 2s both;
}

.fab-wa:hover {
  transform: scale(1.09);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.55);
}

@keyframes fab-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== HAMBURGER ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.45s ease;
}

#navbar.scrolled .nav-toggle span {
  background: var(--text-dark);
}

#navbar.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

#navbar.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

#navbar.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cards-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
  }

  .card {
    padding-top: 1.2rem;
  }

  /* tablet: 2-column grid – featured card spans full width */
  .classes-grid {
    grid-template-columns: 1fr 1fr;
  }

  .class-card--featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .classes-grid {
    grid-template-columns: 1fr;
  }

  .class-card--featured {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  #hero {
    background-attachment: scroll;
  }

  .section-inner {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 640px) {

  /* Logo – prominent on mobile */
  .nav-logo-img {
    height: 86px;
    width: 86px;
    border: 3px solid var(--warm-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    top: 5px;
  }

  /* Taller nav to accommodate logo */
  .nav-inner {
    height: 80px;
  }

  /* Hamburger */
  .nav-toggle {
    display: flex;
    padding: 0.8rem;
  }

  /* Mobile nav drawer – adjusted for taller nav */
  .nav-links {
    position: fixed;
    top: 80px;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(253, 252, 248, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.38s ease;
    box-shadow: 0 8px 24px rgba(26, 24, 21, 0.08);
    z-index: 99;
  }

  #navbar.nav-open .nav-links {
    max-height: 260px;
    padding: 0.4rem 0;
  }

  .nav-links a {
    color: var(--text-dark) !important;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(212, 203, 186, 0.5);
    display: block;
    letter-spacing: 0.02em;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  /* Sections */
  .section-inner {
    padding: 3.5rem 1.25rem;
  }

  .section-inner.narrow {
    padding: 3.5rem 1.25rem;
  }

  /* Hero */
  #hero {
    padding: 6rem 1.25rem 4rem;
  }

  .hero-eyebrow::before,
  .hero-eyebrow::after {
    width: 24px;
  }

  /* Prevent iOS auto-zoom */
  input,
  textarea {
    font-size: 16px !important;
  }

  /* Buttons */
  .btn-primary {
    padding: 0.95rem 2rem;
    font-size: 0.95rem;
  }

  .btn-full {
    font-size: 1rem;
  }

  /* Modal */
  .modal-box {
    padding: 2.5rem 1.5rem;
  }
}

/* ===== CONSENT CHECKBOX ===== */
.consent-group {
  margin-bottom: 1.5rem;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  /* Reset global label styles */
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
  margin-bottom: 0;
}

.consent-check {
  /* שחזור מראה נייטיב (גלובל input מגדיר -webkit-appearance: none) */
  -webkit-appearance: checkbox;
  appearance: checkbox;
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
  background: initial;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  accent-color: var(--terracotta);
  cursor: pointer;
  margin-top: 0.18rem;
  flex-shrink: 0;
  transition: none;
}

.consent-text {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.consent-link {
  color: #8a5a52; /* כהה מספיק ל-WCAG AA על רקע בהיר */
  text-decoration: underline;
  text-decoration-color: rgba(138, 90, 82, 0.45);
  text-underline-offset: 2px;
}

.consent-link:hover {
  color: #6e4840;
  text-decoration-color: #6e4840;
}

/* ===== FOOTER LEGAL LINKS ===== */
.footer-legal {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.footer-legal a {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.70);
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.20);
  font-size: 0.72rem;
}

/* ===== LEGAL PAGE ===== */
.legal-main {
  padding-top: 68px;
  min-height: 60vh;
  background: var(--warm-white);
}

.legal-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.legal-meta {
  font-size: 0.82rem;
  color: var(--text-light);
}

.legal-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
}

.legal-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 1.5rem 0 0.5rem;
}

.legal-section p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
  line-height: 1.85;
}

.legal-section ol,
.legal-section ul {
  padding-right: 1.5rem;
  margin-bottom: 1rem;
}

.legal-section li {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
  line-height: 1.75;
}