/* ==========================================================================
   ROTA GUIADA — Chapada dos Veadeiros
   Direção: mineral (basalto + água turquesa + ouro do cerrado).
   Display: Fraunces · Corpo/labels: Archivo · Assinatura: linhas topográficas.
   ========================================================================== */

:root {
  --breu: #0b1410;
  --breu-2: #10201a;
  --breu-3: #16281f;
  --papel: #eef2ef;
  --papel-2: #e2e9e4;
  --agua: #0e9c90;
  --agua-fundo: #0a6d66;
  --agua-luz: #46d3c5;
  --agua-clara: #bfe6df;
  --ouro: #c89b4a;
  --ouro-claro: #e2c489;
  --rocha: #6e4a2c;
  --tinta: #0f1c16;
  --tinta-suave: #46564e;
  --branco: #fbfdfc;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --raio: 4px;
  --raio-media: 10px;
  --sombra: 0 30px 70px -30px rgba(11, 20, 16, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}
h1 em, h2 em, .brand em, .footer__brand em {
  font-style: italic;
  font-weight: 380;
  color: var(--agua);
}

a { color: var(--agua-fundo); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--breu); color: var(--branco);
  padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

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

/* ---------- Utilitários de tipo ---------- */

.eyebrow {
  font-family: var(--sans);
  font-stretch: 116%;
  font-weight: 640;
  font-size: .74rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--rocha);
}
.eyebrow--luz { color: var(--ouro-claro); }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  text-decoration: none;
  padding: 15px 27px; border-radius: 2px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

.btn--primary {
  background: var(--agua); color: var(--branco);
  box-shadow: 0 12px 30px -14px rgba(14, 156, 144, .8);
}
.btn--primary:hover { background: var(--agua-fundo); transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(14, 156, 144, .9); }

.btn--ghost {
  color: var(--branco);
  border: 1px solid rgba(251, 253, 252, .5);
  background: rgba(11, 20, 16, .14);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(251, 253, 252, .12); transform: translateY(-2px); }

.btn--big { font-size: 1.08rem; padding: 18px 34px; }
.btn--nav { padding: 10px 20px; font-size: .9rem; }

/* ---------- Assinatura: linhas topográficas ---------- */

.contour { display: block; width: 132px; height: auto; }
.contour path { stroke: var(--ouro); stroke-width: 1.4; fill: none; opacity: .9; }
.contour--luz path { stroke: var(--ouro-claro); }

.marker {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding-top: clamp(58px, 8vh, 92px);
}
.marker .eyebrow { color: var(--rocha); }
.marker--luz .eyebrow { color: var(--ouro-claro); }

/* ---------- Navegação ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(22px, 4vw, 52px);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(11, 20, 16, .8);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 -1px 0 rgba(200, 155, 74, .28);
  padding-top: 13px; padding-bottom: 13px;
}

.brand {
  display: inline-flex; align-items: baseline; gap: 3px;
  font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.02em;
  color: var(--branco); text-decoration: none;
}
.brand__mark { align-self: center; width: 26px; height: 26px; margin-right: 7px; color: var(--ouro-claro); }

.nav__menu { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav__menu > a:not(.btn) {
  color: var(--branco); text-decoration: none;
  font-size: .93rem; font-weight: 500; opacity: .9;
  position: relative;
}
.nav__menu > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--ouro-claro);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__menu > a:not(.btn):hover { opacity: 1; }
.nav__menu > a:not(.btn):hover::after { transform: scaleX(1); }

.nav__toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden; background: var(--breu);
}
.hero__media, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__media img { animation: kenburns 24s ease-out forwards; transform-origin: 55% 35%; }
@keyframes kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }

.hero__veil {
  position: absolute; inset: 0;
  /* degradê suave só na coluna do texto (esquerda) — mantém queda, arco-íris
     e rochas da direita totalmente vívidos */
  background:
    linear-gradient(101deg, rgba(6, 12, 9, .62) 0%, rgba(6, 12, 9, .40) 22%, rgba(6, 12, 9, .12) 40%, rgba(6, 12, 9, 0) 56%),
    linear-gradient(180deg, rgba(6, 12, 9, .30) 0%, rgba(6, 12, 9, 0) 16%, rgba(6, 12, 9, 0) 90%, rgba(6, 12, 9, .26) 100%);
}

