/* CSS Custom Properties */
:root {
  /* Colors — aligned with ituranmobusa.com */
  --primary-color: #0c1c33; /* Navy escuro IturanMob */
  --primary-dark: #08111f;
  --secondary-color: #5dbfbd; /* Teal IturanMob */
  --accent-color: #5dbfbd; /* Teal destaque */
  --accent-dark: #3fa8a6;
  --text-primary: #0c1c33;
  --text-secondary: #555e6d;
  --text-light: #ffffff;
  --background: #ffffff;
  --background-light: #f4f6f8;
  --background-dark: #eef2f6;
  --border: #e0e0e0;
  --border-light: #ebebeb;

  /* Typography — Inter + Rubik (same as ituranmobusa.com) */
  --font-family-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-heading: "Inter", var(--font-family-base);
  --font-family-alt: "Rubik", var(--font-family-base);

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;

  /* Header background — dark navy like ituranmobusa.com */
  --header-bg: rgba(12, 28, 51, 0.97);
  --header-bg-scrolled: rgba(12, 28, 51, 1);

  /* Layout */
  --container-max-width: calc(100% - 4rem);
  --container-padding: 1rem;
  --header-height: 80px;

  /* Breakpoints (for JS) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;

  /* Borders & Radius */
  --border-radius-sm: 0.375rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

@media (max-width: 640px) {
  :root {
    /* < 640px */
    --container-max-width: calc(100% - 1rem);
    --container-padding: 0.5rem;
    --header-height: 40px;
  }
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f0f4f8;
    --text-secondary: #a8b4c0;
    --text-light: #9ca3af;
    --background: #0c1c33;
    --background-light: #122240;
    --background-dark: #1a2e4a;
    --border: #1e3a5c;
    --border-light: #243f60;
    --header-bg: rgba(8, 17, 31, 0.95);
    --header-bg-scrolled: rgba(8, 17, 31, 0.98);
  }
}
