/* ================================================================
   navbar.css — Gold Rate Today
   Separate navbar / menu styles including mobile hamburger
================================================================ */

/* ── GLOBAL OVERFLOW FIX ──────────────────────────────────── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ── NAVBAR SHELL ─────────────────────────────────────────── */
.navbar {
  background: #FFFFFF;
  border-bottom: 1px solid rgba(0,0,0,0.10);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 100vw;
  overflow: visible;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 8px;
}

/* ── LOGO ─────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

/* Black rounded square with gold ₹ */
.logo-icon {
  width: 38px; height: 38px;
  background: #0A0A0A;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: Calibri, sans-serif;
  font-size: 20px; font-weight: 700;
  color: #B8972A;
  flex-shrink: 0;
  line-height: 1;
}

/* Text beside the icon */
.logo-text {
  font-family: Calibri, sans-serif;
  font-size: 22px; font-weight: 700;
  color: #111111;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo-text span { color: #B8972A; }

/* ── DESKTOP NAV LINKS ────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: #555555;
  font-family: Calibri, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.nav-links a:hover {
  background: #0A0A0A;
  color: #FFFFFF;
}

/* ── CITIES DROPDOWN ──────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #555555;
  font-family: Calibri, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 7px;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.nav-dropdown-btn:hover,
.nav-dropdown.is-open .nav-dropdown-btn {
  background: #0A0A0A;
  color: #FFFFFF;
}

.nav-dropdown-arrow {
  transition: transform 0.22s ease;
  flex-shrink: 0;
}
.nav-dropdown.is-open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown panel */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  z-index: 300;
  overflow: hidden;
  animation: dropdownIn 0.18s ease;
}
.nav-dropdown.is-open .nav-dropdown-menu {
  display: block;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Small heading inside dropdown */
.nav-dropdown-header {
  font-family: Calibri, sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #AAAAAA;
  padding: 12px 16px 8px;
  border-bottom: 1px solid #F2F2F2;
}

/* City links inside dropdown */
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: Calibri, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #222222;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid #F7F7F7;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  background: none;
  border-radius: 0;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover {
  background: #F7F7F7;
  color: #B8972A;
  padding-left: 20px;
}
.nav-dropdown-menu a svg {
  color: #B8972A;
  flex-shrink: 0;
}

/* ── DATE (desktop only) ──────────────────────────────────── */
.nav-meta {
  font-size: 12px;
  color: #888888;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── HAMBURGER BUTTON ─────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: background 0.18s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: #0A0A0A; }
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: #111111;
  border-radius: 2px;
  transition: background 0.18s, transform 0.25s, opacity 0.2s;
}
.nav-hamburger:hover span { background: #FFFFFF; }
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DROPDOWN MENU ─────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;       /* fixed prevents it from affecting page width */
  top: 64px;
  left: 0;
  right: 0;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 2px solid #0A0A0A;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 199;
  padding: 8px 0 12px;
  animation: slideDown 0.2s ease;
  overflow-y: auto;
  max-height: calc(100vh - 64px);
}
.mobile-menu.is-open { display: block; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu a {
  display: block;
  padding: 13px 24px;
  font-family: Calibri, sans-serif;
  font-size: 15px; font-weight: 600;
  color: #111111;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: #0A0A0A; color: #FFFFFF; }

/* Mobile cities accordion button */
.mobile-cities-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 24px;
  font-family: Calibri, sans-serif;
  font-size: 15px; font-weight: 600;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mobile-cities-btn:hover,
.mobile-cities-btn.is-open { background: #0A0A0A; color: #FFFFFF; }
.mobile-cities-btn.is-open svg { transform: rotate(180deg); }
.mobile-cities-btn svg { transition: transform 0.22s; flex-shrink: 0; }

/* Mobile cities list */
.mobile-cities-list {
  display: none;
  background: #F7F7F7;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mobile-cities-list.is-open { display: block; }
.mobile-cities-list a {
  display: block;
  padding: 11px 24px 11px 36px;
  font-family: Calibri, sans-serif;
  font-size: 14px; font-weight: 600;
  color: #444;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.15s, color 0.15s;
}
.mobile-cities-list a:last-child { border-bottom: none; }
.mobile-cities-list a:hover { background: #EBEBEB; color: #B8972A; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .navbar-inner  { padding: 0 16px; }
  .nav-links     { display: none; }
  .nav-meta      { display: none; }
  .nav-hamburger { display: flex; }
  .logo-icon { width: 34px; height: 34px; font-size: 18px; }
  .logo-text { font-size: 19px; }
}

@media (max-width: 600px) {
  .navbar-inner { padding: 0 14px; }
  .logo-icon    { width: 30px; height: 30px; font-size: 16px; border-radius: 6px; }
  .logo-text    { font-size: 17px; }
}

/* ── LOGO ─────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

/* Black rounded square with gold ₹ */
.logo-icon {
  width: 38px; height: 38px;
  background: #0A0A0A;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: Calibri, sans-serif;
  font-size: 20px; font-weight: 700;
  color: #B8972A;   /* gold — matches site accent */
  flex-shrink: 0;
  line-height: 1;
}

/* Text beside the icon */
.logo-text {
  font-family: Calibri, sans-serif;
  font-size: 22px; font-weight: 700;
  color: #111111;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo-text span { color: #B8972A; }

/* ── DESKTOP NAV LINKS ────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: #555555;
  font-family: Calibri, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.nav-links a:hover {
  background: #0A0A0A;
  color: #FFFFFF;
}

/* ── CITIES DROPDOWN ──────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #555555;
  font-family: Calibri, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 7px;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.nav-dropdown-btn:hover,
.nav-dropdown.is-open .nav-dropdown-btn {
  background: #0A0A0A;
  color: #FFFFFF;
}

.nav-dropdown-arrow {
  transition: transform 0.22s ease;
  flex-shrink: 0;
}
.nav-dropdown.is-open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown panel */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  z-index: 300;
  overflow: hidden;
  animation: dropdownIn 0.18s ease;
}
.nav-dropdown.is-open .nav-dropdown-menu {
  display: block;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Small heading inside dropdown */
.nav-dropdown-header {
  font-family: Calibri, sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #AAAAAA;
  padding: 12px 16px 8px;
  border-bottom: 1px solid #F2F2F2;
}

/* City links inside dropdown */
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: Calibri, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #222222;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid #F7F7F7;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  background: none;
  border-radius: 0;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover {
  background: #F7F7F7;
  color: #B8972A;
  padding-left: 20px;
}
.nav-dropdown-menu a svg {
  color: #B8972A;
  flex-shrink: 0;
}

/* ── DATE (desktop only) ──────────────────────────────────── */
.nav-meta {
  font-size: 12px;
  color: #888888;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── HAMBURGER BUTTON (hidden on desktop) ─────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: background 0.18s;
  flex-shrink: 0;
}
.nav-hamburger:hover {
  background: #0A0A0A;
}
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: #111111;
  border-radius: 2px;
  transition: background 0.18s, transform 0.25s, opacity 0.2s;
}
.nav-hamburger:hover span { background: #FFFFFF; }

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

/* ── MOBILE DROPDOWN MENU ─────────────────────────────────── */
.mobile-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0; right: 0;
  background: #FFFFFF;
  border-bottom: 2px solid #0A0A0A;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 199;
  padding: 8px 0 12px;
  animation: slideDown 0.2s ease;
}
.mobile-menu.is-open { display: block; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu a {
  display: block;
  padding: 13px 28px;
  font-family: Calibri, sans-serif;
  font-size: 15px; font-weight: 600;
  color: #111111;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover {
  background: #0A0A0A;
  color: #FFFFFF;
  padding-left: 36px;
}

/* Mobile cities accordion button */
.mobile-cities-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 28px;
  font-family: Calibri, sans-serif;
  font-size: 15px; font-weight: 600;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mobile-cities-btn:hover,
.mobile-cities-btn.is-open {
  background: #0A0A0A;
  color: #FFFFFF;
}
.mobile-cities-btn.is-open svg { transform: rotate(180deg); }
.mobile-cities-btn svg { transition: transform 0.22s; flex-shrink: 0; }

/* Mobile cities list (collapsible) */
.mobile-cities-list {
  display: none;
  background: #F7F7F7;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mobile-cities-list.is-open { display: block; }

.mobile-cities-list a {
  display: block;
  padding: 11px 28px 11px 40px;
  font-family: Calibri, sans-serif;
  font-size: 14px; font-weight: 600;
  color: #444;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.15s, color 0.15s;
}
.mobile-cities-list a:last-child { border-bottom: none; }
.mobile-cities-list a:hover {
  background: #EBEBEB;
  color: #B8972A;
  padding-left: 46px;
}

/* ── RESPONSIVE BREAKPOINTS ───────────────────────────────── */
@media (max-width: 900px) {
  .navbar-inner {
    padding: 0 20px;
  }

  /* Hide desktop nav links and date */
  .nav-links  { display: none; }
  .nav-meta   { display: none; }

  /* Show hamburger */
  .nav-hamburger { display: flex; }

  /* Slightly smaller logo on tablet */
  .logo-icon { width: 34px; height: 34px; font-size: 18px; }
  .logo-text { font-size: 19px; }
}

@media (max-width: 600px) {
  .navbar-inner { padding: 0 16px; }
  .logo-icon    { width: 30px; height: 30px; font-size: 16px; border-radius: 6px; }
  .logo-text    { font-size: 17px; }
}