.hero__content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 0 26px clamp(84px, 14vh, 128px);
}
.hero__rule {
  display: flex; align-items: center; gap: 16px; margin-bottom: 22px;
}
.hero__rule i { width: 54px; height: 1px; background: var(--ouro-claro); flex: none; }

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
  color: var(--branco);
  margin: 0 0 22px;
  text-wrap: balance;
  /* sombra macia e difusa (sem contorno duro) — lê elegante sobre o degradê */
  text-shadow: 0 1px 2px rgba(6, 12, 9, .28), 0 6px 34px rgba(6, 12, 9, .42);
}
.hero h1 em {
  color: var(--agua-luz);
  text-shadow: 0 1px 2px rgba(6, 12, 9, .34), 0 6px 30px rgba(6, 12, 9, .46);
}
.hero__sub {
  max-width: 32ch;
  color: rgba(251, 253, 252, .96);
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  margin-bottom: 30px;
  text-shadow: 0 1px 14px rgba(6, 12, 9, .55);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note {
  margin-top: 16px; max-width: 40ch;
  font-size: .92rem; font-weight: 500;
  color: rgba(251, 253, 252, .88);
  text-shadow: 0 1px 12px rgba(6, 12, 9, .6);
}
.hero__rule .eyebrow { text-shadow: 0 1px 10px rgba(6, 12, 9, .6); }

/* coordenadas (detalhe autêntico do lugar) */
.hero__coord {
  position: absolute; z-index: 2; right: clamp(22px, 4vw, 52px); top: 46%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-stretch: 112%; font-weight: 600;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(251, 253, 252, .66);
}

.hero__cue {
  position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  color: rgba(251, 253, 252, .8); text-decoration: none;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; font-stretch: 116%;
}
.hero__cue i { width: 0; height: 32px; border-left: 1px solid var(--ouro-claro); animation: gota 1.9s ease-in-out infinite; }
@keyframes gota { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(6px); opacity: .5; } }

/* ---------- Seções ---------- */

.section { padding-bottom: clamp(80px, 11vh, 132px); position: relative; }
.section--papel { background: var(--papel); }
.section--breu { background: var(--breu); color: var(--papel); }

.section__title {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  text-align: center;
  margin: 24px auto clamp(44px, 6vh, 68px);
  max-width: 16ch;
  text-wrap: balance;
}
.section--breu .section__title { color: var(--branco); }

/* ---------- A rota (split) ---------- */

.split {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(40px, 5vw, 80px); align-items: center; padding-top: 30px;
}
.split__text h2 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin: 16px 0 24px; }
.split__text > p { margin-bottom: 18px; color: var(--tinta-suave); max-width: 52ch; }

.fieldlist { list-style: none; margin-top: 28px; border-top: 1px solid var(--papel-2); }
.fieldlist li {
  position: relative; padding: 14px 0 14px 30px;
  font-weight: 550; border-bottom: 1px solid var(--papel-2);
}
.fieldlist li::before {
  content: ""; position: absolute; left: 2px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; background: var(--agua); border-radius: 50%;
}

/* Composição de duas fotos (uma principal + uma sobreposta) */
.cluster { position: relative; margin: 0; padding-bottom: 46px; padding-right: 30px; }
.cluster::before {
  content: ""; position: absolute; left: -16px; top: -16px;
  width: 52%; height: 46%; border: 1px solid var(--ouro); opacity: .55; z-index: 0;
  border-radius: var(--raio-media);
}
.cluster__main { position: relative; z-index: 1; }
.cluster__main img {
  border-radius: var(--raio-media); box-shadow: var(--sombra);
  aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
}
.cluster__main figcaption {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(11, 20, 16, .82); color: var(--agua-clara); backdrop-filter: blur(6px);
  padding: 9px 15px; border-radius: 2px;
}
.cluster__inset {
  position: absolute; z-index: 2; right: 0; bottom: 0; width: 47%;
}
.cluster__inset img {
  border-radius: var(--raio-media); box-shadow: var(--sombra);
  aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
  border: 6px solid var(--papel);
}

