/* Liat Cohen — unified site header V60 */
.lc-site-header {
  --lc-h-bg-dark: rgba(21, 16, 13, .88);
  --lc-h-bg-light: rgba(251, 246, 238, .92);
  --lc-h-border-dark: rgba(232, 128, 95, .22);
  --lc-h-border-light: rgba(194, 90, 56, .26);
  --lc-h-text-dark: #f7f0e8;
  --lc-h-text-light: #2b2018;
  --lc-h-muted-dark: #b9aa99;
  --lc-h-muted-light: #756553;
  --lc-h-accent-dark: #e8805f;
  --lc-h-accent-light: #c25a38;
  --lc-h-rose-dark: #d45471;
  --lc-h-rose-light: #b23a57;
  position: sticky;
  top: 0;
  z-index: 2000;
  width: 100%;
  padding: 12px max(14px, 3vw);
  pointer-events: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-family: 'Heebo', sans-serif;
}
.page-home .lc-site-header {
  position: fixed;
  inset-inline: 0;
}
.lc-site-header.scrolled { padding-top: 7px; padding-bottom: 7px; }

.lc-header-shell {
  width: min(1320px, 100%);
  min-height: 72px;
  margin-inline: auto;
  padding: 8px 12px 8px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
  direction: rtl;
  border-radius: 24px;
  border: 1px solid var(--lc-h-border-dark);
  background: var(--lc-h-bg-dark);
  color: var(--lc-h-text-dark);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .2);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  pointer-events: auto;
  transition: min-height .25s ease, background .25s ease, box-shadow .25s ease;
}
html[data-theme="light"] .lc-header-shell {
  background: var(--lc-h-bg-light);
  color: var(--lc-h-text-light);
  border-color: var(--lc-h-border-light);
  box-shadow: 0 14px 38px rgba(73, 48, 30, .13);
}
.lc-site-header.scrolled .lc-header-shell { min-height: 64px; }

.lc-header-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding: 2px 4px;
  border-radius: 14px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none;
}
.lc-header-brand img {
  display: block;
  width: auto;
  height: 52px;
  max-width: 124px;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 0 2px rgba(255, 221, 198, .16)) drop-shadow(0 7px 15px rgba(0, 0, 0, .2));
  transition: transform .25s ease;
}
.lc-header-brand:hover img,
.lc-header-brand:focus-visible img { transform: translateY(-1px) scale(1.025); }

.lc-header-nav {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2vw, 32px);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  list-style: none;
}
.lc-header-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 0;
  color: var(--lc-h-muted-dark) !important;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .22s ease;
}
html[data-theme="light"] .lc-header-nav a { color: var(--lc-h-muted-light) !important; }
.lc-header-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  left: 100%;
  bottom: 2px;
  height: 2px;
  border-radius: 20px;
  background: var(--lc-h-accent-dark);
  transition: left .22s ease;
}
html[data-theme="light"] .lc-header-nav a::after { background: var(--lc-h-accent-light); }
.lc-header-nav a:hover,
.lc-header-nav a:focus-visible,
.lc-header-nav a.is-active,
.lc-header-nav a[aria-current="page"] { color: var(--lc-h-accent-dark) !important; }
html[data-theme="light"] .lc-header-nav a:hover,
html[data-theme="light"] .lc-header-nav a:focus-visible,
html[data-theme="light"] .lc-header-nav a.is-active,
html[data-theme="light"] .lc-header-nav a[aria-current="page"] { color: var(--lc-h-accent-light) !important; }
.lc-header-nav a:hover::after,
.lc-header-nav a:focus-visible::after,
.lc-header-nav a.is-active::after,
.lc-header-nav a[aria-current="page"]::after { left: 0; }

.lc-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  direction: rtl;
}
.lc-theme-toggle,
.lc-menu-toggle {
  appearance: none;
  border: 1px solid var(--lc-h-border-dark) !important;
  background: transparent !important;
  color: var(--lc-h-text-dark) !important;
  box-shadow: none !important;
  font: inherit;
}
html[data-theme="light"] .lc-theme-toggle,
html[data-theme="light"] .lc-menu-toggle {
  border-color: var(--lc-h-border-light) !important;
  color: var(--lc-h-text-light) !important;
}
.lc-theme-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease;
}
.lc-theme-toggle:hover,
.lc-theme-toggle:focus-visible {
  transform: translateY(-2px);
  background: rgba(232, 128, 95, .1) !important;
}
.lc-theme-toggle span { font-size: 1rem; line-height: 1; }

.lc-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--lc-h-accent-dark), var(--lc-h-rose-dark));
  box-shadow: 0 12px 26px rgba(212, 84, 113, .2);
  font-size: .9rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .22s ease, box-shadow .22s ease;
}
html[data-theme="light"] .lc-header-cta {
  background: linear-gradient(135deg, var(--lc-h-accent-light), var(--lc-h-rose-light));
}
.lc-header-cta:hover,
.lc-header-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 17px 34px rgba(212, 84, 113, .3);
}

