/**
 * El Helw — public shell (navbar + footer)
 * BEM: eh-shell__*
 */

.eh-shell {
  --eh-navy: #0a1f44;
  --eh-white: #ffffff;
  --eh-gray: #f5f5f5;
  --eh-gold: #c9a96e;
  --eh-gold-soft: rgba(201, 169, 110, 0.45);
  /* Luxury showroom (aligned with elhelw-public-home.css) */
  --eh-showroom-bg: #050505;
  --eh-showroom-surface: #0c0c0c;
  --eh-showroom-line: rgba(201, 169, 110, 0.22);
  /* Avoid horizontal scroll from off-canvas drawer / vw quirks */
  overflow-x: hidden;
}

/* ——— Header ——— */
.eh-shell__header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition:
    background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
  border-bottom: 1px solid transparent;
  /* Override theme `header { border-bottom-color: ... !important }` from public layout */
  border-bottom-color: transparent !important;
}

.eh-shell__header--transparent {
  background-color: transparent;
  box-shadow: none;
}

.eh-shell__header--transparent .eh-shell__nav-link {
  color: rgba(255, 255, 255, 0.92);
}

.eh-shell__header--transparent .eh-shell__icon-btn {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.22);
}

.eh-shell__header--transparent .eh-shell__icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.eh-shell__header--scrolled {
  background-color: rgba(10, 31, 68, 0.94);
  box-shadow: 0 12px 40px rgba(10, 31, 68, 0.28);
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
}

.eh-shell__header--scrolled .eh-shell__nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.eh-shell__header--scrolled .eh-shell__icon-btn {
  color: var(--eh-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.eh-shell__header--scrolled .eh-shell__icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.eh-shell__header-inner {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

@media (min-width: 768px) {
  .eh-shell__header-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    min-height: 4.5rem;
  }
}

/* Centered desktop nav */
.eh-shell__nav-desktop {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .eh-shell__nav-desktop {
    display: flex;
  }
}

.eh-shell__nav-link {
  position: relative;
  text-decoration: none;
  padding: 0.35rem 0;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.25s ease;
}

.eh-shell__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--eh-gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.eh-shell__nav-link:hover {
  color: var(--eh-white);
}

.eh-shell__nav-link:hover::after {
  transform: scaleX(1);
}

.eh-shell__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  z-index: 2;
  min-width: 0;
}

.eh-shell__logo-img {
  height: 2.25rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .eh-shell__logo-img {
    height: 2.5rem;
  }
}

.eh-shell__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  z-index: 2;
}

@media (min-width: 1024px) {
  .eh-shell__actions {
    gap: 0.75rem;
  }
}

.eh-shell__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--eh-navy);
  background-color: var(--eh-white);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.25s ease;
}

.eh-shell__cta:hover {
  background-color: var(--eh-gold);
  color: var(--eh-navy);
  box-shadow: 0 8px 28px var(--eh-gold-soft);
  transform: translateY(-1px) scale(1.02);
}

.eh-shell__cta:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.12s;
}

.eh-shell__cta--compact {
  padding: 0.5rem 0.875rem;
  font-size: 0.625rem;
}

@media (min-width: 1024px) {
  .eh-shell__cta--compact {
    display: none;
  }
}

@media (max-width: 1023px) {
  .eh-shell__cta--desktop {
    display: none;
  }
}

.eh-shell__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--eh-white);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.eh-shell__icon-btn:focus-visible {
  outline: 2px solid var(--eh-gold);
  outline-offset: 2px;
}

.eh-shell__subtle-link {
  font-size: 0.75rem;
  opacity: 0.85;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: opacity 0.2s ease, color 0.2s ease;
}

.eh-shell__subtle-link:hover {
  opacity: 1;
  color: var(--eh-gold);
}

@media (max-width: 1023px) {
  .eh-shell__subtle-link {
    display: none;
  }
}

/* ——— Mobile drawer: backdrop + slide from inline-end ——— */
.eh-shell__menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

#publicMenuOverlay {
  z-index: 60;
}

#publicMenu {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  /* 100vw includes scrollbar gutter and can force page overflow-x — use % of viewport box */
  width: min(100%, 22rem);
  max-width: 100%;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 5rem 1.5rem 2rem;
  background: linear-gradient(165deg, #0a1f44 0%, #06142f 55%, #0a1f44 100%);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translate3d(100%, 0, 0);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

[dir="rtl"] #publicMenu {
  transform: translate3d(-100%, 0, 0);
}

