/* ============================================================
   Atlas Car Rental — Landing page styles
   Ported from the Claude Design prototype (React/JSX) to plain
   CSS + Alpine.js. Mobile-first. Colors/spacing/typography come
   from the design tokens in styles.css (CSS variables) — NEVER
   hardcode brand colors here.
   ============================================================ */

/* ---------- Page scaffolding ---------- */
.atlas-body {
  margin: 0;
  background: var(--color-bg);
  color: var(--text-body);
}
/* Reserve room for the mobile sticky reserve bar (76px) so the footer /
   chat launcher never hide behind it — but ONLY on pages that actually
   render the bar (landing). This file loads on every page, so an
   unconditional padding left a blank 76px strip at the bottom of
   fleet/checkout/checkin/etc. :has() supported iOS Safari 15.4+/Chrome 105+. */
body:has(.atlas-reservebar) { padding-bottom: 76px; }
@media (min-width: 961px) {
  body:has(.atlas-reservebar) { padding-bottom: 0; }
}

.atlas-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.atlas-section { padding-block: var(--section-y); }
.atlas-section--subtle { background: var(--color-bg-subtle); }

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

/* Decorative racing top stripe (brand / gold / racing-blue) */
.atlas-topstripe {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand) 0 33%, var(--gold) 33% 66%, var(--racing-500) 66%);
}

/* Speed-line texture overlay */
.atlas-speedlines {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 26px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
          mask-image: linear-gradient(90deg, transparent, #000 40%);
}

/* Section eyebrow (mono overline) */
.atlas-eyebrow {
  font-family: var(--eyebrow-font);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--brand);
}
.atlas-eyebrow--navy { color: var(--racing-navy); }
.atlas-eyebrow--gold { color: var(--gold); }

/* Italic uppercase motorsport headings */
.atlas-h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-extra);
  font-size: clamp(28px, 7vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-transform: uppercase;
  margin-top: 14px;
}

/* ============================================================
   Buttons (Button primitive → CSS)
   ============================================================ */
.atlas-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.atlas-btn:active { transform: scale(0.97); }
.atlas-btn[disabled], .atlas-btn.is-disabled { opacity: 0.5; cursor: not-allowed; }
.atlas-btn--block { display: flex; width: 100%; }

.atlas-btn--sm { height: 38px; padding: 0 16px; font-size: 13px; gap: 7px; border-radius: var(--radius-sm); }
.atlas-btn--md { height: 46px; padding: 0 22px; font-size: 15px; gap: 8px; }
.atlas-btn--lg { height: 56px; padding: 0 30px; font-size: 16px; gap: 10px; }

