/* ─── Base & Utilities ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

/* ─── Navbar States ─────────────────────────────────────────── */
#navbar.scrolled {
  background: rgba(253, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

#navbar.scrolled .nav-is-dark {
  color: #1B4332 !important;
}

#navbar.scrolled .nav-link {
  color: rgba(27, 67, 50, 0.8) !important;
}

#navbar.scrolled .nav-link:hover {
  color: #1B4332 !important;
}

#navbar.scrolled .nav-btn-light {
  display: inline-flex !important;
}

#navbar.scrolled .nav-btn-dark {
  display: none !important;
}

#navbar.scrolled .nav-menu-btn .nav-menu-line-1,
#navbar.scrolled .nav-menu-btn .nav-menu-line-2,
#navbar.scrolled .nav-menu-btn .nav-menu-line-3 {
  background: #1B4332;
}

/* Hero navbar (dark) */
#navbar .nav-link {
  color: rgba(255, 255, 255, 0.8);
}
#navbar .nav-link:hover {
  color: #fff;
}
#navbar .nav-btn-light { display: none; }
#navbar .nav-btn-dark { display: inline-flex; }

/* ─── Mobile Menu ───────────────────────────────────────────── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* ─── Menu Tabs ─────────────────────────────────────────────── */
.menu-tab {
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  border: none;
  font-family: 'Outfit', sans-serif;
}

.menu-tab:hover {
  color: rgba(255, 255, 255, 0.8);
}

.menu-tab.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ─── Smooth Scroll Offset ──────────────────────────────────── */
section[id] {
  scroll-margin-top: 80px;
}

/* ─── Selection Color ───────────────────────────────────────── */
::selection {
  background: rgba(27, 67, 50, 0.2);
  color: #1B4332;
}

/* ─── Focus Styles ──────────────────────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #1B4332;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Reduced Motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  img { transition: none !important; }
}