/* Faixa cinematográfica (interlúdio full-bleed) */
.faixa {
  position: relative; overflow: hidden;
  min-height: 64vh; display: grid; place-items: center;
  text-align: center; color: var(--branco);
}
.faixa__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.faixa__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9, 17, 13, .6) 0%, rgba(9, 17, 13, .48) 45%, rgba(9, 17, 13, .66) 100%);
}
.faixa__content {
  position: relative; z-index: 2; max-width: 830px; padding: 72px 26px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.faixa .contour { width: 116px; }
.faixa__quote {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.2;
  text-wrap: balance; text-shadow: 0 3px 26px rgba(9, 17, 13, .55);
}
.faixa__quote b { font-style: italic; font-weight: 400; color: var(--agua-luz); }

/* ---------- Cards de experiências ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 26px); }

.card {
  background: var(--breu-2);
  border: 1px solid rgba(200, 155, 74, .18);
  border-radius: var(--raio-media); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-7px); border-color: rgba(200, 155, 74, .5); box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .8); }

.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__index {
  position: absolute; top: 14px; left: 16px;
  font-family: var(--display); font-style: italic; font-size: 1.5rem;
  color: var(--branco); text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

.card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.card__meta {
  font-stretch: 114%; font-weight: 640; font-size: .7rem;
  letter-spacing: .19em; text-transform: uppercase; color: var(--ouro-claro);
}
.card__body h3 { font-size: 1.7rem; color: var(--branco); }
.card__body > p:not(.card__meta) { color: rgba(238, 242, 239, .76); font-size: .97rem; flex: 1; }
.card__link { color: var(--agua-luz); text-decoration: none; font-weight: 620; font-size: .96rem; margin-top: 4px; }
.card__link::after { content: " →"; transition: margin-left .25s var(--ease); }
.card__link:hover::after { margin-left: 6px; }

.cards__note { text-align: center; margin-top: 40px; color: rgba(238, 242, 239, .58); font-size: .95rem; }

/* ---------- Galeria ---------- */

.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px;
}
.gallery__item {
  display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0;
  border-radius: var(--raio-media); overflow: hidden; cursor: zoom-in;
  background: var(--papel-2); position: relative;
}
.gallery__item--big  { grid-column: span 2; grid-row: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .6s var(--ease); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(200, 155, 74, 0);
  transition: box-shadow .4s var(--ease); pointer-events: none; border-radius: inherit;
}
.gallery__item:hover img { transform: scale(1.05); filter: saturate(1.1); }
.gallery__item:hover::after { box-shadow: inset 0 0 0 2px rgba(200, 155, 74, .65); }

/* ---------- Lightbox ---------- */

