/* ═══════════════════════════════════════════════════════════
   pages.css — Shared styles for dedicated pages + dark navbar
   Loaded LAST so it layers cleanly over the base theme.
   Homepage visual system is untouched.
═══════════════════════════════════════════════════════════ */

/* ─── Skip-to-content (accessibility) ─────────────────────── */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--amber);
  color: #0B0D10;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; outline: 2px solid #fff; outline-offset: 2px; }

/* ─── Shared ghost button (dark sections) ─────────────────── */
.btn-page-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.btn-page-ghost:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--amber);
  color: #fff;
  transform: translateY(-1px);
}

/* Reusable near-black section background */
.section-darker { background: #0B0D10; color: var(--white); }

/* ═══════════════════════════════════════════════════════════
   PREMIUM DARK NAVBAR  — removes the white container,
   replaces it with clean dark glassmorphism + gold accents.
═══════════════════════════════════════════════════════════ */
#nav {
  background: rgba(13, 16, 22, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}
#nav.nav-scrolled {
  background: rgba(9, 11, 15, 0.82) !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 158, 11, 0.05) inset !important;
}

/* Logo text → light */
#nav .logo-adc { color: #fff; }
#nav .logo-full { color: rgba(255, 255, 255, 0.5); }

/* Wider pill + tighter spacing so 7 links + 2 CTAs always fit */
#nav { width: min(1340px, 100%) !important; }
.nav-inner { gap: var(--space-3) !important; padding-inline: clamp(0.9rem, 1.8vw, 1.4rem) !important; }
.nav-actions { gap: 0.55rem !important; }
.nav-links { gap: 0.1rem; }
.nav-link {
  color: rgba(255, 255, 255, 0.74);
  white-space: nowrap;
  padding: 0.5rem 0.72rem;
}
.nav-link:hover,
.nav-link.active { color: #fff; }

/* Hide the "Australia-wide" status pill once space gets tight */
@media (max-width: 1300px) { .nav-status { display: none; } }

/* Collapse to the mobile menu before the inline links can crowd the CTAs */
@media (max-width: 1140px) {
  .nav-links { display: none !important; }
  .nav-status { display: none !important; }

  /* Clear, obviously-tappable menu button on the right */
  .nav-hamburger {
    display: flex !important;
    width: 42px;
    height: 42px;
    padding: 11px 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 11px;
  }
  .nav-hamburger:hover,
  .nav-hamburger.open {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.45);
  }
  .nav-hamburger span { background: #fff; }

  /* Give the nav a touch more breathing room on phones */
  .nav-actions { gap: 0.5rem !important; }
}

/* Status + hamburger → light */
.nav-status { color: rgba(255, 255, 255, 0.6); }
.nav-hamburger:hover { background: rgba(255, 255, 255, 0.08); }
.nav-hamburger span { background: rgba(255, 255, 255, 0.88); }

/* Scroll-progress track on dark glass */
.nav-progress { background: rgba(255, 255, 255, 0.1) !important; }

/* Mobile dropdown → dark glass */
.mobile-menu {
  background: rgba(11, 13, 16, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55) !important;
}
.mobile-link {
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-link:hover { color: var(--amber); }

/* Hover/active pill behind links (overrides Header.astro light pill) */
#site-header .nav-link::before { background: rgba(255, 255, 255, 0.07) !important; }
#site-header .nav-link.active::before { background: rgba(245, 158, 11, 0.16) !important; }
#site-header .nav-logo:hover .logo-adc { color: var(--amber-300) !important; }

/* ─── Light / Dark theme toggle (animated switch) ─────────── */
.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.theme-toggle-track {
  position: relative;
  display: block;
  width: 54px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  transition: background 0.25s, border-color 0.25s;
}
.theme-toggle:hover .theme-toggle-track { border-color: rgba(245, 158, 11, 0.55); }
.theme-toggle:focus-visible .theme-toggle-track { outline: 2px solid var(--amber); outline-offset: 3px; }
[data-theme="dark"] .theme-toggle-track { background: rgba(0, 0, 0, 0.35); }

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s;
}
[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(26px);
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
}

/* Both icons sit centred in the thumb; opacity picks the active one */
.theme-ico {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0B0D10;
  transition: opacity 0.2s ease;
}
.theme-ico-moon { opacity: 0; }
.theme-ico-sun  { opacity: 1; }
[data-theme="dark"] .theme-ico-moon { opacity: 1; }
[data-theme="dark"] .theme-ico-sun  { opacity: 0; }

/* ─── Shared inner-page section helpers ───────────────────── */
.page-section { padding-block: clamp(3.5rem, 7vw, 6rem); position: relative; }

/* Feature checklist used across pages */
.feat-list { list-style: none; display: grid; gap: 0.6rem; }
.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--text-sm);
  color: var(--charcoal-600);
  line-height: 1.55;
}
.section-dark .feat-list li,
.section-darker .feat-list li { color: rgba(255, 255, 255, 0.78); }
.feat-list li svg { flex-shrink: 0; margin-top: 2px; }

/* Reduced motion: page hero / cta glows already static; nothing animated here */
