/* ==========================================================================
   RotasSul Transfer — folha compartilhada das páginas de destino e rota
   Fase 4.

   Usada SOMENTE por:
     /destinos/caxias-do-sul/
     /destinos/bento-goncalves/
     /transfer/aeroporto-caxias-do-sul-gramado/
     /transfer/porto-alegre-bento-goncalves/

   Não é carregada pela home nem pela landing do Natal Luz e não altera
   nenhum estilo aprovado. Reaproveita os mesmos tokens de :root (paleta,
   raios, sombras, easing) declarados inline em cada página, mantendo a
   identidade sem tocar no CSS das fases anteriores.
   ========================================================================== */

/* ---------- base ---------- */
.rd-page *,
.rd-page *::before,
.rd-page *::after { box-sizing: border-box; }

.rd-page {
  background: var(--color-1, #fff);
  font-family: Epilogue, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.rd-skip {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.rd-skip:focus-visible {
  clip: auto;
  clip-path: none;
  height: auto;
  left: 12px;
  overflow: visible;
  top: 12px;
  white-space: normal;
  width: auto;
  z-index: 100;
}

.rd-container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px;
  width: 100%;
}

.rd-section { padding: 76px 0; position: relative; }
.rd-section--tint { background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%); }

.rd-section__head { margin: 0 auto 40px; max-width: 760px; }
.rd-section__head--center { text-align: center; }

.rd-section__head h2 {
  color: var(--color-2, #102536);
  font-size: clamp(26px, 3.1vw, 40px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.05;
  margin: 14px 0 0;
  text-transform: uppercase;
}

.rd-section__head p {
  color: #102536ad;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.62;
  margin: 14px 0 0;
}

.rd-eyebrow {
  align-items: center;
  background: #1025360f;
  border: 1px solid #10253617;
  border-radius: 100px;
  color: #102536b8;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: .12em;
  padding: 7px 15px;
  text-transform: uppercase;
}

.rd-eyebrow__dot {
  background: var(--color-10, #f4c84b);
  border-radius: 50%;
  box-shadow: 0 0 0 2px #f4c84b4d;
  flex-shrink: 0;
  height: 7px;
  width: 7px;
}

/* ---------- header ---------- */
.rd-header {
  align-items: center;
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  background: #ffffffd1;
  border-radius: 18px;
  box-shadow: 0 8px 28px #10253614, 0 0 0 1px #ffffffb3;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  left: 50%;
  padding: 10px 14px;
  position: fixed;
  top: 16px;
  transform: translateX(-50%);
  width: min(100% - 32px, 1180px);
  z-index: 50;
}

.rd-header__logo { align-items: center; border-radius: 14px; display: flex; flex-shrink: 0; overflow: hidden; }
.rd-header__logo img { display: block; height: 56px; object-fit: contain; width: 56px; }
.rd-header__nav { display: flex; gap: 26px; margin-left: auto; }

.rd-header__link {
  color: var(--color-2, #102536);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: opacity .2s var(--ease-out, ease);
  white-space: nowrap;
}

.rd-header__link:hover { opacity: .62; }

.rd-header__link:focus-visible,
.rd-header__logo:focus-visible,
.rd-btn:focus-visible,
.rd-link:focus-visible,
.rd-crumb a:focus-visible {
  outline: 3px solid #2f7bb6;
  outline-offset: 3px;
}

/* ---------- botões ---------- */
.rd-btn {
  align-items: center;
  border-radius: 100px;
  color: var(--color-2, #102536) !important;
  display: inline-flex;
  font-family: Epilogue, sans-serif;
  font-size: 15px;
  font-weight: 900;
  gap: 10px;
  letter-spacing: -.025em;
  padding: 16px 28px;
  text-align: center;
  text-decoration: none !important;
  transition: transform .22s var(--ease-out, ease), box-shadow .22s var(--ease-out, ease), background .22s var(--ease-out, ease);
}

.rd-btn--primary {
  background: linear-gradient(135deg, #f7d86c 0%, #efbf44 100%);
  box-shadow: 0 8px 28px #f4c84b5c, 0 2px 6px #f4c84b2e, inset 0 1px #fff6;
}

.rd-btn--primary:hover {
  background: linear-gradient(135deg, #f8de80 0%, #f1c34d 100%);
  box-shadow: 0 14px 36px #f4c84b7a, 0 3px 8px #f4c84b38;
  transform: translateY(-2px);
}

.rd-btn--ghost { background: #fff; border: 1px solid #10253621; box-shadow: var(--shadow-sm, 0 2px 10px #10253614); }
.rd-btn--ghost:hover { background: #f7f9fc; transform: translateY(-2px); }
.rd-btn--sm { font-size: 13px; padding: 12px 20px; }
.rd-btn svg { flex-shrink: 0; height: 18px; width: 18px; }

.rd-link { color: #1f5f91; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rd-link:hover { color: #102536; }

/* ---------- breadcrumb ---------- */
.rd-crumb { font-size: 13px; margin: 0 0 4px; }
.rd-crumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.rd-crumb li { align-items: center; color: #10253694; display: flex; gap: 8px; }
.rd-crumb li + li::before { color: #10253666; content: "›"; }
.rd-crumb a { color: #1f5f91; font-weight: 700; text-decoration: none; }
.rd-crumb a:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.rd-hero {
  background-color: #f7f4ef;
  background-image:
    radial-gradient(60% 70% at 82% 50%, #f4c84b1f 0%, #0000 62%),
    radial-gradient(44% 54% at 8% 88%, #2f7bb612 0%, #0000 54%);
  overflow: hidden;
  padding: clamp(116px, 15vh, 148px) clamp(24px, 5.5vw, 80px) clamp(56px, 8vh, 80px);
  position: relative;
}

.rd-hero__inner { margin: 0 auto; max-width: 1180px; position: relative; z-index: 2; }
.rd-hero__copy { max-width: 720px; }

.rd-hero__h1 {
  color: var(--color-2, #102536);
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: clamp(-1.5px, -.032em, -2.5px);
  line-height: 1.02;
  margin: 22px 0 20px;
  text-transform: uppercase;
}

.rd-hero__h1 span { display: block; padding-bottom: 8px; position: relative; }

.rd-hero__h1 span::after {
  background: var(--color-10, #f4c84b);
  border-radius: 2px;
  bottom: 0;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  width: 72px;
}

.rd-hero__sub {
  color: #102536ad;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.64;
  margin: 0 0 26px;
  max-width: 640px;
}

.rd-hero__actions { align-items: center; display: flex; flex-wrap: wrap; gap: 14px 18px; }

.rd-hero__note {
  align-items: center;
  color: #10253694;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
  margin: 18px 0 0;
}

.rd-hero__note svg { color: var(--color-10, #f4c84b); flex-shrink: 0; height: 14px; width: 14px; }

/* faixa de pontos-chave do hero */
.rd-hero__facts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 0;
  max-width: 900px;
}

.rd-hero__fact {
  background: #ffffffbf;
  border: 1px solid #10253614;
  border-radius: 16px;
  box-shadow: var(--shadow-sm, 0 2px 10px #10253614);
  padding: 14px 16px;
}

.rd-hero__fact dt { color: #1f5f91; font-size: 10.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.rd-hero__fact dd { color: var(--color-2, #102536); font-size: 14.5px; font-weight: 700; line-height: 1.4; margin: 6px 0 0; }

/* ---------- hero com imagem contextual (Fase 4.1) ---------- */
/* Componentes compartilhados pelas 4 páginas. Os modificadores --city e
   --airport só ajustam proporção e enquadramento; a estrutura é a mesma. */
.rd-hero--visual .rd-hero__inner {
  align-items: center;
  column-gap: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1.12fr .88fr;
}

.rd-hero--visual .rd-hero__copy { max-width: none; }
.rd-hero--visual .rd-hero__facts { max-width: none; }
.rd-hero__visual { position: relative; z-index: 2; }

.rd-context-figure {
  border: 1px solid #ffffff8f;
  border-radius: 26px;
  box-shadow: 0 26px 62px #10253630, 0 6px 18px #1025361c, inset 0 1px #ffffff59;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.rd-context-image {
  aspect-ratio: 4 / 3;              /* proporção nativa das fotos de cidade */
  display: block;
  height: auto;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

/* foto do aeroporto é nativa 16:9 — sem recorte em nenhuma largura */
.rd-context-figure--airport .rd-context-image { aspect-ratio: 16 / 9; }

/* Composição de duas fotografias reais num único container.
   Usada quando a página não tem uma foto única que represente a rota:
   frota (real) + destino (real), lado a lado, sem sugerir que o veículo
   foi fotografado no local. */
.rd-context-figure--split {
  display: grid;
  gap: 3px;
  grid-template-columns: 47fr 53fr;
}

.rd-context-figure--split .rd-context-image {
  aspect-ratio: auto;
  height: 100%;
  min-height: 268px;
}

.rd-context-figure--split .rd-context-image:first-child { object-position: 52% 56%; }

.rd-image-caption {
  background: linear-gradient(180deg, #0000 0%, #051420b8 100%);
  bottom: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  left: 0;
  letter-spacing: .01em;
  line-height: 1.45;
  padding: 34px 16px 13px;
  position: absolute;
  right: 0;
}

/* ---------- prosa ---------- */
.rd-prose { color: #102536ad; font-size: 16px; line-height: 1.7; max-width: 760px; }
.rd-prose p { margin: 0 0 16px; }
.rd-prose p:last-child { margin-bottom: 0; }
.rd-prose strong { color: var(--color-2, #102536); }

.rd-split { display: grid; gap: 34px; grid-template-columns: 1.15fr .85fr; }

/* ---------- cards genéricos ---------- */
.rd-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rd-card {
  background: #fff;
  border: 1px solid rgba(16, 37, 54, .08);
  border-radius: 22px;
  box-shadow: 0 14px 40px #1025360f;
  padding: 24px;
  transition: transform .3s var(--ease-out, ease), box-shadow .3s var(--ease-out, ease);
}

.rd-card:hover { box-shadow: 0 20px 52px #10253619; transform: translateY(-4px); }
.rd-card svg { color: var(--color-10, #efbf44); height: 22px; width: 22px; }

.rd-card h3 {
  color: var(--color-2, #102536);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.025em;
  margin: 12px 0 0;
}

.rd-card p { color: #102536a3; font-size: 14.5px; line-height: 1.58; margin: 9px 0 0; }

.rd-card__kicker { color: #1f5f91; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }

/* card de rota (com seta origem → destino) */
.rd-route__to {
  align-items: center;
  color: var(--color-2, #102536);
  display: flex;
  font-size: 19px;
  font-weight: 900;
  gap: 9px;
  letter-spacing: -.03em;
  margin: 8px 0 0;
}

.rd-route__to svg { color: var(--color-10, #efbf44); flex-shrink: 0; height: 16px; width: 16px; }

/* card que é link */
a.rd-card { display: block; text-decoration: none !important; }
a.rd-card:focus-visible { outline: 3px solid #2f7bb6; outline-offset: 3px; }

.rd-card__more {
  align-items: center;
  color: #1f5f91;
  display: inline-flex;
  font-size: 13.5px;
  font-weight: 900;
  gap: 7px;
  margin: 14px 0 0;
}

.rd-card__more svg { color: #1f5f91; height: 14px; width: 14px; }

/* ---------- lista de checagem ---------- */
.rd-checklist { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }

.rd-checklist li {
  align-items: flex-start;
  color: #102536c4;
  display: flex;
  font-size: 15px;
  gap: 11px;
  line-height: 1.55;
}

.rd-checklist svg { color: var(--color-10, #efbf44); flex-shrink: 0; height: 18px; margin-top: 2px; width: 18px; }

/* ---------- painel lateral ---------- */
.rd-panel {
  background: #fff;
  border: 1px solid rgba(16, 37, 54, .08);
  border-radius: 22px;
  box-shadow: var(--shadow-md, 0 8px 28px #1025361a);
  padding: 26px;
}

.rd-panel h3 {
  color: var(--color-2, #102536);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.rd-panel dl { display: grid; gap: 14px; margin: 0; }
.rd-panel dt { color: #1f5f91; font-size: 10.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.rd-panel dd { color: var(--color-2, #102536); font-size: 14.5px; font-weight: 700; line-height: 1.45; margin: 5px 0 0; }
.rd-panel dd span { color: #102536a3; display: block; font-size: 13px; font-weight: 400; margin-top: 4px; }

.rd-panel__source { border-top: 1px solid #1025360f; color: #10253694; font-size: 12px; line-height: 1.5; margin: 18px 0 0; padding-top: 14px; }

/* ---------- frota ---------- */
.rd-fleet {
  align-items: center;
  background: var(--color-2, #102536);
  border-radius: 26px;
  display: grid;
  gap: 0;
  grid-template-columns: 380px 1fr;
  overflow: hidden;
}

.rd-fleet__media { height: 100%; overflow: hidden; }
.rd-fleet__media img { display: block; height: 100%; min-height: 230px; object-fit: cover; width: 100%; }
.rd-fleet__body { padding: 32px 34px; }
.rd-fleet h2 { color: #fff; font-size: 22px; font-weight: 900; letter-spacing: -.03em; margin: 0; text-transform: uppercase; }
.rd-fleet p { color: #ffffffb8; font-size: 15px; line-height: 1.6; margin: 10px 0 18px; }

.rd-fleet .rd-btn--ghost {
  background: #ffffff14;
  border-color: #ffffff2e;
  box-shadow: none;
  color: #fff !important;
}

.rd-fleet .rd-btn--ghost:hover { background: #ffffff24; }

/* ---------- FAQ ---------- */
.rd-faq { margin: 0 auto; max-width: 820px; }

.rd-faq__item {
  background: #fff;
  border: 1px solid rgba(16, 37, 54, .09);
  border-radius: 16px;
  box-shadow: var(--shadow-sm, 0 2px 10px #10253614);
  margin-bottom: 12px;
  overflow: hidden;
}

.rd-faq__item summary {
  align-items: center;
  color: var(--color-2, #102536);
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 800;
  gap: 14px;
  justify-content: space-between;
  letter-spacing: -.02em;
  list-style: none;
  padding: 18px 22px;
}

.rd-faq__item summary::-webkit-details-marker { display: none; }

.rd-faq__item summary::after {
  color: var(--color-10, #efbf44);
  content: "+";
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  transition: transform .25s var(--ease-out, ease);
}

.rd-faq__item[open] summary::after { transform: rotate(45deg); }
.rd-faq__item summary:focus-visible { outline: 3px solid #2f7bb6; outline-offset: -3px; }
.rd-faq__answer { color: #102536ad; font-size: 15px; line-height: 1.65; padding: 0 22px 20px; }
.rd-faq__answer p { margin: 0; }

/* ---------- CTA final ---------- */
.rd-cta {
  background: linear-gradient(135deg, #102536 0%, #1a3c56 100%);
  border-radius: 30px;
  overflow: hidden;
  padding: 52px 34px;
  position: relative;
  text-align: center;
}

.rd-cta::before {
  background: radial-gradient(circle, #f4c84b26 0%, #0000 68%);
  border-radius: 50%;
  content: "";
  height: 420px;
  pointer-events: none;
  position: absolute;
  right: -90px;
  top: -160px;
  width: 420px;
}

.rd-cta > * { position: relative; z-index: 1; }
.rd-cta h2 { color: #fff; font-size: clamp(25px, 3vw, 38px); font-weight: 900; letter-spacing: -.045em; margin: 0 0 14px; text-transform: uppercase; }
.rd-cta p { color: #ffffffbd; font-size: 16px; line-height: 1.62; margin: 0 auto 26px; max-width: 580px; }

/* ---------- footer ---------- */
.rd-footer { background: var(--color-2, #102536); color: #ffffffb0; padding: 36px 0; }
.rd-footer__inner { align-items: center; display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; }
.rd-footer p { font-size: 13.5px; line-height: 1.55; margin: 0; }
.rd-footer a { color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.rd-footer a:hover { text-decoration: underline; }
.rd-footer a:focus-visible { outline: 3px solid var(--color-10, #f4c84b); outline-offset: 3px; }

/* ==========================================================================
   Breakpoints — alinhados aos das fases anteriores (1100 / 991 / 767 / 640)
   ========================================================================== */

@media (max-width: 1100px) {
  .rd-hero { padding-left: 32px; padding-right: 32px; }
  .rd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-fleet { grid-template-columns: 320px 1fr; }
}

@media (max-width: 991px) {
  .rd-hero { padding: clamp(104px, 16vw, 128px) 20px 52px; }
  /* empilha naturalmente: texto primeiro, imagem depois */
  .rd-hero--visual .rd-hero__inner { grid-template-columns: 1fr; }
  .rd-hero__visual { margin-top: 30px; }
  /* em telas estreitas a foto 4:3 ficaria alta demais; 16:9 mantém a leitura
     e o object-position preserva o assunto principal de cada cena */
  .rd-context-image { aspect-ratio: 16 / 9; }
  .rd-context-figure--city .rd-context-image { object-position: center 42%; }
  /* lado a lado continua legível no tablet; a altura acompanha o container */
  .rd-context-figure--split .rd-context-image { aspect-ratio: auto; min-height: 240px; }
  .rd-split { grid-template-columns: 1fr; }
  .rd-section { padding: 60px 0; }
  .rd-header__nav { gap: 18px; }
  .rd-fleet { grid-template-columns: 1fr; }
  .rd-fleet__media img { max-height: 260px; min-height: 190px; }
  .rd-fleet__body { padding: 26px 24px 30px; }
}

@media (max-width: 767px) {
  .rd-grid, .rd-grid--2 { grid-template-columns: 1fr; }
  .rd-hero__facts { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .rd-container { padding: 0 20px; }
  .rd-header { border-radius: 16px; padding: 8px 10px; top: 10px; width: calc(100% - 20px); }
  .rd-header__logo img { height: 46px; width: 46px; }
  .rd-header__nav { gap: 14px; }
  .rd-header__link { font-size: 13px; }
  .rd-btn { font-size: 14px; justify-content: center; padding: 15px 22px; width: 100%; }
  .rd-btn--sm { font-size: 12px; padding: 10px 14px; width: auto; }
  .rd-hero__actions { width: 100%; }
  .rd-hero__h1 { font-size: clamp(25px, 7.8vw, 36px); }
  .rd-section { padding: 50px 0; }
  .rd-section__head { margin-bottom: 30px; }
  .rd-cta { border-radius: 24px; padding: 38px 22px; }
  .rd-fleet { border-radius: 22px; }
  .rd-context-figure { border-radius: 20px; }
  .rd-image-caption { font-size: 11.5px; padding: 28px 13px 11px; }
  /* abaixo de 640px cada metade ficaria estreita demais: empilha dentro do
     mesmo container, mantendo a leitura de cada fotografia */
  .rd-context-figure--split { grid-template-columns: 1fr; }
  .rd-context-figure--split .rd-context-image { aspect-ratio: 16 / 9; min-height: 0; }
  .rd-footer__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 380px) {
  .rd-header__nav { gap: 10px; }
  .rd-header__link { font-size: 12px; }
  .rd-btn--sm { font-size: 11px; padding: 9px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-card, .rd-btn { transition: none !important; }
}