.atlas-btn--primary { background: var(--brand); color: var(--brand-fg); box-shadow: var(--shadow-brand); }
.atlas-btn--primary:hover { background: var(--brand-hover); }
.atlas-btn--secondary { background: var(--surface-card); color: var(--text-strong); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.atlas-btn--secondary:hover { background: var(--gray-50); }
.atlas-btn--inverse { background: #fff; color: var(--gray-950); box-shadow: var(--shadow-md); }
.atlas-btn--inverse:hover { background: var(--gray-50); }
.atlas-btn i, .atlas-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.atlas-btn--sm i, .atlas-btn--sm svg { width: 16px; height: 16px; }

/* ============================================================
   Logo lockup (text wordmark — emblem JPGs are white-on-white,
   so on dark surfaces we use the stylized type, as the design intends)
   ============================================================ */
.atlas-logo { display: inline-flex; align-items: center; gap: 12px; }
.atlas-logo__emblem {
  display: block; flex: 0 0 auto;
  width: 46px; height: 46px; object-fit: contain;  /* size 'md' do componente Logo (design system) */
  /* emblema é a arte reverse (branco/vermelho, fundo transparente) p/ o header navy —
     SEM background/padding: um fundo branco aqui reapareceria como caixa branca atrás do símbolo */
}
.atlas-logo__text { display: flex; flex-direction: column; line-height: 1; }
.atlas-logo__word {
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: 26px;
  letter-spacing: 0.04em;
}
.atlas-logo__sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 5px;
  font-weight: var(--fw-medium);
}
.atlas-logo--inverse .atlas-logo__word { color: #fff; }
/* design system (Logo.reference.jsx, tone='inverse'): subtítulo é branco translúcido, NÃO gold.
   gold no header é só o ícone de telefone, eyebrows e a racing-stripe. */
.atlas-logo--inverse .atlas-logo__sub  { color: rgba(255,255,255,0.7); }
.atlas-logo--ink .atlas-logo__word { color: var(--text-strong); }
.atlas-logo--ink .atlas-logo__sub  { color: var(--racing-navy); }

/* Header lockup espelha o componente Logo (parts.jsx:52): size 'md' no desktop, 'sm' < 860px.
   Os valores base de .atlas-logo* já são o 'md' (emblema 46, word 26, sub 9.5, gap 12). */
@media (max-width: 859px) {
  .atlas-logo--header { gap: 9px; }
  .atlas-logo--header .atlas-logo__emblem { width: 32px; height: 32px; }
  .atlas-logo--header .atlas-logo__word { font-size: 18px; }
  .atlas-logo--header .atlas-logo__sub  { font-size: 8px; }
}

/* ============================================================
   Header
   ============================================================ */
.atlas-header {
  position: sticky; top: 0; z-index: 50;
  min-height: var(--header-h);
  background: color-mix(in srgb, var(--racing-navy) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.atlas-header__bar {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.atlas-nav { display: none; gap: 30px; align-items: center; }
.atlas-nav a {
  font-family: var(--font-sans); font-size: 13.5px; font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82); transition: color var(--dur-fast) var(--ease-out);
}
.atlas-nav a:hover, .atlas-nav a:focus-visible { color: var(--gold); }

.atlas-header__actions { display: none; align-items: center; gap: 14px; }
.atlas-header__phone {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 13px; font-weight: var(--fw-semibold); color: #fff;
}
.atlas-header__phone i, .atlas-header__phone svg { width: 16px; height: 16px; color: var(--gold); }

.atlas-hamburger {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md); color: #fff; cursor: pointer;
}
.atlas-hamburger i, .atlas-hamburger svg { width: 22px; height: 22px; }

.atlas-mobile-menu {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 12px; padding-bottom: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.atlas-mobile-menu a {
  padding: 12px 4px; font-family: var(--font-sans); font-size: 16px; font-weight: var(--fw-semibold);
  color: rgba(255,255,255,0.9); text-transform: uppercase; letter-spacing: 0.03em;
  min-height: 44px; display: flex; align-items: center;
}
.atlas-mobile-menu .atlas-header__phone { padding: 12px 4px; font-size: 14px; min-height: 44px; }
.atlas-mobile-menu .atlas-btn { margin-top: 8px; }

@media (min-width: 961px) {
  .atlas-nav { display: flex; }
  .atlas-header__actions { display: flex; }
  .atlas-hamburger { display: none; }
  .atlas-mobile-menu { display: none !important; }
}

/* ============================================================
   Hero
   ============================================================ */
.atlas-hero {
  position: relative; color: #fff;
  /* sem overflow:hidden — o fundo já é contido por .atlas-hero__fx; o overflow cortava
     a booking bar flutuante (translateY) na borda inferior do hero */
  background: linear-gradient(155deg, var(--racing-deep) 0%, var(--racing-navy) 55%, var(--racing-700) 100%);
}
.atlas-hero__fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.atlas-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 75%);
}
.atlas-hero__glow-red {
  position: absolute; top: -180px; right: -120px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(182,22,49,0.45), transparent 62%); filter: blur(20px);
}
.atlas-hero__glow-gold {
  position: absolute; bottom: 40px; left: -80px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,194,13,0.16), transparent 60%); filter: blur(10px);
}
.atlas-hero__inner { position: relative; padding-top: 54px; padding-bottom: 96px; }
.atlas-hero__copy { max-width: 820px; }
.atlas-hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; padding-left: 12px; border-left: 3px solid var(--brand);
}
.atlas-hero__badge i, .atlas-hero__badge svg { width: 14px; height: 14px; color: var(--gold); }
.atlas-hero__title {
  font-family: var(--font-display); font-style: italic; font-weight: var(--fw-extra);
  letter-spacing: -0.04em; line-height: 0.94; font-size: clamp(44px, 11vw, 104px);
  color: #fff; margin: 0; text-transform: uppercase;
}
/* --brand (#B61631) sobre o navy do hero dava só 2.22:1 (reprova WCAG AA p/ texto grande);
   --red-400 (#CE3B57) mantém o vermelho da marca e sobe p/ 3.10:1 (>= 3:1). */
