:root {
  --gold: #c59b27;
  --gold-dark: #9e7814;
  --bg: #fbf9f5;
  --surface: #ffffff;
  --text: #161412;
  --muted: #6e675f;
  --border: #eae4d8;
  --card-shadow: 0 20px 50px rgba(22, 20, 18, 0.07);
}
body.night-mode {
  --bg: #12100e;
  --surface: #1c1916;
  --text: #f4efe6;
  --muted: #b0a89c;
  --border: #2e2923;
  --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}
h1, h2, h3, .serif { font-family: 'Cormorant Garamond', serif; font-weight: 500; }

/* Navbar */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.2rem 6%;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.4s ease;
  background: linear-gradient(to bottom, rgba(18,16,14,0.75), transparent);
}
header.solid, header.scrolled {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.brand-logo {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--gold); flex-shrink: 0;
}
header.solid .brand, header.scrolled .brand { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 1.2rem; }
nav { display: flex; gap: 1.6rem; align-items: center; }
nav a {
  text-decoration: none; color: rgba(255,255,255,0.92);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  position: relative;
}
header.solid nav a, header.scrolled nav a { color: var(--text); }
nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s ease;
}
nav a:hover::after, nav a.active::after { width: 100%; }
.theme-toggle {
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--gold); background: transparent;
  cursor: pointer; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.25);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.theme-toggle:hover {
  transform: scale(1.08) rotate(6deg);
  box-shadow: 0 6px 22px rgba(197, 155, 39, 0.45);
}
.theme-toggle img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity 0.35s ease, transform 0.4s ease;
}
.menu-btn {
  display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer;
}
header.solid .menu-btn, header.scrolled .menu-btn { color: var(--text); }

/* Hero */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  text-align: center; color: #fff; padding: 6rem 6% 4.5rem; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(18,16,14,0.38), rgba(18,16,14,0.68)),
    url('images/ENTRADA DIA.jpg') center/cover no-repeat;
  animation: kenburns 22s ease-in-out infinite alternate; z-index: -1;
  transition: background-image 0.6s ease;
}
body.night-mode .hero-bg {
  background-image: linear-gradient(to bottom, rgba(18,16,14,0.42), rgba(18,16,14,0.75)),
    url('images/ENTRADA NOITE.jpg');
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); line-height: 1.08; max-width: 860px; margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: #f3dfb0; }

/* Page top spacing for inner pages */
.page-section { padding: 8.5rem 7% 5.5rem; min-height: 75vh; }
section { padding: 5.5rem 7%; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-header h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); margin-bottom: 0.6rem; }
.section-header p { color: var(--muted); font-weight: 300; }

/* Editorial */
.editorial { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4rem; align-items: center; }
.editorial-img { position: relative; }
.rating-float {
  position: absolute; bottom: -1.2rem; right: -1rem; background: #161412; color: #fff;
  padding: 1.3rem 1.8rem; text-align: center; box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}
.rating-float strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; color: var(--gold); line-height: 1; }
.rating-float span { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; }
.amenities-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1.8rem;
  padding-top: 1.8rem; border-top: 1px solid var(--border); font-size: 0.9rem;
}

/* Booking Bar */
.booking-bar {
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow);
  padding: 2.2rem 2.5rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr 0.9fr auto;
  gap: 1.5rem; align-items: end; border-radius: 8px; max-width: 1020px; margin: 0 auto;
}
.field label {
  display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 0.4rem; font-weight: 600;
}
.field input, .field select {
  width: 100%; padding: 0.7rem 0.4rem; border: none; border-bottom: 1px solid var(--border);
  background: transparent; font-family: inherit; font-size: 0.95rem; color: var(--text); outline: none; cursor: pointer;
}
.btn-primary {
  background: var(--gold); color: #fff; border: none; padding: 1rem 2rem;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  cursor: pointer; transition: transform 0.2s, background 0.3s; border-radius: 4px;
  white-space: nowrap; text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }
#booking-result {
  grid-column: 1 / -1; display: none; padding: 1rem 1.2rem;
  background: rgba(197, 155, 39, 0.12); border-left: 3px solid var(--gold); font-size: 0.92rem;
}

