/* ═══════════════════════════════════════════════
   SHARED HEADER + FOOTER — tehilaos.com
   Single source of truth for all pages.
   ═══════════════════════════════════════════════ */

/* ─── HEADER ─── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(200,168,130,0.12);
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px;
}
.header-brand {
  font-size: 17.8px; font-weight: 400; color: #5A8FBF;
  text-decoration: none; white-space: nowrap;
  font-family: 'Rubik', sans-serif;
}
.header-brand:hover { color: #C8A882; }
.header-nav {
  display: flex; align-items: center; gap: 28px;
}
.header-nav a {
  font-size: 16px; font-weight: 400; color: #8C7060;
  text-decoration: none; transition: color 0.2s;
  font-family: 'Rubik', sans-serif;
}
.header-nav a:hover { color: #C8A882; }
.header-nav a.active {
  font-weight: 600; color: #5A8FBF;
  text-decoration: none;
}

/* ─── DROPDOWN ─── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  cursor: pointer;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 50%;
  transform: translateX(50%);
  margin-top: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(200,168,130,0.15);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(92,74,58,0.08);
  padding: 8px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  right: -10px;
  left: -10px;
  height: 14px;
}
.dropdown-menu a {
  display: block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 400;
  color: #8C7060;
  text-decoration: none;
  font-family: 'Rubik', sans-serif;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  text-align: center;
}
.dropdown-menu a:hover {
  background: rgba(232,220,196,0.18);
  color: #5C4A3A;
}

/* ─── FOOTER ─── */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid rgba(200,168,130,0.15);
  height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.site-footer p {
  font-size: 15px; color: #8C7060;
  font-family: 'Rubik', sans-serif;
}

/* ─── HAMBURGER (hidden on desktop) ─── */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: #8C7060;
  border-radius: 2px; transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  header { padding: 0 18px; }
  .hamburger { display: flex; }
  .header-nav {
    display: none;
  }
  .header-nav.active {
    display: flex; flex-direction: column;
    position: absolute; top: 56px; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    border-bottom: 1px solid rgba(200,168,130,0.12);
    gap: 16px; align-items: center;
    z-index: 99;
  }
  .header-nav.active a { font-size: 16px; }
  /* Dropdowns — always open on mobile */
  .header-nav.active .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(200,168,130,0.1);
    margin-top: 8px;
    padding: 8px 0 0;
    min-width: auto;
    transform: none;
    background: transparent;
  }
  .header-nav.active .dropdown-menu a {
    font-size: 15px;
    padding: 8px 16px;
  }
  .header-nav.active .nav-dropdown::after { display: none; }
}
