/* ==========================================================================
   Pousada Guedes — Design tokens
   Paleta tirada da própria fachada: teal da placa, cinza-azulado do concreto,
   branco do painel 3D, terracota do telhado vizinho como toque de calor.
   Tipografia: Fraunces (serifada, com caráter) + Public Sans (limpa, legível
   em formulários e listas de comodidades).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700&family=Roboto:wght@500;600;700;800&display=swap');

:root {
  --brand-teal: #119ea2;
  --teal-900: #0b4d4a;
  --teal-700: #0e7c7a;
  --teal-500: #14958f;
  --teal-100: #e3f1f0;

  --charcoal-900: #22262a;
  --charcoal-700: #3a3f44;
  --stone-200: #e7e4dc;
  --stone-100: #f2f0ea;
  --paper: #f7f6f2;

  --terracotta: #b5602f;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ea952;

  --font-display: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 3px;
  --radius-md: 6px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--charcoal-900);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--charcoal-900);
}
p { max-width: 62ch; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--brand-teal);
  box-shadow: 0 2px 14px rgba(0,0,0,0.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}
.logo-link { display: flex; align-items: center; }
.logo-img {
  height: 82px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .logo-img { height: 60px; }
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  color: #f2f0ea;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: #fff;
}
.nav-cta {
  background: var(--whatsapp);
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: var(--radius-md);
  border-bottom: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-cta:hover { background: var(--whatsapp-dark); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 52px;
  height: 52px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-toggle .bar {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 90px; left: 0; right: 0;
    background: var(--charcoal-900);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-cta { margin-top: 12px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20,22,24,0.12) 0%, rgba(20,22,24,0.28) 55%, rgba(15,17,18,0.72) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 118px; padding-bottom: 64px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-500);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.hero-eyebrow svg { width: 16px; height: 16px; }
.hero h1 {
  background: linear-gradient(180deg, #dceef2 0%, #ffffff 65%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 14ch;
  margin-bottom: 0.3em;
}
.hero p.lead {
  color: #e7e4dc;
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 1.8em;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 2em;
  padding-top: 1.4em;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-facts div { font-size: 0.92rem; color: #cfd0cc; }
.hero-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: #fff; }
.btn-teal { background: var(--teal-700); color: #fff; }
.btn-teal:hover { background: var(--teal-900); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.section-stone { background: var(--stone-100); }
.section-head { max-width: 640px; margin-bottom: 3em; }
.section-head p { color: var(--charcoal-700); }
.kicker {
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius-md); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stone-200);
  border: 1px solid var(--stone-200);
}
.feature-card {
  background: var(--paper);
  padding: 32px 28px;
  border-top: 3px solid var(--teal-700);
  border-radius: 12px;
}
.icon-badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icon-badge svg { width: 22px; height: 22px; }
.icon-badge.tone-teal { background: var(--teal-100); }
.icon-badge.tone-terracotta { background: #f3e3d8; }
.feature-card h3, .room-card h3, .booking-card h3, .room-detail-grid h3, .contact-list strong {
  font-family: 'Roboto', var(--font-body);
  font-weight: 700;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.94rem; color: var(--charcoal-700); margin: 0; }
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Room cards (listing) ---------- */
.room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .room-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .room-grid { grid-template-columns: 1fr; } }