.atlas-hero__title .accent { color: var(--red-400); }
.atlas-hero__sub {
  margin-top: 24px; font-size: 16px; line-height: 1.55;
  color: rgba(255,255,255,0.74); max-width: 580px; font-weight: var(--fw-regular);
}
/* Booking bar floats and overlaps the hero bottom */
.atlas-hero__booking { position: relative; z-index: 5; transform: translateY(34px); }

@media (min-width: 641px) {
  .atlas-hero__inner { padding-top: 78px; padding-bottom: 120px; }
  .atlas-hero__sub { font-size: 19px; }
}
@media (min-width: 961px) {
  .atlas-hero__inner { padding-top: 92px; padding-bottom: 150px; }
  .atlas-hero__booking { transform: translateY(50%); }
}

/* ============================================================
   Booking bar
   ============================================================ */
.atlas-bookingbar {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch;
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  padding: 8px; gap: 8px;
}
.atlas-bookingbar__fields { display: flex; flex-direction: column; flex: 1; min-width: 0; position: relative; }
.atlas-field { position: relative; flex: 1 1 auto; min-width: 0; width: 100%; }
.atlas-field__inner {
  display: flex; align-items: center; gap: 11px; padding: 0 16px; height: 58px;
  cursor: pointer; border-bottom: 1px solid var(--border);
  width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0;
  text-align: left; font-family: inherit; color: inherit;
}
.atlas-field:last-child .atlas-field__inner { border-bottom: 0; }
.atlas-field__inner > i.lead, .atlas-field__inner > svg.lead { width: 19px; height: 19px; color: var(--brand); flex: 0 0 auto; }
.atlas-field__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.atlas-field__label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
}
.atlas-field__value {
  font-family: var(--font-sans); font-size: 15px; font-weight: var(--fw-semibold);
  color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.atlas-field__chev { width: 16px; height: 16px; color: var(--text-muted); flex: 0 0 auto; }
.atlas-field--readonly .atlas-field__inner { cursor: default; }
/* Native date input overlay (transparent, full-bleed) */
.atlas-field__date {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; cursor: pointer;
  font-size: 16px; /* anti-zoom iOS */
}

/* Field popover */
.atlas-popover {
  position: absolute; top: calc(100% + 10px); left: 6px; right: 6px; z-index: 40;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 6px; max-height: 264px; overflow-y: auto;
}
.atlas-popover button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 10px 12px; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  background: transparent; color: var(--text-body);
  font-family: var(--font-sans); font-size: 14px; font-weight: var(--fw-medium);
  min-height: 44px;
}
.atlas-popover button:hover { background: var(--gray-50); }
.atlas-popover button.is-active { background: var(--racing-50); color: var(--racing-navy); font-weight: var(--fw-semibold); }
.atlas-popover button svg { width: 15px; height: 15px; flex: 0 0 auto; }
.atlas-bookingbar__cta { border-radius: var(--radius-md); flex: 0 0 auto; }

@media (min-width: 861px) {
  .atlas-bookingbar { flex-direction: row; align-items: center; flex-wrap: wrap; border-radius: var(--radius-xl); }
  .atlas-bookingbar__fields { flex-direction: row; align-items: center; }
  .atlas-field__inner { height: 64px; border-bottom: 0; border-right: 1px solid var(--border); }
  .atlas-field:last-child .atlas-field__inner { border-right: 0; }
  .atlas-bookingbar__cta { width: auto; }
}

/* ============================================================
   Trust strip / stats
   ============================================================ */
.atlas-trust { padding-top: calc(var(--space-8) + 44px); padding-bottom: var(--space-8); }
.atlas-trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 18px; }
.atlas-stat { padding-left: 18px; border-left: 3px solid var(--brand); }
.atlas-stat__value {
  font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 44px;
  line-height: 1; letter-spacing: -0.03em; color: var(--text-strong);
}
.atlas-stat__label { font-family: var(--font-sans); font-size: 14px; font-weight: var(--fw-semibold); color: var(--text-strong); margin-top: 4px; }
.atlas-stat__sub { font-size: 13px; font-weight: var(--fw-medium); color: var(--text-muted); margin-top: 4px; }
@media (min-width: 641px) {
  .atlas-trust { padding-top: calc(var(--space-9) + 48px); }
  .atlas-trust__grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}

