/* =========================================
   GLOBAL HEADER — Felimar Kitchens
   ========================================= */

/* ---- Site Header Wrapper ---- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100vw;
  overflow: visible;
}

/* Prevent any page content from causing horizontal scroll */
html { overflow-x: hidden !important; }
#site-header *, #site-header *::before, #site-header *::after,
#mobileNav, #mobileNav * {
  box-sizing: border-box;
}

/* ---- TOP BAR ---- */
#topbar {
  background: #1A1A1A;
  overflow: hidden;
  max-height: 46px;
  transition: max-height 0.38s ease, opacity 0.3s ease;
}

#topbar.hidden {
  max-height: 0;
  opacity: 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.topbar-left i { color: var(--gold, #C9A84C); font-size: 0.8rem; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-social {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: color 0.25s;
  text-decoration: none;
}
.topbar-social:hover { color: var(--gold, #C9A84C); }

.topbar-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.14);
}

/* Call Us pill */
.topbar-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar-call:hover { opacity: 0.82; }

.topbar-call .call-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold, #C9A84C);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #1A1A1A;
  flex-shrink: 0;
  animation: ring 3s ease infinite;
}

@keyframes ring {
  0%,90%,100% { transform: rotate(0deg); }
  92%          { transform: rotate(-15deg); }
  96%          { transform: rotate(15deg); }
}

.topbar-call .call-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.topbar-call .call-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold, #C9A84C);
}

.topbar-call .call-number {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.04em;
}

