/* ============================================================
   NAVBAR
   ============================================================ */
 
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background-color: transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  overflow: visible;
}
 
.navbar.scrolled {
  background-color: #eeeeeed7;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 16px rgba(60, 53, 47, 0.08);
}
 
/* ── Brand / Logo ── */
.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
 
.brand-logo {
  height: clamp(4rem, 8vw, 10rem);
  width: auto;
  transition: height 0.3s ease;
}
 
/* ── Right side container ── */
.navbar-right {
  display: flex;
  align-items: center;
  gap: clamp(0px, 0.4vw, 6px);
  overflow: visible; 
}
 
/* ── Individual nav items ── */
.nav-item {
  position: relative;
  z-index: 1;
}

.nav-item.has-dropdown:hover,
.nav-item.has-dropdown.open {
  z-index: 1101;
}
 
/* ── Nav links ── */
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px clamp(4px, 0.9vw, 14px);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: clamp(13px, 1.3vw, 20px);
  font-weight: 400;
  color: var(--black-text);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
 
.nav-link:hover,
.nav-link.active {
  color: var(--primary-pink);
  border-bottom-color: var(--primary-pink);
}
 
a.nav-link.active {
  border-bottom-color: var(--primary-pink);
}
 
a.dropdown-trigger {
  text-decoration: none;
}
 
/* ── Dropdown arrow ── */
.dropdown-arrow {
  width: clamp(8px, 0.8vw, 12px);
  height: clamp(8px, 0.8vw, 12px);
  transition: transform 0.25s ease;
  opacity: 0.6;
}
 
.has-dropdown:hover .dropdown-arrow,
.has-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}
 
/* ── Dropdown menu ── */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  background: #F5EFE8F2;
  backdrop-filter: blur(6px);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(60, 53, 47, 0.12);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1100;
}
 
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
 
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
 
.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-serif);
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 300;
  color: var(--black-text);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
 
.dropdown-item:hover {
  background-color: var(--secondary-background);
  color: var(--primary-pink);
}
 
/* ── CTA Buttons ── */
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px clamp(10px, 1.4vw, 22px);
  border-radius: 10px;
  font-family: var(--font-serif);
  font-size: clamp(13px, 1.3vw, 20px);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin-left: clamp(2px, 0.4vw, 8px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--black-text);
  color: var(--black-text);
}
 
.btn-outline:hover {
  background-color: var(--secondary-background);
  border-color: var(--primary-pink);
  color: var(--primary-pink);
}
 
.btn-fill {
  background-color: var(--primary-pink);
  border: 1.5px solid var(--primary-pink);
  color: #ffffff;
}
 
.btn-fill:hover {
  background-color: #a3563f;
  border-color: #a3563f;
}

.nav-btn.active {
  color: var(--primary-pink);
  border-bottom-color: var(--primary-pink);
}

.btn-outline.active {
  border-color: var(--primary-pink);
  color: var(--primary-pink);
}

.btn-fill.active {
  background-color: #a3563f;
  border-color: #a3563f;
}

/* ============================================================
   HAMBURGER
   ============================================================ */
.menu-toggle {
  display: none;
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
 
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
  width: 34px;
  height: 34px;
  position: relative;
  background: transparent;
  border: none;
  outline: none;
}

.hamburger-menu .line {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--black-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.hamburger-menu::before,
.hamburger-menu::after {
  display: none !important;
  content: none !important;
}

.menu-toggle:checked + .hamburger-menu .line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle:checked + .hamburger-menu .line:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked + .hamburger-menu .line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle:not(:checked) + .hamburger-menu .line {
  transform: none;
  opacity: 1;
}

/* ============================================================
   MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }

  .navbar.scrolled {
    background-color: #F5EFE8F2;
    box-shadow: 0 2px 12px rgba(60, 53, 47, 0.1);
  }

  .brand-logo {
    height: 80px !important;
    width: auto;
    max-height: none !important;
  }

  .hamburger-menu {
    display: flex;
  }

  /* Mobile nav panel */
  .navbar-right {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: var(--navbar-height);
    right: 0;
    width: 75%;
    height: calc(100vh - var(--navbar-height));
    background: var(--secondary-background);
    padding: 20px 0 40px;
    box-shadow: -4px 0 24px rgba(60, 53, 47, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
  }

  .menu-toggle:checked ~ .navbar-right {
    display: flex;
  }

  .nav-item {
    width: 100%;
    position: relative;
    z-index: auto;
  }

  .nav-item.has-dropdown:hover,
  .nav-item.has-dropdown.open {
    z-index: auto;
  }

  .nav-link {
    width: 100%;
    font-size: 16px;
    padding: 14px 28px;
    border-bottom: none;
    justify-content: space-between;
    color: var(--black-text);
  }

  .nav-link:hover,
  .nav-link.active {
    border-bottom: none;
    color: var(--primary-pink);
  }

  .dropdown-arrow {
    width: 12px;
    height: 12px;
    pointer-events: none;
  }

  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    max-height: none;
    overflow: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    padding: 4px 0 8px;
    background: transparent;
    backdrop-filter: none;
    width: 100%;
    z-index: auto;
  }

  /* Show when open */
  .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-item {
    display: block;
    padding: 10px 28px 10px 44px;
    font-size: 14px;
    color: var(--black-text);
    background: transparent;
    width: 100%;
    text-decoration: none;
  }

  .dropdown-item:hover {
    background: transparent;
    color: var(--primary-pink);
  }

  .nav-btn {
    margin: 6px 28px 0;
    width: calc(100% - 56px);
    justify-content: center;
    padding: 12px 22px;
    font-size: 16px;
  }

  .btn-outline {
    border-color: var(--black-text);
  }
}

/* ============================================================
   EXTRA SMALL (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .navbar {
    padding: 0 16px;
  }

  .brand-logo {
    height: 65px !important;
    width: auto;
    max-height: none !important;
  }

  .hamburger-menu {
    width: 30px;
    height: 30px;
    padding: 5px;
    gap: 4px;
  }

  .hamburger-menu .line {
    width: 20px;
    height: 2px;
  }

  .menu-toggle:checked + .hamburger-menu .line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle:checked + .hamburger-menu .line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .navbar-right {
    width: 85%;
  }

  .nav-link {
    font-size: 14px;
    padding: 12px 20px;
  }

  .dropdown-item {
    font-size: 13px;
    padding: 8px 20px 8px 32px;
  }

  .nav-btn {
    font-size: 14px;
    padding: 10px 16px;
    margin: 4px 20px 0;
    width: calc(100% - 40px);
  }
}