/* ============================================================
   Feature trio
   ============================================================ */
.atlas-features__head { max-width: 560px; margin-bottom: 32px; }
.atlas-features__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.atlas-feature {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.atlas-feature::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--racing-navy), var(--brand));
}
.atlas-feature__icon {
  width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--racing-navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.atlas-feature__icon i, .atlas-feature__icon svg { width: 24px; height: 24px; color: var(--gold); }
.atlas-feature h3 { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 21px; margin-bottom: 10px; }
.atlas-feature p { font-size: 15px; line-height: 1.6; color: var(--text-body); }
@media (min-width: 641px) {
  .atlas-features__head { margin-bottom: 48px; }
  .atlas-features__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .atlas-feature { padding: 30px; }
}

/* ============================================================
   How it works
   ============================================================ */
.atlas-how__head { max-width: 520px; margin-bottom: 32px; }
.atlas-how__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.atlas-step__num {
  font-family: var(--font-display); font-style: italic; font-size: 34px; font-weight: var(--fw-extra);
  color: var(--brand); margin-bottom: 14px; -webkit-text-stroke: 1px var(--racing-navy);
}
.atlas-step > i, .atlas-step > svg { width: 28px; height: 28px; color: var(--racing-navy); }
.atlas-step h3 { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 20px; margin: 18px 0 10px; }
.atlas-step p { font-size: 15px; line-height: 1.6; color: var(--text-body); }
@media (min-width: 961px) {
  .atlas-how__head { margin-bottom: 48px; }
  .atlas-how__grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .atlas-step { padding: 0 32px; }
  .atlas-step + .atlas-step { border-left: 1px solid var(--border); }
}

/* ============================================================
   Fleet grid
   ============================================================ */
.atlas-fleet__head {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap;
  gap: 18px; margin-bottom: 34px;
}
.atlas-fleet__head-copy { max-width: 540px; }
.atlas-fleet__filters { display: flex; gap: 8px; flex-wrap: wrap; }
.atlas-chip {
  padding: 9px 16px; border-radius: var(--radius-pill); cursor: pointer;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: var(--fw-semibold);
  border: 1.5px solid var(--border-strong); background: var(--surface-card); color: var(--text-body);
  transition: all var(--dur-fast) var(--ease-out); min-height: 38px;
}
.atlas-chip:hover { border-color: var(--racing-navy); }
.atlas-chip.is-active { border-color: var(--racing-navy); background: var(--racing-navy); color: #fff; }

.atlas-fleet__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 641px) { .atlas-fleet__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 961px) { .atlas-fleet__grid { grid-template-columns: repeat(3, 1fr); } }

/* Vehicle card */
.atlas-vcard {
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.atlas-vcard:hover, .atlas-vcard:focus-within { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.atlas-vcard__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}
.atlas-vcard__media img { width: 100%; height: 100%; object-fit: cover; }
.atlas-vcard__ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--racing-navy), var(--racing-deep));
}
.atlas-vcard__ph img { width: 46px; height: auto; opacity: 0.28; }
.atlas-vcard__ph-label {
  position: absolute; bottom: 10px; left: 12px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.atlas-vcard__badge { position: absolute; top: 12px; left: 12px; }
.atlas-vcard__promo { position: absolute; top: 12px; right: 12px; }
.atlas-vcard__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.atlas-vcard__name {
  font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 18px; line-height: 1.15;
  color: var(--text-strong); letter-spacing: -0.01em; min-height: 42px;
  display: flex; align-items: flex-start;
}
.atlas-vcard__specs { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 2px; }
.atlas-spec {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-body); white-space: nowrap;
}
.atlas-spec i, .atlas-spec svg { width: 15px; height: 15px; color: var(--text-muted); }
.atlas-vcard__divider { height: 1px; background: var(--border); margin: 4px 0; }
.atlas-vcard__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.atlas-vcard__price { white-space: nowrap; }
.atlas-vcard__price .amt { font-family: var(--font-mono); font-weight: var(--fw-semibold); font-size: 26px; color: var(--text-strong); }
.atlas-vcard__price .per { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }

