/* ==========================================================================
   Pousada Capricórnio — style.css
   Estrutura:
   1. Tokens (variáveis)      6. Componentes
   2. Reset / base            7. Seções
   3. Tipografia              8. Placeholders de conteúdo
   4. Layout                  9. Utilitários
   5. Header / Footer        10. Media queries finais
   ========================================================================== */

/* Fontes auto-hospedadas (Google Fonts, subset "latin" — cobre acentuação do
   português). Cada arquivo é a fonte variável, com a faixa de peso usada no
   site; evita depender de fonts.googleapis.com/fonts.gstatic.com. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
}

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* Cores da marca (extraídas da identidade atual da pousada) */
  --c-navy: #16324f;
  --c-navy-dark: #0f2439;
  --c-teal: #1f7e9c;
  --c-teal-light: #e8f1f4;
  --c-orange: #e2802b;
  --c-orange-dark: #c4691c;
  --c-sand: #fadfb0;
  --c-sand-deep: #e0c58c;
  --c-cream: #fbf7f0;
  --c-shell: #f2ece2;
  --c-white: #ffffff;

  /* Texto */
  --c-ink: #1c2630;
  --c-ink-soft: #55626e;
  --c-ink-faint: #8a949e;

  /* Linhas e superfícies */
  --c-line: rgba(22, 50, 79, 0.12);
  --c-line-soft: rgba(22, 50, 79, 0.07);
  --c-whatsapp: #25d366;
  --c-star: #e8a93b;

  /* Tipografia */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Escala tipográfica fluida */
  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-lg: clamp(1.09rem, 1.03rem + 0.3vw, 1.25rem);
  --fs-xl: clamp(1.3rem, 1.18rem + 0.55vw, 1.6rem);
  --fs-2xl: clamp(1.6rem, 1.35rem + 1.1vw, 2.3rem);
  --fs-3xl: clamp(2rem, 1.55rem + 2vw, 3.2rem);
  --fs-4xl: clamp(2.4rem, 1.7rem + 3.1vw, 4.4rem);

  /* Espaçamento */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-section: clamp(3.75rem, 8vw, 7.5rem);

  /* Formas */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 36, 57, 0.06), 0 6px 18px rgba(15, 36, 57, 0.05);
  --shadow-md: 0 2px 6px rgba(15, 36, 57, 0.07), 0 18px 40px rgba(15, 36, 57, 0.09);

  /* Layout */
  --container: 1180px;
  --container-narrow: 780px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --header-h: 74px;

  --ease: cubic-bezier(0.4, 0.1, 0.2, 1);
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img,
picture,
video,
svg { display: block; max-width: 100%; }

img,
video { height: auto; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

a {
  color: var(--c-teal);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--c-orange); }

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

ul, ol { padding: 0; margin: 0; list-style: none; }

hr {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: var(--sp-6) 0;
}

/* ==========================================================================
   3. TIPOGRAFIA
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--c-navy);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin: 0 0 var(--sp-3);
}

.lead {
  font-size: var(--fs-lg);
  color: var(--c-ink-soft);
  line-height: 1.6;
}

.text-muted { color: var(--c-ink-soft); }
.text-small { font-size: var(--fs-sm); }
.text-faint { color: var(--c-ink-faint); }
.section--navy .text-faint { color: rgba(255, 255, 255, 0.55); }

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--sp-section); }
.section--flush-top { padding-top: 0; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--cream { background: var(--c-cream); }
.section--shell { background: var(--c-shell); }
.section--navy { background: var(--c-navy); color: rgba(255, 255, 255, 0.82); }
.section--navy h2,
.section--navy h3 { color: var(--c-white); }
.section--navy .eyebrow { color: var(--c-sand); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid--rooms { gap: clamp(1.5rem, 3vw, 2.5rem); }
.gallery-grid { align-items: start; }

/* Bloco alternado texto + imagem */
.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
.split__body { max-width: 56ch; }

@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}

/* ==========================================================================
   5. HEADER / FOOTER
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--c-navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Fundo sólido: o arquivo do logo tem fundo branco, então o header branco
     evita que apareça um retângulo atrás da marca. */
  background: var(--c-white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--c-line-soft);
  box-shadow: 0 4px 20px rgba(15, 36, 57, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; }
.brand img {
  height: 40px;
  width: auto;
}

.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.1rem);
}

.nav__link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--c-ink);
  padding-block: 6px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--c-orange);
  transition: right 0.25s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { right: 0; }
