/* css/header.css — Modern Luxury Floating Header System with Light Scrolled Glass */

/* ── Base Header (Default Top Unscrolled State) ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              top 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.45s ease, 
              box-shadow 0.45s ease, 
              padding 0.45s ease, 
              border 0.45s ease,
              height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Logo Default State ──────────────────────── */
.logo {
  display: flex;
  align-items: center;
  height: 54px;
  flex-shrink: 0;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-img {
  height: 100%;
  width: auto;
  max-width: 200px;
  filter: brightness(0) invert(1);            /* Pure white logo over dark transparent hero */
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link {
  font-weight: 600;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.92);           /* Crisp white nav links over dark transparent hero */
  text-transform: uppercase;
  letter-spacing: 1.1px;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 6px 12px;
  border-radius: 30px;
  white-space: nowrap;
  text-decoration: none;
}

/* ══════════════════════════════════════════════
   PEARL WHITE LUXURY FLOATING STICKY HEADER (.scrolled)
   ══════════════════════════════════════════════ */
.header.scrolled {
  top: 14px;
  left: 12px;
  right: 12px;
  width: calc(100% - 24px);
  max-width: 1380px;
  margin: 0 auto;
  height: 68px;
  background: rgba(253, 253, 253, 0.92);    /* Pearl White Translucent Light Background */
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(26, 86, 104, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(70, 156, 118, 0.25);
  border-radius: 50px;
  box-shadow: 
    0 16px 45px rgba(10, 33, 41, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  padding: 0 30px;
}

/* Scrolled Logo Styling - Original Brand Color Logo */
.header.scrolled .logo {
  height: 44px;
}

.header.scrolled .logo-img {
  max-width: 175px;
  filter: none;                              /* Full original logo colors */
}

/* ── RIGHT ALIGNMENT FOR MENU & ENQUIRE CTA ──── */
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.6vw, 6px);           /* Reduced space between menu items */
  flex-wrap: nowrap;
}

.nav-link {
  font-weight: 500;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 6px 11px;                    /* Compact padding between menu items */
  border-radius: 30px;
  white-space: nowrap;
  text-decoration: none;
}

/* Scrolled Light Navigation Link Base */
.header.scrolled .nav-link {
  color: var(--color-primary, #1a5668);      /* Deep Ocean Teal text for high readability */
  border: 1px solid transparent;
}

/* Light Theme Scrolled Pill Hover & Active Effects */
.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
  color: var(--color-primary, #1a5668) !important;
  background: rgba(26, 86, 104, 0.08);
  border: 1px solid rgba(26, 86, 104, 0.2);
  box-shadow: 0 4px 15px rgba(26, 86, 104, 0.1);
  transform: translateY(-1px);
}

/* Unscrolled Header Active Indicator Line */
.header:not(.scrolled) .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.header:not(.scrolled) .nav-link:hover::after,
.header:not(.scrolled) .nav-link.active::after {
  width: 70%;
}

.header:not(.scrolled) .nav-link:hover,
.header:not(.scrolled) .nav-link.active {
  color: var(--color-accent) !important;
}

/* ── LUXURY ENQUIRE CTA BUTTON ─────────────── */
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(70, 156, 118, 0.35);
  margin-left: 16px;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px rgba(70, 156, 118, 0.45);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ── Mobile & Tablet Hamburger Toggle ────────── */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  z-index: 1001;
  flex-shrink: 0;
  cursor: pointer;
  margin-left: auto;
}

.hamburger-line {
  width: 100%;
  height: 2.5px;
  background: #ffffff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.header.scrolled .hamburger-line {
  background: var(--color-primary, #1a5668);
}

/* ── Mobile & Tablet Fullscreen Overlay ───────── */
@media (max-width: 1023px) {

  .header.scrolled {
    top: 10px;
    left: 8px;
    right: 8px;
    width: calc(100% - 16px);
    height: 62px;
    padding: 0 18px;
    border-radius: 40px;
  }

  .logo {
    height: 44px;
  }

  .logo-img {
    max-width: 160px;
  }

  .header.scrolled .logo {
    height: 40px;
  }

  .header.scrolled .logo-img {
    max-width: 145px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden;
    z-index: 999;
    margin-left: 0;
  }

  .nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    overflow: hidden;
  }

  .nav-link {
    color: #ffffff !important;
    font-size: var(--text-xl);
    padding: 10px 24px;
    background: transparent !important;
    border: none !important;
  }

  .nav-link.active {
    color: var(--color-accent) !important;
  }

  .header-cta-btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .header.scrolled .mobile-toggle.open .hamburger-line {
    background: #ffffff;
  }

  .mobile-toggle.open .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .mobile-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.open .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* ── Body Lock When Mobile Nav is Open ───────── */
body.nav-open {
  overflow: hidden;
}