/* Rating */
.atlas-rating { display: inline-flex; align-items: center; gap: 7px; }
.atlas-rating__stars { display: inline-flex; gap: 2px; }
.atlas-rating__stars svg { width: 16px; height: 16px; display: block; }
.atlas-rating__count { font-family: var(--font-mono); font-size: 12px; font-weight: var(--fw-medium); color: var(--text-muted); white-space: nowrap; }

/* Badge */
.atlas-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: 12px;
  letter-spacing: 0.01em; line-height: 1; padding: 6px 11px;
  border-radius: var(--radius-pill); white-space: nowrap; border: 1px solid transparent;
}
.atlas-badge--brand   { background: var(--brand); color: #fff; }
.atlas-badge--neutral { background: var(--gray-900); color: #fff; }
.atlas-badge--info    { background: var(--blue-500); color: #fff; }
.atlas-badge--warning { background: var(--amber-500); color: #fff; }
.atlas-badge--success { background: var(--green-500); color: #fff; }

/* Empty state */
.atlas-empty {
  grid-column: 1 / -1; text-align: center; padding: 56px 24px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  background: var(--color-bg-subtle); color: var(--text-muted);
}
.atlas-empty i, .atlas-empty svg { width: 36px; height: 36px; color: var(--text-muted); margin: 0 auto 12px; }
.atlas-empty h3 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 20px; color: var(--text-strong); margin-bottom: 6px; }
.atlas-empty p { font-size: 15px; }

/* ============================================================
   Locations (dark)
   ============================================================ */
.atlas-locations {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(155deg, var(--racing-navy), var(--racing-deep));
}
.atlas-locations__dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(80% 80% at 80% 50%, #000, transparent 70%);
          mask-image: radial-gradient(80% 80% at 80% 50%, #000, transparent 70%);
}
.atlas-locations__grid {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center;
}
.atlas-locations h2 { color: #fff; margin: 16px 0 18px; }
.atlas-locations__lead { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.66); max-width: 440px; margin-bottom: 28px; }
.atlas-loc-card {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
}
.atlas-loc-card i, .atlas-loc-card svg { width: 22px; height: 22px; color: var(--gold); flex: 0 0 auto; }
.atlas-loc-card .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.atlas-loc-card .v { font-family: var(--font-sans); font-size: 15px; font-weight: var(--fw-semibold); color: #fff; }
.atlas-locations__map {
  order: -1; aspect-ratio: 4 / 3; border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.14); position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--racing-700), var(--racing-deep)); box-shadow: var(--shadow-xl);
}
.atlas-locations__map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.atlas-locations__pin { position: absolute; transform: translate(-50%, -50%); }
.atlas-locations__pin i, .atlas-locations__pin svg { color: rgba(255,255,255,0.7); }
.atlas-locations__pin--hero i, .atlas-locations__pin--hero svg { color: var(--brand); }
.atlas-locations__caption {
  position: absolute; bottom: 14px; left: 16px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); /* 0.4 dava 3.52:1 (reprova WCAG AA p/ texto pequeno); 0.6 ~5.3:1 */
}
@media (min-width: 861px) {
  .atlas-locations__grid { grid-template-columns: 1fr 1fr; gap: 60px; }
  .atlas-locations__map { order: 0; }
}

/* ============================================================
   Testimonial
   ============================================================ */
.atlas-testimonial { text-align: center; max-width: 860px; }
.atlas-testimonial__stars { display: inline-flex; gap: 4px; margin-bottom: 24px; }
.atlas-testimonial__stars i, .atlas-testimonial__stars svg { width: 22px; height: 22px; color: var(--gold); }
.atlas-testimonial__quote {
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(22px, 5vw, 38px);
  line-height: 1.25; letter-spacing: -0.02em; color: var(--text-strong); text-wrap: balance;
}
.atlas-testimonial__by { margin-top: 26px; font-family: var(--font-sans); font-weight: var(--fw-semibold); color: var(--text-strong); }
.atlas-testimonial__by span { color: var(--text-muted); font-weight: var(--fw-medium); }

/* ============================================================
   CTA band
   ============================================================ */
.atlas-cta {
  position: relative; overflow: hidden; padding-block: var(--space-10);
  background: linear-gradient(120deg, var(--racing-navy), var(--racing-700));
}
.atlas-cta__glow {
  position: absolute; top: -120px; right: -80px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,194,13,0.18), transparent 62%); filter: blur(12px);
}
.atlas-cta__inner { position: relative; }
.atlas-cta h2 { color: #fff; margin: 14px 0 0; max-width: 720px; }
.atlas-cta p { font-size: 17px; color: rgba(255,255,255,0.85); margin: 14px 0 0; max-width: 540px; }
.atlas-cta__actions { margin-top: 30px; }

/* ============================================================
   Footer
   ============================================================ */
.atlas-footer {
  position: relative; background: var(--racing-deep); color: #fff;
  padding-top: var(--space-10); padding-bottom: var(--space-7);
}
.atlas-footer__top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.atlas-footer__brand { grid-column: 1 / -1; max-width: 340px; }
.atlas-footer__brand p { margin-top: 18px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.6); }
.atlas-footer__addr { margin-top: 14px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,0.55); }
.atlas-footer__addr a { color: rgba(255,255,255,0.8); }
.atlas-footer__addr a:hover { color: var(--gold); }
.atlas-socials { display: flex; gap: 10px; margin-top: 20px; }
.atlas-socials a {
  width: 40px; height: 40px; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8);
  transition: all var(--dur-fast) var(--ease-out);
}
.atlas-socials a:hover, .atlas-socials a:focus-visible { border-color: var(--gold); color: var(--gold); }
.atlas-socials svg { width: 18px; height: 18px; }
.atlas-footer__col-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.atlas-footer__col-list { display: flex; flex-direction: column; gap: 12px; }
.atlas-footer__col-list a { font-size: 14.5px; color: rgba(255,255,255,0.75); }
.atlas-footer__col-list a:hover { color: #fff; }
.atlas-footer__legal {
  padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.6); /* 0.45 dava 4.44:1 sobre --racing-deep (reprova WCAG AA); 0.6 ~6:1 */
}
@media (min-width: 641px) {
  .atlas-footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
  .atlas-footer__brand { grid-column: auto; }
}

