/*
  Trip's Mídia
  Tokens globais alinhados ao Trip's Nômade.
  O azul #52658C é a cor dominante da marca (mapa, título e anéis).
*/

:root {
  --color-brand: #52658c;
  --color-brand-deep: #3c4e70;
  --color-brand-ink: #2a3850;
  --color-brand-soft: #e7ecf3;
  --color-brand-mist: #c5d0e2;

  --color-bg: #f7f8fb;
  --color-bg-alt: #eef1f6;
  --color-surface: #ffffff;
  --color-ink: #2a3850;
  --color-ink-soft: #5e6c82;
  --color-line: #e2e6ee;
  --color-accent: var(--color-brand);
  --color-accent-deep: var(--color-brand-deep);
  --color-on-accent: #ffffff;
  --color-hero: var(--color-brand-ink);
  --color-hero-text: #f7f8fb;
  --color-hero-muted: rgba(247, 248, 251, 0.78);
  --color-hero-faint: rgba(247, 248, 251, 0.58);
  --color-header: rgba(255, 255, 255, 0.92);
  --color-focus: var(--color-brand);

  --font-display: "Source Sans 3", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6.5rem;

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.35rem;
  --radius-pill: 999px;

  --shadow-card: 0 16px 36px rgba(42, 56, 80, 0.08);
  --shadow-card-hover: 0 22px 44px rgba(42, 56, 80, 0.14);
  --container: 1120px;
  --header-height: 4.5rem;
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.15;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--color-brand-soft);
  color: var(--color-ink);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 20;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink);
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin-inline: auto;
}

.section {
  padding: var(--space-3xl) 0;
  scroll-margin-top: var(--header-height);
}

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

/* Uma coluna no mobile; duas e três a partir dos breakpoints. */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.empty-state {
  color: var(--color-ink-soft);
}

@media (min-width: 40rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
