:root {
  --cal: #F3F6F0;
  --brisa: #E1ECE4;
  --folha: #14301E;
  --tinta: #1A2420;
  --piscina: #0E6BA8;
  --sol: #F2B51E;
  --linha: rgba(20, 48, 30, 0.16);
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--cal);
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; margin: 0; }
p { margin: 0 0 1em; max-width: 60ch; }
a { color: inherit; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--sol); outline-offset: 3px; }
section[id] { scroll-margin-top: 64px; }

/* Botões */
.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--sol);
  color: var(--folha);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--folha); color: var(--cal); }
.btn-dark:focus-visible { outline-color: var(--piscina); }

/* Barra do topo */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad);
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.topbar.is-solid { background: var(--cal); color: var(--folha); box-shadow: 0 1px 0 var(--linha); }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; text-decoration: none; }
.topbar-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--sol);
  color: var(--folha);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--folha);
}
.hero-img {
  position: absolute;
  top: -22%;
  left: 0;
  width: 100%;
  height: 122%;
  object-fit: cover;
  object-position: 50% 42%;
  animation: settle 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8, 24, 14, 0.5) 0%, rgba(8, 24, 14, 0) 18%),
    linear-gradient(to top, rgba(8, 24, 14, 0.84) 0%, rgba(8, 24, 14, 0.4) 40%, rgba(8, 24, 14, 0) 64%);
}
.hero-text { position: relative; z-index: 2; padding: 0 var(--pad) clamp(36px, 8vh, 80px); max-width: 1180px; }
.hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.9rem); max-width: 18ch; animation: rise 0.9s 0.25s both; }
.hero-sub { font-size: 1.15rem; margin: 22px 0 28px; color: rgba(255, 255, 255, 0.92); animation: rise 0.9s 0.45s both; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; animation: rise 0.9s 0.6s both; }
.hero-link { color: #fff; text-underline-offset: 4px; }

@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Tour */
.tour { background: var(--piscina); color: #fff; padding: clamp(56px, 9vw, 120px) var(--pad); }
.tour-head, .tour-grid { max-width: 1400px; margin-left: auto; margin-right: auto; }
.tour-head h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.tour-head p { margin: 14px 0 0; color: rgba(255, 255, 255, 0.9); }
.tour-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(32px, 5vw, 56px);
}
.tour-list { list-style: none; margin: 0; padding: 0; }
.tour-item {
  display: block;
  width: 100%;
  padding: 16px 0 16px 22px;
  border: 0;
  border-left: 4px solid rgba(255, 255, 255, 0.28);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tour-item.is-active { border-left-color: var(--sol); }
.tour-name {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s ease;
}
.tour-item:hover .tour-name, .tour-item.is-active .tour-name { color: #fff; }
.tour-desc {
  display: block;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  color: #fff;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin-top 0.35s ease;
}
.tour-item.is-active .tour-desc { max-height: 5em; margin-top: 8px; opacity: 1; }
.tour-view { position: relative; margin: 0; aspect-ratio: 5 / 4; overflow: hidden; background: #0A5788; }
.tour-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumb {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 3px solid transparent;
  background: none;
  cursor: pointer;
  opacity: 0.72;
  overflow: hidden;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.is-active { opacity: 1; border-color: var(--sol); }
.tour-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.tour-img.is-on { opacity: 1; }

/* Informações práticas */
.praticas {
  padding: clamp(56px, 9vw, 120px) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  max-width: 1400px;
  margin: 0 auto;
}
.praticas h2 { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--folha); }
.facts { margin: 0; }
.fact {
  position: relative;
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 8px 24px;
  padding: 20px 0;
}
.fact::before, .fact:last-child::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--linha);
  transform-origin: left;
}
.fact::before { top: 0; }
.fact:last-child::after { bottom: 0; }
.fact dt { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--folha); }
.fact dd { margin: 0; }

/* Localização */
.onde { background: var(--brisa); }
.onde { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.onde-map { min-height: 420px; }
.onde-map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.onde-info { padding: clamp(40px, 7vw, 96px) var(--pad); align-self: center; }
.onde-info h2 { font-size: clamp(2rem, 3.6vw, 3rem); color: var(--folha); margin-bottom: 18px; }
.fachada { display: block; width: 100%; max-width: 460px; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 24px; }
.onde-info address { margin-bottom: 26px; font-size: 1.15rem; }
.onde-extra { margin: 22px 0 0; }
.onde-extra a { text-underline-offset: 4px; }

/* Rodapé */
.footer { background: var(--folha); color: var(--cal); padding: 44px var(--pad); }
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer p { margin: 0 0 6px; }
.footer-name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.footer a { text-underline-offset: 4px; }
.footer-note { margin-top: 18px; font-size: 0.9rem; color: rgba(243, 246, 240, 0.75); }

/* Botão fixo (celular) */
.sticky-cta {
  display: none;
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 30;
  padding: 16px;
  border-radius: 999px;
  background: var(--sol);
  color: var(--folha);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(8, 24, 14, 0.3);
  transform: translateY(140%);
  transition: transform 0.3s ease;
}
.sticky-cta.is-visible { transform: none; }

/* Movimento: só quando o JavaScript está ativo */
.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.js [data-split] .w > span {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i) * 55ms);
}
.js [data-split].is-in .w > span { transform: none; }

.js [data-reveal="up"] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease 0.15s, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s;
}
.js [data-reveal="up"].is-in { opacity: 1; transform: none; }

.js [data-reveal="wipe"] {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.1s cubic-bezier(0.7, 0, 0.2, 1);
}
.js [data-reveal="wipe-up"] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s cubic-bezier(0.7, 0, 0.2, 1);
}
.js [data-reveal="wipe"].is-in, .js [data-reveal="wipe-up"].is-in { clip-path: inset(0); }

.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.js [data-stagger].is-in > * { opacity: 1; transform: none; }
.js .tour-list[data-stagger] > li { transform: translateX(-26px); }
.js .tour-list[data-stagger].is-in > li { transform: none; }

.js .fact::before, .js .fact:last-child::after {
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.js .facts.is-in .fact::before, .js .facts.is-in .fact:last-child::after { transform: none; }

/* Foto do tour ganha um leve movimento ao entrar */
.tour-img.is-on { animation: drift 7s ease-out both; }
@keyframes drift { from { transform: scale(1.07); } to { transform: scale(1); } }

/* Pequenos gestos de resposta */
.btn { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn:hover { box-shadow: 0 10px 22px rgba(8, 24, 14, 0.22); }
.btn:active { transform: scale(0.98); }
.tour-name { transition: color 0.2s ease, transform 0.25s ease; }
.tour-item:hover .tour-name { transform: translateX(6px); }
.sticky-cta.is-nudge { animation: nudge 0.9s ease 1; }
@keyframes nudge { 0%, 100% { transform: none; } 40% { transform: scale(1.05); } }

@media (max-width: 900px) {
  .tour-grid, .praticas, .onde { grid-template-columns: minmax(0, 1fr); }
  .tour-media { order: -1; }
  .onde-map, .onde-map iframe { min-height: 320px; }
  .fact { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar-cta { display: none; }
  .sticky-cta { display: block; }
  .footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img, .hero h1, .hero-sub, .hero-actions, .tour-img.is-on, .sticky-cta.is-nudge { animation: none; }
  .tour-desc, .tour-img, .tour-name, .sticky-cta, .btn, .topbar { transition: none; }
  .js [data-split] .w > span, .js [data-reveal], .js [data-stagger] > *, .js .fact::before, .js .fact:last-child::after {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}