/* ============================================================
   Mobile sticky reserve bar
   ============================================================ */
.atlas-reservebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(12,17,25,0.10);
  padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
}
.atlas-reservebar__price { display: flex; flex-direction: column; line-height: 1.05; }
.atlas-reservebar__from { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.atlas-reservebar__amt { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 22px; color: var(--text-strong); }
.atlas-reservebar__amt small { font-size: 13px; color: var(--text-muted); font-weight: var(--fw-semibold); }
.atlas-reservebar__btn {
  flex: 1; height: 52px; border: 0; border-radius: var(--radius-md); background: var(--brand);
  color: #fff; font-family: var(--font-sans); font-weight: var(--fw-bold); font-size: 16px; cursor: pointer;
  box-shadow: var(--shadow-brand); display: flex; align-items: center; justify-content: center; gap: 9px;
}
.atlas-reservebar__btn i, .atlas-reservebar__btn svg { width: 19px; height: 19px; }
@media (min-width: 961px) { .atlas-reservebar { display: none; } }

/* ============================================================
   Mobile booking sheet (bottom-sheet stepper)
   ============================================================ */
.atlas-sheet-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; justify-content: flex-end;
}
.atlas-sheet-scrim { position: absolute; inset: 0; background: rgba(12,17,25,0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.atlas-sheet {
  position: relative; background: #fff; border-top-left-radius: var(--radius-xl); border-top-right-radius: var(--radius-xl);
  max-height: 92vh; display: flex; flex-direction: column; box-shadow: var(--shadow-xl);
  animation: atlassheet 0.28s var(--ease-out);
}
@keyframes atlassheet { from { transform: translateY(100%); } to { transform: none; } }
.atlas-sheet__head { padding: 14px 18px 10px; }
.atlas-sheet__handle { width: 40px; height: 5px; border-radius: 99px; background: var(--gray-200); margin: 0 auto 14px; }
.atlas-sheet__titlerow { display: flex; align-items: center; justify-content: space-between; }
.atlas-sheet__title { font-family: var(--font-display); font-weight: var(--fw-extra); font-style: italic; font-size: 22px; text-transform: uppercase; color: var(--racing-navy); }
.atlas-sheet__close {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--color-bg-subtle);
  color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.atlas-sheet__close i, .atlas-sheet__close svg { width: 18px; height: 18px; }
.atlas-sheet__progress { display: flex; gap: 6px; margin-top: 14px; }
.atlas-sheet__seg { flex: 1; height: 4px; border-radius: 99px; background: var(--gray-200); transition: background var(--dur-base); }
.atlas-sheet__seg.is-on { background: var(--brand); }
.atlas-sheet__body { flex: 1; overflow-y: auto; padding: 8px 18px 18px; }
.atlas-sheet__foot {
  padding: 12px 18px; padding-bottom: calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border); display: flex; gap: 10px;
}
.atlas-sheet__back {
  width: 56px; height: 54px; border-radius: var(--radius-md); border: 1.5px solid var(--border-strong);
  background: #fff; color: var(--text-strong); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.atlas-sheet__back i, .atlas-sheet__back svg { width: 20px; height: 20px; }
.atlas-sheet__next {
  flex: 1; height: 54px; border-radius: var(--radius-md); border: 0; background: var(--brand); color: #fff;
  font-family: var(--font-sans); font-weight: var(--fw-bold); font-size: 16px; cursor: pointer;
  box-shadow: var(--shadow-brand); display: flex; align-items: center; justify-content: center; gap: 9px;
}
.atlas-sheet__next i, .atlas-sheet__next svg { width: 18px; height: 18px; }

.atlas-sheet-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 16px; min-height: 56px; border: 1.5px solid var(--border); border-radius: var(--radius-md);
  background: #fff; cursor: pointer; font-family: var(--font-sans); font-size: 16px; font-weight: var(--fw-semibold);
  color: var(--text-strong); margin-bottom: 10px;
}
.atlas-sheet-row.is-active { border-color: var(--brand); background: var(--brand-tint); }
.atlas-sheet-row__icon { color: var(--text-muted); display: flex; }
.atlas-sheet-row.is-active .atlas-sheet-row__icon { color: var(--brand); }
.atlas-sheet-row__icon i, .atlas-sheet-row__icon svg { width: 19px; height: 19px; }
.atlas-sheet-row__text { flex: 1; }
.atlas-sheet-row__check { color: var(--brand); display: flex; }
.atlas-sheet-row__price { font-family: var(--font-mono); font-size: 15px; font-weight: var(--fw-semibold); color: var(--text-strong); }
.atlas-sheet-row__price small { color: var(--text-muted); font-size: 12px; }

.atlas-sheet-date { display: block; margin-bottom: 14px; }
.atlas-sheet-date__label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.atlas-sheet-date__field {
  position: relative; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md); background: #fff;
}
.atlas-sheet-date__field > i.lead, .atlas-sheet-date__field > svg.lead { color: var(--brand); width: 20px; height: 20px; }
.atlas-sheet-date__val { font-family: var(--font-sans); font-size: 17px; font-weight: var(--fw-semibold); color: var(--text-strong); }
.atlas-sheet-date__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; cursor: pointer; font-size: 16px; }
.atlas-sheet__hint { font-family: var(--font-sans); font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.atlas-sheet-review__row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer; width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; }
.atlas-sheet-review__icon { color: var(--brand); display: flex; }
.atlas-sheet-review__icon i, .atlas-sheet-review__icon svg { width: 19px; height: 19px; }
.atlas-sheet-review__k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.atlas-sheet-review__v { font-family: var(--font-sans); font-size: 16px; font-weight: var(--fw-semibold); color: var(--text-strong); }
.atlas-sheet-review__edit { color: var(--text-muted); font-family: var(--font-sans); font-size: 13px; font-weight: var(--fw-semibold); }
.atlas-sheet-total {
  display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding: 16px;
  background: var(--color-bg-subtle); border-radius: var(--radius-md);
}
.atlas-sheet-total__label { font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: 15px; }
.atlas-sheet-total__amt { font-family: var(--font-mono); font-weight: var(--fw-semibold); font-size: 26px; color: var(--text-strong); }

