/* ============================================================
   OUTWARD DEMO — SHARED DESIGN SYSTEM
   Dark luxury hospitality. Cormorant Garamond (display) + Inter (UI).
   ============================================================ */

:root {
  /* Palette */
  --black: #0B0908;
  --surface: #141110;
  --surface-2: #1A1614;
  --surface-3: #211C19;
  --cream: #F4E8D1;
  --cream-dim: #C9BCA4;
  --cream-faint: #8B8072;
  --gold: #D8B36A;
  --gold-dim: #9C8354;
  --emerald: #1F4B43;
  --emerald-bright: #2C6B5F;
  --oxblood: #4A1E1A;
  --oxblood-bright: #7A2E28;
  --danger: #C85A4A;
  --success: #4A9C7C;

  /* Spacing (8pt scale) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 40px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-full: 999px;

  /* Shadow */
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-gold-glow: 0 0 0 1px rgba(216, 179, 106, 0.25), 0 8px 24px rgba(216, 179, 106, 0.08);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
  --t-med: 260ms;
  --t-slow: 420ms;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--cream);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--cream);
}

p { margin: 0; }

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

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

::-webkit-scrollbar { width: 0; height: 0; }
* { scrollbar-width: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.overflow-guard { overflow-x: hidden; max-width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 24px;
  min-height: 44px;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover { background: #E4C27E; box-shadow: var(--shadow-gold-glow); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(216, 179, 106, 0.45);
  color: var(--gold);
}
.btn-outline:hover { border-color: var(--gold); background: rgba(216, 179, 106, 0.06); }

.btn-ghost {
  background: rgba(244, 232, 209, 0.06);
  color: var(--cream);
}
.btn-ghost:hover { background: rgba(244, 232, 209, 0.1); }

.btn-emerald {
  background: var(--emerald);
  color: var(--cream);
}
.btn-emerald:hover { background: var(--emerald-bright); }

.btn-danger {
  background: rgba(200, 90, 74, 0.14);
  color: var(--danger);
  border: 1px solid rgba(200, 90, 74, 0.4);
}
.btn-danger:hover { background: rgba(200, 90, 74, 0.22); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; min-height: 36px; font-size: 13px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 232, 209, 0.06);
  transition: background var(--t-fast) var(--ease);
}
.icon-btn:hover { background: rgba(244, 232, 209, 0.12); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid rgba(216, 179, 106, 0.12);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}

.card-2 {
  background: var(--surface-2);
  border: 1px solid rgba(244, 232, 209, 0.07);
  border-radius: var(--r-md);
}

/* ---------- Badges / chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  background: rgba(244, 232, 209, 0.05);
  border: 1px solid rgba(244, 232, 209, 0.1);
  color: var(--cream-dim);
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
}
.chip.active {
  background: rgba(216, 179, 106, 0.12);
  border-color: var(--gold);
  color: var(--gold);
}

.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(216, 179, 106, 0.14);
  color: var(--gold);
  border: 1px solid rgba(216, 179, 106, 0.3);
}

.badge-emerald {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(31, 75, 67, 0.35);
  color: #7FD4BC;
  border: 1px solid rgba(44, 107, 95, 0.5);
}

/* ---------- Forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream-faint);
}
.field input, .field select, .field textarea {
  background: var(--surface-2);
  border: 1px solid rgba(244, 232, 209, 0.14);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 15px;
  min-height: 44px;
  color: var(--cream);
  transition: border-color var(--t-fast) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* ---------- Scrollrow ---------- */
.scrollrow {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px var(--sp-4) 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.scrollrow > * { scroll-snap-align: start; flex-shrink: 0; }
.scrollrow::-webkit-scrollbar { display: none; }

/* ---------- Utility ---------- */
.muted { color: var(--cream-faint); }
.dim { color: var(--cream-dim); }
.gold-text { color: var(--gold); }
.emerald-text { color: #7FD4BC; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mb-2 { margin-top: var(--sp-2); }
.w-full { width: 100%; }

.divider {
  height: 1px;
  background: rgba(244, 232, 209, 0.08);
  border: none;
  margin: var(--sp-4) 0;
}

/* ---------- Fade/slide transitions ---------- */
.view-enter {
  animation: viewFadeIn var(--t-slow) var(--ease);
}
@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pulse {
  animation: pulseGlow 2.2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin { animation: spin 1s linear infinite; }

/* ---------- Toast ---------- */
.toast-stack {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 0 16px;
  pointer-events: none;
}
.toast {
  background: var(--surface-3);
  border: 1px solid rgba(216, 179, 106, 0.3);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lift);
  animation: toastIn var(--t-med) var(--ease);
  max-width: 340px;
  text-align: center;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sheet / modal ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 900;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn var(--t-med) var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  background: var(--surface-2);
  border: 1px solid rgba(216, 179, 106, 0.2);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 420px;
  padding: var(--sp-5) var(--sp-4) var(--sp-6);
  animation: sheetUp var(--t-slow) var(--ease);
  box-shadow: var(--shadow-lift);
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sheet-grip {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(244,232,209,0.2);
  margin: 0 auto var(--sp-4);
}

.modal-center {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  animation: fadeIn var(--t-med) var(--ease);
}
.modal-card {
  background: var(--surface-2);
  border: 1px solid rgba(216,179,106,0.25);
  border-radius: var(--r-lg);
  max-width: 380px;
  width: 100%;
  padding: var(--sp-5);
  box-shadow: var(--shadow-lift);
  animation: modalPop var(--t-med) var(--ease);
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- Reset demo footer link ---------- */
.reset-link {
  font-size: 12px;
  color: var(--cream-faint);
  border-bottom: 1px dotted rgba(244,232,209,0.3);
  padding-bottom: 1px;
}
.reset-link:hover { color: var(--gold); }
