/* ============================================================
   ORBITY 360 — Sidebar
   ============================================================ */

.sidebar {
  background: var(--grad-sidebar);
  border-right: 1px solid var(--dark-border);
}

/* Subtle grid texture overlay */
.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* Gold line accent at top */
.sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-gold);
}

/* ── Logo Block ── */
.sidebar-logo {
  padding: var(--space-8) var(--space-6) var(--space-6);
  border-bottom: 1px solid var(--dark-border);
  position: relative;
}

.logo-icon {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.logo-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: var(--text-sm);
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: 0 0 12px rgba(201,168,76,0.3);
  flex-shrink: 0;
  position: relative;
}

.logo-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.2);
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.logo-tagline {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.logo-location {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
}

.logo-location i {
  color: var(--gold-dark);
  font-size: 10px;
}

/* ── Navigation ── */
.sidebar-nav {
  flex: 1;
  padding: var(--space-4) 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar {
  width: 2px;
}

.nav-section-label {
  padding: var(--space-4) var(--space-6) var(--space-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-link {
  /* button reset */
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  border-radius: 0;
  outline: none;
  font-family: var(--font-body);
  width: 100%;
  text-align: left;

  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  color: #f0f0f0;
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
  z-index: 2;               /* sit above anything below sidebar in the stacking order */
  pointer-events: auto;     /* explicit — never inherit none from a parent */
  transition: all var(--duration-base) var(--ease-out);
  border-left: 2px solid transparent;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(201,168,76,0.15);
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(201,168,76,0.08) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.nav-link:hover {
  color: var(--off-white);
  border-left-color: rgba(201,168,76,0.5);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link.active {
  color: var(--gold-light);
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(201,168,76,0.12) 0%, transparent 80%);
}

.nav-link[data-nav="nav-google-maps"].active {
  border-left: 2px solid #c9a84c;
  background: rgba(201,168,76,0.08);
}

.nav-link.active .nav-icon {
  color: var(--gold);
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gold);
  transition: color var(--duration-base) var(--ease-out);
  flex-shrink: 0;
}

.nav-link:hover .nav-icon {
  color: var(--gold);
}

.nav-link-text {
  flex: 1;
}

.nav-link-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(201,168,76,0.2);
  color: var(--gold);
}

/* Active dot indicator */
.nav-link.active::after {
  content: '';
  position: absolute;
  right: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
}

/* ── Contact Block ── */
.sidebar-contact {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--dark-border);
}

.contact-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
  opacity: 1;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--muted);
  margin-bottom: var(--space-2);
  transition: color var(--duration-fast);
  text-decoration: none;
}

.contact-item:hover {
  color: var(--off-white);
}

.contact-item i {
  width: 14px;
  color: var(--gold-dark);
  font-size: 11px;
  flex-shrink: 0;
}

.contact-phone {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--off-white);
}

/* ── Social Icons ── */
.sidebar-social {
  padding: var(--space-4) var(--space-6) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9a84c;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.25s ease;
  background: transparent;
}

.social-link:hover {
  background: #c9a84c;
  border-color: #c9a84c;
  color: #1a1200;
}

/* ── Hamburger (mobile) ── */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  background: #0f0f19;
  border: 1px solid rgba(201,168,76,0.5);
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: calc(var(--z-sidebar) + 10);
  color: var(--gold);
  font-size: 18px;
  transition: all var(--duration-base);
  box-shadow: 0 2px 16px rgba(0,0,0,0.6);
}

.sidebar-toggle:hover {
  background: #1a1a2e;
  border-color: var(--gold);
}

/* ── Sidebar Overlay (mobile) ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: calc(var(--z-sidebar) - 1);
  /* NO backdrop-filter — causes blur bleed into sidebar on mobile WebKit */
}
