/* Hotel Santa Margarida — QR Concierge */

:root {
  --bg: #f5efe4;
  --bg2: #fbf8f1;
  --card: rgba(255,255,255,.92);
  --ink: #2b2118;
  --muted: #766e63;
  --brand: #9b642e;
  --brand-dark: #5b3518;
  --brand-soft: rgba(155,100,46,.11);
  --gold: #c59659;
  --gold-soft: rgba(197,150,89,.18);
  --cream: #efe2cf;
  --line: rgba(155,100,46,.16);
  --danger: #b44343;
  --ok: #8a5a28;
  --warn: #a26b24;
  --shadow: 0 22px 70px rgba(91,53,24,.14);
  --shadow-soft: 0 12px 36px rgba(91,53,24,.10);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(197,150,89,.24), transparent 30rem),
    radial-gradient(circle at 86% 18%, rgba(155,100,46,.18), transparent 24rem),
    linear-gradient(180deg, var(--bg2), var(--bg));
  min-height: 100vh;
}

a { color: inherit; }
code { background: rgba(155,100,46,.10); padding: 2px 6px; border-radius: 8px; }

.nav {
  width: min(1180px, calc(100% - 34px));
  margin: 18px auto 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header {
  padding: 34px 20px 20px;
  text-align: center;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  color: var(--brand);
  letter-spacing: -.2px;
}
.brandmark-dot {
  width: 38px;
  height: 38px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  box-shadow: 0 10px 24px rgba(91,53,24,.22);
}

.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 850;
  font-size: 13px;
  margin-bottom: 15px;
  border: 1px solid rgba(155,100,46,.14);
}

h1 {
  margin: 0 auto;
  max-width: 980px;
  font-size: clamp(33px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -2px;
}

.lead {
  max-width: 850px;
  margin: 17px auto 0;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  line-height: 1.65;
}

.container {
  width: min(1180px, calc(100% - 34px));
  margin: 26px auto 58px;
}

.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  border-color: rgba(197,150,89,.22);
}
.card-body { padding: 24px; }

.panel-soft {
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(234,223,204,.66));
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
h2, h3 { margin: 0; }
h2 { font-size: 24px; letter-spacing: -.5px; }
h3 { font-size: 19px; }
.small { font-size: 13px; color: var(--muted); line-height: 1.55; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 850;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid rgba(155,100,46,.18);
  padding: 7px 10px;
  border-radius: 999px;
}
.pill.ok { color: var(--ok); background: rgba(155,100,46,.14); }
.pill.warn { color: var(--warn); background: rgba(197,150,89,.17); }
.pill.danger { color: var(--danger); background: rgba(180,67,67,.12); }
.pill.dark { color: #fff; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.2); }

.btn {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 12px 15px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  font-weight: 850;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 24px rgba(91,53,24,.18);
  transition: transform .16s ease, opacity .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(91,53,24,.23); }
.btn.secondary { background: #fff; color: var(--brand-dark); border: 1px solid rgba(155,100,46,.28); box-shadow: none; }
.btn.gold { background: linear-gradient(135deg, var(--gold), #d1ad75); }
.btn.danger { background: linear-gradient(135deg, var(--danger), #cc6969); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.input, input, select, textarea {
  width: 100%;
  border: 1px solid rgba(155,100,46,.18);
  background: rgba(255,255,255,.96);
  border-radius: 15px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border .16s ease, box-shadow .16s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(197,150,89,.7);
  box-shadow: 0 0 0 4px rgba(197,150,89,.16), 0 8px 22px rgba(109,73,37,.06);
}
textarea { min-height: 92px; resize: vertical; }
label { display: block; font-weight: 850; font-size: 13px; margin-bottom: 7px; }
.form-grid { display: grid; gap: 13px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.status {
  display: none;
  padding: 12px 13px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 800;
  margin-top: 12px;
  line-height: 1.45;
}
.status.show { display: block; }
.status.ok { color: var(--ok); background: rgba(155,100,46,.14); }
.status.err { color: var(--danger); background: rgba(180,67,67,.12); }
.status.warn { color: var(--warn); background: rgba(197,150,89,.16); }

.footer { text-align: center; color: var(--muted); padding: 0 18px 38px; font-size: 13px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 10px; border-bottom: 1px solid rgba(155,100,46,.1); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }

.video-frame {
  background: linear-gradient(135deg, rgba(109,73,37,.95), rgba(155,100,46,.92));
  color: #fff;
  border-radius: 24px;
  padding: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.video-frame video,
.video-frame iframe {
  width: 100%;
  display: block;
  border-radius: 18px;
  background: #111;
  border: 0;
}
.video-frame video { max-height: 520px; }
.video-frame iframe { aspect-ratio: 16 / 9; }
.video-placeholder {
  border: 1px dashed rgba(255,255,255,.35);
  border-radius: 18px;
  padding: 26px;
  text-align: center;
  color: rgba(255,255,255,.86);
}

.hr { border: 0; border-top: 1px solid rgba(155,100,46,.12); margin: 22px 0; }

@media (max-width: 900px) {
  .grid.two, .grid.three, .row { grid-template-columns: 1fr; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .container { width: min(100% - 24px, 1180px); }
}


/* Efeitos premium discretos */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, rgba(197,150,89,.10), transparent 18rem),
    radial-gradient(circle at 92% 10%, rgba(155,100,46,.08), transparent 20rem);
  z-index: -1;
}

.card, .stat, .filter-tile, .room-card {
  animation: softEnter .42s ease both;
}

.card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 28px 84px rgba(109,73,37,.16);
  border-color: rgba(197,150,89,.22);
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -70% auto auto -55%;
  width: 38%;
  height: 240%;
  transform: rotate(25deg);
  background: rgba(255,255,255,.22);
  transition: left .55s ease;
  pointer-events: none;
}

.btn:hover::after {
  left: 120%;
}

.badge, .pill {
  box-shadow: 0 8px 20px rgba(109,73,37,.06);
}

@keyframes softEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
