/* ===========================================================
   Lagoa Nômade — design tokens
   =========================================================== */
:root {
  --color-bg: #f7f5f0;
  --color-card-bg: #ffffff;
  --color-text: #191919;
  --color-text-soft: #3a3a3a;
  --color-deep: #1a3a3a;
  --color-cream: #f0ece4;
  --color-gold: #c8a96e;
  --color-gold-hover: #b7975a;
  --color-border: #e5e0d8;
  --color-white: #ffffff;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --max-width: 1180px;
  --radius-btn: 8px;
  --radius-card: 12px;
  --radius-img: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: var(--color-text);
}

h1 { font-size: 3rem; } /* 48px desktop */
h2 { font-size: 2rem; } /* 32px desktop */
h3 { font-size: 1.25rem; } /* 20px */

@media (max-width: 768px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(26,58,58,0.35) 0%, rgba(15,30,30,0.75) 100%) center/cover no-repeat,
      url('assets/images/hero-casal-brinde-por-do-sol.webp') center center / cover no-repeat,
      var(--color-deep) !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
  }
}

@media (max-width: 640px) {
  h1 { font-size: 2rem; } /* 32px mobile */
  h2 { font-size: 1.5rem; } /* 24px mobile */

  .hero {
    background:
      linear-gradient(180deg, rgba(26,58,58,0.35) 0%, rgba(15,30,30,0.75) 100%) center/cover no-repeat,
      url('assets/images/hero-casal-brinde-por-do-sol.webp') center center / cover no-repeat,
      var(--color-deep);
    background-repeat: no-repeat !important;
    background-attachment: scroll;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  /* Imagens em largura máxima no mobile */
  .about__image {
    max-width: 100%;
  }
  .photo-figure {
    max-width: 100%;
  }
  .gallery__item {
    flex: 1 1 calc(50% - var(--space-1));
    min-width: 160px;
  }
}

p { margin: 0 0 var(--space-2); color: var(--color-text-soft); }

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-6) 0;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-hover);
  display: block;
  margin-bottom: var(--space-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-gold {
  background: var(--color-gold);
  color: #1a1a1a;
}
.btn-gold:hover { background: var(--color-gold-hover); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}
.btn-outline-dark:hover { background: var(--color-text); color: var(--color-white); }

/* ===========================================================
   Navbar
   =========================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
}

.navbar__logo {
  position: relative;
  display: inline-block;
  padding-top: 14px;
  font-family: 'Hammersmith One', var(--font-body);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  line-height: 1.2;
  color: #191919;
}
.navbar__sublogo {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-top: 2px;
  color: var(--color-text);
}

.navbar__links {
  display: none;
  gap: var(--space-4);
  font-size: 0.95rem;
}

.navbar__links a {
  position: relative;
  padding: 0.25rem 0;
}
.navbar__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--color-gold-hover);
  transition: width 0.2s ease;
}
.navbar__links a:hover::after { width: 100%; }

.navbar__actions { display: flex; align-items: center; gap: var(--space-2); }
.navbar .btn { padding: 0.65rem 1.3rem; font-size: 0.85rem; }

@media (min-width: 860px) {
  .navbar__links { display: flex; }
}

/* Hamburger — só aparece abaixo de 860px */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: var(--space-1);
}
.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.navbar__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.is-open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 860px) {
  .navbar__hamburger { display: none; }
}

.navbar__drawer {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-3) var(--space-3);
  z-index: 99;
  pointer-events: auto;
}
.navbar__drawer.is-open {
  display: flex;
  pointer-events: auto;
}
.navbar__drawer a {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
}
.navbar__drawer a:last-child { border-bottom: none; }

@media (min-width: 860px) {
  .navbar__drawer { display: none !important; }
}

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(26,58,58,0.35) 0%, rgba(15,30,30,0.75) 100%) center/cover no-repeat,
    url('assets/images/hero-casal-brinde-mirror.jpg') center/auto 100% repeat-x,
    var(--color-deep);
  color: var(--color-white);
}

