/* =========================================================
   CHÁCARA REFÚGIO DAS ARARAS — design tokens
   Palette: verde-profundo, oliva, terracota-madeira, areia, branco-quente
   Type: Fraunces (display) + Work Sans (body/UI)
   ========================================================= */

:root {
  --verde-profundo: #1F3327;
  --verde-oliva: #5C6E4A;
  --madeira: #7A4A2B;
  --madeira-clara: #B4703C;
  --areia: #E9DFC7;
  --branco-quente: #FBF8F1;
  --texto: #24291F;
  --texto-suave: #4B5142;
  --linha: rgba(36, 41, 31, 0.12);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --container-w: 1180px;
  --radius-s: 3px;
  --radius-m: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =============== RESET =============== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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; }
}
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

body {
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--branco-quente);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--verde-profundo); letter-spacing: -0.01em; }

:focus-visible {
  outline: 2px solid var(--madeira-clara);
  outline-offset: 3px;
}

/* =============== TYPE UTILITIES =============== */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--madeira);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow.center { justify-content: center; }
.eyebrow-light { color: var(--areia); }
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--madeira-clara);
  display: inline-block;
}

h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 18px; }
h2.center { text-align: center; }
h2.light { color: var(--branco-quente); }
.lead { font-size: 1.1rem; color: var(--texto-suave); max-width: 46ch; }
.lead.light { color: rgba(251,248,241,0.85); }
.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
p.center { margin-left: auto; margin-right: auto; }

/* =============== BUTTONS =============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--madeira);
  color: var(--branco-quente);
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--madeira-clara); }
.btn-ghost {
  background: transparent;
  border-color: rgba(251,248,241,0.65);
  color: var(--branco-quente);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(251,248,241,0.12); border-color: var(--branco-quente); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(251,248,241,0.5);
  color: var(--branco-quente);
}
.btn-outline-light:hover, .btn-outline-light:focus-visible { background: rgba(251,248,241,0.1); }
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }

/* =============== BRAND MARK =============== */
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.mark-mountain { fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.mark-sun { fill: currentColor; opacity: 0.85; }
.mark-arara { fill: currentColor; opacity: 0.9; }

/* =============== HEADER =============== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.3s var(--ease);
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--linha);
  padding: 14px 0;
}
.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--branco-quente);
  transition: color 0.35s var(--ease);
}
.site-header.scrolled .brand { color: var(--verde-profundo); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand-name em { font-style: italic; font-weight: 400; display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; margin-top: -2px; }

.main-nav {
  display: flex;
  gap: 34px;
}
.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--branco-quente);
  position: relative;
  padding: 4px 0;
  transition: color 0.35s var(--ease);
}
.site-header.scrolled .main-nav a { color: var(--texto); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transition: right 0.3s var(--ease);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 24px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--branco-quente);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled .nav-toggle span { background: var(--verde-profundo); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============== HERO =============== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 82%;
  transform: scale(1.06);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,15,0.42) 0%, rgba(15,23,15,0.18) 32%, rgba(17,26,17,0.55) 78%, rgba(12,18,12,0.82) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 28px 96px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  color: var(--branco-quente);
  opacity: 0;
  animation: heroIn 1s var(--ease) 0.3s forwards;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero .eyebrow { color: var(--areia); }
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  color: var(--branco-quente);
  line-height: 1.08;
  max-width: 14ch;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.12rem;
  max-width: 46ch;
  color: rgba(251,248,241,0.88);
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px; height: 36px;
  border: 1px solid rgba(251,248,241,0.55);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  background: var(--branco-quente);
  border-radius: 2px;
  animation: cueMove 1.8s ease-in-out infinite;
}
@keyframes cueMove { 0%,100% { opacity: 1; transform: translateY(0);} 50% { opacity:0.3; transform: translateY(10px);} }

/* =============== SECTION SPACING =============== */
.section { padding: 108px 0; }
@media (max-width: 768px) { .section { padding: 76px 0; } }

/* =============== SPLIT LAYOUT =============== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }
.split-media img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius-m); }
.trait-list {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.trait-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--verde-profundo);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--linha);
}
.trait-icon { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; }

/* =============== AMENITIES =============== */
.amenities { background: var(--areia); }
.amenity-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--linha);
  border: 1px solid var(--linha);
}
.amenity-card {
  background: var(--branco-quente);
  padding: 40px 32px;
  transition: background 0.3s var(--ease);
}
.amenity-card:hover { background: #fff; }
.amenity-icon { display: block; width: 32px; height: 32px; margin-bottom: 20px; color: var(--madeira); }
.amenity-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.amenity-card p { font-size: 0.92rem; color: var(--texto-suave); }

/* =============== FOR WHO =============== */
.who-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.who-card { position: relative; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 3/4; }
.who-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.who-card:hover img { transform: scale(1.06); }
.who-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 20px;
  background: linear-gradient(180deg, transparent, rgba(15,20,13,0.86));
  color: var(--branco-quente);
}
.who-text h3 { color: var(--branco-quente); font-size: 1.05rem; margin-bottom: 4px; }
.who-text p { font-size: 0.86rem; color: rgba(251,248,241,0.85); }

/* =============== STAY / ACOMODAÇÃO =============== */
.stay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.stay-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.stat { border-top: 2px solid var(--madeira); padding-top: 14px; }
.stat-num { display: block; font-family: var(--font-display); font-size: 2.6rem; color: var(--verde-profundo); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--texto-suave); text-transform: uppercase; letter-spacing: 0.06em; }
.stay-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stay-img-a { height: 420px; object-fit: cover; border-radius: var(--radius-m); margin-top: 40px; }
.stay-img-b { height: 420px; object-fit: cover; border-radius: var(--radius-m); }

