/* ==========================================================================
   SEÇÕES — hero, reserva, horários, jornada, frota, promo, transfer,
             avaliações, rotas relacionadas, CTA fixa mobile
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */

.hero {
  background: var(--deep);
  padding: calc(var(--nav-h) + 38px) 0 0;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/hero-pier.jpg") 50% 42% / cover no-repeat;
  /* leve aproximação: a foto assenta no lugar durante a entrada */
  transform: scale(1.06);
  animation: hero-settle 1.6s var(--ease-out) forwards;
}

/* O gradiente original era rgba(8,20,38,0.97) já no início — praticamente
   opaco, apagava a foto inteira.
   Aqui a coluna de texto (0–58%, onde ficam h1, subtítulo, tripé e trust
   pills) permanece escura o suficiente para o branco ter contraste AA, e só
   depois dela a imagem abre para a água e o barco. */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(21, 45, 73, 0.95) 0%,
    rgba(21, 45, 73, 0.91) 38%,
    rgba(12, 71, 108, 0.74) 58%,
    rgba(0, 90, 110, 0.4) 80%,
    rgba(0, 107, 125, 0.18) 100%
  );
}

/* vinheta suave: dá profundidade sem lavar a imagem */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 90% 70% at 30% 45%,
    transparent 40%,
    rgba(12, 28, 45, 0.45) 100%
  );
}

@keyframes hero-settle {
  to {
    transform: scale(1);
  }
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--on-deep-35);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--on-deep-35);
  text-decoration: none;
  transition: color var(--t-fast);
}
.breadcrumb a:hover {
  color: var(--teal-light);
}
.breadcrumb span {
  color: rgba(255, 255, 255, 0.18);
}
.breadcrumb .current {
  color: var(--on-deep-70);
}

/* Expandida ocupa mais largura: escala menor que a do serif anterior, senão
   "De Conceição de Jacareí" estoura a coluna. */
.hero-h1 {
  font-size: clamp(27px, 3.4vw, 45px);
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hero-h1 em {
  color: var(--teal-light);
  font-style: italic;
}

.hero-sub {
  font-size: 16px;
  color: var(--on-deep-70);
  max-width: 500px;
  margin-bottom: 28px;
  font-weight: 400;
  line-height: 1.7;
}
.hero-sub strong {
  color: var(--teal-light);
  font-weight: 600;
}

/* --- Tripé de informação --- */
.route-tripod {
  display: flex;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.tripod-item {
  flex: 1;
  padding: 18px 20px;
  border-right: 1px solid var(--hairline);
}
.tripod-item:last-child {
  border-right: none;
}
.tripod-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-deep-35);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tripod-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.tripod-value.accent {
  color: var(--teal-light);
}
.tripod-sub {
  font-size: 11px;
  color: var(--on-deep-35);
  margin-top: 3px;
}

.trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 8px;
  margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   SIDEBAR DE RESERVA
   -------------------------------------------------------------------------- */

.booking-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 18px);
  background: rgba(22, 47, 74, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-float);
}

.bs-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.bs-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 22px;
}
.bs-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}
.bs-price {
  font-size: 34px;
  color: var(--white);
  line-height: 1;
}
.bs-price-unit {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 4px;
  letter-spacing: 0;
}

/* Opções de tarifa — agora são <label> com <input type=radio> dentro,
   para funcionarem por teclado e serem lidas por leitor de tela. */
.bs-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition:
    border-color var(--t-fast),
    background var(--t-fast);
}
.bs-option:hover {
  border-color: var(--on-deep-20);
}
.bs-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.bs-option:has(input:checked) {
  border-color: var(--teal);
  background: rgba(0, 155, 141, 0.12);
}
.bs-option:has(input:focus-visible) {
  outline: 2px solid var(--teal-light);
  outline-offset: 2px;
}

.bs-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

/* são <span> dentro de <label>, então precisam virar bloco */
.bs-opt-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}
.bs-opt-sub {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}
.bs-opt-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--teal-light);
  white-space: nowrap;
}

