/* ============================================================
   HEADER.CSS — Jaipur Property Consultant
   Sticky header, nav, dropdown, mobile menu overlay
   Linked on ALL 24 pages
   ============================================================ */

/* ===== STICKY HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: 80px;
  display: flex;
  align-items: center;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 64px;
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
}
.logo-main {
  font-family: var(--ff-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}
.logo-main span { color: var(--color-accent); }
.logo-tag {
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.06em;
  margin-top: 3px;
  white-space: nowrap;
}

/* ===== DESKTOP NAV ===== */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}
.header-nav a:hover  { color: var(--color-accent); }
.header-nav a.active { color: var(--color-accent); }
.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* Areas dropdown */
.header-nav .dropdown       { position: relative; }
.header-nav .dropdown > a   { display: flex; align-items: center; gap: 4px; }
.header-nav .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  border: 1px solid var(--color-border);
  z-index: 100;
}
.header-nav .dropdown:hover .dropdown-menu,
.header-nav .dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-nav .dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--color-text-primary);
  border-radius: var(--radius-sm);
}
.header-nav .dropdown-menu a:hover {
  background: var(--color-bg-secondary);
  color: var(--color-accent);
}
.header-nav .dropdown-menu a::after { display: none; } /* no active underline in dropdown */

/* ===== HEADER RIGHT ===== */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header-phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.header-phone svg   { color: var(--color-accent); flex-shrink: 0; }
.header-phone:hover { color: var(--color-accent); }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.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 FULL-SCREEN MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-primary);
  z-index: 2000;
  padding: 24px;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.mobile-menu-logo {
  font-family: var(--ff-head);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.mobile-menu-logo span { color: var(--color-accent); }
.mobile-close {
  color: rgba(255,255,255,0.7);
  font-size: 28px;
  line-height: 1;
  padding: 4px 8px;
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-close:hover { color: #fff; }

.mobile-nav a {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--color-accent); padding-left: 8px; }

/* Sub-links (areas) */
.mobile-nav-sub a {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  padding: 10px 0 10px 16px;
}
.mobile-nav-sub a:hover { color: var(--color-accent); padding-left: 24px; }

.mobile-menu-footer { margin-top: 40px; }
.mobile-menu-footer .btn-primary {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  .header-nav    { display: none; }
  .header-phone  { display: none; }
  .hamburger     { display: flex; }
  .mobile-menu   { display: flex; }
}
@media (max-width: 400px) {
  .logo-tag { display: none; }
}
