/* ============================================
   BASE.CSS — Reset, Variables, Typography
   Gianni's Pizza — EazyWebNC
   ============================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

html.lenis, html.lenis body {
  height: auto;
}

/* CSS Variables */
:root {
  /* Couleurs */
  --color-bg: #0a0a0f;
  --color-bg-alt: #111114;
  --color-text: #f5f0e8;
  --color-text-muted: #a09a8f;
  --color-accent: #C41E24;
  --color-accent-hover: #d93a3f;
  --color-green: #2D7A3A;
  --color-cream: #FFF5E1;
  --color-brown: #4A2C1A;
  --color-gold: #F5B731;
  --color-dark: #1A1A1A;

  /* Typography — Fluid */
  --font-hero: clamp(3rem, 1.5rem + 6vw, 8rem);
  --font-section: clamp(2rem, 0.8rem + 4vw, 5rem);
  --font-sub: clamp(1.25rem, 0.8rem + 1.5vw, 2rem);
  --font-body: clamp(0.95rem, 0.85rem + 0.3vw, 1.125rem);
  --font-small: clamp(0.8rem, 0.75rem + 0.2vw, 0.9rem);
  --font-nav: clamp(0.8rem, 0.7rem + 0.3vw, 0.95rem);

  /* Font Families */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing — Fluid */
  --space-xs: clamp(0.5rem, 0.3rem + 0.5vw, 1rem);
  --space-s: clamp(1rem, 0.5rem + 1vw, 1.5rem);
  --space-m: clamp(1.5rem, 1rem + 2vw, 3rem);
  --space-l: clamp(4rem, 2rem + 5vw, 8rem);
  --space-xl: clamp(6rem, 3rem + 8vw, 12rem);

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  /* Layout */
  --container-max: 1400px;
  --container-padding: clamp(1.5rem, 1rem + 2vw, 4rem);

  /* Cursor */
  --cursor-size: 20px;
}

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

/* Base */
body {
  font-family: var(--font-sans);
  font-size: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  cursor: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--font-hero); }
h2 { font-size: var(--font-section); }
h3 { font-size: var(--font-sub); }

p {
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--color-text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease-out-expo);
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-sans);
  cursor: none;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: var(--font-sans);
}

/* Selection */
::selection {
  background: var(--color-accent);
  color: var(--color-cream);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

/* 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;
  }
}