.bs-microcopy {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 10px;
  line-height: 1.6;
}
.bs-divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 18px 0;
}
.bs-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--on-deep-50);
  margin-bottom: 8px;
}
.bs-feature svg {
  color: var(--teal-light);
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   HORÁRIOS
   -------------------------------------------------------------------------- */

.schedule-section {
  padding: var(--section-gap) 0 0;
}

/* --------------------------------------------------------------------------
   JORNADA
   -------------------------------------------------------------------------- */

.journey-section {
  padding: var(--section-gap) 0 0;
}

.journey-visual {
  background: var(--deep);
  border-radius: var(--r-xl);
  padding: 32px;
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}
.journey-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 100%,
    var(--teal-glow) 0%,
    transparent 60%
  );
}
.journey-inner {
  position: relative;
  display: flex;
  align-items: center;
}
.journey-stop {
  flex: 1;
  text-align: center;
}
.js-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.js-badge.start {
  background: rgba(0, 155, 141, 0.2);
  color: var(--teal-light);
}
.js-badge.end {
  background: rgba(232, 82, 58, 0.2);
  color: var(--coral-light);
}
.js-city {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 4px;
}
.js-detail {
  font-size: 12px;
  color: var(--on-deep-50);
  line-height: 1.5;
}

.journey-line {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 0 16px;
}
.jl-time {
  font-size: 28px;
  color: var(--teal-light);
  text-align: center;
  line-height: 1;
}
.jl-label {
  font-size: 11px;
  color: var(--on-deep-35);
  text-align: center;
}
.jl-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), rgba(0, 184, 169, 0.3));
  border-radius: 2px;
  position: relative;
  /* animado por js/animations.js (scaleX 0 → 1) */
  transform-origin: left center;
}
.jl-line::after {
  content: "►";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   FROTA
   -------------------------------------------------------------------------- */

.boat-section {
  padding: 10px 0 40 0;
}

/* antes: bloco com style="" inline de 6 propriedades */
.boat-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 280px;
  background: url("../assets/barco-embarque.jpg") center 40% / cover;
  margin-bottom: 20px;
  position: relative;
}
.boat-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26, 56, 86, 0.6),
    rgba(0, 107, 125, 0.2)
  );
}

.boat-quote {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(26, 56, 86, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 22px;
}
.boat-quote .rv-stars {
  margin-bottom: 7px;
}
.boat-quote p {
  font-size: 14px;
  color: var(--on-deep-100);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 10px;
}
.boat-quote .rv-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.boat-quote .rv-avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
}
.boat-quote .rv-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  display: block;
}
.boat-quote .rv-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
}

.boat-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.bf-item {
  padding: 20px;
  border-radius: var(--r-md);
  text-align: center;
}
.bf-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
/* `margin: 0 auto` é obrigatório aqui: o reset põe img em display:block, e
   bloco não obedece ao text-align:center do .bf-item — sem isso o ícone
   encosta na esquerda enquanto número e label ficam centralizados. */
.bf-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin: 0 auto;
}
.bf-value {
  font-size: 24px;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}
.bf-label {
  font-size: 12px;
  color: var(--slate);
}