.lc-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.lc-menu-toggle i {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 10px;
  background: currentColor;
  transition: transform .22s ease, opacity .22s ease;
}
.lc-menu-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lc-menu-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.lc-menu-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lc-mobile-menu {
  position: static !important;
  width: min(520px, calc(100% - 28px)) !important;
  height: auto !important;
  margin: 8px auto 0 !important;
  padding: 10px !important;
  display: grid;
  gap: 4px;
  border: 1px solid var(--lc-h-border-dark) !important;
  border-radius: 18px;
  background: rgba(21, 16, 13, .96) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28) !important;
  backdrop-filter: blur(22px) !important;
  -webkit-backdrop-filter: blur(22px) !important;
  pointer-events: auto;
}
html[data-theme="light"] .lc-mobile-menu {
  border-color: var(--lc-h-border-light) !important;
  background: rgba(251, 246, 238, .97) !important;
  box-shadow: 0 18px 42px rgba(73, 48, 30, .16) !important;
}
.lc-mobile-menu[hidden] { display: none !important; }
.lc-mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 46px;
  padding: 10px 14px;
  border: 0 !important;
  border-radius: 11px;
  color: var(--lc-h-text-dark) !important;
  background: transparent !important;
  font-size: .96rem;
  font-weight: 800;
  text-decoration: none !important;
}
html[data-theme="light"] .lc-mobile-menu a { color: var(--lc-h-text-light) !important; }
.lc-mobile-menu a:hover,
.lc-mobile-menu a:focus-visible,
.lc-mobile-menu a.is-active,
.lc-mobile-menu a[aria-current="page"] {
  color: var(--lc-h-accent-dark) !important;
  background: rgba(232, 128, 95, .1) !important;
}
html[data-theme="light"] .lc-mobile-menu a:hover,
html[data-theme="light"] .lc-mobile-menu a:focus-visible,
html[data-theme="light"] .lc-mobile-menu a.is-active,
html[data-theme="light"] .lc-mobile-menu a[aria-current="page"] { color: var(--lc-h-accent-light) !important; }
.lc-mobile-menu .lc-mobile-cta {
  justify-content: center;
  margin-top: 4px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--lc-h-accent-dark), var(--lc-h-rose-dark)) !important;
}
html[data-theme="light"] .lc-mobile-menu .lc-mobile-cta {
  background: linear-gradient(135deg, var(--lc-h-accent-light), var(--lc-h-rose-light)) !important;
}

/* Page-specific layout protection */
.page-tools > .direct-answer { margin-top: 0 !important; }
.page-privacy .wrap { padding-top: 3.5rem; }
.page-404 {
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  min-height: 100vh;
}
.page-404 .box {
  width: min(700px, calc(100% - 2rem));
  margin: auto;
  padding: 3rem 1rem 4rem;
}

@media (max-width: 1120px) {
  .lc-header-nav { display: none !important; }
  .lc-menu-toggle { display: inline-flex; }
  .lc-header-shell { grid-template-columns: auto minmax(0, 1fr) auto; }
  .lc-header-brand { grid-column: 1; }
  .lc-header-actions { grid-column: 3; }
}

@media (max-width: 760px) {
  .lc-site-header { padding: 0; }
  .lc-site-header.scrolled { padding: 0; }
  .lc-header-shell {
    min-height: 64px;
    padding: 7px 10px;
    border-radius: 0;
    border-inline: 0;
    border-top: 0;
    gap: 8px;
  }
  .lc-site-header.scrolled .lc-header-shell { min-height: 60px; }
  .lc-header-brand img { height: 39px; max-width: 94px; }
  .lc-header-cta { display: none; }
  .lc-theme-toggle { width: 38px; height: 38px; flex-basis: 38px; }
  .lc-menu-toggle { width: 40px; height: 40px; flex-basis: 40px; }
  .lc-mobile-menu {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 0 18px 18px;
    border-inline: 0 !important;
  }
}

@media (max-width: 390px) {
  .lc-header-brand img { height: 36px; max-width: 84px; }
  .lc-theme-toggle { width: 36px; height: 36px; flex-basis: 36px; }
  .lc-menu-toggle { width: 38px; height: 38px; flex-basis: 38px; }
}

/* Prevent legacy page-level header rules from changing the shared component */
.lc-site-header {
  display: block !important;
  align-items: initial !important;
  justify-content: initial !important;
  gap: 0 !important;
}

/* Light-theme support for the standalone utility pages */
html[data-theme="light"] body.page-privacy {
  background: #fbf6ee !important;
  color: #2b2018 !important;
}
html[data-theme="light"] .page-privacy .card {
  background: #f2e6d6 !important;
  border-color: rgba(194, 90, 56, .24) !important;
}
html[data-theme="light"] .page-privacy p,
html[data-theme="light"] .page-privacy li,
html[data-theme="light"] .page-privacy .updated,
html[data-theme="light"] .page-privacy footer { color: #756553 !important; }
html[data-theme="light"] .page-privacy strong,
html[data-theme="light"] .page-privacy h1,
html[data-theme="light"] .page-privacy h2 { color: #2b2018 !important; }
html[data-theme="light"] body.page-404 {
  background: #fbf6ee !important;
  color: #2b2018 !important;
}
html[data-theme="light"] .page-404 p { color: #756553 !important; }
