/* ============================================
   CLEORA · Design System
   Shared across all Cleora sites (index + future)
   ============================================ */

:root {
  --cream: #F8F1EA;
  --cream-deep: #EFE3D7;
  --warm-white: #FBF7F2;
  --ink: #0F1B2D;
  --ink-soft: #28344A;
  --gold: #C9A95C;
  --gold-deep: #A8863F;
  --gold-soft: #E3CFA1;
  --muted: #6B6458;
  --line: rgba(15, 27, 45, 0.12);
  --line-gold: rgba(201, 169, 92, 0.35);
}

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

html, body {
  background: var(--warm-white);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.serif { font-family: 'Cormorant Garamond', serif; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Warm paper grain */
.grain::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.69 0 0 0 0 0.55 0 0 0 0.12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.moon-mark { display: inline-flex; align-items: center; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  transition: all 220ms ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
}
.btn-primary:hover {
  background: transparent;
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-gold {
  background: linear-gradient(135deg, #D9BB72 0%, #B8923F 100%);
  color: var(--ink);
  border: 1px solid var(--gold-deep);
}
.btn-gold:hover { filter: brightness(1.05); }

.hairline {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 24px auto;
}
.hairline.left { margin-left: 0; }

/* Segmented toggle */
.seg {
  display: inline-flex;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
}
.seg button {
  padding: 10px 22px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: all 220ms ease;
  white-space: nowrap;
}
.seg button.active {
  background: var(--ink);
  color: var(--warm-white);
}

/* Animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 900ms ease, transform 900ms ease; }
.reveal.on { opacity: 1; transform: none; }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee { display: flex; animation: slide 45s linear infinite; white-space: nowrap; }

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}

/* Booking modal */
.modal-back {
  position: fixed; inset: 0;
  background: rgba(15, 27, 45, 0.55);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn 320ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popUp { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold-soft); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

::selection { background: var(--gold); color: var(--ink); }

/* Image placeholder */
.ph {
  position: relative;
  background: linear-gradient(135deg, #E8D8C4 0%, #D4BFA7 50%, #C9B090 100%);
  overflow: hidden;
}
.ph::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg,
    rgba(255,255,255,0.08) 0 2px,
    transparent 2px 14px);
}
.ph-label {
  position: absolute; inset: auto 0 16px 0;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15, 27, 45, 0.55);
}
