/* ============================================
   BASE.CSS - Auto Lux Service
   Reset, CSS Variables, Typography, Utilities
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-white);
  background: var(--color-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-black: #0A0A0A;
  --color-dark: #1A1A1A;
  --color-gray: #2A2A2A;
  --color-light-gray: #8A8A8A;
  --color-white: #FFFFFF;
  --color-off-white: #F5F5F5;
  --color-red: #E31E24;
  --color-red-hover: #C41A1F;
  --color-red-light: rgba(227, 30, 36, 0.1);
  --color-red-glow: rgba(227, 30, 36, 0.12);
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1DA851;
  --color-stars: #F59E0B;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(227, 30, 36, 0.3);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sizes */
  --container-max: 1200px;
  --header-height: 72px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 100px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

p {
  color: var(--color-light-gray);
  line-height: 1.6;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section--dark {
  background: var(--color-black);
}

.section--alt {
  background: var(--color-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header p {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 1.0625rem;
}

.text-center { text-align: center; }
.text-red { color: var(--color-red); }

/* --- Badge --- */
.badge {
  display: inline-block;
  background: var(--color-red-light);
  color: var(--color-red);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

/* --- Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.delay-6 { transition-delay: 0.6s; }

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-red);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

/* --- Focus States (Accessibility) --- */
:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

/* --- Selection --- */
::selection {
  background: var(--color-red);
  color: var(--color-white);
}
