/* ==========================================================================
   header.css — Header / navigation
   Sticky header, logo, menu links, hamburger, mobile menu overlay, header CTA.
   Self-contained: every value is written out (no CSS variables) and every
   selector has its own rule, so changing one block never touches another.
   ========================================================================== */

/* ── .header ── */
.header {
  position: sticky;
  top: 0; /* Keeps it locked cleanly to the top without overlap */
  z-index: 999;
  background: #fffffff2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e0c8e8;
  transition: box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
}

.header.scrolled {
  box-shadow: 0 4px 24px #4a154b1f;
}

/* ── .nav-container ── */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

/* ── .logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* ── .logo-text ── */
.logo-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #4a154b;
  letter-spacing: 0.02em;
}

/* ── .nav-links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a154b;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s cubic-bezier(0.4,0,0.2,1);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #b85c8e;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}

.nav-links a:hover {
  color: #b85c8e;
}

.nav-links a.active {
  color: #b85c8e;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active::after {
  width: 100%;
}

/* ── .nav-actions ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── .hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #4a154b;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── .nav-overlay ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #4a154b80;
  z-index: 997;
  backdrop-filter: blur(3px);
}

.nav-overlay.active,
.nav-overlay.open {
  display: block;
}

/* ── Mobile Responsive Adjustments ── */
@media (max-width: 768px) {
  /* Prevent header overlap by adding safe padding/margin offsets to the body/main content container */
  body {
    padding-top: 0px; 
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 280px;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 32px 40px;
    gap: 28px;
    z-index: 998;
    transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 4px 0 30px #4a154b38;
  }

  .nav-links.open {
    left: 0;
  }

  .nav-links a {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .header {
    top: 0;
  }
}

/* ── .hamburger hover ── */
.hamburger:hover span {
  background: #805b81;
}

/* ── .nav-links interaction states ── */
@media (min-width: 769px) {
  .nav-links {
    gap: 8px;
  }
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 999px;
}

.nav-links a:hover {
  color: #b85c8e;
  background: transparent;
  text-decoration: none;
}

.nav-links a.active {
  color: #b85c8e;
  background: transparent;
  text-decoration: none;
}

.nav-links a:focus-visible {
  color: #b85c8e;
  background: transparent;
  text-decoration: none;
}

.nav-links a::after {
  height: 2px;
  bottom: 3px;
  left: 14px;
}

.nav-links a:hover::after {
  background: #b85c8e;
  width: calc(100% - 28px);
}

.nav-links a.active::after {
  background: #b85c8e;
  width: calc(100% - 28px);
}

/* ── .logo hover ── */
.logo:hover .logo-text {
  color: #805b81;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── .eg-header-cta ── */
.eg-header-cta:hover {
  text-decoration: underline !important;
}