#publicMenu.eh-shell__drawer--open {
  transform: translate3d(0, 0, 0);
}

@media (min-width: 1024px) {
  .eh-shell__menu-backdrop {
    display: none !important;
  }

  #publicMenu {
    display: none !important;
    pointer-events: none !important;
  }
}

.eh-shell__drawer-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.eh-shell__drawer-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.eh-shell__drawer-link {
  display: block;
  padding: 1rem 1.25rem;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.95);
  border-radius: 0.75rem;
  opacity: 0;
  transform: translate3d(1rem, 0, 0);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease,
    color 0.25s ease;
}

[dir="rtl"] .eh-shell__drawer-link {
  transform: translate3d(-1rem, 0, 0);
}

#publicMenu:not(.eh-shell__drawer--open) .eh-shell__drawer-link {
  transition-duration: 0s;
  transition-delay: 0s !important;
}

#publicMenu.eh-shell__drawer--open .eh-shell__drawer-link {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

#publicMenu.eh-shell__drawer--open .eh-shell__drawer-link:nth-child(1) {
  transition-delay: 0.06s;
}
#publicMenu.eh-shell__drawer--open .eh-shell__drawer-link:nth-child(2) {
  transition-delay: 0.11s;
}
#publicMenu.eh-shell__drawer--open .eh-shell__drawer-link:nth-child(3) {
  transition-delay: 0.16s;
}
#publicMenu.eh-shell__drawer--open .eh-shell__drawer-link:nth-child(4) {
  transition-delay: 0.21s;
}
#publicMenu.eh-shell__drawer--open .eh-shell__drawer-link:nth-child(5) {
  transition-delay: 0.26s;
}
#publicMenu.eh-shell__drawer--open .eh-shell__drawer-link:nth-child(6) {
  transition-delay: 0.31s;
}

.eh-shell__drawer-link:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--eh-gold);
}

.eh-shell__drawer-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.eh-shell__drawer-panel {
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.15);
}

/* ——— Footer (showroom: near-black + gold hairlines, not legacy navy) ——— */
.eh-shell__footer {
  background-color: var(--eh-showroom-surface);
  color: rgba(245, 245, 245, 0.9);
  border-top: 1px solid var(--eh-showroom-line);
  box-shadow: 0 -24px 48px rgba(0, 0, 0, 0.35);
}

.eh-shell__footer-grid {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 3.5rem 1rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .eh-shell__footer-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .eh-shell__footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
}

.eh-shell__footer-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--eh-gold);
  margin-bottom: 1rem;
}

.eh-shell__footer-brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--eh-white);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.eh-shell__footer-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(245, 245, 245, 0.62);
  max-width: 22rem;
}

.eh-shell__footer-logo-img {
  display: block;
  max-width: 12rem;
}

.eh-shell__footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.eh-shell__footer-list a {
  font-size: 0.875rem;
  color: rgba(245, 245, 245, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.eh-shell__footer-list a:hover {
  color: var(--eh-gold);
}

.eh-shell__footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.eh-shell__footer-social a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(245, 245, 245, 0.88);
  border: 1px solid var(--eh-showroom-line);
  border-radius: 9999px;
  background-color: rgba(0, 0, 0, 0.2);
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease;
}

.eh-shell__footer-social a:hover {
  border-color: var(--eh-gold);
  color: var(--eh-gold);
  background-color: rgba(201, 169, 110, 0.08);
}

.eh-shell__footer-bar {
  border-top: 1px solid var(--eh-showroom-line);
  padding: 1.25rem 1rem;
  text-align: center;
  background: linear-gradient(180deg, var(--eh-showroom-surface) 0%, var(--eh-showroom-bg) 100%);
}

.eh-shell__footer-bar p {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: rgba(245, 245, 245, 0.48);
}

.eh-shell__footer-credits {
  margin-top: 0.75rem !important;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: rgba(245, 245, 245, 0.42);
}

.eh-shell__footer-credits-link {
  color: var(--eh-gold);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.eh-shell__footer-credits-link:hover {
  color: #e5cfa3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  #publicMenu,
  .eh-shell__menu-backdrop,
  .eh-shell__drawer-link,
  .eh-shell__header,
  .eh-shell__cta {
    transition-duration: 0.01ms !important;
  }

  #publicMenu {
    transform: none !important;
  }
}