.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
.lightbox::backdrop { background: rgba(9, 17, 13, .93); backdrop-filter: blur(8px); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-width: min(92vw, 1120px); max-height: 82vh; border-radius: var(--raio-media); object-fit: contain; }
.lightbox figcaption { color: var(--agua-clara); font-family: var(--sans); font-size: .94rem; letter-spacing: .02em; }
.lightbox button {
  position: fixed; z-index: 2; background: rgba(251, 253, 252, .1); color: var(--branco);
  border: 1px solid rgba(251, 253, 252, .28); border-radius: 50%;
  width: 46px; height: 46px; font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background-color .25s var(--ease);
}
.lightbox button:hover { background: rgba(251, 253, 252, .22); }
.lightbox__close { top: 20px; right: 24px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Como funciona (passos reais 01-02-03) ---------- */

/* Passos como uma trilha de nós conectados (ecoa a rota/topografia) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); position: relative; }
.steps::before {
  content: ""; position: absolute; z-index: 0;
  top: 33px; left: 16.66%; right: 16.66%; height: 0;
  border-top: 1.5px dashed rgba(200, 155, 74, .55);
}
.steps li { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.steps__n {
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 22px;
  background: var(--breu); border: 1px solid var(--ouro);
  font-family: var(--display); font-style: italic; font-size: 1.7rem; color: var(--ouro-claro);
  box-shadow: 0 0 0 6px var(--breu);
}
.steps h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--branco); }
.steps p { color: rgba(238, 242, 239, .74); font-size: .97rem; max-width: 30ch; margin: 0 auto; }

.kit { margin: clamp(46px, 6vh, 66px) auto 0; max-width: 760px; text-align: center; }
.kit ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.kit li {
  border: 1px solid rgba(200, 155, 74, .4); border-radius: 2px;
  padding: 8px 17px; font-size: .9rem; font-weight: 520; color: rgba(238, 242, 239, .9);
}

/* ---------- CTA ---------- */

.cta { position: relative; overflow: hidden; padding: clamp(112px, 18vh, 196px) 26px; text-align: center; color: var(--branco); background: var(--breu); }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 24, 21, .74), rgba(9, 17, 13, .66)); }
.cta__contour { position: absolute; z-index: 1; left: 50%; top: 40px; transform: translateX(-50%); width: min(560px, 80%); opacity: .5; }
.cta__contour path { stroke: var(--ouro-claro); stroke-width: 1; }
.cta__content { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(2.5rem, 6vw, 4.6rem); margin-bottom: 16px; text-wrap: balance; }
.cta p { color: rgba(251, 253, 252, .9); margin-bottom: 30px; font-size: 1.12rem; }
.cta__phone {
  margin-top: 18px !important; margin-bottom: 0 !important;
  font-stretch: 112%; letter-spacing: .14em; font-weight: 620;
  font-size: .92rem !important; color: var(--agua-clara) !important;
}

/* ---------- Rodapé ---------- */

.footer { background: var(--breu); color: rgba(238, 242, 239, .72); padding: 58px 0 30px; }
.footer__grid {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: 28px; padding-bottom: 34px; border-bottom: 1px solid rgba(200, 155, 74, .3);
}
.footer__brand { font-family: var(--display); font-size: 1.7rem; color: var(--branco); margin-bottom: 6px; }
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links a { color: var(--agua-clara); text-decoration: none; }
.footer__links a:hover { color: var(--ouro-claro); }
.footer__legal { text-align: center; font-size: .84rem; padding: 22px 26px 0; opacity: .52; }

/* ---------- Reveal (fail-safe: sem JS, tudo visível) ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero: entrada em CSS puro (independe de JS/scroll) */
@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-rise { opacity: 0; animation: heroRise 1s var(--ease) forwards; }
.hero-rise:nth-child(1) { animation-delay: .1s; }
.hero-rise:nth-child(2) { animation-delay: .26s; }
.hero-rise:nth-child(3) { animation-delay: .42s; }
.hero-rise:nth-child(4) { animation-delay: .58s; }
.hero-rise:nth-child(5) { animation-delay: .72s; }

/* ---------- Responsivo ---------- */

@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; max-width: 460px; }
  .cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; gap: 34px; }
  .steps::before { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .hero__coord { display: none; }
}

@media (max-width: 520px) {
  .gallery__item--big { grid-column: span 2; grid-row: span 1; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
}

@media (max-width: 760px) {
  .nav__toggle {
    display: flex; flex-direction: column; gap: 6px; z-index: 60;
    background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .nav__toggle span { width: 26px; height: 2px; background: var(--branco); transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(8px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
  .nav__menu {
    position: fixed; inset: 0; background: rgba(11, 20, 16, .97); backdrop-filter: blur(16px);
    flex-direction: column; justify-content: center; font-size: 1.3rem;
    opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
  }
  .nav__menu.is-open { opacity: 1; pointer-events: auto; }
  .nav__menu > a:not(.btn) { font-size: 1.3rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__cue { display: none; }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img, .hero__cue i { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-rise { opacity: 1; animation: none; }
  .btn, .card, .card__media img, .gallery__item img { transition: none; }
}
