/* ============================================
   BIZ RENT CAR - DESIGN SYSTEM CSS
   Versao: 1.0 | Fevereiro 2026
   Conceito: Orlando Premium
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (VARIAVEIS)
   ============================================ */
:root {
  /* ----------------------------------------
     CORES PRIMARIAS
     ---------------------------------------- */
  --midnight-navy: #1B2D4F;
  --midnight-navy-rgb: 27, 45, 79;

  --champagne-gold: #C8A96E;
  --champagne-gold-rgb: 200, 169, 110;
  --champagne-gold-hover: #B8994E;

  --sky-blue: #5BA4D9;
  --sky-blue-rgb: 91, 164, 217;
  --sky-blue-hover: #4B94C9;

  /* ----------------------------------------
     ACCENT "FUN" (toque Disney sutil)
     ---------------------------------------- */
  --sunset-coral: #E8734A;
  --sunset-coral-rgb: 232, 115, 74;
  --sunset-coral-hover: #D8633A;
  --sunset-coral-light: #FFF0EB;

  /* ----------------------------------------
     CORES NEUTRAS
     ---------------------------------------- */
  --cloud-white: #FAFBFC;
  --cloud-white-rgb: 250, 251, 252;

  --pearl-gray: #F0F1F3;
  --pearl-gray-rgb: 240, 241, 243;

  --slate: #64748B;
  --slate-rgb: 100, 116, 139;

  --charcoal: #334155;
  --charcoal-rgb: 51, 65, 85;

  --white: #FFFFFF;
  --border-light: #E2E8F0;

  /* ----------------------------------------
     CORES DE FEEDBACK
     ---------------------------------------- */
  --success: #059669;
  --success-light: #D1FAE5;

  --warning: #D97706;
  --warning-light: #FEF3C7;

  --error: #DC2626;
  --error-light: #FEE2E2;

  /* ----------------------------------------
     WHATSAPP
     ---------------------------------------- */
  --whatsapp-green: #25D366;
  --whatsapp-green-hover: #20BD5A;

  /* ----------------------------------------
     GRADIENTES
     ---------------------------------------- */
  --gradient-champagne: linear-gradient(135deg, #C8A96E 0%, #DBBF8A 50%, #C8A96E 100%);
  --gradient-midnight: linear-gradient(180deg, #1B2D4F 0%, #2B3D5F 100%);
  --gradient-sunset: linear-gradient(180deg, rgba(200, 169, 110, 0.1) 0%, rgba(250, 251, 252, 1) 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(27, 45, 79, 0.3) 0%, rgba(27, 45, 79, 0.7) 100%);

  /* ----------------------------------------
     TIPOGRAFIA - FAMILIAS
     ---------------------------------------- */
  --font-display: 'Plus Jakarta Sans', sans-serif;  /* H1, H2, Display */
  --font-heading: 'DM Sans', sans-serif;            /* H3, H4, menus, botoes */
  --font-body: 'Source Sans 3', sans-serif;         /* Corpo de texto */

  /* ----------------------------------------
     TIPOGRAFIA - ESCALA DESKTOP
     ---------------------------------------- */
  --text-display: 4.5rem;      /* 72px */
  --line-display: 1.1;
  --weight-display: 700;

  --text-h1: 3rem;             /* 48px */
  --line-h1: 1.2;
  --weight-h1: 700;

  --text-h2: 2.25rem;          /* 36px */
  --line-h2: 1.3;
  --weight-h2: 700;

  --text-h3: 1.5rem;           /* 24px */
  --line-h3: 1.4;
  --weight-h3: 600;

  --text-h4: 1.25rem;          /* 20px */
  --line-h4: 1.4;
  --weight-h4: 600;

  --text-lg: 1.125rem;         /* 18px - alias */
  --text-body-lg: 1.125rem;    /* 18px */
  --line-body-lg: 1.6;
  --line-heading: 1.3;

  --text-base: 1rem;           /* 16px - alias */
  --text-body: 1rem;           /* 16px */
  --line-body: 1.7;

  --text-body-sm: 0.875rem;    /* 14px */
  --line-body-sm: 1.6;

  --text-caption: 0.75rem;     /* 12px */
  --line-caption: 1.5;

  --text-button: 1rem;
  --weight-button: 600;
  --tracking-button: 0.025em;

  --text-overline: 0.75rem;
  --weight-overline: 600;
  --tracking-overline: 0.1em;

  /* ----------------------------------------
     ESPACAMENTOS - ESCALA 8px
     ---------------------------------------- */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* ----------------------------------------
     LAYOUT
     ---------------------------------------- */
  --container-max: 1280px;
  --container-padding: var(--space-6);

  /* ----------------------------------------
     BORDER RADIUS
     ---------------------------------------- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ----------------------------------------
     SHADOWS
     ---------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(27, 45, 79, 0.05);
  --shadow-md: 0 4px 12px rgba(27, 45, 79, 0.08);
  --shadow-lg: 0 10px 30px rgba(27, 45, 79, 0.12);
  --shadow-xl: 0 20px 40px rgba(27, 45, 79, 0.15);
  --shadow-card-hover: 0 20px 40px rgba(27, 45, 79, 0.12);
  --shadow-button: 0 4px 14px rgba(200, 169, 110, 0.4);

  /* ----------------------------------------
     TRANSITIONS
     ---------------------------------------- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* ----------------------------------------
     Z-INDEX
     ---------------------------------------- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
  --z-whatsapp: 700;
}

/* ============================================
   ESCALA MOBILE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --text-display: 3rem;
    --text-h1: 2.25rem;
    --text-h2: 1.75rem;
    --text-h3: 1.25rem;
    --text-h4: 1.125rem;
    --text-body-lg: 1rem;
    --container-padding: var(--space-4);
  }
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--line-body);
  color: var(--charcoal);
  background-color: var(--cloud-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a {
  color: var(--sky-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--midnight-navy); }
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
h1, h2, .h1, .h2 {
  font-family: var(--font-display);
  color: var(--midnight-navy);
  margin-bottom: var(--space-4);
}

h3, h4, h5, h6, .h3, .h4 {
  font-family: var(--font-heading);
  color: var(--midnight-navy);
  margin-bottom: var(--space-3);
}

h1, .h1 { font-size: var(--text-h1); line-height: var(--line-h1); font-weight: var(--weight-h1); }
h2, .h2 { font-size: var(--text-h2); line-height: var(--line-h2); font-weight: var(--weight-h2); }
h3, .h3 { font-size: var(--text-h3); line-height: var(--line-h3); font-weight: var(--weight-h3); }
h4, .h4 { font-size: var(--text-h4); line-height: var(--line-h4); font-weight: var(--weight-h4); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

.text-display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: var(--line-display);
  font-weight: var(--weight-display);
}
.text-body-lg { font-size: var(--text-body-lg); line-height: var(--line-body-lg); }
.text-body-sm { font-size: var(--text-body-sm); line-height: var(--line-body-sm); }
.text-caption { font-family: var(--font-heading); font-size: var(--text-caption); }
.text-overline {
  font-family: var(--font-heading);
  font-size: var(--text-overline);
  font-weight: var(--weight-overline);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--slate);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.container-narrow { max-width: 900px; }
.container-wide { max-width: 1440px; }

.section { padding: var(--space-16) 0; }
.section-sm { padding: var(--space-12) 0; }
.section-lg { padding: var(--space-24) 0; }

@media (max-width: 768px) {
  .section { padding: var(--space-12) 0; }
  .section-sm { padding: var(--space-8) 0; }
  .section-lg { padding: var(--space-16) 0; }
}

/* ============================================
   GRID & FLEX
   ============================================ */
.grid { display: grid; gap: var(--space-6); }
.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-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid { gap: var(--space-4); }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ============================================
   UTILITIES
   ============================================ */
.text-white { color: var(--white); }
.text-muted { color: var(--slate); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-tooltip);
  padding: var(--space-3) var(--space-4);
  background: var(--midnight-navy);
  color: var(--white);
  border-radius: var(--radius-md);
}
.skip-link:focus { top: var(--space-4); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--sky-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
