/* 027 Experience Turismo — estilos (mobile-first) */

:root {
  --black: #0A0A0A;
  --graphite: #161616;
  --line: rgba(255, 255, 255, .1);
  --gold: #C5A059;
  --gold-dark: #A8873F;
  --beige: #F5F0E6;
  --text: #E8E4DC;
  --muted: #9C978E;
  --ink: #1F1C17;

  --font-title: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 16px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 500; line-height: 1.2; margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.hint { font-size: .85rem; color: var(--muted); }

/* Botões e links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.4rem; border-radius: 4px; border: 1px solid var(--gold);
  font-size: .95rem; font-weight: 500; text-decoration: none; cursor: pointer; background: none;
  transition: background-color .2s, color .2s;
}
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn--ghost { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { padding: .6rem 1rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn:focus-visible, .link:focus-visible, .segmented__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--gold); font-size: .92rem; text-decoration: underline; text-underline-offset: 4px;
}
.link:hover { color: var(--beige); }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: var(--black); border-bottom: 1px solid var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--font-title); font-size: 1.1rem; color: var(--beige); }
.brand img { height: 40px; width: auto; mix-blend-mode: lighten; }

.nav-toggle { background: none; border: 1px solid var(--line); border-radius: 4px; padding: .4rem .8rem; font-size: .88rem; cursor: pointer; }
.nav {
  position: fixed; inset: var(--header-h) 0 auto; background: var(--black); border-bottom: 1px solid var(--line);
  display: none; flex-direction: column; padding: .5rem var(--gutter) 1rem;
}
.nav.is-open { display: flex; }
.nav a { padding: .7rem 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav a:last-child { border-bottom: 0; }
.nav a:hover { color: var(--gold); }
.nav a[hidden] { display: none; }

/* Abertura */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  background: var(--black) center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero.has-photo { background-image: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.75)), url("../assets/fotos/hero.jpg"); }
.hero__inner { position: relative; z-index: 1; }
/* Logo como marca d'água cobrindo toda a abertura.
   "lighten" funde o fundo preto da logo com o fundo do site. */
.hero__logo {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  opacity: .18; mix-blend-mode: lighten; pointer-events: none; user-select: none;
  filter: contrast(1.8) brightness(.9); /* deixa o fundo cinza-escuro da imagem totalmente preto */
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 45%, transparent 100%);
}
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.8rem); max-width: 16ch; color: var(--beige); }
.hero__sub { margin-top: 1.25rem; max-width: 50ch; color: var(--text); opacity: .85; font-size: 1.05rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Seções */
.section { padding: 4.5rem 0; }
.section--alt { background: var(--graphite); }
.section--light { background: var(--beige); color: var(--ink); }
.section__head { max-width: 620px; margin-bottom: 2.5rem; }
.section__head h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); color: var(--beige); }
.section--light .section__head h2 { color: var(--ink); }
.section__head p { margin-top: .9rem; color: var(--muted); }
.section__head .hint { margin-top: .6rem; }

/* Roteiros, em formato de cardápio */
.menu-list { border-top: 1px solid var(--line); }
.item { padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.item__head { display: flex; align-items: baseline; gap: .75rem; }
.item__head h3 { font-size: 1.3rem; color: var(--beige); flex: 0 1 auto; }
.item__dots { flex: 1 1 2rem; min-width: 1rem; border-bottom: 1px dotted rgba(197, 160, 89, .5); transform: translateY(-.3em); }
.item__price { flex: none; font-family: var(--font-title); font-size: 1.3rem; color: var(--gold); white-space: nowrap; }
.item__price--soft { font-family: var(--font-body); font-size: .95rem; }
.item p { margin: .7rem 0 .9rem; color: var(--muted); max-width: 70ch; }

/* A viagem */
.trip { display: grid; gap: 2rem; margin-bottom: 4rem; }
.trip__text h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); color: var(--beige); margin-bottom: 1.2rem; }
.trip__text p + p { margin-top: 1rem; }
.trip__text p { color: var(--text); opacity: .9; max-width: 60ch; }
.trip__photo { margin: 0; }
.trip__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.specs { margin: 1.8rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; max-width: 420px; }
.specs dt { font-size: .8rem; color: var(--muted); }
.specs dd { margin: 0; color: var(--beige); }

