/* =============================================
   JIYA HOLIDAYS - NAVBAR / HEADER STYLES
   ============================================= */

/* ── Topbar ── */
.topbar {
  background: var(--white);
  padding: 8px 0;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.topbar-divider {
  color: var(--border);
  font-size: 14px;
}
.topbar a {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
  font-size: 12px;
}
.topbar a:hover { color: var(--primary); }
.topbar .social-links { display: flex; gap: 12px; }
.topbar .social-links a {
  width: 26px; height: 26px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-secondary);
}
.topbar .social-links a:hover { background: var(--primary); border-color: var(--primary); color: white; }

/* ── Navbar ── */
#navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--border);
  transition: all var(--transition-base);
}

#navbar.scrolled {
  background: rgba(255,255,255,0.99);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: auto;
  width: 100px;
  object-fit: contain;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  position: relative;
  padding: 9px 16px;
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  letter-spacing: 0.2px;
}

/* Animated underline bar */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 16px;
  right: 16px;
  height: 2.5px;
  background: var(--secondary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover state */
.nav-link:hover {
  color: var(--primary);
  background: rgba(121, 47, 154, 0.07);
}
.nav-link:hover::after {
  transform: scaleX(1);
}

/* Active state */
.nav-link.active {
  color: var(--primary);
  font-weight: 600;
  background: rgba(121, 47, 154, 0.08);
}
.nav-link.active::after {
  transform: scaleX(1);
  background: var(--primary);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > .nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-dropdown > .nav-link .fa-chevron-down {
  font-size: 9px !important;
  margin-left: 2px !important;
  transition: transform 0.25s ease;
}
.nav-dropdown:hover > .nav-link .fa-chevron-down {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(121,47,154,0.18), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(121,47,154,0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1), visibility 0.2s;
  pointer-events: none;
}
/* Arrow pointer on dropdown */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 22px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid rgba(121,47,154,0.12);
  border-top: 1px solid rgba(121,47,154,0.12);
  transform: rotate(45deg);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.nav-dropdown.open > .nav-link .fa-chevron-down {
  transform: rotate(180deg);
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
  font-family: var(--font-body);
  font-weight: 500;
  position: relative;
}
.nav-dropdown-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--primary);
  border-radius: 2px;
  transition: height 0.2s ease;
}
.nav-dropdown-menu a:hover {
  background: rgba(121,47,154,0.07);
  color: var(--primary);
  padding-left: 18px;
}
.nav-dropdown-menu a:hover::before {
  height: 60%;
}

/* Nav CTA - hide old one */
.nav-cta { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: 2px solid var(--border);
  background: none;
  border-radius: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
@media (max-width: 968px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(300px, 82vw);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 84px 24px 32px;
    box-shadow: -8px 0 40px rgba(121,47,154,0.2);
    transition: right 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
    opacity: 0;
    gap: 4px;
    overflow-y: auto;
    z-index: var(--z-modal);
    border-top: 3px solid var(--primary);
  }
  .nav-links.mobile-open { right: 0; opacity: 1; }
  .nav-link { width: 100%; border-radius: var(--radius-sm); }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 16px;
    background: var(--light-grey);
    display: none;
    pointer-events: auto;
    border-radius: 0;
    border-left: 3px solid var(--primary);
    margin: 4px 0;
    min-width: unset;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown.open > .nav-link .fa-chevron-down { transform: rotate(180deg); }
  .topbar-left .topbar-divider { display: none; }
}

@media (max-width: 640px) {
  .topbar-left a:not(:first-child) { display: none; }
}

/* ── Footer ── */
footer {
  background: var(--charcoal);
  color: var(--mid-grey);
  padding: var(--space-3xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
}

.footer-brand-col {}
.footer-logo { margin-bottom: var(--space-lg); }
.footer-logo .brand { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--white); }
.footer-logo .brand span { color: var(--secondary); }
.footer-tagline { font-size: var(--text-sm); line-height: 1.8; margin-bottom: var(--space-lg); }

.footer-socials { display: flex; gap: 10px; margin-bottom: var(--space-xl); }
.footer-social-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-grey);
  font-size: 14px;
  transition: all var(--transition-spring);
}
.footer-social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-col-title {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  position: relative;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: var(--mid-grey);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}
.footer-links a::before {
  content: '›';
  color: var(--secondary);
  font-size: 16px;
  transition: transform var(--transition-fast);
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
}
.footer-contact-item .icon {
  width: 36px; height: 36px;
  background: rgba(121,47,154,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
}
.footer-contact-item .text strong {
  display: block;
  color: var(--white);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--text-xs);
}
.footer-bottom a { color: var(--primary-light); }
.footer-bottom a:hover { color: var(--secondary); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1/-1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Mobile CTA inside nav — hidden on desktop */
.nav-cta-mobile-item { display: none; }