.nav__link[aria-current="page"] { color: var(--c-navy); }

.header__actions { display: flex; align-items: center; gap: var(--sp-3); }

/* Em telas pequenas o botão flutuante já cobre o WhatsApp — evita header cheio. */
@media (max-width: 599px) {
  .header__actions .btn { display: none; }
}

/* Botão hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--c-navy);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Menu mobile */
.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 360px);
  background: var(--c-cream);
  z-index: 120;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav__list { display: flex; flex-direction: column; }
.mobile-nav__list a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--c-navy);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-line-soft);
}
.mobile-nav__list a[aria-current="page"] { color: var(--c-orange); }

.mobile-nav__foot {
  margin-top: auto;
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 57, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  z-index: 110;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

@media (min-width: 940px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}

/* Footer */
.site-footer {
  background: var(--c-navy-dark);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: var(--fs-sm);
}
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: var(--c-sand); }

.footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

.footer__title {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-sand);
  margin: 0 0 var(--sp-4);
}
.footer__list li { margin-bottom: var(--sp-2); }
.footer__brand img {
  height: 44px;
  width: auto;
  background: #fff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}
.footer__bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

.social { display: flex; gap: var(--sp-3); }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--c-sand);
}
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ==========================================================================
   6. COMPONENTES
   ========================================================================== */

/* --- Botões --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; fill: currentColor; }

.btn--primary { background: var(--c-orange); color: #fff; }
.btn--primary:hover { background: var(--c-orange-dark); color: #fff; }

.btn--navy { background: var(--c-navy); color: #fff; }
.btn--navy:hover { background: var(--c-navy-dark); color: #fff; }

.btn--outline { border-color: var(--c-line); color: var(--c-navy); background: transparent; }
.btn--outline:hover { border-color: var(--c-navy); color: var(--c-navy); background: rgba(22, 50, 79, 0.04); }

.btn--light { background: #fff; color: var(--c-navy); }
.btn--light:hover { background: var(--c-sand); color: var(--c-navy-dark); }

.btn--wa { background: var(--c-whatsapp); color: #fff; }
.btn--wa:hover { background: #1eb455; color: #fff; }

.btn--sm { padding: 0.6em 1.15em; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.btn-group--center { justify-content: center; }

/* Link com seta */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-navy);
}
.link-arrow::after {
  content: "→";
  transition: transform 0.22s var(--ease);
}
.link-arrow:hover { color: var(--c-orange); }
.link-arrow:hover::after { transform: translateX(4px); }

/* --- Botão flutuante WhatsApp --- */
.wa-float {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 56px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--c-whatsapp);
  color: #fff;
  box-shadow: 0 6px 22px rgba(15, 36, 57, 0.22);
  transition: gap 0.28s var(--ease), padding 0.28s var(--ease), background 0.2s var(--ease);
}
.wa-float:hover { background: #1eb455; color: #fff; }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; position: relative; z-index: 1; }
.wa-float__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: max-width 0.32s var(--ease), margin 0.32s var(--ease);
}
.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label {
  max-width: 200px;
  margin-left: 10px;
}
/* brilho sutil */
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: wa-pulse 3.4s var(--ease) infinite;
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  35%  { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 600px) {
  .wa-float { height: 52px; width: 52px; padding: 0; justify-content: center; }
  .wa-float__label { display: none; }
}

/* --- Media / placeholders de imagem --- */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--c-shell);
}
.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--panorama { aspect-ratio: 21 / 9; }
.media--card { aspect-ratio: 4 / 3; }

.media__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: var(--sp-4);
  background: linear-gradient(180deg, var(--c-shell), #e9e1d4);
  border: 1px dashed var(--c-sand-deep);
  border-radius: inherit;
  color: #9a8a6d;
}
.media__ph svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.4; opacity: 0.85; }
.media__ph-label {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 30ch;
}

.media__caption {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-ink-faint);
}

/* --- Carrossel de fotos (galerias de acomodação) --- */
.photo-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.photo-carousel__slide.is-active { opacity: 1; z-index: 1; }
.photo-carousel__slide picture { width: 100%; height: 100%; }