.climate { padding-top: 3rem; border-top: 1px solid var(--line); }
.climate h3 { font-size: 1.4rem; color: var(--beige); }
.climate__intro p { color: var(--muted); max-width: 60ch; margin-top: .6rem; }

/* Perfil de altitude */
.profile { margin: 2rem 0 2.5rem; }
.profile__svg { width: 100%; height: auto; overflow: visible; }
.profile__ground { fill: rgba(197, 160, 89, .06); }
.profile__line { fill: none; stroke: rgba(197, 160, 89, .55); stroke-width: 1.5; }
.pt { cursor: pointer; outline: none; }
.pt line { stroke: rgba(255, 255, 255, .12); stroke-dasharray: 2 4; }
.pt circle { fill: var(--graphite); stroke: var(--gold); stroke-width: 2; transition: r .2s, fill .2s; }
.pt__temp { font-family: var(--font-title); font-size: 22px; fill: var(--muted); transition: fill .2s; }
.pt__alt { font-size: 11px; fill: var(--muted); }
.pt:hover circle, .pt:focus-visible circle { r: 9; }
.pt.is-active circle { fill: var(--gold); r: 9; }
.pt.is-active .pt__temp { fill: var(--gold); }
.pt:focus-visible .pt__temp { text-decoration: underline; }
@media (max-width: 639px) {
  .pt__temp { font-size: 36px; }
  .pt__alt { font-size: 20px; }
  .pt circle { r: 10; }
  .pt.is-active circle, .pt:hover circle { r: 13; }
}

.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1rem; }
.place {
  display: grid; gap: .1rem; text-align: left; padding: .7rem .8rem; cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: 4px; color: var(--text); font-size: .9rem;
  transition: border-color .2s, background-color .2s;
}
.place:hover { border-color: rgba(197, 160, 89, .5); }
.place[aria-selected="true"] { border-color: var(--gold); background: rgba(197, 160, 89, .08); }
.place small { color: var(--muted); font-size: .78rem; }

