/* ═══════════════════════════════════════════════════════
   NAV.CSS — Fixed Frosted Glass Navigation
═══════════════════════════════════════════════════════ */

#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  overflow: visible;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition:
    background 0.9s ease,
    box-shadow 0.9s ease,
    border-color 0.9s ease;
}

#main-nav.scrolled {
  background: rgba(245, 240, 232, 0.94);
  box-shadow: 0 2px 30px rgba(0,0,0,0.08);
  border-bottom-color: rgba(26,26,26,0.08);
}

.nav-inner {
  max-width: none;
  overflow: visible;
  padding: 0 clamp(16px, 3vw, 48px) 0 clamp(8px, 1vw, 12px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
}

/* Logo */
.nav-logo {
  color: var(--white);
  transition: color var(--transition-base);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 0;
}

.nav-logo-text-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  line-height: 1;
  color: inherit;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  width: 100%;
  text-align: center;
}

#main-nav.scrolled .nav-logo-name {
  border-bottom-color: rgba(26, 16, 11, 0.15);
}

/* Tagline uses DM Sans — clean, readable, contrasts the display font */
.nav-logo-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.46);
  line-height: 1;
  transition: color var(--transition-base);
}

#main-nav.scrolled .nav-logo-tagline {
  color: rgba(26,16,11,0.38);
}

.nav-icon {
  height: 34px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(71%) sepia(39%) saturate(530%) hue-rotate(2deg) brightness(98%);
  transition: filter var(--transition-base);
}

#main-nav.scrolled .nav-icon {
  filter: brightness(0) saturate(100%) invert(71%) sepia(39%) saturate(530%) hue-rotate(2deg) brightness(98%);
}

#main-nav.scrolled .nav-logo {
  color: var(--obsidian);
}

/* Nav links fill remaining space then CTA sits at far right */
.nav-links-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

#main-nav .lang-dropdown:not(.lang-dropdown--mobile) {
  position: relative;
  z-index: 100;
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 36px;
  justify-content: center;
  margin: 0;
  min-width: 0;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover { color: var(--white); }

#main-nav.scrolled .nav-link {
  color: rgba(26,26,26,0.65);
}

#main-nav.scrolled .nav-link:hover {
  color: var(--obsidian);
}

/* CTA */
.nav-cta {
  flex-shrink: 0;
  font-size: 11px;
  padding: 10px 26px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--transition-base);
  transform-origin: center;
}

#main-nav.scrolled .hamburger span {
  background: var(--obsidian);
}

.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Mobile Menu ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--obsidian);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px clamp(32px, 8vw, 80px);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77,0,0.18,1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--white);
  font-size: 22px;
  padding: 8px;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.mobile-menu-close:hover { opacity: 1; }

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 60px;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  display: block;
  padding: 10px 0;
  transition: color var(--transition-base);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-link:hover { color: var(--white); }

.mobile-menu-cta-item {
  margin-top: 28px;
  padding-top: 8px;
  border-bottom: none;
}

.mobile-menu .mobile-cta.btn-coral {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 12px 28px;
  border-bottom: none;
}

.mobile-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-contact a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-base);
}

.mobile-contact a:hover { color: var(--stone); }

button.mobile-link {
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

/* ─── Language dropdown ─── */
.lang-dropdown {
  position: relative;
}

.lang-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  cursor: pointer;
  touch-action: manipulation;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

#main-nav.scrolled .lang-dropdown-toggle {
  background: rgba(26, 22, 17, 0.04);
  border-color: rgba(26, 22, 17, 0.12);
  color: rgba(26, 22, 17, 0.75);
}

.lang-dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

#main-nav.scrolled .lang-dropdown-toggle:hover {
  background: rgba(26, 22, 17, 0.07);
  border-color: rgba(26, 22, 17, 0.2);
}

.lang-flag {
  font-size: 16px;
  line-height: 1;
}

/* Toggle shows flag only — names appear in the open menu */
.lang-dropdown-toggle .lang-label,
.lang-dropdown-toggle .lang-chevron {
  display: none;
}

.lang-label {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-chevron {
  flex-shrink: 0;
  opacity: 0.65;
  transition: transform 0.25s ease;
}

.lang-dropdown--open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 188px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #FEFCF8;
  border: 1px solid rgba(26, 22, 17, 0.1);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(26, 22, 17, 0.14);
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 2000;
  pointer-events: none;
}

.lang-dropdown--open .lang-dropdown-menu,
.lang-dropdown.is-open .lang-dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(26, 22, 17, 0.82);
  text-align: left;
  transition: background 0.15s ease;
}

.lang-option:hover {
  background: rgba(42, 92, 69, 0.08);
}

.lang-option--active {
  background: rgba(42, 92, 69, 0.12);
  font-weight: 500;
  color: var(--color-green, #2a5c45);
}

.lang-option .lang-flag {
  font-size: 18px;
}

.lang-dropdown--mobile {
  display: none;
  margin-bottom: 40px;
}

.lang-dropdown--mobile .lang-dropdown-toggle {
  width: auto;
  justify-content: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.lang-dropdown--mobile .lang-dropdown-menu {
  position: static;
  opacity: 1;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  padding: 0 6px;
  margin-top: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  transform: none;
  transition: max-height 0.3s ease, visibility 0.3s ease, padding 0.3s ease;
}

.lang-dropdown--mobile.lang-dropdown--open .lang-dropdown-menu {
  display: block;
  visibility: visible;
  max-height: 420px;
  padding: 8px 0 0;
}

.lang-dropdown--mobile .lang-option {
  color: rgba(255, 255, 255, 0.78);
}

.lang-dropdown--mobile .lang-option:hover,
.lang-dropdown--mobile .lang-option--active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
