/* ============================================================
   THE CHELSEA SPA — Design tokens & base styles
   Palette: warm beige base, soft gold accent, charcoal text
   Type:    Inter Tight (display) + Lora (transitional serif body)
   ============================================================ */

:root {
  /* Surfaces */
  --bg:          #f6f1e8;   /* warm beige */
  --bg-cream:    #faf6ee;   /* lifted cream */
  --bg-nude:     #eadfc8;   /* light nude */
  --bg-shell:    #ece3d2;   /* deeper nude card */
  --bg-ink:      #2a2622;   /* charcoal */
  --bg-ink-soft: #3b3530;

  /* Ink */
  --ink:         #2a2622;
  --ink-2:       #5a4f44;
  --ink-3:       #8a7d6e;
  --ink-on-dark: #f6f1e8;

  /* Accent */
  --gold:        #c9a96e;
  --gold-deep:   #a88751;
  --gold-soft:   #e6d2a8;

  /* Lines */
  --line:        rgba(42, 38, 34, 0.12);
  --line-strong: rgba(42, 38, 34, 0.22);
  --line-on-dark: rgba(246, 241, 232, 0.16);

  /* States */
  --success: #6b7a5e;
  --danger:  #9a4a3a;

  /* Type */
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body:    "Lora", "Iowan Old Style", Georgia, serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Radii — luxe = tight, almost square */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;
  --r-pill: 999px;

  /* Shadows — barely-there */
  --shadow-1: 0 1px 2px rgba(42, 38, 34, 0.04), 0 1px 1px rgba(42, 38, 34, 0.02);
  --shadow-2: 0 8px 24px -12px rgba(42, 38, 34, 0.18), 0 2px 4px rgba(42, 38, 34, 0.04);
  --shadow-3: 0 24px 60px -24px rgba(42, 38, 34, 0.30), 0 4px 12px rgba(42, 38, 34, 0.06);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body, #root { height: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Display type */
h1, h2, h3, h4, h5, .display, .eyebrow {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: -0.028em; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; letter-spacing: -0.02em; }
h4 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.serif-italic { font-family: var(--font-body); font-style: italic; }

p, .body { font-family: var(--font-body); line-height: 1.65; color: var(--ink-2); }
.body-lg { font-size: 1.125rem; line-height: 1.6; }
.body-sm { font-size: 0.875rem; line-height: 1.55; }
.caption  { font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-3); font-family: var(--font-display); }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.container-wide { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 32px; }
.container-narrow { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 32px; }

.section { padding: 96px 0; }
.section-lg { padding: 140px 0; }
.section-sm { padding: 56px 0; }

.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.hstack { display: flex; align-items: center; gap: 16px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: all 320ms var(--ease);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--ink);
  color: var(--ink-on-dark);
}
.btn-primary:hover {
  background: var(--gold-deep);
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-deep); color: var(--ink-on-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--ink-on-dark); border-color: var(--ink); }
.btn-ghost-light {
  background: transparent;
  color: var(--ink-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.btn-ghost-light:hover { background: var(--ink-on-dark); color: var(--ink); border-color: var(--ink-on-dark); }
.btn-sm { padding: 10px 18px; font-size: 0.7rem; }
.btn-lg { padding: 20px 36px; font-size: 0.82rem; }
.btn-icon { padding: 12px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ============================================================
   CARDS, CHIPS, INPUTS
   ============================================================ */
.card {
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 360ms var(--ease);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
  border-color: var(--gold-soft);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  border-radius: var(--r-pill);
  background: var(--bg-nude);
  color: var(--ink);
  border: 1px solid transparent;
}
.chip-gold { background: var(--gold-soft); color: var(--gold-deep); }
.chip-line { background: transparent; border-color: var(--line-strong); }

.input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-cream);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 200ms;
}
.input:focus { outline: none; border-color: var(--gold); }
.input::placeholder { color: var(--ink-3); }
.label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}

/* Divider */
.divider { height: 1px; background: var(--line); width: 100%; }
.divider-gold { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.divider-v { width: 1px; background: var(--line); align-self: stretch; }

/* Logomark utility */
.lotus {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ink);
}
.lotus svg { color: var(--gold-deep); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.fade-up   { animation: fadeUp 800ms var(--ease) both; }
.fade-up-1 { animation: fadeUp 800ms var(--ease) 100ms both; }
.fade-up-2 { animation: fadeUp 800ms var(--ease) 200ms both; }
.fade-up-3 { animation: fadeUp 800ms var(--ease) 300ms both; }
.fade-up-4 { animation: fadeUp 800ms var(--ease) 400ms both; }
.fade-in   { animation: fadeIn 500ms var(--ease) both; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-shell) 0%, var(--bg-nude) 50%, var(--bg-shell) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite linear;
  border-radius: var(--r-md);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-shell); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-soft); }

/* Section header pattern */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head .eyebrow + h2 { margin-top: -4px; }

/* Image placeholder */
.img-placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      var(--bg-shell) 0px, var(--bg-shell) 1px,
      transparent 1px, transparent 14px
    ),
    var(--bg-nude);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Utility */
.text-ink-2 { color: var(--ink-2); }
.text-ink-3 { color: var(--ink-3); }
.text-gold  { color: var(--gold-deep); }
.text-light { color: var(--ink-on-dark); }
.bg-cream   { background: var(--bg-cream); }
.bg-nude    { background: var(--bg-nude); }
.bg-shell   { background: var(--bg-shell); }
.bg-ink     { background: var(--ink); color: var(--ink-on-dark); }

/* Responsive */
@media (max-width: 880px) {
  .section { padding: 64px 0; }
  .section-lg { padding: 88px 0; }
  .container, .container-wide, .container-narrow { padding: 0 20px; }
}
