/* ============================================================
   Salon SaaS — Design tokens
   Ink + Ivory editorial palette, warm copper accent.
   Display: Fraunces (characterful serif) / Body: Manrope / Data: IBM Plex Mono
   ============================================================ */
:root {
  --ink: #15120f;
  --ink-soft: #221d18;
  --ivory: #f6f1e7;
  --ivory-dim: #ece3d2;
  --copper: #b8703f;
  --copper-bright: #d98a52;
  --emerald: #1f3a2e;
  --blush: #e7c9b6;
  --line: rgba(21, 18, 15, 0.12);
  --line-on-dark: rgba(246, 241, 231, 0.16);
  --accent: var(--copper);

  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 60px -25px rgba(21, 18, 15, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 .4em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--copper); display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 14.5px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary { background: var(--copper); color: var(--ivory); }
.btn-primary:hover { background: var(--copper-bright); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper); }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--ink-soft); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,241,231,0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 600; }
.nav-links a { opacity: .75; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; color: var(--copper); }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; background: var(--ink); color: var(--ivory); }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 80% 10%, rgba(184,112,63,0.35), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; margin: 18px 0 22px; }
.hero h1 em { color: var(--copper-bright); font-style: normal; }
.hero p.lead { font-size: 18px; opacity: .82; max-width: 46ch; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-soft); animation: floatIn 1.1s ease both; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media .tag { position: absolute; left: 20px; bottom: 20px; background: rgba(21,18,15,.55); backdrop-filter: blur(6px); color: var(--ivory); padding: 10px 16px; border-radius: 999px; font-family: var(--font-mono); font-size: 12px; }
@keyframes floatIn { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 28px; color: var(--copper-bright); }
.hero-stats div span { font-size: 12.5px; opacity: .7; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- section shell ---------- */
.section { padding: 84px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); max-width: 18ch; }
.section-head p { max-width: 46ch; opacity: .72; margin: 0; }

/* ---------- service reel (signature element) ---------- */
.reel { display: flex; gap: 22px; overflow-x: auto; padding: 10px 4px 26px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.reel::-webkit-scrollbar { height: 6px; }
.reel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.service-card {
  scroll-snap-align: start; flex: 0 0 300px; background: #fff; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); transition: transform .35s ease, box-shadow .35s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }
.service-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ivory-dim); }
.service-media img, .service-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .service-media img, .service-card:hover .service-media video { transform: scale(1.08); }
.service-media .duration-chip {
  position: absolute; top: 12px; right: 12px; background: rgba(21,18,15,.7); color: var(--ivory);
  font-family: var(--font-mono); font-size: 11.5px; padding: 6px 10px; border-radius: 999px;
}
.service-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-body h3 { font-size: 19px; margin: 0; }
.service-body p { font-size: 14px; opacity: .68; margin: 0; flex: 1; }
.service-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { font-family: var(--font-mono); font-weight: 600; color: var(--emerald); font-size: 15px; }
.price.hidden-price { opacity: .55; font-style: italic; font-weight: 400; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: 14px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.gallery-grid figure:nth-child(3n+1) { grid-row: span 2; }
.gallery-grid img, .gallery-grid video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid figure:hover img, .gallery-grid figure:hover video { transform: scale(1.06); }

/* ---------- about / info split ---------- */
.info-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.info-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.info-list li b { font-family: var(--font-mono); font-size: 12px; color: var(--copper); min-width: 90px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--ivory); padding: 60px 0 30px; margin-top: 40px; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--font-display); font-size: 20px; }
.site-footer a { opacity: .75; }
.site-footer a:hover { opacity: 1; color: var(--copper-bright); }
.footer-bottom { border-top: 1px solid var(--line-on-dark); margin-top: 40px; padding-top: 20px; font-size: 12.5px; opacity: .55; text-align: center; }

/* ============================================================
   Booking flow — "ticket" motif
   ============================================================ */
.booking-shell { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.steps { display: flex; gap: 8px; margin-bottom: 30px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.steps span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); opacity: .5; }
.steps span.active { opacity: 1; background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.date-scroller { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; }
.date-pill {
  flex: 0 0 auto; font-family: var(--font-mono); text-align: center; padding: 12px 16px; border-radius: 14px;
  border: 1px solid var(--line); cursor: pointer; background: #fff; transition: all .2s ease; min-width: 64px;
}
.date-pill .dow { display: block; font-size: 10px; opacity: .6; text-transform: uppercase; }
.date-pill .dnum { display: block; font-size: 18px; font-weight: 700; margin-top: 4px; }
.date-pill:hover { border-color: var(--copper); }
.date-pill.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 16px; }
.slot-ticket {
  position: relative; font-family: var(--font-mono); font-size: 13px; padding: 14px 10px; text-align: center;
  border: 1px dashed var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: all .2s ease;
}
.slot-ticket:hover:not(.unavailable) { border-color: var(--copper); transform: translateY(-2px); }
.slot-ticket.selected { background: var(--copper); border-color: var(--copper); border-style: solid; color: #fff; }
.slot-ticket.unavailable { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.slot-empty { font-size: 14px; opacity: .6; padding: 30px 0; text-align: center; grid-column: 1/-1; }

.booking-summary {
  background: var(--ink); color: var(--ivory); border-radius: var(--radius); padding: 30px; position: sticky; top: 100px;
}
.booking-summary h3 { font-size: 20px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line-on-dark); font-size: 14.5px; }
.summary-row span:first-child { opacity: .6; }
.summary-total { display: flex; justify-content: space-between; padding-top: 18px; font-family: var(--font-mono); font-size: 17px; font-weight: 700; }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  font-family: var(--font-body); font-size: 14.5px; background: #fff; color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--copper); outline-offset: 1px; }

.alert { padding: 14px 18px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.alert-success { background: #e5f3ea; color: var(--emerald); }
.alert-error { background: #fbe4e0; color: #8f2f1d; }
.alert-info { background: var(--ivory-dim); color: var(--ink); }

/* ---------- status badges ---------- */
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; font-family: var(--font-mono); }
.badge-Booked { background: #e8e2f6; color: #4b3a8f; }
.badge-Customer-Arrived { background: #fdeecb; color: #8a5a12; }
.badge-Service-Started { background: #d9ecfb; color: #205a8a; }
.badge-Service-Completed { background: #dcefe1; color: #1f6b3c; }
.badge-Payment-Completed { background: #e2f6e6; color: #1f3a2e; }
.badge-Closed { background: #e6e2dc; color: #5a5347; }
.badge-Cancelled { background: #f8dcd6; color: #8f2f1d; }
.badge-Paid { background: #dcefe1; color: #1f6b3c; }
.badge-Pending { background: #fdeecb; color: #8a5a12; }
.badge-Partially-Paid { background: #d9ecfb; color: #205a8a; }

/* ---------- bookings list (my bookings + admin table) ---------- */
.booking-row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; background: #fff;
}
.booking-row h4 { margin: 0 0 4px; font-size: 17px; }
.booking-row .meta { font-family: var(--font-mono); font-size: 12.5px; opacity: .65; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .info-split { grid-template-columns: 1fr; }
  .booking-shell { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