/* ============================================================
   Chat widget
   ============================================================ */
.atlas-chat-launcher {
  position: fixed; right: 24px; bottom: 94px; z-index: 120;
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-xl); transition: transform var(--dur-fast) var(--ease-out);
  animation: atlaspulse 2.4s infinite;
}
.atlas-chat-launcher:active { transform: scale(0.92); }
.atlas-chat-launcher.is-open { animation: none; }
.atlas-chat-launcher i, .atlas-chat-launcher svg { width: 26px; height: 26px; }
@keyframes atlaspulse {
  0%   { box-shadow: 0 0 0 0 rgba(182,22,49,0.45); }
  70%  { box-shadow: 0 0 0 16px rgba(182,22,49,0); }
  100% { box-shadow: 0 0 0 0 rgba(182,22,49,0); }
}
@media (min-width: 961px) { .atlas-chat-launcher { bottom: 24px; } }

.atlas-chat-panel {
  position: fixed; right: 24px; bottom: 164px; z-index: 120;
  width: min(384px, calc(100vw - 32px)); height: min(560px, calc(100vh - 200px));
  background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
  border: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden;
  animation: atlaspop var(--dur-base) var(--ease-out);
}
@keyframes atlaspop { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (min-width: 961px) { .atlas-chat-panel { bottom: 100px; } }

.atlas-chat__head {
  padding: 16px 18px; color: #fff; display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--racing-navy), var(--racing-deep));
}
.atlas-chat__head-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(80% 120% at 100% 0%, #000, transparent 70%);
          mask-image: radial-gradient(80% 120% at 100% 0%, #000, transparent 70%);
}
.atlas-chat__avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--racing-navy); position: relative;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.18) inset;
}
.atlas-chat__avatar--sm { width: 30px; height: 30px; }
.atlas-chat__avatar .mono { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 16px; color: #fff; }
.atlas-chat__avatar--sm .mono { font-size: 13px; }
.atlas-chat__title { position: relative; flex: 1; }
.atlas-chat__name { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 16px; }
.atlas-chat__status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.atlas-chat__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 3px rgba(28,154,102,0.25); }
.atlas-chat__min {
  position: relative; background: rgba(255,255,255,0.1); border: 0; cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px; color: #fff; display: flex; align-items: center; justify-content: center;
}
.atlas-chat__min i, .atlas-chat__min svg { width: 18px; height: 18px; }