/* =============== GALLERY =============== */
.gallery-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
}
.g-item {
  overflow: hidden;
  border-radius: var(--radius-m);
  position: relative;
  display: block;
  width: 100%; height: 100%;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.g-item:hover img { transform: scale(1.07); }
.g-item::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20,26,17,0);
  transition: background 0.3s var(--ease);
}
.g-item:hover::after { background: rgba(20,26,17,0.12); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 18, 13, 0.94);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lb-stage { max-width: 90vw; max-height: 84vh; }
.lb-stage img { max-width: 90vw; max-height: 84vh; object-fit: contain; border-radius: var(--radius-s); }
.lb-close { position: absolute; top: 22px; right: 26px; font-size: 2rem; color: var(--branco-quente); line-height: 1; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.6rem; color: var(--branco-quente); padding: 10px 16px; opacity: 0.8; }
.lb-arrow:hover { opacity: 1; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* =============== EXPERIENCE ============= */
.experience { position: relative; padding: 140px 0; overflow: hidden; }
.experience-media { position: absolute; inset: 0; }
.experience-media img { width: 100%; height: 100%; object-fit: cover; }
.experience-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,25,15,0.72), rgba(15,25,15,0.86)); }
.experience .container { position: relative; z-index: 1; }
.experience-list {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.experience-list li {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  color: var(--branco-quente);
  padding: 10px 0;
  opacity: 0.92;
}
.experience-final { font-style: normal; font-weight: 500; margin-top: 12px; opacity: 1 !important; color: var(--areia) !important; }

/* =============== DISCOVER (Pirenópolis) =============== */
.discover { background: var(--areia); }

/* =============== LOCATION =============== */
.location-media { display: flex; }
.location-placeholder {
  width: 100%; height: 420px;
  background: var(--verde-profundo);
  border-radius: var(--radius-m);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  color: var(--branco-quente);
  text-align: center;
  padding: 20px;
}
.location-placeholder .amenity-icon { color: var(--areia); width: 40px; height: 40px; margin-bottom: 6px; }
.location-placeholder p { font-family: var(--font-display); font-size: 1.3rem; }
.location-note { font-size: 0.82rem; color: rgba(251,248,241,0.7); letter-spacing: 0.04em; }

/* =============== BOOKING =============== */
.booking { background: var(--verde-profundo); }
.booking-actions { display: flex; gap: 18px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }

/* =============== REVIEWS =============== */
.review-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 720px; margin-left: auto; margin-right: auto; }
.review-card { background: var(--areia); border-radius: var(--radius-m); padding: 40px 32px; text-align: center; }
.review-score { font-family: var(--font-display); font-size: 3rem; color: var(--verde-profundo); }
.review-score small { font-size: 1.2rem; color: var(--texto-suave); }
.review-source { font-weight: 600; margin: 6px 0 10px; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--madeira); }
.review-note { font-size: 0.86rem; color: var(--texto-suave); }
.review-link { display: inline-block; margin-top: 14px; font-size: 0.82rem; font-weight: 600; color: var(--madeira); border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color 0.25s var(--ease); }
.review-link:hover { color: var(--verde-profundo); }

/* =============== FOOTER =============== */
.site-footer { background: #16241A; color: rgba(251,248,241,0.85); padding: 76px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(251,248,241,0.12); }
.footer-brand .brand-mark { color: var(--areia); margin-bottom: 16px; }
.footer-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--branco-quente); margin-bottom: 10px; }
.footer-tagline { max-width: 40ch; font-size: 0.94rem; margin-bottom: 14px; color: rgba(251,248,241,0.72); }
.footer-loc { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--areia); }
.footer-links { display: flex; flex-direction: column; gap: 18px; }
.footer-links h4 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--areia); margin-bottom: 6px; }
.footer-links a { display: flex; flex-direction: column; gap: 2px; transition: opacity 0.25s var(--ease); }
.footer-links a:hover { opacity: 0.75; }
.footer-link-label { font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--areia); opacity: 0.65; }
.footer-link-value { font-size: 0.98rem; color: var(--branco-quente); }
.footer-bottom { padding: 24px 28px 28px; font-size: 0.8rem; color: rgba(251,248,241,0.5); }

/* =============== WHATSAPP FLOAT =============== */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: var(--verde-oliva);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(15,23,15,0.35);
  z-index: 90;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.whatsapp-float:hover { transform: translateY(-3px); background: var(--madeira); }
.whatsapp-float svg { width: 28px; height: 28px; fill: var(--branco-quente); }

/* =============== SCROLL REVEAL =============== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =============== RESPONSIVE =============== */
@media (max-width: 1024px) {
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }

  .main-nav.open {
    display: flex;
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--verde-profundo);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 99;
  }
  .main-nav.open a { color: var(--branco-quente); font-size: 1.3rem; font-family: var(--font-display); }

  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media, .split.reverse .split-text { order: initial; }
  .split-media img { height: 320px; }

  .stay-grid { grid-template-columns: 1fr; }
  .stay-media { margin-top: 12px; }
  .stay-img-a { margin-top: 0; }
  .stay-stats { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g-wide { grid-column: span 2; }

  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 560px) {
  .amenity-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; }
  .hero-content { padding-bottom: 64px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .booking-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .booking-actions .btn { width: 100%; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
}
