:root {
  --accent: #1fbf6a; /* fresh green */
  --accent-600: #159a53;
  --accent-50: #e9f8f0;
  --text: #0f172a; /* slate-900 */
  --muted: #6b7280; /* gray-500 */
  --bg: #ffffff;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  color: var(--text);
  background: var(--bg);
}

.fw-extrabold {
  font-weight: 900;
}
.text-accent {
  color: var(--accent) !important;
}
.bg-soft {
  background: linear-gradient(180deg, #fff, #f7fbf9);
}

.navbar {
  backdrop-filter: saturate(150%) blur(6px);
}
.nav-link {
  font-weight: 600;
}
.nav-link.active {
  color: var(--accent) !important;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem;
  background: #000;
  color: #fff;
  z-index: 9999;
}

.section-padding {
  padding: 6rem 0;
}
@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 0;
  }
}

/* Hero */
.hero-section {
  position: relative;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    80% 60% at 30% 20%,
    rgba(31, 191, 106, 0.55),
    rgba(0, 0, 0, 0.65)
  );
  z-index: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
  transform: translateZ(0);
}

/* Parallax generic */
.parallax {
  position: relative;
  overflow: hidden;
}
.parallax .parallax-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
  transform: translateZ(0);
}
.parallax.lite .parallax-bg {
  filter: brightness(0.6) saturate(1.1);
}

/* Cards / Tiles */
.icon-card,
.tile,
.season-card,
.tip-card {
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 1rem;
  padding: 1.25rem;
  height: 100%;
  box-shadow: 0 10px 20px rgba(16, 24, 40, 0.04);
}
.icon-card i,
.tile i,
.tip-card i {
  font-size: 1.6rem;
  color: var(--accent);
}
.season-card img {
  width: 100%;
  height: auto;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  display: block;
}
.badge-card {
  background: #fff;
  border: 1px dashed var(--accent);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.05);
}
.bg-accent-subtle {
  background: var(--accent-50);
}
.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-600);
  --bs-btn-hover-border-color: var(--accent-600);
  --bs-btn-focus-shadow-rgb: 31, 191, 106;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.reveal.reveal-visible {
  opacity: 1;
  transform: none;
}
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}
.delay-5 {
  transition-delay: 0.5s;
}

/* Back-to-top */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px rgba(16, 24, 40, 0.15);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 999;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

footer .btn {
  border-radius: 0.75rem;
}

/* Accessibility focus */
:focus-visible {
  outline: 3px solid rgba(31, 191, 106, 0.55);
  outline-offset: 2px;
}

/* Offcanvas sizing: full-width on mobile, comfy panel on desktop */
.offcanvas-end {
  width: 100%;
  max-width: 100%;
}
@media (min-width: 992px) {
  .offcanvas-end {
    width: 420px;
    max-width: 420px;
  }
}

/* Remote sidebar container */
.sidebar-remote {
  min-height: 140px;
}

/* Store badges */
.store-badge img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid #eef2f6;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-badge:hover img {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.1);
}

/* Footer links */
.footer .footer-link,
.footer .footer-link-inline {
  color: var(--text);
  text-decoration: none;
}
.footer .footer-link:hover,
.footer .footer-link-inline:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Social buttons */
.social-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  color: var(--text);
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}
.social-btn:hover {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.1);
}

/* Store badges */
.footer .store-badge img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid #eef2f6;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.footer .store-badge:hover img {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.12);
}

/* Brand logo sizing */
.navbar .brand-logo {
  max-height: 40px; /* adjust as needed */
  max-width: 160px; /* keeps aspect ratio if too wide */
  object-fit: contain;
}