/* Suites */
.suites-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.suite-card {
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease; border-radius: 4px;
}
.suite-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow); }
.suite-img-wrap { overflow: hidden; height: 280px; }
.suite-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.suite-card:hover .suite-img-wrap img { transform: scale(1.06); }
.suite-body { padding: 2rem; }
.suite-meta { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 0.4rem; }
.suite-body h3 { font-size: 1.9rem; margin-bottom: 0.7rem; }
.suite-body p { color: var(--muted); font-size: 0.94rem; margin-bottom: 1.4rem; }

/* Gallery */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.gallery-grid img {
  width: 100%; height: 260px; object-fit: cover; border-radius: 6px;
  transition: transform 0.35s ease; box-shadow: var(--card-shadow);
}
.gallery-grid img:hover { transform: scale(1.03); }

/* Footer */
footer {
  background: var(--surface); color: var(--muted); border-top: 1px solid var(--border);
  padding: 3.5rem 7% 2.5rem; text-align: center;
}
footer .brand { color: var(--gold); margin-bottom: 1rem; display: block; }
footer p { font-size: 0.85rem; margin-bottom: 0.5rem; }
.footer-links { display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin: 1.2rem 0; }
.footer-links a {
  color: var(--text); text-decoration: none; font-size: 0.85rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.45rem; transition: color 0.25s;
}
.footer-links a:hover { color: var(--gold); }

.legal-balloon {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  width: min(92vw, 440px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.28);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.legal-balloon.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.legal-balloon-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.45rem;
}
.legal-balloon-head strong {
  font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: var(--gold);
}
.legal-balloon-close {
  background: transparent; border: none; color: var(--muted); font-size: 1rem; cursor: pointer;
}

.mobile-bottom-nav { display: none; }

@media (max-width: 767px) {
  header {
    padding: 0.85rem 4% !important;
    justify-content: center;
  }
  .brand { font-size: 1.05rem; letter-spacing: 0.08em; white-space: nowrap; }
  .brand-logo { width: 32px; height: 32px; }
  .nav-right { display: none; }

  .hero {
    min-height: 100svh;
    padding: 5.5rem 5% 6.5rem;
  }
  .hero-bg {
    z-index: 0;
    animation: none;
    background-size: cover;
    background-position: center 35%;
  }
  .hero > *:not(.hero-bg) { position: relative; z-index: 1; }
  .hero h1 { font-size: 2rem; }
  .btn-primary {
    white-space: normal;
    width: 100%;
    text-align: center;
    padding: 0.9rem 1rem;
    font-size: 0.78rem;
  }

  .page-section { padding: 6rem 5% 6.5rem; }
  section { padding: 3.5rem 5%; }
  .editorial { gap: 2.5rem; }
  #chateau-video {
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: contain !important;
    background: #12100e;
  }
  .rating-float {
    position: static;
    margin-top: 0.85rem;
    display: inline-block;
    padding: 0.85rem 1.4rem;
  }
  .amenities-list { grid-template-columns: 1fr; }
  .booking-bar { grid-template-columns: 1fr; padding: 1.5rem; }
  footer { padding-bottom: 6.5rem; }

  /* Barra Inferior Estilo Aplicativo (5 Botões) */
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: 1fr 1fr 72px 1fr 1fr;
    align-items: center;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 66px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12);
    z-index: 1500;
    padding: 0 4px;
  }
  .mb-link {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; text-decoration: none; color: var(--muted);
    font-size: 0.66rem; font-weight: 600; letter-spacing: 0.03em;
    padding: 4px 0; transition: color 0.2s;
  }
  .mb-link.active, .mb-link:hover { color: var(--gold); }
  .mb-link svg { width: 19px; height: 19px; stroke: currentColor; }

  .mb-center-btn {
    width: 56px; height: 56px; margin: -22px auto 0;
    border-radius: 50%; padding: 0; border: 2px solid var(--gold);
    background: var(--surface); overflow: hidden; cursor: pointer;
    box-shadow: 0 6px 20px rgba(197, 155, 39, 0.4);
    transition: transform 0.3s ease;
  }
  .mb-center-btn:active { transform: scale(0.94); }
  .mb-center-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.3s ease; }
}
