/* ================================================================
   Refúgio Real — Estilos
   Paleta: Azul oceano + Areia
   ================================================================ */

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

:root {
  --blue-deep:   #0d3d5c;
  --blue-mid:    #1a6a9a;
  --blue-light:  #3a9fd0;
  --blue-pale:   #e8f4fb;
  --sand:        #f5ede0;
  --sand-dark:   #e8d8c4;
  --white:       #ffffff;
  --text:        #1a2a38;
  --text-mid:    #3a5068;
  --text-light:  #6a88a0;
  --green-wa:    #25d366;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(13,61,92,.12);
  --shadow-lg:   0 12px 48px rgba(13,61,92,.18);
  --transition:  .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Tipografia comum ---- */
.section-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-light);
  margin-bottom: .6rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; color: var(--blue-deep);
  line-height: 1.2; margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.05rem; color: var(--text-mid);
  max-width: 600px; line-height: 1.75;
}

/* ================================================================
   BOTÕES
   ================================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.8rem; border-radius: 50px;
  background: var(--green-wa); color: #fff;
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,.5); }
.btn-primary.btn-large { padding: 1.1rem 2.2rem; font-size: 1.1rem; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.8rem; border-radius: 50px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff; font-size: .95rem; font-weight: 500;
  backdrop-filter: blur(8px);
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-secondary:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.8); }

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 1.1rem 2rem; border-radius: 50px;
  border: 2px solid var(--blue-mid); color: var(--blue-mid);
  font-size: 1rem; font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.btn-outline-dark:hover { background: var(--blue-mid); color: #fff; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(13,61,92,.1);
  padding: .65rem 0;
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 2rem;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: #fff; flex-shrink: 0;
  transition: color var(--transition);
}
.site-header.scrolled .logo { color: var(--blue-deep); }

.header-nav {
  display: flex; gap: 1.75rem; flex: 1;
}
.nav-link {
  font-size: .88rem; font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
}
.nav-link:hover { color: #fff; }
.site-header.scrolled .nav-link { color: var(--text-mid); }
.site-header.scrolled .nav-link:hover { color: var(--blue-deep); }

.btn-whats-header {
  display: flex; align-items: center; gap: .4rem;
  padding: .5rem 1.1rem; border-radius: 50px;
  background: var(--green-wa); color: #fff;
  font-size: .85rem; font-weight: 600;
  flex-shrink: 0;
  transition: opacity var(--transition), transform var(--transition);
}
.btn-whats-header:hover { opacity: .88; transform: scale(1.04); }

@media (max-width: 680px) {
  .header-nav { display: none; }
  .logo { color: #fff !important; }
  .site-header.scrolled .logo { color: var(--blue-deep) !important; }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative; height: 100dvh; min-height: 580px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,40,65,.55) 0%,
    rgba(13,40,65,.35) 50%,
    rgba(13,40,65,.7) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
}
.hero-badge {
  display: inline-block;
  padding: .3rem .9rem; border-radius: 50px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.9); font-size: .8rem; font-weight: 500;
  backdrop-filter: blur(6px);
  letter-spacing: .04em;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700; color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.88);
  max-width: 520px; line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0,0,0,.2);
}
.hero-rating {
  display: flex; align-items: center; gap: .5rem;
}
.stars { color: #fbbf24; font-size: 1.1rem; letter-spacing: .05em; }
.rating-text { color: rgba(255,255,255,.8); font-size: .88rem; }

.hero-actions {
  display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center;
  margin-top: .5rem;
}
.hero-scroll-hint {
  position: absolute; bottom: 1.75rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.55);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ================================================================
   DESTAQUES
   ================================================================ */
.destaques {
  padding: 6rem 0;
  background: var(--white);
}
.destaques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.destaque-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--sand-dark);
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.destaque-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue-light);
}
.destaque-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-mid);
  margin-bottom: 1.1rem;
}
.destaque-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--blue-deep); margin-bottom: .5rem;
}
.destaque-card p {
  font-size: .9rem; color: var(--text-mid); line-height: 1.65;
}

/* ================================================================
   GALERIA
   ================================================================ */