.hero__inner {
  padding: var(--space-6) var(--space-3) var(--space-5);
  max-width: 720px;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 480px;
}

.hero h1 { color: var(--color-white); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* ===========================================================
   Acesso rápido
   =========================================================== */
.quicklinks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  background: transparent;
  border: none;
}

.quicklinks a {
  background: transparent;
  padding: var(--space-4) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background-color 0.2s ease;
  min-height: 110px;
}
.quicklinks a:hover { background: var(--color-white); }

@media (min-width: 700px) {
  .quicklinks { grid-template-columns: repeat(3, 1fr); }
}

/* ===========================================================
   Quartos
   =========================================================== */
.rooms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

@media (min-width: 640px) {
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .rooms-grid { grid-template-columns: repeat(3, 1fr); }
}

.room-card { display: block; }

.room-card__image {
  display: block;             /* o card__image é um <a> (inline por padrão) — sem isto ele colapsa a 0×0 */
  position: relative;
  width: 100%;
  padding-bottom: 75%;        /* 4:3 — reserva altura de forma determinística em qualquer navegador */
  height: 0;
  background: #ddd7c9;
  overflow: hidden;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-img);
}
.room-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-card__meta {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-bottom: var(--space-1);
}

.room-card__link {
  font-size: 0.85rem;
  border-bottom: 1px solid var(--color-gold-hover);
  padding-bottom: 2px;
}

/* ===========================================================
   Experiências
   =========================================================== */
.experience-list {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-4);
}

.experience-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-border);
}
.experience-item:last-child { border-bottom: 1px solid var(--color-border); }

.experience-item__title { margin-bottom: 0.35rem; }

/* ===========================================================
   Sobre
   =========================================================== */
.about {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}
.about__image {
  /* mesma moldura das galerias/figuras — bordas padronizadas com folga */
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-1);
  max-width: 380px;
  margin: 0 auto;
}
.about__image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--radius-img) - 2px);
}

@media (min-width: 860px) {
  .about { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .about__image { max-width: none; margin: 0; }
}

/* ===========================================================
   Como chegar
   =========================================================== */
.location-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.location-grid iframe {
  width: 100%;
  height: 360px;
  border: 0;
}
@media (min-width: 860px) {
  .location-grid { grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
  .location-grid iframe { height: 100%; min-height: 360px; }
}

/* ===========================================================
   Estadia
   =========================================================== */
.stay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  margin-top: var(--space-4);
}
.stay-card {
  background: var(--color-card-bg);
  padding: var(--space-4);
  border-radius: var(--radius-card);
}
@media (min-width: 700px) {
  .stay-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===========================================================
   Contato
   =========================================================== */
.contact {
  background: var(--color-deep);
  color: var(--color-cream);
}
.contact h2 { color: var(--color-cream); }
.contact p { color: rgba(240,236,228,0.9); }
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* ===========================================================
   Footer
   =========================================================== */
.footer {
  padding: var(--space-5) 0 var(--space-3);
  background: var(--color-deep);
  font-size: 0.85rem;
  color: rgba(240,236,228,0.75);
}
.footer strong {
  position: relative;
  display: inline-block;
  padding-top: 16px;
  color: var(--color-cream);
  font-family: 'Hammersmith One', var(--font-body);
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: lowercase;
}
.footer strong::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 1.167em;     /* centro do "uu" de Lagoa Nômade */
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-cream);
}
.footer a { color: var(--color-cream); }
/* Legibilidade dos títulos de coluna do rodapé sobre fundo escuro */
.footer h3, .footer__heading { color: var(--color-cream); }
.footer p { color: rgba(240,236,228,0.82); }
.footer__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
@media (min-width: 700px) {
  .footer__row { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer__social a { margin-left: var(--space-2); }
.footer__social a:first-child { margin-left: 0; }

/* ===========================================================
   Focus visibility (a11y)
   =========================================================== */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-gold-hover);
  outline-offset: 2px;
}

