/* ============================================================
   LUMINA HOTEL — versão reformulada
   Sistema de design enxuto: tokens, dark mode, componentes.
   Sem estilos inline no HTML.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f1ece3;
  --surface-3: #e7e0d3;
  --text: #1b1813;
  --text-muted: #6f675b;
  --accent: #a9824c; /* brass */
  --accent-strong: #8a6736;
  --on-accent: #ffffff;
  --border: rgba(27, 24, 19, 0.12);
  --shadow: 0 24px 60px rgba(27, 24, 19, 0.12);

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

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 7rem;

  --maxw: 1200px;
  --header-h: 76px;
}

[data-theme='dark'] {
  --bg: #14110c;
  --surface: #1d1912;
  --surface-2: #241f17;
  --surface-3: #2e271c;
  --text: #f1ebe0;
  --text-muted: #b3a892;
  --accent: #c9a36a;
  --accent-strong: #d9b884;
  --on-accent: #14110c;
  --border: rgba(241, 235, 224, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition:
    background 0.4s ease,
    color 0.4s ease;
}

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

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section-alt {
  background: var(--surface-2);
}

/* ── Tipografia ───────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section-head {
  margin-bottom: var(--space-2xl);
}
.section-head .display {
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ── Header / nav ─────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a.active {
  color: var(--text);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.theme-toggle {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
  transition: background 0.25s ease;
}
.theme-toggle:hover {
  background: var(--surface-3);
}
.icon-sun {
  display: none;
}
[data-theme='dark'] .icon-moon {
  display: none;
}
[data-theme='dark'] .icon-sun {
  display: inline;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s ease;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.5, 0, 0, 1);
}
.mobile-nav.active {
  transform: translateX(0);
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.8rem;
}

/* ── Botões ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.25s ease,
    color 0.25s ease;
  font-family: var(--font-body);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-strong);
}
.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-block {
  width: 100%;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero.sub-hero {
  min-height: 52vh;
}
.hero-slide,
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide {
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 5, 0.85) 0%, rgba(10, 8, 5, 0.2) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-bottom: var(--space-2xl);
  max-width: 680px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  margin-bottom: var(--space-md);
}
.hero-content .lead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
}
.hero .eyebrow {
  color: #e7c89a;
}

/* ── Booking bar ──────────────────────────────────── */
.booking-bar {
  position: relative;
  z-index: 5;
  margin-top: -42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: var(--space-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: var(--space-md);
  align-items: end;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border 0.2s ease;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field-error input,
.field-error textarea {
  border-color: #d2603f;
}
.error-msg {
  color: #d2603f;
  font-size: 0.78rem;
  min-height: 1em;
}

/* ── Grid de quartos ──────────────────────────────── */
.grid-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}
.room-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.room-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.room-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.room-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.room-card:hover .room-media img {
  transform: scale(1.06);
}
.room-info {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.room-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
}
.room-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.room-price {
  font-weight: 700;
  margin: var(--space-xs) 0 var(--space-md);
}
.room-price span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.room-info .btn {
  margin-top: auto;
}

/* ── Filtros ──────────────────────────────────────── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-xl);
}
.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover {
  color: var(--text);
}
.chip.active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* ── Bloco editorial ──────────────────────────────── */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.editorial.reverse .editorial-media {
  order: 2;
}
.editorial-media img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ── Reserva / confirmação ────────────────────────── */
.summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
}
.summary-bar .item small {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.summary-bar .item strong {
  font-size: 1.05rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 8, 5, 0.6);
  backdrop-filter: blur(4px);
}
.modal.active {
  display: flex;
}
.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: var(--space-xl);
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
}
.modal-steps .dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
}
.modal-steps .dot.on {
  background: var(--accent);
}
.modal h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin-bottom: var(--space-sm);
}
.modal .form-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}
.modal-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}
.confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin-bottom: var(--space-md);
}
.confirm-code {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--surface-2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin: var(--space-sm) 0 var(--space-lg);
}
.sim-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Form feedback ────────────────────────────────── */
.form-status {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  font-weight: 600;
}
.form-status.ok {
  color: var(--accent-strong);
}

/* ── Mapa ─────────────────────────────────────────── */
.map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius-md);
}
.info-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.info-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 2px;
}

/* ── Footer ───────────────────────────────────────── */
footer {
  background: #12100b;
  color: #e9e2d4;
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}
.footer-col p,
.footer-col li {
  color: rgba(233, 226, 212, 0.72);
  font-size: 0.92rem;
  list-style: none;
  margin-bottom: 0.5rem;
}
.footer-col a:hover {
  color: #fff;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.16em;
  margin-bottom: var(--space-md);
}
.footer-bottom {
  border-top: 1px solid rgba(233, 226, 212, 0.15);
  padding-top: var(--space-lg);
  font-size: 0.82rem;
  color: rgba(233, 226, 212, 0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.footer-bottom a {
  color: var(--accent);
}

/* ── Util ─────────────────────────────────────────── */
.center {
  text-align: center;
}
.mt-lg {
  margin-top: var(--space-lg);
}
.hidden {
  display: none !important;
}

/* ── Reveal on scroll ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ── Responsivo ───────────────────────────────────── */
@media (max-width: 900px) {
  .editorial {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .editorial.reverse .editorial-media {
    order: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .booking-bar {
    grid-template-columns: 1fr;
    margin-top: var(--space-lg);
  }
  .section-padding {
    padding: var(--space-2xl) 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .grid-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
