/* ==========================================
   PATAGONIA WONDERLAND
   Navigation — Rhythm theme overrides
   ========================================== */

.pw-nav {
  --pw-green: #203c34;
  --pw-green-hover: #31584b;
  --pw-height: 64px;

  height: var(--pw-height) !important;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.pw-nav .full-wrapper {
  height: var(--pw-height);
  padding-left: 28px;
  padding-right: 28px;
}

/* --- Brand --- */

.pw-nav .nav-logo-wrap {
  float: left;
  margin-right: 15px;
}

.pw-nav .nav-logo-wrap .pw-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  width: auto;
  max-width: none;
  height: var(--pw-height);

  font-family: Dosis, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500 !important;
  line-height: 1.25;
  letter-spacing: 2.6px;

  color: var(--pw-green);
  white-space: nowrap;
  text-decoration: none;
}

.pw-brand span:last-child {
  font-size: 11px;
  letter-spacing: 3.1px;
  opacity: 0.75;
}

/* --- Desktop links --- */

.pw-nav:not(.mobile-on) .inner-nav > ul {
  display: flex;
  align-items: center;
  height: var(--pw-height);
  margin: 0;
  padding: 0;
}

.pw-nav:not(.mobile-on) .inner-nav > ul > li {
  float: none;
  margin: 0;
}

.pw-nav:not(.mobile-on) .inner-nav > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: center;

  height: var(--pw-height) !important;
  line-height: 1.2 !important;

  padding: 0 13px;
  margin: 0;

  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.45px;
  white-space: nowrap;
  position: relative;

  transition: color 0.25s ease;
}

/* Active state: subtle underline */

.pw-nav:not(.mobile-on) .inner-nav > ul > li > a:not(.pw-nav-cta)::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 15px;
  height: 1px;

  background: currentColor;

  opacity: 0;
  transform: scaleX(0);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.pw-nav:not(.mobile-on) .inner-nav > ul > li > a.active:not(.pw-nav-cta)::after,
.pw-nav:not(.mobile-on) .inner-nav > ul > li > a:not(.pw-nav-cta):hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* --- Desktop CTA --- */

.pw-nav:not(.mobile-on) .inner-nav > ul > li > a.pw-nav-cta {
  height: 36px !important;
  line-height: normal !important;

  margin-left: 15px;
  padding: 0 18px;

  background: var(--pw-green);
  color: #fff !important;
  opacity: 1;

  border: 1px solid var(--pw-green);
  border-radius: 2px;

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.3px;
}

.pw-nav:not(.mobile-on) .inner-nav > ul > li > a.pw-nav-cta:hover {
  background: var(--pw-green-hover);
  border-color: var(--pw-green-hover);
}

/* --- Transparent navbar over photographs --- */

.pw-nav.transparent .pw-brand {
  color: #fff;
}

.pw-nav.transparent:not(.mobile-on) .inner-nav > ul > li > a.pw-nav-cta {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff !important;
}

.pw-nav.transparent:not(.mobile-on) .inner-nav > ul > li > a.pw-nav-cta:hover {
  background: #fff;
  color: var(--pw-green) !important;
}

/* --- Mobile / Rhythm mobile-on state --- */

.pw-nav.mobile-on {
  background: #fff !important;
}

.pw-nav.mobile-on .full-wrapper {
  padding-left: 18px;
  padding-right: 18px;
}

.pw-nav.mobile-on .nav-logo-wrap .pw-brand {
  color: var(--pw-green);
}

.pw-nav.mobile-on .mobile-nav {
  display: table;
  width: 54px;
  height: var(--pw-height);
  margin-top: 0;
  background: transparent;
  color: var(--pw-green);
}

.pw-nav.mobile-on .mobile-nav:hover,
.pw-nav.mobile-on .mobile-nav.active {
  background: #f2f5f3;
  color: var(--pw-green);
}

/* Dropdown container */

.pw-nav.mobile-on .desktop-nav {
  top: 100%;
  padding: 0;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.pw-nav.mobile-on .desktop-nav > ul {
  display: block;
  height: auto;
  padding: 10px 18px 18px;

  background: #192b25;
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
}

/* Mobile navigation links */

.pw-nav.mobile-on .desktop-nav > ul > li {
  display: block;
  width: 100%;
  margin: 0 !important;
}

.pw-nav.mobile-on .desktop-nav > ul > li > a {
  display: flex;
  align-items: center;
  width: 100%;
  height: 46px !important;
  line-height: 1.3 !important;
  padding: 0 12px;

  color: #d5dfd8 !important;
  opacity: 1;

  font-size: 11px;
  letter-spacing: 1.4px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pw-nav.mobile-on .desktop-nav > ul > li > a:hover,
.pw-nav.mobile-on .desktop-nav > ul > li > a.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile CTA */

.pw-nav.mobile-on .desktop-nav > ul > li > a.pw-nav-cta {
  justify-content: center;
  height: 46px !important;
  margin: 16px 0 0;

  background: #d3c19b;
  color: #172c25 !important;

  border: 0;
  border-radius: 2px;

  font-weight: 700;
  text-align: center;
}

.pw-nav.mobile-on .desktop-nav > ul > li > a.pw-nav-cta:hover {
  background: #e2d3b4;
  color: #172c25 !important;
}

/* --- Smaller desktops --- */

@media (min-width: 1025px) and (max-width: 1250px) {
  .pw-nav .full-wrapper {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pw-nav:not(.mobile-on) .inner-nav > ul > li > a {
    padding-left: 8px;
    padding-right: 8px;
    letter-spacing: 1px;
  }
}

/* Focus accessibility */

.pw-nav a:focus-visible {
  outline: 2px solid #b9aa85;
  outline-offset: -3px;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .pw-nav,
  .pw-nav a,
  .pw-nav a::after {
    transition: none !important;
  }
}

/* ==========================================
   Google Translate — Navigation offset
   ========================================== */
/* Navigation — additional top spacing */

.pw-nav {
  padding-top: 21px !important;
  height: 79px !important; /* 64px navigation + 12px padding */
  box-sizing: border-box;
}

.pw-nav .full-wrapper {
  height: 64px;
}