.atlas-chat__body { flex: 1; overflow-y: auto; padding: 18px; background: var(--color-bg-subtle); display: flex; flex-direction: column; gap: 12px; }
.atlas-chat__msg { display: flex; gap: 9px; align-items: flex-end; }
.atlas-chat__msg.is-me { flex-direction: row-reverse; }
.atlas-chat__bubble {
  max-width: 78%; padding: 10px 14px; font-size: 14px; line-height: 1.5;
  border-radius: 16px 16px 16px 4px; background: #fff; color: var(--text-body);
  border: 1px solid var(--border); box-shadow: var(--shadow-xs);
}
.atlas-chat__msg.is-me .atlas-chat__bubble {
  border-radius: 16px 16px 4px 16px; background: var(--brand); color: #fff; border: 0; box-shadow: var(--shadow-brand);
}
.atlas-chat__dots { display: inline-flex; gap: 4px; padding: 2px 0; }
.atlas-chat__dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-400); animation: atlasdot 1s infinite ease-in-out; }
.atlas-chat__dots span:nth-child(2) { animation-delay: 0.15s; }
.atlas-chat__dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes atlasdot { 0%,80%,100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-4px); opacity: 1; } }

.atlas-chat__quicks { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; background: var(--color-bg-subtle); }
.atlas-chat__quick {
  padding: 8px 13px; border-radius: var(--radius-pill); border: 1.5px solid var(--racing-100);
  background: var(--racing-50); color: var(--racing-navy); font-family: var(--font-sans);
  font-size: 13px; font-weight: var(--fw-semibold); cursor: pointer; min-height: 36px;
}
.atlas-chat__input-row { padding: 12px; border-top: 1px solid var(--border); background: #fff; display: flex; align-items: center; gap: 8px; }
.atlas-chat__input {
  flex: 1; border: 0; outline: none; background: var(--color-bg-subtle); border-radius: var(--radius-pill);
  padding: 12px 16px; font-family: var(--font-sans); font-size: 16px; color: var(--text-strong);
}
.atlas-chat__send {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-brand);
}
.atlas-chat__send i, .atlas-chat__send svg { width: 20px; height: 20px; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .atlas-chat-launcher { animation: none; }
  .atlas-sheet, .atlas-chat-panel { animation: none; }
  .atlas-vcard, .atlas-btn { transition: none; }
}