.photo-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--c-navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%);
  transition: background 0.2s var(--ease);
}
.photo-carousel__arrow:hover { background: #fff; }
.photo-carousel__arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.photo-carousel__arrow--prev { left: 10px; }
.photo-carousel__arrow--next { right: 10px; }

.photo-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}
.photo-carousel__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.photo-carousel__dots button.is-active { background: #fff; transform: scale(1.25); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: min(calc(100svh - var(--header-h)), 780px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--c-navy);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media picture,
.hero__media video {
  position: absolute;
  inset: 0;
}
.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero__video.is-ready { opacity: 1; }
.hero__media .media__ph {
  background: linear-gradient(160deg, #1c4a63, var(--c-navy) 60%, var(--c-navy-dark));
  border: 0;
  color: rgba(255, 255, 255, 0.5);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 36, 57, 0.15) 0%, rgba(15, 36, 57, 0.25) 45%, rgba(15, 36, 57, 0.78) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-sand);
  margin-bottom: var(--sp-4);
}
.hero h1 {
  color: #fff;
  max-width: 16ch;
  margin-bottom: var(--sp-4);
}
.hero__text {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-5);
}

/* Hero interno (páginas secundárias) */
.page-hero {
  position: relative;
  min-height: clamp(280px, 42vh, 440px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--c-navy);
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.photo-sunny { filter: brightness(1.08) saturate(1.25) contrast(1.05) sepia(0.06); }

/* Enquadramento da foto de capa por página (valores do celular; o desktop
   é ajustado no @media (min-width: 860px) mais abaixo). */
body[data-page="pousada"]         .page-hero__media img { object-position: center 72%; }
body[data-page="guarda-do-embau"] .page-hero__media img { object-position: center 68%; }
body[data-page="contato"]         .page-hero__media img { object-position: center 66%; }
.page-hero__media .media__ph {
  background: linear-gradient(160deg, #1c4a63, var(--c-navy) 65%, var(--c-navy-dark));
  border: 0;
  color: rgba(255, 255, 255, 0.45);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 36, 57, 0.2), rgba(15, 36, 57, 0.72));
}
.page-hero--short { min-height: clamp(220px, 30vh, 320px); }

/* Desktop: a faixa do hero é curta demais e corta partes aleatórias das
   fotos de capa. Aqui ela fica mais alta (mostra mais da imagem) e cada
   página recebe o ponto de foco certo. Só afeta telas de PC. */
@media (min-width: 860px) {
  .page-hero:not(.page-hero--short) { min-height: clamp(440px, 56vh, 600px); }

  body[data-page="pousada"]         .page-hero__media img { object-position: center 60%; }
  body[data-page="acomodacoes"]     .page-hero__media img { object-position: center 62%; }
  body[data-page="guarda-do-embau"] .page-hero__media img { object-position: center 74%; }
  body[data-page="contato"]         .page-hero__media img { object-position: center 78%; }
}
.page-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.page-hero h1 { color: #fff; font-size: var(--fs-3xl); margin-bottom: var(--sp-2); }
.page-hero p { color: rgba(255, 255, 255, 0.84); max-width: 52ch; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--sp-4);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5em; opacity: 0.5; }
.breadcrumb li { display: inline-flex; }

/* --- Números / destaques --- */
.stats {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
@media (min-width: 780px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 500;
  line-height: 1;
  color: var(--c-navy);
  margin-bottom: var(--sp-2);
}
.section--navy .stat__value { color: var(--c-sand); }
.stat__label {
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
  margin: 0;
}
.section--navy .stat__label { color: rgba(255, 255, 255, 0.75); }

/* --- Card base --- */
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(1.15rem, 2.2vw, 1.6rem);
  flex: 1;
}
.card__body h3 { margin: 0; }
.card__text { margin: 0; color: var(--c-ink-soft); font-size: var(--fs-sm); }
.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-2);
}

/* Card de acomodação */
.room-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--c-teal-light);
  color: #135a71;
  font-size: var(--fs-xs);
  font-weight: 500;
  white-space: nowrap;
}
.chip--sand { background: #fdf1da; color: #8a6a2f; }

.feature-list {
  display: grid;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
}
.feature-list li {
  position: relative;
  padding-left: 1.35em;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-sand-deep);
}

/* Variante em chips — usada em "Camas e capacidade" e "Comodidades" no painel
   "Ver detalhes", para não depender do grid de 2 colunas (que desequilibra
   quando uma lista tem bem mais itens que a outra). */
.feature-list--chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.feature-list--chips li {
  padding: 6px 14px 6px 26px;
  border-radius: var(--radius-pill);
  background: var(--c-teal-light);
  color: #135a71;
  font-weight: 500;
  white-space: nowrap;
}
.feature-list--chips li::before { left: 12px; top: 50%; transform: translateY(-50%); }