/* ===========================================================
   Media box — reserva de altura determinística (fallback universal)
   =========================================================== */
.media {
  position: relative;
  width: 100%;
  height: 0;
  overflow: hidden;
  background: #ddd7c9;
  border-radius: var(--radius-img);
}
.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--16x10 { padding-bottom: 62.5%; }
.media--4x3   { padding-bottom: 75%; }
.media--4x5   { padding-bottom: 125%; }

/* ===========================================================
   Galeria de fotos — moldura com folga entre borda e imagem
   =========================================================== */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.gallery--small .gallery__item { height: 190px; }
.gallery__item {
  height: 300px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-1);          /* folga proporcional entre a moldura e a foto */
  display: flex;
  justify-content: center;
  align-items: center;
}
.gallery__item img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: calc(var(--radius-img) - 2px);
  display: block;
}
@media (max-width: 599px) {
  .gallery__item { height: 220px; }
  .gallery--small .gallery__item { height: 150px; }
}

/* Figura única com folga (usada em seções com uma foto de destaque) */
.photo-figure {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-1);
  margin-top: var(--space-4);
  max-width: 640px;
}
.photo-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius-img) - 2px);
  display: block;
}
.photo-figure--portrait img { aspect-ratio: 4 / 5; }
.photo-figure figcaption {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  padding: var(--space-1) var(--space-1) 0;
}

/* Grupo de CTAs segmentados (ex.: ver suítes / ver econômicos) */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
  clear: both;          /* defensivo: nunca colar em conteúdo flutuante acima */
  position: relative;   /* contexto de empilhamento próprio */
  z-index: 1;
  width: 100%;
}

/* Mobile floating WhatsApp CTA */
.mobile-cta {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 90;
  border-radius: var(--radius-btn);
  text-align: center;
  width: auto;
}
@media (min-width: 860px) {
  .mobile-cta { display: none; }
}

/* Badge de Avaliações Google */
.avaliacoes-container {
  text-align: center;
  margin: 2rem 0;
}
.avaliacoes-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-btn);
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}
.avaliacoes-link:hover {
  background: var(--color-gold);
  color: var(--color-white);
}
.avaliacoes-nota {
  font-weight: 600;
  font-size: 1.1em;
}
.avaliacoes-total {
  font-size: 0.95em;
  opacity: 0.85;
}
.avaliacoes-cta {
  font-size: 0.9em;
  opacity: 0.7;
}

/* LANG SWITCHER */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: var(--space-2);
  border: 1px solid var(--color-border, #e5e0d8);
  border-radius: 50px;
  padding: 2px;
}
.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.55rem;
  border-radius: 50px;
  color: var(--color-text, #3a3a3a);
  opacity: 0.55;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.lang-btn:hover { opacity: 0.9; }
.lang-btn.active {
  opacity: 1;
  background: var(--color-gold, #c8a96e);
  color: #fff;
}
.footer .lang-switcher {
  border-color: rgba(240,236,228,0.3);
  margin: 0 0 0 auto;
}
.footer .lang-btn { color: var(--color-cream, #f0ece4); }
.footer .lang-btn.active { color: #fff; }
@media (max-width: 859px) {
  .lang-switcher { order: -1; margin-right: 0.4rem; }
}
.breadcrumb {
  background: var(--color-cream, #f0ece4);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text-light, #3a3a3a);
  border-bottom: 1px solid var(--color-border, #e5e0d8);
}
.breadcrumb a {
  color: var(--color-gold, #c8a96e);
  text-decoration: none;
  transition: opacity 0.2s;
}
.breadcrumb a:hover {
  opacity: 0.8;
  text-decoration: underline;
}
.breadcrumb span {
  margin: 0 0.5rem;
  opacity: 0.6;
}