/* Previsão e o que levar */
.climate__body { display: grid; gap: 2.5rem; }
.climate h4 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--beige); margin-bottom: .8rem; }
.days { list-style: none; margin: 0 0 .8rem; padding: 0; }
.day {
  width: 100%; display: grid; grid-template-columns: 4.6rem 1fr 2rem minmax(60px, 1.2fr) 2rem; align-items: center; gap: .6rem;
  padding: .65rem .5rem; margin: 0; background: none; border: 0; border-bottom: 1px solid var(--line);
  color: var(--text); font-size: .9rem; text-align: left; cursor: pointer; border-radius: 0;
  transition: background-color .15s;
}
.day:hover { background: rgba(255, 255, 255, .03); }
.day[aria-pressed="true"] { background: rgba(197, 160, 89, .1); box-shadow: inset 2px 0 0 var(--gold); }
.day__name { font-weight: 500; }
.day__desc { color: var(--muted); font-size: .8rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day__desc em { font-style: normal; color: #7FA8C9; }
.day__min { color: var(--muted); text-align: right; }
.day__max { text-align: left; }
.day__bar { position: relative; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.day__bar i { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: linear-gradient(90deg, #7FA8C9, var(--gold)); }

.pack__summary { color: var(--text); margin-bottom: .8rem; }
.pack__list { margin: 0 0 1rem; padding-left: 1.1rem; display: grid; gap: .45rem; }
.pack__list li { animation: fadeIn .3s ease; }
.pack__list li::marker { color: var(--gold); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Orçamento */
.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.calc__form { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.3rem; align-content: start; }
.calc__panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
.calc__panel[hidden] { display: none; }

.segmented { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--line); }
.segmented__btn {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: .5rem 0; margin-bottom: -1px;
  cursor: pointer; color: var(--muted); font-size: 1rem;
}
.segmented__btn.is-active { color: var(--beige); border-color: var(--gold); }

.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; min-width: 0; }
.field > span { font-size: .85rem; color: var(--muted); }
.field select, .field input {
  width: 100%; min-width: 0; padding: .7rem .8rem; border-radius: 4px;
  background: var(--graphite); border: 1px solid rgba(255, 255, 255, .16); color: var(--text); color-scheme: dark;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--gold); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.row .field:first-child { grid-column: 1 / -1; }

.stops { margin: .5rem 0 0; padding-left: 1.3rem; display: grid; gap: .3rem; }
.stops li { font-size: .92rem; }
.stops li > div { display: flex; align-items: baseline; gap: .8rem; }
.stops li span { flex: 1; min-width: 0; }
.stops button { flex: none; background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-size: .8rem; text-decoration: underline; }
.stops button:hover { color: var(--gold); }
.stops button[disabled] { visibility: hidden; }

.balloon { border: 0; margin: 0; padding: 0; display: grid; gap: .6rem; }
.balloon[hidden] { display: none; }
.balloon legend { font-size: .85rem; color: var(--muted); margin-bottom: .4rem; padding: 0; }
.radio, .check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-size: .95rem; }
.radio input, .check input { accent-color: var(--gold); margin-top: .35rem; flex: none; }
.check.is-disabled { opacity: .4; pointer-events: none; }

.calc__summary {
  min-width: 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: 4px; background: var(--graphite);
  display: flex; flex-direction: column; gap: 1rem;
}
.calc__summary h3 { font-size: 1.25rem; color: var(--beige); }
.sum-route { font-size: .88rem; color: var(--muted); }
.sum-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .92rem; }
.sum-lines:empty { display: none; }
.sum-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.sum-lines li span { color: var(--muted); }
.sum-lines li b { font-weight: 500; white-space: nowrap; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1rem; border-top: 1px solid var(--line); }
.sum-total strong { font-family: var(--font-title); font-size: 1.8rem; font-weight: 500; color: var(--gold); }

/* Mapa interativo do roteiro */
.routemap[hidden] { display: none; }
.routemap__canvas {
  position: relative; aspect-ratio: 1031 / 600; overflow: hidden;
  border: 1px solid var(--line); border-radius: 4px;
  background: linear-gradient(90deg, #0a0a0a 55%, #0d1a24);
}
.routemap__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-state { fill: #1a1a1a; }
.map-hl { fill: rgba(197, 160, 89, .07); }
.map-munis { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-state-line { fill: none; stroke: rgba(197, 160, 89, .55); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.map-seg { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map-seg--return { stroke: rgba(197, 160, 89, .55); stroke-dasharray: .015 .012; }
.map-seg--new { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawSeg .7s ease forwards; }
.map-seg--return.map-seg--new { stroke-dasharray: .015 .012; stroke-dashoffset: 0; opacity: 0; animation: fadeSeg .4s ease .6s forwards; }
@keyframes fadeSeg { to { opacity: 1; } }
@keyframes drawSeg { to { stroke-dashoffset: 0; } }

.routemap__pins { position: absolute; inset: 0; }
.pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 34px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; color: var(--text);
}
.pin.is-hidden { display: none; }
.pin__dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--black); border: 2px solid var(--gold);
  display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--black); line-height: 1;
  transition: width .15s, height .15s, background-color .15s;
}
.pin--stop:hover .pin__dot, .pin--stop:focus-visible .pin__dot { width: 18px; height: 18px; }
.pin--stop:focus-visible { outline: none; }
.pin--stop:focus-visible .pin__label { text-decoration: underline; }
.pin.is-on .pin__dot { width: 22px; height: 22px; background: var(--gold); }
.pin--base { cursor: default; }
.pin--base .pin__dot { border-radius: 3px; background: var(--beige); border-color: var(--beige); width: 12px; height: 12px; }
.pin__label {
  position: absolute; white-space: nowrap; font-size: 12px; line-height: 1.2; pointer-events: none;
  color: var(--text); text-shadow: 0 0 3px #000, 0 0 6px #000;
}
.pin.is-on .pin__label { color: var(--beige); font-weight: 600; }
.pin--stop:not(.is-on) .pin__label { color: var(--muted); }
.pin--r .pin__label { left: 28px; top: 50%; transform: translateY(-50%); }
.pin--l .pin__label { right: 28px; top: 50%; transform: translateY(-50%); }
.pin--t .pin__label { bottom: 26px; left: 50%; transform: translateX(-50%); }
.pin--b .pin__label { top: 26px; left: 50%; transform: translateX(-50%); }

.routemap__mini { position: absolute; left: 8px; top: 8px; width: 46px; height: auto; aspect-ratio: 2664 / 3409; }
.routemap__mini path { fill: rgba(197, 160, 89, .18); stroke: rgba(197, 160, 89, .6); stroke-width: 18; }
.routemap__mini rect { fill: none; stroke: var(--beige); stroke-width: 40; }
.routemap__sea { position: absolute; right: 10px; bottom: 8px; font-size: 11px; font-style: italic; color: rgba(140, 170, 195, .6); letter-spacing: .04em; }
.routemap__bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-top: .6rem; }
.routemap__bar .link { flex: none; font-size: .85rem; }
.routemap__bar .link[hidden] { display: none; }
@media (max-width: 480px) {
  .pin__label { font-size: 10.5px; }
  .pin--r .pin__label { left: 24px; } .pin--l .pin__label { right: 24px; }
  .pin--t .pin__label { bottom: 22px; } .pin--b .pin__label { top: 22px; }
  .routemap__mini { width: 34px; }
  .pin--base .pin__label { left: auto; right: 4px; top: 24px; transform: none; }
  .pin__role { display: none; }
}

/* Depoimentos */
.testimonials { display: grid; gap: 2rem; }
.testimonial { margin: 0; }
.testimonial blockquote { margin: 0; font-family: var(--font-title); font-size: 1.15rem; line-height: 1.55; color: var(--ink); }
.testimonial figcaption { margin-top: .8rem; font-size: .9rem; color: #6B6458; }
.testimonial figcaption strong { color: var(--ink); font-weight: 600; }

/* Rodapé */
.footer { border-top: 1px solid var(--line); padding: 3.5rem 0 0; font-size: .92rem; }
.footer__grid { display: grid; gap: 2rem; }
.footer__logo img { width: 200px; height: auto; mix-blend-mode: lighten; }
.footer p { color: var(--muted); margin-top: 1rem; max-width: 40ch; }
.footer h4 { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--beige); margin-bottom: .6rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; color: var(--muted); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer__bottom { margin-top: 3rem; padding-top: 1.2rem; padding-bottom: 5.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

.whats-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.whats-float svg { width: 30px; height: 30px; }

/* Entrada suave das seções */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .row { grid-template-columns: 1.4fr 1fr 1fr; }
  .row .field:first-child { grid-column: auto; }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: none; }
  .nav { position: static; display: flex; flex-direction: row; gap: 2rem; padding: 0; border: 0; background: none; }
  .nav a { padding: 0; border: 0; font-size: .95rem; }
  .hero { padding: calc(var(--header-h) + 4rem) 0 4rem; }
  .section { padding: 6rem 0; }
  .trip { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 4rem; }
  .climate__body { grid-template-columns: 1.3fr 1fr; gap: 4rem; }
  .calc { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .calc__summary { position: sticky; top: calc(var(--header-h) + 24px); }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
}
