/* ═══════════════════════════════════════════════════
   CIRCO DESIGN SYSTEM TOKENS & GLOBAL STYLES
   ═══════════════════════════════════════════════════ */
:root {
  /* Typography Scale */
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-hero: clamp(48px, 6vw, 76px);
  --font-size-h1: clamp(36px, 4.5vw, 52px);
  --font-size-h2: clamp(28px, 3.5vw, 40px);
  --font-size-h3: clamp(20px, 2.5vw, 26px);
  --font-size-lead: clamp(18px, 2vw, 22px);
  --font-size-body: 17px;
  --font-size-caption: 14px;
  --font-size-button: 15px;

  /* Color Palette */
  --color-ink: #0f172a;
  --color-ink-light: #1e293b;
  --color-muted: #475569;
  --color-subtle: #64748b;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-hover: #f1f5f9;
  --color-border: rgba(15, 23, 42, 0.08);
  --color-border-hover: rgba(15, 23, 42, 0.16);

  /* Accent Gradients (Signature Pink/Ruby) */
  --color-accent-start: #8A2387;
  --color-accent-mid: #E94057;
  --color-accent-end: #F27121;
  --gradient-accent: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-mid), var(--color-accent-end));

  /* Container & Spacing Tokens */
  --container-width: 1140px;
  --section-spacing: 90px;
  --content-gap: 32px;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows & Glass */
  --shadow-subtle: 0 10px 25px -5px rgba(15, 23, 42, 0.04);
  --shadow-elevated: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --blur-amount: 20px;
}

/* Dark Mode Token Overrides for Auth View */
body.dark-mode {
  --color-bg: #090d16;
  --color-surface: #141824;
  --color-ink: #ffffff;
  --color-muted: #94a3b8;
  --color-subtle: #64748b;
  --color-border: rgba(255, 255, 255, 0.1);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Container Utility */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Base Classes */
h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: 700;
  line-height: 1.3;
}

p.lead {
  font-size: var(--font-size-lead);
  color: var(--color-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   NAVIGATION BAR
   ═══════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: padding 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  padding: 12px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 700;
  font-size: 20px;
  transition: transform 0.15s ease;
}

.brand-link:hover {
  transform: scale(1.02);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Primary Button Component */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  color: #ffffff;
  font-size: var(--font-size-button);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(233, 64, 87, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px; /* Accessible touch target */
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233, 64, 87, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: var(--font-size-button);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  min-height: 44px;
}

.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-ink);
  min-height: 44px;
  min-width: 44px;
}

/* ═══════════════════════════════════════════════════
   FOOTER COMPONENT
   ═══════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 70px 0 40px 0;
  margin-top: var(--section-spacing);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand p {
  color: var(--color-subtle);
  font-size: 14.5px;
  max-width: 320px;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 14.5px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--color-ink);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--color-subtle);
}

/* Mobile Responsiveness */
@media (max-width: 868px) {
  .nav-links {
    display: none; /* Handled via mobile drawer in navigation.js */
  }
  .mobile-nav-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
}