/* Brand logo sizing */
.navbar .brand-logo {
  max-height: 44px; /* tweak 40–56px to taste */
  max-width: 180px;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Optional: tighter navbar padding on desktop */
@media (min-width: 992px) {
  #mainNav {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
}

/* ===== Sbzee Privacy Page Enhancements ===== */

/* Brand tokens (tweak to your palette) */
:root {
  --sbz-brand: #00ad53; /* Sbzee green */
  --sbz-ink: #0f172a; /* headings/text */
  --sbz-muted: #64748b; /* secondary text */
  --sbz-surface: #f6f8f9; /* subtle bg for cards */
  --sbz-border: #e2e8f0; /* borders/dividers */
  --sbz-link: #0ea5a5; /* general links (content) */
  --header-h: 88px; /* will be updated by JS */
}

/* Typography & content */
main#content {
  color: var(--sbz-ink);
}
#content h1,
#content h2,
#content h3 {
  color: var(--sbz-ink);
}

/* Smooth scroll and anchor offset so headings aren't hidden under header */
html {
  scroll-behavior: smooth;
}
#content section[id],
#content [id^="intro"],
#content [id^="scope"],
#content [id^="collect"],
#content [id^="use"],
#content [id^="legal-bases"],
#content [id^="sharing"],
#content [id^="transfers"],
#content [id^="security"],
#content [id^="retention"],
#content [id^="rights"],
#content [id^="children"],
#content [id^="third-party"],
#content [id^="public-posts"],
#content [id^="changes"],
#content [id^="grievance"],
#content [id^="notices"],
#content [id^="jurisdiction"] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* Sidebar TOC */
#privacyToc {
  border-left: 1px solid var(--sbz-border);
  padding-left: 1rem;
}
#privacyToc h2 {
  color: var(--sbz-muted);
  letter-spacing: 0.04em;
}

/* Replace default nav-pills look with a clean left-rail */
#privacyToc .nav {
  --pill-pad-y: 0.35rem;
  --pill-pad-x: 0.25rem;
}
#privacyToc .nav-link {
  position: relative;
  padding: var(--pill-pad-y) 0.25rem var(--pill-pad-y) 1rem;
  color: var(--sbz-muted);
  border-radius: 0.5rem;
  transition: color 0.2s ease, background-color 0.2s ease, font-weight 0.2s ease;
}
#privacyToc .nav-link:hover {
  color: var(--sbz-ink);
  background: transparent;
}

/* Active state (from ScrollSpy): brand-colored left bar + stronger text */
#privacyToc .nav-link.active {
  color: var(--sbz-ink);
  font-weight: 600;
  background: transparent; /* kill default blue background */
}
#privacyToc .nav-link.active::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 3px;
  border-radius: 4px;
  background: var(--sbz-brand);
}

/* Also show subtle dot for hover/focus items */
#privacyToc .nav-link::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 50%;
  translate: 0 -50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
}
#privacyToc .nav-link:hover::after,
#privacyToc .nav-link:focus-visible::after {
  background: var(--sbz-border);
}
#privacyToc .nav-link.active::after {
  background: var(--sbz-brand);
}

/* Sticky offset under your site header */
#privacyToc.position-sticky {
  top: calc(var(--header-h) + 24px);
}

/* Content helpers */
#content header p.text-muted {
  color: var(--sbz-muted) !important;
}
#content address {
  background: var(--sbz-surface);
  border: 1px solid var(--sbz-border);
}

/* Links in body copy (not TOC) */
#content a:not(.nav-link) {
  color: var(--sbz-link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}
#content a:not(.nav-link):hover {
  color: var(--sbz-brand);
}

/* Back-to-top button (if you want it more modern) */
#backToTop {
  border-radius: 999px;
  border: 1px solid var(--sbz-border);
  background: #fff;
  box-shadow: 0 6px 20px rgba(2, 8, 23, 0.08);
}
#backToTop:hover {
  border-color: var(--sbz-brand);
}

/* Dark mode polish */
@media (prefers-color-scheme: dark) {
  :root {
    --sbz-ink: #333333;
    --sbz-muted: #333333;
    --sbz-surface: #0b1220;
    --sbz-border: #1f2937;
    --sbz-link: #22d3ee;
  }
  #content address {
    background: var(--sbz-surface);
    border-color: var(--sbz-border);
  }
  #privacyToc {
    border-left-color: var(--sbz-border);
  }
}