.galeria {
  padding: 5rem 0;
  background: var(--sand);
}
.galeria .container { margin-bottom: 2.5rem; }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: .5rem;
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.galeria-item {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer;
  border-radius: var(--radius);
}
.galeria-item--large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.galeria-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.galeria-item:hover img { transform: scale(1.05); }
.galeria-overlay {
  position: absolute; inset: 0;
  background: rgba(13,61,92,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.galeria-item:hover .galeria-overlay { opacity: 1; }
.galeria-overlay span {
  color: #fff; font-size: .85rem; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.7);
  padding: .4rem .9rem; border-radius: 20px;
}

@media (max-width: 768px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 .75rem;
  }
  .galeria-item--large {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }
}

/* ================================================================
   COMODIDADES
   ================================================================ */
.comodidades {
  padding: 5.5rem 0;
  background: var(--blue-deep);
}
.comodidades .section-label { color: var(--blue-light); }
.comodidades .section-title { color: #fff; }
.comodidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .75rem;
  margin-top: 2.5rem;
}
.comodidade-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .85rem 1.1rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  color: rgba(255,255,255,.88);
  font-size: .9rem;
}
.comodidade-item svg { color: var(--blue-light); flex-shrink: 0; }

/* ================================================================
   AVALIAÇÕES
   ================================================================ */
.avaliacoes {
  padding: 4rem 0;
  background: var(--sand);
}
.avaliacoes-inner {
  display: flex; align-items: center; gap: 2.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow);
}
.avaliacoes-score {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0;
}
.score-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; font-weight: 700;
  color: var(--blue-deep); line-height: 1;
}
.score-stars { color: #fbbf24; font-size: 1.3rem; letter-spacing: .05em; margin: .25rem 0; }
.score-label { font-size: .78rem; color: var(--text-light); font-weight: 500; }
.avaliacoes-divider {
  width: 1px; height: 80px;
  background: var(--sand-dark); flex-shrink: 0;
}
.avaliacoes-text p {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: var(--text);
  line-height: 1.6; font-style: italic;
  margin-bottom: .85rem;
}
.avaliacoes-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: var(--text-light);
}
.avaliacoes-link {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--blue-mid); font-weight: 600;
  transition: color var(--transition);
}
.avaliacoes-link:hover { color: var(--blue-deep); }

@media (max-width: 600px) {
  .avaliacoes-inner { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .avaliacoes-divider { width: 80px; height: 1px; }
  .avaliacoes-meta { justify-content: center; }
}

/* ================================================================
   COMO RESERVAR
   ================================================================ */
.reservar {
  padding: 6rem 0;
  background: var(--white);
}
.steps {
  display: flex; align-items: flex-start; gap: 1rem;
  margin: 3rem 0 3.5rem;
}
.step {
  flex: 1; text-align: center; padding: 0 1rem;
}
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue-deep); color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--blue-deep); margin-bottom: .5rem;
}
.step p { font-size: .9rem; color: var(--text-mid); line-height: 1.6; }
.step-arrow {
  flex-shrink: 0; margin-top: 14px;
  color: var(--blue-light);
}
.reservar-cta {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}

@media (max-width: 640px) {
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .step { max-width: 320px; width: 100%; }
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  padding: 3rem 0 2.5rem;
  background: var(--blue-deep);
  text-align: center;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; color: #fff;
  margin-bottom: .35rem;
}
.footer-local {
  font-size: .85rem; color: rgba(255,255,255,.5);
  margin-bottom: 1.25rem;
}
.footer-links {
  display: flex; justify-content: center; gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-links a {
  font-size: .88rem; font-weight: 500;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: .78rem; color: rgba(255,255,255,.3);
}

/* ================================================================
   WHATSAPP FLOAT
   ================================================================ */
.whats-float {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green-wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whats-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,.6);
}

/* ================================================================
   LIGHTBOX
   ================================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox.hidden { display: none; }

.lightbox-img-wrap {
  max-width: 90vw; max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain; border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  transition: opacity .2s;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  background: rgba(255,255,255,.12);
  border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,.25);
}
.lightbox-close {
  top: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px;
}
.lightbox-prev {
  left: 1.25rem; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
}
.lightbox-next {
  right: 1.25rem; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
}
.lightbox-counter {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: .85rem;
  background: rgba(0,0,0,.4); padding: .3rem .8rem; border-radius: 20px;
}

/* ================================================================
   UTILS
   ================================================================ */
.hidden { display: none !important; }

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { text-align: center; justify-content: center; }
  .reservar-cta { flex-direction: column; align-items: stretch; }
  .reservar-cta a { text-align: center; justify-content: center; }
  .galeria-grid { grid-template-columns: 1fr 1fr; gap: .35rem; }
}