/* Card de acomodação em linha (página Acomodações) */
.room-card--row { overflow: visible; }
.room-card--row .room-card__grid { display: grid; }
.room-card--row:hover { transform: none; box-shadow: none; }
.room-card--row .room-card__grid > .media { border-radius: 0; }
@media (min-width: 780px) {
  .room-card--row .room-card__grid { grid-template-columns: minmax(0, 42%) 1fr; }
  .room-card--row .room-card__grid > .media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 280px;
  }
}

/* Card de diferencial */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(1.25rem, 2.4vw, 1.85rem);
  background: #fff;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-md);
  height: 100%;
}
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--c-teal-light);
  color: var(--c-teal);
}
.feature-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 { font-size: var(--fs-lg); margin: 0; }
.feature-card p { margin: 0; font-size: var(--fs-sm); color: var(--c-ink-soft); }

/* --- Accordion --- */
.accordion { border-top: 1px solid var(--c-line); }
.accordion__item { border-bottom: 1px solid var(--c-line); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-4) 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--c-navy);
}
.accordion__trigger:hover { color: var(--c-orange); }
.accordion__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}
.accordion__panel > div { overflow: hidden; }
.accordion__panel.is-open { grid-template-rows: 1fr; }
.accordion__inner { padding-bottom: var(--sp-5); }

/* Detalhes da acomodação (expand dentro do card) */
.room-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
  border-top: 1px solid transparent;
}
.room-details > div { overflow: hidden; }
.room-details.is-open {
  grid-template-rows: 1fr;
  border-top-color: var(--c-line-soft);
}
.room-details__inner {
  display: grid;
  align-items: start;
  gap: var(--sp-4);
  padding: var(--sp-5) clamp(1.15rem, 2.2vw, 1.6rem);
  background: var(--c-cream);
}
@media (min-width: 720px) {
  .room-details__inner { grid-template-columns: 1fr 1fr; }
  .room-details__inner > .room-details__full { grid-column: 1 / -1; }
}
.detail-title {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin: 0 0 var(--sp-2);
}

/* --- Slider de depoimentos --- */
.slider { position: relative; }
.slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86%, 400px);
  gap: var(--sp-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--sp-4);
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__item { scroll-snap-align: start; }
@media (min-width: 900px) {
  .slider__track { grid-auto-columns: calc((100% - (var(--sp-5) * 2)) / 3); }
}

.slider__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.slider__see-all { margin-left: var(--sp-3); }
.slider__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: #fff;
  color: var(--c-navy);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.slider__btn:hover { border-color: var(--c-navy); background: var(--c-cream); }
.slider__btn[disabled] { opacity: 0.35; cursor: default; }
.slider__btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Card de depoimento */
.quote-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  height: 100%;
  padding: clamp(1.25rem, 2.4vw, 1.85rem);
  background: #fff;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-md);
}
.stars { display: flex; gap: 2px; color: var(--c-star); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.quote-card blockquote {
  margin: 0;
  font-size: var(--fs-base);
  color: var(--c-ink);
  line-height: 1.6;
}
.quote-card__author {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-line-soft);
  font-size: var(--fs-sm);
}
.quote-card__avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-teal-light);
  color: #135a71;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}
.quote-card__avatar--sand { background: #fdf1da; color: #8a6a2f; }
.quote-card__name { font-weight: 600; color: var(--c-navy); display: block; }
.quote-card__source {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--c-ink-faint);
  font-size: var(--fs-xs);
}

/* --- Mapa --- */
.map-embed {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-shell);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 860px) {
  .map-embed { aspect-ratio: auto; height: 100%; min-height: 380px; }
}

/* Lista de contato */
.contact-list { display: grid; gap: var(--sp-4); }
.contact-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.contact-item__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--c-teal-light);
  color: var(--c-teal);
}
.contact-item__icon svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.contact-item__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
  margin: 0 0 2px;
}
.contact-item__value { margin: 0; font-size: var(--fs-base); color: var(--c-ink); }
.contact-item__value a { color: var(--c-navy); font-weight: 500; }
.contact-item__value a:hover { color: var(--c-orange); }

/* --- CTA final --- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--c-navy);
  color: #fff;
  text-align: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.cta-band .eyebrow { color: var(--c-sand); }
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p {
  max-width: 52ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--sp-5);
}
.cta-band .btn-group { justify-content: center; }

/* --- Conteúdo editorial (políticas / termos) --- */
.prose { max-width: 72ch; }
.prose h2 {
  font-size: var(--fs-xl);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line-soft);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--sp-5); }
