/* ============================================
   HEADER CSS — Announcement Bar + Main Nav
   ============================================ */

/* ── Shared header wrapper ── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

/* ══════════════════════════════════════
   ANNOUNCEMENT BAR  (45px)
══════════════════════════════════════ */
.announcement-bar {
  height: 45px;
  background-color: var(--bg-site-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  position: relative;
}

.announcement-bar-inner {
  max-width: 1300px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  padding-right: 72px;
  box-sizing: border-box;
}

/* Wraps icon + text — clips overflow here so dropdown is unaffected */
.announce-center {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  justify-content: center;
}

/* ── Language Switcher ── */
.lang-switcher {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.lang-btn:hover { background: rgba(255,255,255,0.08); }

.lang-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

.lang-text {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 24px;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  user-select: none;
}

/* Dropdown */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  min-width: 60px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  padding: 10px 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 24px;
  letter-spacing: 0.5px;
  color: #1A1A1A;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
}
.lang-option:hover { background: #F5F5F5; }

/* Mobile: hide announce text to give space */
@media (max-width: 480px) {
  .announcement-bar { padding: 0 20px; }
  .announce-text { font-size: 11px; letter-spacing: 0.2px; }
}

.announce-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.announce-text {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 24px;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ══════════════════════════════════════
   MAIN NAV  (85px)
   FIX: min-height not height — allows
   drawer to push nav open on mobile
══════════════════════════════════════ */
.main-nav {
  min-height: 85px;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease;
}

.main-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Inner — max 1300px centered, always 85px tall */
.nav-inner {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 32px;
  height: 85px;                 /* explicit height keeps logo/items centred */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-shrink: 0;
}

/* ── Logo ── */
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 100%;                 /* fill nav-inner height so img can use % */
}

.nav-logo img {
  height: 100%;                 /* fills the 85px (or 60px mobile) container */
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── Nav Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  color: #000000;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: #E29F29;
  background: rgba(226, 159, 41, 0.07);
}

.nav-link.active {
  color: #E29F29;
}

/* ── CTA Button ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #1A1A1A;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-login:hover {
  color: #E29F29;
}

.nav-login svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mobile-login {
  display: none;
}

.nav-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 192px;
  height: 50px;
  background-color: #E29F29;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
  border: none;
  cursor: pointer;
}

.nav-cta:hover {
  background-color: #C4881A;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.nav-cta:active {
  transform: translateY(0);
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #000000;
  border-radius: 10px;
  transition: all 0.25s ease;
  transform-origin: center;
}

/* Hamburger → X animation */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════
   MOBILE DRAWER
   FIX: always display:flex + max-height
   transition so animation actually works
══════════════════════════════════════ */
.mobile-drawer {
  display: flex;                /* always flex — visibility via max-height */
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: #FFFFFF;
  border-top: 1px solid #F0F0F0;
  overflow: hidden;

  /* Closed state */
  max-height: 0;
  padding: 0 20px;
  transition: max-height 0.35s ease, padding 0.3s ease;
}

.mobile-drawer.open {
  max-height: 450px;            /* enough for 4 links + CTA */
  padding: 12px 20px 24px;
}

.mobile-links {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-links .nav-link {
  display: block;
  width: 100%;
  padding: 13px 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-align: left;
  color: #000000;
}

.mobile-links .nav-link:hover {
  color: #E29F29;
  background: rgba(226, 159, 41, 0.07);
}

/* Mobile CTA inside drawer */
.mobile-cta {
  width: 100%;
  max-width: 100%;
  height: 48px;
  margin-top: 14px;
  border-radius: 8px;
  font-size: 14px;
}

/* ══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════ */

/* Tablet (≤ 1024px) — hide full nav, show hamburger */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .mobile-drawer .nav-cta { display: inline-flex; }
  .mobile-login {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid #E6E4E3;
    border-radius: 8px;
  }
  .hamburger { display: flex; }
}

/* Tablet / mobile nav height reduction */
@media (max-width: 768px) {
  .nav-inner {
    height: 70px;
    padding: 0 20px;
    gap: 16px;
  }
}

/* Mobile (≤ 576px) */
@media (max-width: 576px) {
  .announcement-bar {
    height: 45px;
    padding: 0 20px;
  }
  .announce-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
  .announce-text {
    font-size: 11px;
    line-height: 18px;
    letter-spacing: 0.2px;
  }

  /* Nav — taller, bigger logo + hamburger */
  .nav-inner {
    height: 70px;
    padding: 0 16px;
  }

  /* Bigger hamburger tap target */
  .hamburger {
    width: 48px;
    height: 48px;
  }
  .hamburger span {
    width: 26px;
    height: 2.5px;
  }
}

/* Very small (≤ 360px) */
@media (max-width: 360px) {
  .nav-inner { padding: 0 12px; gap: 8px; }
  .announce-text { font-size: 10px; }
}
