/* ============================================================
   RevisitGroom Shared Header CSS v3.0
   All header/nav styles live here so header-loader.js only
   needs to inject HTML — no <style> block in the injected HTML.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap");

/* ── Nav bar ── */
#rg-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1400px;
  height: 80px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px -8px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.06);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* Logo */
#rg-nav .rg-logo { text-decoration: none; display: flex; align-items: center; }
#rg-nav .rg-logo-text { font-size: 1.2rem; font-weight: 700; color: #0f172a; letter-spacing: -0.02em; }
#rg-nav .rg-logo-accent { color: #16A34A; }

/* Desktop links */
#rg-desktop-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
}
#rg-desktop-links a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}
#rg-desktop-links a:hover { color: #16A34A; }

/* Dropdown */
#rg-desktop-links .rg-dd { position: relative; }
#rg-desktop-links .rg-dd-btn {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  font-size: 0.875rem; font-weight: 600;
  color: #475569; padding: 28px 0;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  transition: color 0.2s;
}
#rg-desktop-links .rg-dd-btn:hover { color: #16A34A; }
#rg-desktop-links .rg-dd-panel {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.14);
  padding: 8px; min-width: 170px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
}
#rg-desktop-links .rg-dd:hover .rg-dd-panel {
  opacity: 1; visibility: visible; pointer-events: all;
}
#rg-desktop-links .rg-dd-panel a {
  display: block; padding: 10px 14px;
  color: #475569 !important; border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
#rg-desktop-links .rg-dd-panel a:hover { background: #f0fdf4; color: #16A34A !important; }

/* Right side */
#rg-nav-right { display: flex; align-items: center; gap: 20px; }
#rg-nav-right .rg-login {
  font-size: 0.875rem; font-weight: 600;
  color: #475569; text-decoration: none;
  transition: color 0.2s;
}
#rg-nav-right .rg-login:hover { color: #16A34A; }
#rg-nav-right .rg-cta {
  background: #16A34A; color: #fff !important;
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none; padding: 10px 22px;
  border-radius: 99px; transition: background 0.2s;
  box-shadow: 0 4px 12px rgba(22,163,74,0.22);
}
#rg-nav-right .rg-cta:hover { background: #15803d; }

/* Hamburger */
#rg-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  color: #475569; padding: 8px; line-height: 1;
}
#rg-hamburger svg { display: block; }

/* ── Mobile Drawer ── */
#rg-mobile-drawer {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: #1e293b;
}
#rg-mobile-drawer .rg-logo-text { font-size: 1.2rem; font-weight: 700; color: #0f172a; letter-spacing: -0.02em; }
#rg-mobile-drawer .rg-logo-accent { color: #16A34A; }

#rg-drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  flex-shrink: 0;
}
#rg-drawer-close {
  background: none; border: none; cursor: pointer;
  padding: 8px; line-height: 1; color: #475569;
}

#rg-drawer-body { flex: 1; display: flex; flex-direction: column; gap: 28px; }

.rg-nav-section { display: flex; flex-direction: column; gap: 14px; }
.rg-nav-section-label {
  font-size: 0.68rem; font-weight: 700;
  color: #94a3b8; text-transform: uppercase;
  letter-spacing: 0.1em; margin: 0;
}
.rg-nav-section a {
  display: block; font-size: 1.1rem; font-weight: 600;
  color: #1e293b !important; text-decoration: none;
  transition: color 0.18s;
}
.rg-nav-section a:hover { color: #16A34A !important; }

#rg-drawer-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 24px; margin-top: 24px;
  display: flex; flex-direction: column; gap: 10px;
  flex-shrink: 0;
}
.rg-drawer-login {
  display: block; width: 100%; text-align: center;
  padding: 15px; border-radius: 14px;
  font-weight: 700; font-size: 0.95rem;
  color: #475569 !important; text-decoration: none;
  box-sizing: border-box; transition: color 0.2s;
}
.rg-drawer-login:hover { color: #16A34A !important; }
.rg-drawer-cta {
  display: block; width: 100%; text-align: center;
  padding: 15px; border-radius: 14px;
  font-weight: 700; font-size: 0.95rem;
  background: #16A34A; color: #fff !important;
  text-decoration: none; box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(22,163,74,0.28);
  transition: background 0.2s;
}
.rg-drawer-cta:hover { background: #15803d; }

/* ── Responsive ── */
@media (max-width: 1023px) {
  #rg-desktop-links { display: none !important; }
  #rg-nav-right .rg-login,
  #rg-nav-right .rg-cta { display: none !important; }
  #rg-hamburger { display: block !important; }
}
@media (min-width: 1024px) {
  #rg-hamburger { display: none !important; }
  #rg-mobile-drawer { display: none !important; }
}
