/* =====================================================
   TRANSFRIO UNIVERSAL — MAIN STYLES
   Tokens, typography, base layout
   ===================================================== */

/* --- Design Tokens (from DESIGN.md) --- */
:root {
  /* Primary */
  --primary: #002f19;
  --primary-container: #05472a;
  --on-primary: #ffffff;
  --on-primary-container: #7ab590;
  --primary-fixed: #b3f0c7;
  --primary-fixed-dim: #97d4ad;
  --inverse-primary: #97d4ad;

  /* Secondary */
  --secondary: #006a62;
  --secondary-container: #5ef6e6;
  --on-secondary: #ffffff;
  --on-secondary-container: #006f66;
  --on-secondary-fixed-variant: #005049;
  --secondary-fixed: #61f9e9;
  --secondary-fixed-dim: #3adccc;

  /* Tertiary */
  --tertiary: #192936;
  --tertiary-container: #2f3f4d;

  /* Surface hierarchy */
  --surface: #f8f9fa;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f3f4f5;
  --surface-container: #edeeef;
  --surface-container-high: #e7e8e9;
  --surface-container-highest: #e1e3e4;
  --surface-dim: #d9dadb;
  --surface-bright: #f8f9fa;
  --surface-variant: #e1e3e4;

  /* On-surface */
  --on-surface: #191c1d;
  --on-surface-variant: #404942;
  --on-background: #191c1d;
  --background: #f8f9fa;

  /* Outline */
  --outline: #707972;
  --outline-variant: #c0c9c0;

  /* Error */
  --error: #ba1a1a;
  --error-container: #ffdad6;

  /* Inverse */
  --inverse-surface: #2e3132;
  --inverse-on-surface: #f0f1f2;

  /* Functional */
  --surface-tint: #306949;
  --glass-bg: rgba(255, 255, 255, 0.70);
  --glass-blur: 12px;
  --ambient-shadow: 0 20px 40px rgba(25, 28, 29, 0.06);
  --ghost-border: rgba(192, 201, 192, 0.15);
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--on-surface);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --- Global focus indicators (WCAG 2.4.7) --- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Remove outline for mouse users only */
:focus:not(:focus-visible) {
  outline: none;
}

/* --- Glassmorphism nav --- */
.glass-nav {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* --- Section spacing --- */
.section-padding {
  padding-top: 3rem;
  padding-bottom: 3rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* --- Hide scrollbar utility --- */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Mobile bottom nav safe area --- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .pb-safe {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }
}

/* Nav drawer animation — see components.css for all .nav-drawer rules */