.room-card {
  background: #fff;
  border: 1px solid var(--stone-200);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
}
.room-card .thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--charcoal-900);
  overflow: hidden;
}
.room-card .thumb .slide {
  position: absolute; inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: rgba(255,255,255,0.85);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.room-card .thumb .slide.is-active { display: flex; }
.room-card .thumb .slide small { color: rgba(255,255,255,0.6); margin-top: 4px; font-family: var(--font-body); font-size: 0.8rem; }
.room-card .thumb .slide img { width: 100%; height: 100%; object-fit: cover; }
.room-card .thumb .slide { z-index: 1; }
.room-card .thumb .gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none;
  border: none; color: #fff;
  width: 30px; height: 30px;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7));
}
.room-card .thumb .gallery-nav.prev { left: 10px; }
.room-card .thumb .gallery-nav.next { right: 10px; }
.room-card .thumb .gallery-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.room-card .thumb .gallery-dots button {
  width: 6px; height: 6px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.5); cursor: pointer; padding: 0;
}
.room-card .thumb .gallery-dots button.is-active { background: #fff; }

.star-row { display: flex; gap: 3px; margin-bottom: 10px; }
.star-row svg { width: 15px; height: 15px; }
.badge {
  position: absolute;
  top: 12px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  z-index: 3;
}
.badge-type { left: 12px; background: var(--terracotta); color: #fff; }
.badge-status { right: 12px; background: #2f9e5b; color: #fff; }
.badge-parking {
  position: absolute;
  top: auto;
  bottom: 12px; left: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(20,22,24,0.55);
  display: flex; align-items: center; justify-content: center;
}
.badge-parking svg { width: 17px; height: 17px; }
.room-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.room-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.room-card p { font-size: 0.92rem; color: var(--charcoal-700); margin-bottom: 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--teal-100);
  color: var(--teal-900);
  padding: 5px 11px;
  border-radius: 999px;
}
.tag svg { width: 13px; height: 13px; flex-shrink: 0; }
.room-card .body .btn { margin-top: auto; justify-content: center; }

/* ---------- Room detail page ---------- */
.room-hero {
  margin-top: 90px;
  position: relative;
}
.gallery {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--charcoal-900);
  overflow: hidden;
  border-radius: 12px;
}
@media (min-width: 700px) {
  .gallery { aspect-ratio: 16/9; }
}
.gallery .slide {
  position: absolute; inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 24px;
}
.gallery .slide.is-active { display: flex; }
.gallery .slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery .slide span { font-family: var(--font-display); font-size: 1.3rem; }
.gallery .slide small { color: rgba(255,255,255,0.6); margin-top: 6px; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}
.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }
.gallery-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.gallery-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.45); cursor: pointer; padding: 0;
}
.gallery-dots button.is-active { background: #fff; }

.room-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  padding-top: 56px;
}
@media (max-width: 900px) { .room-detail-grid { grid-template-columns: 1fr; } }
.room-detail-grid h1 { font-size: 2.1rem; }
.amenity-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}
.amenity-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.amenity-list li svg { width: 16px; height: 16px; flex-shrink: 0; }
.booking-card {
  background: var(--stone-100);
  border: 1px solid var(--stone-200);
  padding: 28px;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  box-sizing: border-box;
}
.form-narrow { max-width: 560px; margin: 0 auto; }
@media (min-width: 900px) {
  .room-detail-grid .booking-card { align-self: start; position: sticky; top: 124px; }
}
.booking-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.booking-card .price { font-family: var(--font-display); font-size: 1.6rem; color: var(--teal-900); margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; min-width: 0; }
.field-row .field { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; min-width: 0; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  padding: 11px 12px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.95rem;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box !important;
}
.booking-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.field input[type="date"] {
  padding-right: 12px;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a3f44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

/* ---------- Map / location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 800px) {
  .location-grid { grid-template-columns: 1fr; gap: 32px; }
}
.map-wrap { border: 1px solid var(--stone-200); border-radius: 12px; overflow: hidden; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; }
.contact-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--stone-200);
}
.contact-list .icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal-100);
  display: flex; align-items: center; justify-content: center;
}
.contact-list .icon svg { width: 18px; height: 18px; }
.contact-list strong { display: block; font-size: 0.98rem; }
.contact-list span { color: var(--charcoal-700); font-size: 0.92rem; }

/* ---------- Final CTA band ---------- */
.cta-band {
  background: var(--teal-900);
  color: #fff;
  text-align: left;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal-900);
  color: #cfd0cc;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-logo { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 18px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-family: var(--font-body); font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: 0.92rem; color: #a8aaa4; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.85rem;
  color: #8b8d87;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 58px; height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 90;
}
.wa-float:hover { background: var(--whatsapp-dark); }

/* ---------- Utility page header (subpages) ---------- */
.page-head {
  background: var(--charcoal-900);
  color: #fff;
  padding: 128px 0 56px;
}
.page-head h1 { color: #fff; font-size: 2.4rem; margin-bottom: 8px; }
.page-head p { color: #cfd0cc; margin: 0; }
