/* ============================================
   LOCAMAR LOCAÇÕES - DESIGN SYSTEM
   Sistema de Design Completo
   ============================================ */

/* ============================================
   1. FONTS IMPORT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700&display=swap');

/* ============================================
   2. CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */
:root {
  /* Brand Colors */
  --color-primary: #486E35;
  --color-primary-hover: #3F612E;
  --color-primary-dark: #35521F;

  --color-secondary: #FCCD2B;
  --color-secondary-hover: #E6B925;

  --color-accent: #FD5F04;
  --color-accent-hover: #E35504;

  --color-whatsapp: #57D163;
  --color-whatsapp-hover: #4AB856;

  /* Semantic Colors */
  --color-success: #486E35;
  --color-success-bg: rgba(72, 110, 53, 0.16);

  --color-error: #FD5F04;
  --color-error-bg: rgba(253, 95, 4, 0.16);

  /* Background Colors */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F9F9F9;
  --color-bg-dark: #1A1A1A;

  /* Text Colors */
  --color-text-primary: #1A1A1A;
  --color-text-secondary: rgba(26, 26, 26, 0.6);
  --color-text-muted: rgba(26, 26, 26, 0.4);
  --color-text-white: #FFFFFF;

  /* Border Colors */
  --color-border-subtle: rgba(26, 26, 26, 0.1);
  --color-border-medium: rgba(26, 26, 26, 0.2);

  /* Typography */
  --font-family: 'Exo 2', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */

  /* Font Weights */
  --font-normal: 400;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-loose: 1.75;

  /* Spacing */
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  --spacing-3xl: 4rem;     /* 64px */
  --spacing-4xl: 6rem;     /* 96px */

  /* Border Radius */
  --radius-sm: 0.5rem;     /* 8px */
  --radius-md: 0.625rem;   /* 10px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-header: 0 2px 16px rgba(0, 0, 0, 0.08);
  --shadow-button: 0 4px 12px rgba(72, 110, 53, 0.2);
  --shadow-whatsapp: 0 4px 12px rgba(87, 209, 99, 0.3);

  /* Transitions */
  --transition-fast: all 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Container */
  --container-max-width: 1152px;
  --container-padding: 1rem;

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 100;
  --z-fixed: 200;
  --z-modal: 300;
  --z-popover: 400;
  --z-tooltip: 500;
}

/* ============================================
   3. RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  min-height: 100vh;
}

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

input, button, textarea, select {
  font: inherit;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* ============================================
   4. TYPOGRAPHY SYSTEM
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-3xl);
  color: var(--color-primary);
}

h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

h5 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

h6 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
}

p {
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-white {
  color: var(--color-text-white);
}

/* Typography Utilities */
.text-center {
  text-align: center;
}

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

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

.font-semibold {
  font-weight: var(--font-semibold);
}

.font-bold {
  font-weight: var(--font-bold);
}

/* Title Decoration */
.title-underline {
  position: relative;
  padding-bottom: 1rem;
}

.title-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: var(--radius-sm);
}

.title-underline.center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================
   5. LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
}

.section-lg {
  padding-top: var(--spacing-4xl);
  padding-bottom: var(--spacing-4xl);
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: var(--spacing-md);
}

.gap-6 {
  gap: var(--spacing-lg);
}

.gap-8 {
  gap: var(--spacing-xl);
}

/* Grid Utilities */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ============================================
   6. SPACING UTILITIES
   ============================================ */
.m-0 { margin: 0; }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-4 { margin-top: var(--spacing-md); }
.mt-6 { margin-top: var(--spacing-lg); }
.mt-8 { margin-top: var(--spacing-xl); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-4 { margin-bottom: var(--spacing-md); }
.mb-6 { margin-bottom: var(--spacing-lg); }
.mb-8 { margin-bottom: var(--spacing-xl); }
.mb-12 { margin-bottom: var(--spacing-2xl); }

.p-4 { padding: var(--spacing-md); }
.p-6 { padding: var(--spacing-lg); }
.p-8 { padding: var(--spacing-xl); }

.py-4 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-6 { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-8 { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

.px-4 { padding-left: var(--spacing-md); padding-right: var(--spacing-md); }
.px-6 { padding-left: var(--spacing-lg); padding-right: var(--spacing-lg); }

/* ============================================
   7. BACKGROUND & OVERLAY UTILITIES
   ============================================ */
.bg-primary {
  background-color: var(--color-primary);
}

.bg-secondary {
  background-color: var(--color-secondary);
}

.bg-accent {
  background-color: var(--color-accent);
}

.bg-white {
  background-color: var(--color-bg);
}

.bg-gray {
  background-color: var(--color-bg-alt);
}

/* Gradient Overlays */
.gradient-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.gradient-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

/* ============================================
   8. BORDER UTILITIES
   ============================================ */
.rounded {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-full {
  border-radius: var(--radius-full);
}

.border {
  border: 1px solid var(--color-border-subtle);
}

.border-medium {
  border: 1px solid var(--color-border-medium);
}

/* ============================================
   9. SHADOW UTILITIES
   ============================================ */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-xl {
  box-shadow: var(--shadow-xl);
}

/* ============================================
   10. VISIBILITY & DISPLAY
   ============================================ */
.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

/* ============================================
   11. POSITION UTILITIES
   ============================================ */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

/* ============================================
   12. ANIMATION UTILITIES
   ============================================ */
.transition {
  transition: var(--transition-base);
}

.transition-fast {
  transition: var(--transition-fast);
}

.transition-slow {
  transition: var(--transition-slow);
}

/* Hover Effects */
.hover-lift {
  transition: var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ============================================
   13. ACCESSIBILITY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Styles */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================
   14. RESPONSIVE BREAKPOINTS
   ============================================ */
/* Mobile: Default (320px - 767px) */
/* Tablet: 768px - 1023px */
/* Desktop: 1024px+ */

@media (min-width: 768px) {
  h1 {
    font-size: var(--text-5xl);
  }

  h2 {
    font-size: var(--text-4xl);
  }

  :root {
    --container-padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-6xl);
  }

  :root {
    --container-padding: 2rem;
  }
}
