/* ==============================================
   ZoneWise — Shared Stylesheet
   Tokens · Reset · Utility · Nav · Footer · Animations · Responsive
   ============================================== */

/* ------------------------------------------
   DESIGN TOKENS
   ------------------------------------------ */
:root {
  --bg-deep: #0b1219;
  --bg-primary: #0f1923;
  --bg-card: #162636;
  --bg-card-hover: #1c3046;
  --bg-surface: #1a2e42;
  --bg-warm: #1e1510;

  --amber: #e8a838;
  --amber-glow: #f0b848;
  --amber-dark: #c48820;
  --orange: #e8753a;
  --red-warm: #e85d3a;
  --blue-cool: #4a9eda;
  --blue-dim: #3a6a90;
  --green: #4ecf8b;
  --green-dim: #2a8a58;

  --text-primary: #e8edf2;
  --text-secondary: #9ab4cc;
  --text-dim: #6a8aa8;
  --text-warm: #d4b896;

  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --max-width: 1200px;
  --section-pad: clamp(4rem, 10vh, 8rem);
}

/* ------------------------------------------
   RESET & BASE
   ------------------------------------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-card) var(--bg-deep);
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ------------------------------------------
   UTILITY
   ------------------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Section label */
.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--amber);
  border-radius: 1px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
}

/* ------------------------------------------
   NAVIGATION
   ------------------------------------------ */
html, body { max-width: 100%; overflow-x: hidden; }
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: all 0.4s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(11, 18, 25, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  background: var(--amber);
  color: var(--bg-deep) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--amber-glow) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232,168,56,0.3);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}


/* ------------------------------------------
   FOOTER
   ------------------------------------------ */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo .logo-icon {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--text-primary); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-location {
  font-size: 0.82rem;
  color: var(--text-dim);
}


/* ------------------------------------------
   ANIMATIONS
   ------------------------------------------ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ------------------------------------------
   RESPONSIVE
   ------------------------------------------ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }

  .problem-grid { grid-template-columns: 1fr; }
  .problem-visual { order: -1; }

  .results-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .process-timeline { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .process-timeline::before { display: none; }

  .animation-wrapper { flex-direction: column; align-items: center; }
  .anim-house-wrap { max-width: 480px; }
  .anim-panel { min-width: 0; width: 100%; max-width: 480px; }

  .nav-links { display: none; }
  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 18, 25, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav-links.show li { padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-links.show .nav-cta { margin-top: 0.5rem; display: inline-block; }
  .nav-mobile-toggle { display: block; }
}

@media (max-width: 600px) {
  .process-timeline { grid-template-columns: 1fr; }
  .cs-results { gap: 1.5rem; }
  .cta-details { flex-direction: column; gap: 0.8rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

.nav-links a.active { color: var(--text-primary); border-bottom: 2px solid var(--accent-primary); padding-bottom: 2px; }
</style>