/* ============================================================
   AHR Cleaning — css/header.css
   Navigation styles
   ============================================================ */

.navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #1C1C1C;
}

.containerhd {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.logo-img {
  width: 67px;
  height: auto;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 530px;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #FFFFFF;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover { opacity: 0.7; }

/* Desktop CTA - not shown in AHR nav design */
/* .nav-desktop-cta { display: none; } */

/* CTA button — visible on desktop and mobile */
.nav-mobile-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 22px;
  background: linear-gradient(180deg, #D3B674 0%, #F4EAC1 50%, #D3B674 100%);
  color: #000000;
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2em;
  letter-spacing: -0.02em;
  border-radius: 442px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.nav-mobile-cta:hover {
  filter: brightness(0.85);
  transform: scale(1.04);
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.15s ease, opacity 0.15s ease;
  transform-origin: center;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 768px) {
  .containerhd { padding: 20px 50px; }

  .logo-img { width: 67px; }

  .nav-right {
    display: contents; /* dissolve wrapper — children become direct flex items in containerhd */
  }

  .hamburger { display: flex; }

  .nav-mobile-cta {
    padding: 10px 14px;
    font-size: 12px;
    border-radius: 292px;
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    right: -100%;
    width: 240px;
    background: #1C1C1C;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 24px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: right 0.25s ease-out, opacity 0.2s ease;
    opacity: 0;
    z-index: 999;
  }

  .nav-menu.open {
    right: 0;
    opacity: 1;
  }

  .nav-link {
    display: block;
    padding: 14px 0;
    width: 100%;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-link:last-of-type { border-bottom: none; }
}

/* ---- Tablet (769px–1024px) ---- */
@media (min-width: 769px) and (max-width: 1024px) {
  .containerhd { padding: 18px 28px; }
  .nav-menu { gap: 24px; }
  .nav-link { font-size: 14px; }
}
