/* ============================================================
   Think! Design & Planning — Shared Design System
   Complements Tailwind CDN with brand tokens + animations
   ============================================================ */

/* --- Brand Tokens --- */
:root {
  --ink: #0b0b0c;
  --paper: #ffffff;
  --muted: #6b7280;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --cyan-400: #22d3ee;
  --ava-blue: #004684;
  --ava-gold: #FDB927;
  --ava-green: #22c55e;
}

/* --- Base --- */
body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Scroll-triggered fade-in --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.fade-in-section:nth-child(2) { transition-delay: 0.08s; }
.fade-in-section:nth-child(3) { transition-delay: 0.16s; }
.fade-in-section:nth-child(4) { transition-delay: 0.24s; }

/* --- Subtle glow backgrounds --- */
.glow-blue {
  background: radial-gradient(ellipse 60% 50% at 50% -10%, rgba(0,70,132,0.18) 0%, transparent 70%);
}
.glow-emerald {
  background: radial-gradient(ellipse 60% 50% at 50% -10%, rgba(4,120,87,0.12) 0%, transparent 70%);
}
.glow-indigo {
  background: radial-gradient(ellipse 60% 50% at 50% -10%, rgba(129,140,248,0.14) 0%, transparent 70%);
}

/* --- AVA Platform shimmer accent --- */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.ava-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(253,185,39,0.15) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* --- AVA pulse ring (used on AVA page) --- */
@keyframes avaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,70,132,0.25); }
  50%      { box-shadow: 0 0 0 16px rgba(0,70,132,0); }
}
.ava-pulse {
  animation: avaPulse 2.4s ease-in-out infinite;
}

/* --- Mobile Nav Overlay --- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  z-index: 101;
  background: #0b0b0c;
  border-left: 1px solid rgba(255,255,255,0.1);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
}
.mobile-nav-panel.open {
  transform: translateX(0);
}
.mobile-nav-panel a {
  display: block;
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: background 0.2s;
}
.mobile-nav-panel a:hover,
.mobile-nav-panel a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.mobile-nav-panel .close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Hamburger button */
.hamburger-btn {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.75rem;
  padding: 0.5rem;
  cursor: pointer;
  color: white;
  transition: border-color 0.2s, background 0.2s;
}
.hamburger-btn:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

/* Light-mode hamburger (conservation page) */
.hamburger-btn-light {
  color: #1e293b;
  border-color: rgba(0,0,0,0.15);
}
.hamburger-btn-light:hover {
  border-color: rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.04);
}

@media (max-width: 767px) {
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* --- Card hover lift --- */
.card-lift {
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* --- Portfolio image zoom --- */
.portfolio-zoom img {
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.portfolio-zoom:hover img {
  transform: scale(1.03);
}

/* --- Active nav pill (for light-mode pages) --- */
.nav-pill-active-light {
  background: #064e3b;
  color: #fff !important;
}

/* --- Smooth scroll target offset for fixed nav --- */
[id] {
  scroll-margin-top: 7rem;
}