.prose ul { display: grid; gap: var(--sp-2); margin: 0 0 var(--sp-4); }
.prose ul li { position: relative; padding-left: 1.35em; color: var(--c-ink-soft); }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-sand-deep);
}

/* Índice lateral (políticas / termos) */
.toc__title {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin: 0 0 var(--sp-4);
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  padding: var(--sp-5);
  background: var(--c-cream);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
}
.toc ul { display: grid; gap: var(--sp-2); }
.toc a { color: var(--c-ink-soft); }
.toc a:hover { color: var(--c-orange); }

.layout-aside { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 900px) {
  .layout-aside { grid-template-columns: 260px 1fr; }
}

/* ==========================================================================
   7. SEÇÕES ESPECÍFICAS
   ========================================================================== */

/* Mosaico de imagens (A Pousada / Guarda do Embaú) */
.mosaic {
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .mosaic > *:first-child { grid-column: span 2; grid-row: span 2; }
}

/* Lista de destaques do destino */
.highlight-list {
  display: grid;
  gap: var(--sp-4);
}
.highlight-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.highlight-item__num {
  flex: none;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--c-sand-deep);
  line-height: 1.4;
  min-width: 1.8em;
}
.highlight-item h3 { font-size: var(--fs-base); font-family: var(--font-sans); font-weight: 600; margin: 0 0 2px; }
.highlight-item p { margin: 0; font-size: var(--fs-sm); color: var(--c-ink-soft); }

/* ==========================================================================
   8. PLACEHOLDERS DE CONTEÚDO
   Tudo que ainda depende de informação real da pousada usa estes estilos.
   Procure por [data-ph] no HTML para localizar o que precisa ser preenchido.
   ========================================================================== */
.ph-text {
  border-left: 2px dashed var(--c-sand-deep);
  padding-left: 0.9rem;
  color: var(--c-ink-soft);
  font-style: italic;
}
.section--navy .ph-text,
.hero .ph-text,
.page-hero .ph-text,
.cta-band .ph-text { color: rgba(255, 255, 255, 0.72); border-left-color: rgba(250, 223, 176, 0.6); }

.ph-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8a6a2f;
  background: #fdf1da;
  border: 1px dashed var(--c-sand-deep);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  vertical-align: middle;
}

.ph-value { color: var(--c-ink-faint); font-style: italic; }

/* ==========================================================================
   COMPONENTE: PÁGINA DE ERRO (404)
   ========================================================================== */
.error-page {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}
.error-page__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.error-page .eyebrow { text-align: center; margin-bottom: var(--sp-2); }
.error-page__mascote {
  width: min(120px, 30vw);
  height: auto;
  margin-bottom: var(--sp-3);
}
.error-page h1 { font-size: var(--fs-3xl); margin-bottom: var(--sp-2); }
.error-page .lead { max-width: 440px; margin-inline: auto; }
.error-page .btn-group { margin-top: var(--sp-4); }
.error-page__shortcuts {
  width: 100%;
  max-width: 460px;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line-soft);
}
.error-page__shortcuts p { margin-bottom: var(--sp-2); }

/* ==========================================================================
   COMPONENTE: PÁGINA DE REDIRECIONAMENTO
   Usada em quarto/*.html — páginas curtas que só existem para o WhatsApp
   mostrar a foto da acomodação ao gerar o preview do link (og:image), e que
   redirecionam na hora para a acomodação certa em acomodacoes.html.
   ========================================================================== */
.redirect-page {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
}
.redirect-page__inner { text-align: center; }
.redirect-page__logo { height: 48px; width: auto; margin-bottom: var(--sp-6); }
.redirect-page h1 { margin-bottom: var(--sp-3); }
.redirect-page .lead { max-width: 440px; margin-inline: auto; }

/* ==========================================================================
   9. UTILITÁRIOS
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0; }
.mb-5 { margin-bottom: var(--sp-5); }
.full-bleed { border-radius: 0; }

/* Revelação suave ao rolar.
   Só é aplicada quando o JS está ativo (classe .js no <html>), para que o
   conteúdo continue visível se o JavaScript falhar ou for bloqueado. */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   10. PREFERÊNCIAS DO USUÁRIO / IMPRESSÃO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__video { display: none; }
}

@media print {
  .site-header, .wa-float, .mobile-nav, .nav-backdrop, .slider__nav { display: none !important; }
  body { color: #000; }
}
