/* AutoRent.ma Design System - Core Tokens & Base */

:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #6366F1;
  --secondary: #10B981;
  --secondary-dark: #059669;
  --accent: #F59E0B;
  --dark: #0F172A;
  --text: #1E293B;
  --muted: #64748B;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --whatsapp: #25D366;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px rgba(79,70,229,0.3);

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --container: 1280px;
  --section-py: 96px;
  --section-py-mobile: 64px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--dark); margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: 56px; }
h2 { font-size: 40px; }
h3 { font-size: 28px; font-weight: 600; }
h4 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text); }

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

section { padding: var(--section-py) 0; }
@media (max-width: 768px) { section { padding: var(--section-py-mobile) 0; } }

.muted { color: var(--muted); }
.eyebrow { display: inline-block; padding: 6px 14px; background: rgba(79,70,229,0.1); color: var(--primary); border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }

.text-gradient { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); color: var(--white); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }
.bg-dark p { color: rgba(255,255,255,0.85); }

.section-title { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-title h2 { margin-bottom: 16px; }
.section-title p { font-size: 18px; color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }

.text-center { text-align: center; }

.hero-gradient {
  background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 50%, #ECFDF5 100%);
  position: relative; overflow: hidden;
}
.hero-gradient::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-gradient::after {
  content: ''; position: absolute; bottom: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-gradient > * { position: relative; z-index: 1; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; padding: 8px 16px; background: var(--primary); color: white; z-index: 1000; border-radius: 8px; }

::selection { background: var(--primary); color: white; }

.fade-in { opacity: 0; transform: translateY(20px); transition: all .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.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; }
