/* =============================================================
   MAIN.CSS — Marthicali Transportes
   Variáveis de design + reset moderno + tipografia base
   ============================================================= */

:root {
  /* Paleta (briefing §2.1) */
  --navy-deep: #0A2647;
  --navy-medium: #144272;
  --blue-accent: #2C74B3;
  --blue-light: #5DADE2;
  --white: #FFFFFF;
  --gray-bg: #F5F7FA;
  --gray-border: #E2E8F0;
  --gray-text: #4A5568;
  --gray-muted: #718096;
  --success: #10B981;
  --error: #E53E3E;

  /* Tipografia */
  --font-heading: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-xs: 0.75rem;      /* 12px */
  --fs-sm: 0.875rem;     /* 14px */
  --fs-base: 1rem;       /* 16px */
  --fs-md: 1.125rem;     /* 18px */
  --fs-lg: 1.25rem;      /* 20px */
  --fs-xl: 1.5rem;       /* 24px */
  --fs-2xl: 2rem;        /* 32px */
  --fs-3xl: 2.5rem;      /* 40px */
  --fs-4xl: 3rem;        /* 48px */

  /* Espaçamento */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Raio e sombra */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(10, 38, 71, 0.08);
  --shadow-md: 0 4px 12px rgba(10, 38, 71, 0.12);
  --shadow-lg: 0 12px 32px rgba(10, 38, 71, 0.18);

  /* Transições */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Layout */
  --container-max: 1200px;
  --container-padding: 1.25rem;
  --header-height: 88px;
}

@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
    --fs-3xl: 3rem;
    --fs-4xl: 3.75rem;
  }
}

/* =============================================================
   RESET
   ============================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--gray-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-deep);
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p { margin: 0 0 var(--space-sm); }

a {
  color: var(--blue-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover, a:focus-visible { color: var(--navy-medium); }
a:focus-visible { outline: 2px solid var(--blue-accent); outline-offset: 2px; border-radius: 2px; }

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
button { cursor: pointer; border: none; background: none; padding: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

strong, b { font-weight: 600; }

::selection { background: var(--blue-light); color: var(--navy-deep); }

/* =============================================================
   UTILITÁRIOS
   ============================================================= */

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

.section {
  padding: var(--space-2xl) 0;
}
@media (min-width: 768px) {
  .section { padding: var(--space-3xl) 0; }
}

.section--dark {
  background: var(--navy-deep);
  color: var(--white);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }

.section--muted { background: var(--gray-bg); }

.section__header { text-align: center; max-width: 720px; margin: 0 auto var(--space-xl); }
.section__eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-accent);
  margin-bottom: var(--space-xs);
}

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

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