/* ══════════════════════════════════════════════════════════════
   NAV — floating glass pill over hero, solid bar after scroll
══════════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 20px;
  left: 3%;
  right: 3%;
  height: 68px;
  background: rgba(109,205,199,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 28px;
  z-index: 100;
  transition:
    top 0.4s ease, left 0.4s ease, right 0.4s ease,
    border-radius 0.4s ease, background 0.4s ease,
    border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav.solid {
  top: 0; left: 0; right: 0;
  border-radius: 0;
  background: rgba(246,239,231,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(220,192,167,0.4);
  box-shadow: 0 2px 20px rgba(90,67,54,0.08);
}

/* ── Logo ─────────────────────────────────────────────── */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; text-decoration: none; cursor: pointer;
}
.nav-logo-svg {
  height: 36px; width: auto;
  color: var(--white); transition: color 0.4s ease; flex-shrink: 0;
}
.nav.solid .nav-logo-svg { color: var(--cocoa); }

.nav-logo-text {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; line-height: 1.4;
  color: var(--white); transition: color 0.4s ease;
}
.nav.solid .nav-logo-text { color: var(--cocoa); }

/* ── Desktop nav links (hidden by default, shown ≥1025px) ── */
.nav-links {
  display: none;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-links > li > a {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 7px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav.solid .nav-links > li > a { color: var(--cocoa); }
.nav-links > li > a:hover { background: rgba(255,255,255,0.1); }
.nav.solid .nav-links > li > a:hover { background: rgba(27,74,77,0.07); }

/* ── Actions row ──────────────────────────────────────── */
.nav-actions {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}

.nav-lang {
  font-size: 12px; color: rgba(255,255,255,0.85); cursor: pointer;
  padding: 6px 14px; border: 1px solid rgba(220,192,167,0.45);
  border-radius: 6px; background: rgba(220,192,167,0.2);
  transition: color 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}
.nav.solid .nav-lang { color: var(--taupe); border-color: var(--sand); background: transparent; }

.btn-primary {
  background: var(--teal-deep); color: var(--white); border: none;
  padding: 10px 22px; border-radius: 6px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background 0.2s; white-space: nowrap;
  text-decoration: none; display: inline-flex; align-items: center;
}
.btn-primary:hover { background: var(--teal-brand); }

/* ── Hamburger button ─────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px 4px;
  background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: background 0.4s ease, transform 0.3s ease, opacity 0.3s ease;
}
.nav.solid .nav-hamburger span { background: var(--cocoa); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Desktop: show nav-links, hide hamburger ──────────── */
@media (min-width: 1025px) {
  .nav-links { display: flex !important; gap: 2px; align-items: center; }
  .nav-hamburger { display: none !important; }
}

/* ── Mobile: hide nav-links, show hamburger ───────────── */
@media (max-width: 1024px) {
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex !important; }
  .btn-primary { display: none; }
  .nav { top: 12px; left: 3%; right: 3%; height: 56px; padding: 0 16px; }
  .nav.solid { top: 0; left: 0; right: 0; }
  .nav-logo-svg { height: 30px; }
}

/* ── Desktop Dropdown — click-based ──────────────────── */
.nav-links .has-dropdown { position: relative; }
.nav-links .has-dropdown > a {
  display: flex; align-items: center; gap: 5px;
}
.nav-links .has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg) translateY(-2px);
  opacity: 0.7;
  transition: transform 0.2s;
}
.nav-links .has-dropdown.open > a::after {
  transform: rotate(-225deg) translateY(-2px);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(27,74,77,0.14), 0 2px 8px rgba(0,0,0,0.06);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}
.nav-links .has-dropdown.open .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--cocoa) !important;
  font-size: 13px; font-weight: 500;
  opacity: 1 !important;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-dropdown a:hover { background: var(--ivory); }

/* ── Side Drawer (mobile) ─────────────────────────────── */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 140;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

.nav-drawer {
  position: fixed; top: 0; right: 0;
  width: 280px; height: 100%;
  background: #0b2a30; z-index: 150;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  padding: 100px 32px 48px;
  box-shadow: -12px 0 48px rgba(0,0,0,0.3);
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }

.nav-drawer-links {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
}
.nav-drawer-links a {
  display: block; font-size: 20px; font-weight: 600;
  color: rgba(255,255,255,0.85); text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.nav-drawer-links a:hover { color: var(--teal-light); }

.nav-drawer-cta {
  margin-top: 36px; display: block;
  background: var(--teal-brand); color: #fff;
  text-decoration: none; text-align: center;
  padding: 14px 24px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
}

/* ── Mobile drawer sub-groups ─────────────────────────── */
.nav-drawer-group { margin: 8px 0; }
.nav-drawer-group-label {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.55);
  padding: 14px 0 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.nav-drawer-group-label:hover { color: rgba(255,255,255,0.85); }
.drawer-group-arrow {
  font-size: 16px; transition: transform 0.2s;
}
.nav-drawer-group.open .drawer-group-arrow {
  transform: rotate(90deg);
}
.nav-drawer-sub a {
  display: block; font-size: 17px; font-weight: 500;
  color: rgba(255,255,255,0.75); text-decoration: none;
  padding: 10px 0 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.nav-drawer-sub a:hover { color: var(--teal-light); }