/* WhatsApp topbar */
.topbar-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #25D366;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar-wa i { font-size: 1.05rem; }
.topbar-wa:hover { color: #1ebe59; }

@media (max-width: 640px) {
  .topbar-left    { display: none; }
  .topbar-wa      { display: none; }
  .topbar-divider { display: none; }
}

/* ---- NAVBAR ---- */
#navbar {
  padding: 10px 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border, #E8E6E0);
  transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--text-mid, #444444);
  text-decoration: none;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold-dark, #A8872E); }

/* Dropdown */
.nav-links .dropdown { position: relative; }
.nav-links .dropdown > a { cursor: pointer; }
.nav-links .dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border, #E8E6E0); border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08); min-width: 200px; padding: 8px 0;
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
  z-index: 1000; margin-top: 10px;
  list-style: none;
}
.nav-links .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }
.nav-links .dropdown-menu li { margin: 0; }
.nav-links .dropdown-menu li a {
  display: block; padding: 8px 18px; font-size: 0.8rem; font-weight: 500;
  text-transform: none; letter-spacing: 0; color: var(--text-mid, #444444); white-space: nowrap;
}
.nav-links .dropdown-menu li a:hover { background: var(--gold-bg, #FBF6EC); color: var(--gold-dark, #A8872E); }

/* Two-column dropdown for locations */
.dropdown-menu.dropdown-locations {
  min-width: 380px; display: grid; grid-template-columns: 1fr 1fr; padding: 12px 0;
}
.dropdown-menu.dropdown-locations .dropdown-heading {
  grid-column: span 1; padding: 6px 18px 4px; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-dark, #A8872E); pointer-events: none;
}

/* CTA Button (desktop only) */
.nav-cta {
  background: var(--gold, #C9A84C) !important;
  color: #1A1A1A !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  font-weight: 700 !important;
  border: none;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: inherit;
  cursor: pointer;
  transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-cta:hover {
  background: var(--gold-light, #E2C47A) !important;
  transform: translateY(-1px);
}

/* Nav right group (lang + burger) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: transparent;
  border: 1.5px solid var(--gold, #C9A84C);
  padding: 5px 4px;
  border-radius: 20px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.35s, transform 0.35s;
  white-space: nowrap;
  flex-shrink: 0;
}
.lang-toggle .lt-opt {
  padding: 1px 8px;
  color: #aaa;
  border-radius: 14px;
  transition: color 0.2s, background 0.2s;
  font-size: 0.76rem;
  font-weight: 700;
}
.lang-toggle .lt-opt.active {
  color: var(--gold-dark, #A8872E);
  background: var(--gold-bg, #FBF6EC);
}
.lang-toggle .lt-sep {
  color: var(--gold, #C9A84C);
  opacity: 0.5;
  font-size: 0.7rem;
  line-height: 1;
}
.lang-toggle:hover { transform: translateY(-1px); }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-dark, #1A1A1A);
  border-radius: 2px;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- MOBILE NAV (fullscreen overlay) ---- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  background: var(--bg-white, #FFFFFF);
  z-index: 9999;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
  display: flex;
  transform: translateX(0);
}

/* Close button */
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.2rem;
  color: var(--text-dark, #1A1A1A);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  z-index: 1;
  padding: 4px 8px;
}

/* Scrollable content area */
.mobile-nav-scroll {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 80px 30px 40px;
  flex: 1;
}

/* ---- Uniform link style for ALL menu items ---- */
.mobile-nav .mobile-link {
  display: block;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  text-align: center;
  padding: 18px 0;
  border: none;
  border-bottom: 1px solid #eee;
  background: none;
  cursor: pointer;
  transition: color 0.2s;
}

.mobile-nav .mobile-link:hover,
.mobile-nav .mobile-link:active {
  color: var(--gold-dark, #A8872E);
}

/* Dropdown wrapper — no extra box, no extra borders */
.mobile-dropdown {
  border-bottom: 1px solid #eee;
}

/* Dropdown toggle — identical to .mobile-link but inside .mobile-dropdown */
.mobile-dropdown-toggle {
  display: block;
  width: 100%;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  text-align: center;
  text-decoration: none;
  padding: 18px 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.2s;
}

.mobile-dropdown-toggle:hover,
.mobile-dropdown-toggle:active {
  color: var(--gold-dark, #A8872E);
}

/* Remove border-bottom from .mobile-link inside dropdown (the wrapper handles it) */
.mobile-dropdown .mobile-link {
  border-bottom: none;
}

/* Arrow icon */
.mobile-dropdown-toggle .mobile-arrow {
  font-size: 0.65rem;
  color: var(--gold, #C9A84C);
  margin-left: 8px;
  transition: transform 0.3s;
}

.mobile-dropdown.open .mobile-dropdown-toggle .mobile-arrow {
  transform: rotate(180deg);
}

/* Dropdown sub-menu */
.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-dropdown.open .mobile-dropdown-menu {
  max-height: 800px;
}

/* Sub-link items */
.mobile-sub-link {
  display: block;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  text-align: center;
  padding: 14px 0;
  border-top: 1px solid #f5f3ef;
  transition: color 0.2s;
}

.mobile-sub-link:hover,
.mobile-sub-link:active {
  color: var(--gold-dark, #A8872E);
}

/* Sub-heading (Miami-Dade / Broward) */
.mobile-sub-heading {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold-dark, #A8872E);
  padding: 14px 0 4px;
}

/* CTA button */
.mobile-nav .mobile-cta {
  display: block;
  background: var(--gold, #C9A84C);
  color: #1A1A1A !important;
  padding: 16px 40px;
  border-radius: 8px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.35s, transform 0.35s;
  text-align: center;
  width: 100%;
}

.mobile-nav .mobile-cta:hover {
  background: var(--gold-light, #E2C47A);
  transform: translateY(-1px);
}

/* ============================================
   RESPONSIVE — MOBILE HEADER
   ============================================ */
@media (max-width: 960px) {
  /* Hide desktop nav links, show burger */
  .nav-links { display: none !important; }
  .nav-burger { display: flex !important; }

  /* Navbar layout: logo left, lang+burger right */
  .nav-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
    gap: 0;
  }

  /* Logo shrinks to fit */
  .nav-logo { flex-shrink: 1; min-width: 0; }
  .nav-logo-img { height: 44px; max-width: 160px; }

  /* Right side: lang toggle + burger, always visible */
  .nav-right {
    display: flex !important;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  /* Language toggle — ALWAYS visible on mobile */
  .lang-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 4px 3px;
    font-size: 0.72rem;
    border-width: 1.5px;
  }
  .lang-toggle .lt-opt {
    padding: 2px 7px;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 12px; }
  .topbar-inner { padding: 0 12px; }
  .nav-logo-img { height: 38px; max-width: 130px; }
  .nav-right { gap: 8px; }
  .lang-toggle { padding: 3px 2px; font-size: 0.68rem; }
  .lang-toggle .lt-opt { padding: 1px 5px; font-size: 0.66rem; }
}

/* ---- Header spacer ---- */
.header-spacer {
  height: 122px; /* topbar 46px + navbar ~76px */
}

@media (max-width: 640px) {
  .header-spacer { height: 76px; }
}
