/* =============================================
   VAVAS — Header & Navigation Styles
   ============================================= */

/* Fixed chrome: top bar + nav — no rounded “tab” corners */
.site-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  border-radius: 0;
}

.site-header {
  position: relative;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
  padding: 0;
  background: #fcfbf7;
  border-bottom: 1px solid rgba(200, 149, 42, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 8px 24px rgba(61, 31, 10, 0.05);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  transition: padding 0.35s ease;
}

/* Stronger shadow when scrolled (background stays visible always) */
.site-header.scrolled {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 10px 28px rgba(61, 31, 10, 0.08);
  border-bottom-color: rgba(200, 149, 42, 0.22);
}

.site-header.scrolled .header-inner { padding: 12px 24px; }

/* Top bar — single flat strip; hidden on scroll (see .is-collapsed) */
.header-topbar {
  background: #c9ae7a;
  border-bottom: 1px solid rgba(61, 31, 10, 0.14);
  border-radius: 0;
  max-height: 120px;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, border-width 0.3s ease;
  opacity: 1;
}

.header-topbar.is-collapsed {
  max-height: 0;
  opacity: 0;
  border-bottom-width: 0;
  pointer-events: none;
}

.header-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.header-topbar .topbar-location {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 400;
  color: #2c1810;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-align: left;
}

.header-topbar .topbar-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 14px;
  flex-shrink: 0;
}

.header-topbar .topbar-sep {
  color: rgba(44, 24, 16, 0.35);
  font-weight: 300;
  user-select: none;
}

.header-topbar .topbar-icon {
  display: inline-block;
  margin-right: 5px;
  font-size: 0.85em;
  color: rgba(44, 24, 16, 0.55);
}

.header-topbar .topbar-phone {
  font-weight: 500;
  letter-spacing: 0.04em;
}

.header-topbar .topbar-phone,
.header-topbar .topbar-ig {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 400;
  color: #2c1810;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.header-topbar a:hover {
  opacity: 0.72;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-malayalam {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2px;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--wood-dark);
  line-height: 1;
  letter-spacing: -0.01em;
}

.site-header.scrolled .logo-main { color: var(--wood-dark); }

.logo-dark .logo-main { color: var(--cream); }
.logo-dark .logo-malayalam { color: var(--gold-light); }

.logo-sub {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Navigation */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wood-dark);
  position: relative;
  padding: 10px 14px;
  border-radius: 6px;
  transition: color 0.3s, background 0.3s;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-mid), var(--gold-premium-flat));
  transition: width 0.3s ease;
}

.site-nav a:hover {
  color: var(--wood-dark);
  background: rgba(200, 149, 42, 0.12);
}
.site-nav a:hover::after { width: calc(100% - 28px); }
.site-nav a.active {
  color: var(--gold-mid);
  background: rgba(200, 149, 42, 0.1);
}
.site-nav a.active::after { width: calc(100% - 28px); }

/* CTA in nav */
.nav-cta {
  background: var(--gold-premium);
  background-color: var(--gold-premium-flat);
  color: var(--wood-dark) !important;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 600 !important;
  border: 1px solid rgba(154, 114, 9, 0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
.nav-cta:hover {
  filter: brightness(1.06);
  color: var(--wood-dark) !important;
}
.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--wood-dark);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-topbar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 18px;
    gap: 10px;
  }
  .header-topbar .topbar-location {
    font-size: 0.68rem;
    text-align: center;
  }
  .header-topbar .topbar-contact {
    justify-content: center;
  }

  .site-header .header-inner { padding: 18px 24px; }
  .site-header.scrolled .header-inner { padding: 14px 24px; }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--cream);
    box-shadow: -8px 0 40px rgba(61,31,10,0.22);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1190;
    /* Room for stacked top bar + main header row */
    padding: 118px 40px 40px;
    overflow-y: auto;
  }
  .site-nav.open { right: 0; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 28px; }
  .site-nav a { font-size: 1rem; }

  .nav-overlay {
    position: fixed;
    inset: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: rgba(26, 13, 6, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1180;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .nav-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 480px) {
  .header-topbar .topbar-location {
    font-size: 0.62rem;
  }
  .header-topbar-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}