.boat-security {
  background: var(--deep);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sec-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.sec-item-icon {
  width: 36px;
  height: 36px;
  background: var(--teal-glow);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.sec-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
}
.sec-item-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   PROMO IDA + VOLTA
   -------------------------------------------------------------------------- */

.promo-section {
  padding: var(--section-gap) 0 0;
}

.promo-card {
  background: linear-gradient(135deg, var(--deep) 0%, var(--deep-3) 100%);
  border: 1px solid rgba(0, 155, 141, 0.25);
  border-radius: var(--r-xl);
  padding: 36px;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.promo-left {
  flex: 1;
  min-width: 220px;
}
.promo-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 10px;
}
.promo-title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-display);
  font-size: clamp(20px, 2.2vw, 29px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.promo-desc {
  font-size: 14px;
  color: var(--on-deep-50);
  line-height: 1.6;
}
.promo-right {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.promo-price-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px 24px;
  text-align: center;
  min-width: 140px;
}
.prb-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.prb-price {
  font-size: 30px;
  color: var(--white);
  line-height: 1;
}
.prb-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
}
.promo-arrow {
  font-size: 24px;
  color: var(--on-deep-20);
  align-self: center;
}
.promo-saving {
  background: rgba(232, 82, 58, 0.2);
  border: 1px solid rgba(232, 82, 58, 0.3);
  border-radius: 14px;
  padding: 20px 24px;
  text-align: center;
  min-width: 140px;
}
.promo-saving .save-label {
  font-size: 11px;
  color: var(--coral-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.promo-saving .save-val {
  font-size: 30px;
  color: var(--coral);
  line-height: 1;
}
.promo-saving .save-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
}
.promo-conditions {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 8px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   TRANSFER + BARCO
   -------------------------------------------------------------------------- */

.transfer-section {
  padding: var(--section-gap) 0 0;
}

.transfer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   AVALIAÇÕES
   -------------------------------------------------------------------------- */

.reviews-section {
  padding: var(--section-gap) 0 0;
}

.reviews-score-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.score-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.score-circle span {
  font-size: 22px;
  color: var(--white);
}
.score-details strong {
  font-size: 18px;
  color: var(--ink);
  display: block;
}
.score-details p {
  font-size: 13px;
  color: var(--slate);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.review-card {
  padding: 22px;
  border-radius: 14px;
}
.rv-text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 14px;
  font-style: italic;
}
.rv-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rv-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.rv-meta {
  font-size: 11px;
  color: var(--slate-light);
}

.reviews-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 20px;
  border-bottom: 1px solid rgba(0, 155, 141, 0.3);
  padding-bottom: 2px;
  transition: border-color var(--t-fast);
}
.reviews-link:hover {
  border-bottom-color: var(--teal);
}

/* --------------------------------------------------------------------------
   FAQ + ROTAS RELACIONADAS
   -------------------------------------------------------------------------- */

.faq-section {
  padding: var(--section-gap) 0;
}

.related-section {
  padding: 40px 0 80px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   CTA FIXA MOBILE
   -------------------------------------------------------------------------- */

.mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--deep);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  /* Fica visível por padrão de propósito: se o GSAP não carregar (CDN
     bloqueado), o CTA continua acessível. js/animations.js é quem esconde e
     depois revela no scroll. */
}
.mobile-sticky a {
  display: block;
  text-align: center;
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   ENTRADA DO HERO — CSS puro, sem depender de JS
   -------------------------------------------------------------------------- */

/* O <h1> é o provável elemento de LCP. Animá-lo a partir de opacity:0 atrasaria
   o LCP (o Chrome ignora elementos transparentes na medição), então ele recebe
   SÓ deslocamento — pinta imediatamente, opaco, e ainda assim se move. */
.hero-h1 {
  animation: rise-only 0.7s var(--ease-out) both;
}

.reveal-up {
  animation: rise-fade 0.6s var(--ease-out) both;
}

.hero .breadcrumb {
  animation-delay: 0.05s;
}
.hero .route-eyebrow {
  animation-delay: 0.1s;
}
.hero-h1 {
  animation-delay: 0.12s;
}
.hero .hero-sub {
  animation-delay: 0.22s;
}
.hero .route-tripod {
  animation-delay: 0.3s;
}
.hero .trust-row {
  animation-delay: 0.38s;
}
/* a sidebar é o elemento que vende — entra cedo, não por último */
.booking-sidebar {
  animation-delay: 0.18s;
}

@keyframes rise-fade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-only {
  from {
    transform: translateY(18px);
  }
  to {
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVO
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .booking-sidebar {
    display: none;
  }
  .mobile-sticky {
    display: block;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
  .boat-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .boat-security {
    grid-template-columns: 1fr 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
  .transfer-grid {
    grid-template-columns: 1fr;
  }
  .promo-card {
    flex-direction: column;
    gap: 28px;
  }

  .journey-inner {
    flex-direction: column;
    gap: 20px;
  }
  .journey-line {
    width: 100%;
    flex-direction: row;
    padding: 0;
  }
  .jl-line {
    height: 2px;
  }
}

@media (max-width: 600px) {
  /* A Archivo é variável no eixo de largura: em tela estreita ela volta para
     a largura normal, e assim "Conceição de Jacareí" para de quebrar em
     quatro linhas. O caráter expandido fica para o desktop. */
  :root {
    --wdth-display: 100;
  }
  .hero-h1 {
    font-size: clamp(24px, 6.6vw, 30px);
    letter-spacing: -0.02em;
  }

  .boat-security {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }

  /* A tabela tem 5 colunas e não cabe em 390px — era o que fazia a página
     inteira rolar de lado. "Saída" e "Destino" repetem o mesmo par em todas
     as linhas e a rota já está no h2 e no rótulo da aba, então saem daqui. */
  .schedule-table {
    font-size: 13px;
  }
  .schedule-table th,
  .schedule-table td {
    padding: 12px 14px;
  }
  .schedule-table th:nth-child(3),
  .schedule-table td:nth-child(3),
  .schedule-table th:nth-child(4),
  .schedule-table td:nth-child(4) {
    display: none;
  }

  .route-tripod {
    flex-direction: column;
  }
  .tripod-item {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }
  .tripod-item:last-child {
    border-bottom: none;
  }

  .boat-photo {
    height: 340px;
  }
  .boat-quote {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 16px;
  }
}

/* --------------------------------------------------------------------------
   DETALHES (grid)
   -------------------------------------------------------------------------- */

.detail-section {
  padding: var(--section-gap) 0 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
