/*
Theme Name: Atelier Bloom Salon & Spa
Theme URI: https://salon.cryptidwhispers.com
Author: Cryptid Whispers LLC
Author URI: https://cryptidwhispers.com
Description: Standalone boutique luxury salon & spa concept showcase theme with live 5-palette switching, categorized treatment menus, stylist bios, lookbook gallery, interactive booking preview drawer, and Demo Mode guardrails. All photography is bundled locally inside assets/images/.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atelier-bloom
*/

:root {
  --bg: #FDF5F7;
  --surface: #F5E4E9;
  --ink: #2B1720;
  --accent: #C44973;
  --accent-ink: #FFFFFF;
  --muted: #795966;
  --border: rgba(43, 23, 32, 0.12);
  --border-strong: rgba(43, 23, 32, 0.24);
  --demo-bar-bg: #2B1720;
  --demo-bar-ink: #FDF5F7;
  --demo-bar-muted: rgba(253, 245, 247, 0.76);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root[data-palette="blush-petal"] {
  --bg: #FDF5F7;
  --surface: #F5E4E9;
  --ink: #2B1720;
  --accent: #C44973;
  --accent-ink: #FFFFFF;
  --muted: #795966;
  --border: rgba(43, 23, 32, 0.12);
  --border-strong: rgba(43, 23, 32, 0.24);
  --demo-bar-bg: #2B1720;
  --demo-bar-ink: #FDF5F7;
  --demo-bar-muted: rgba(253, 245, 247, 0.76);
}

:root[data-palette="champagne-espresso"] {
  --bg: #FAF7F2;
  --surface: #EFE8DC;
  --ink: #241C16;
  --accent: #A67C46;
  --accent-ink: #1A130D;
  --muted: #6D5E50;
  --border: rgba(36, 28, 22, 0.13);
  --border-strong: rgba(36, 28, 22, 0.25);
  --demo-bar-bg: #241C16;
  --demo-bar-ink: #FAF7F2;
  --demo-bar-muted: rgba(250, 247, 242, 0.76);
}

:root[data-palette="deep-plum"] {
  --bg: #1C1224;
  --surface: #2A1B36;
  --ink: #F7F2FC;
  --accent: #C586F7;
  --accent-ink: #1C1224;
  --muted: #B2A0C2;
  --border: rgba(247, 242, 252, 0.13);
  --border-strong: rgba(247, 242, 252, 0.26);
  --demo-bar-bg: #120B18;
  --demo-bar-ink: #F7F2FC;
  --demo-bar-muted: rgba(247, 242, 252, 0.74);
}

:root[data-palette="eucalyptus-stone"] {
  --bg: #F1F6F3;
  --surface: #DFEAE4;
  --ink: #172720;
  --accent: #2F7D63;
  --accent-ink: #FFFFFF;
  --muted: #526B60;
  --border: rgba(23, 39, 32, 0.13);
  --border-strong: rgba(23, 39, 32, 0.24);
  --demo-bar-bg: #172720;
  --demo-bar-ink: #F1F6F3;
  --demo-bar-muted: rgba(241, 246, 243, 0.76);
}

:root[data-palette="velvet-noir"] {
  --bg: #121113;
  --surface: #1E1C20;
  --ink: #F6F2EB;
  --accent: #E0B553;
  --accent-ink: #121113;
  --muted: #A9A29C;
  --border: rgba(246, 242, 235, 0.13);
  --border-strong: rgba(246, 242, 235, 0.26);
  --demo-bar-bg: #09080A;
  --demo-bar-ink: #F6F2EB;
  --demo-bar-muted: rgba(246, 242, 235, 0.74);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--ink); font-family: var(--font-body); }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; transition: background-color 200ms ease, color 200ms ease; }
:root[data-mode="dark"] body { letter-spacing: 0.01em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ab-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ab-serif { font-family: var(--font-display); font-weight: 500; }
.ab-muted { color: var(--muted); }
.ab-tabular { font-variant-numeric: tabular-nums; }

/* Concept Demo Bar */
.ab-demo-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--demo-bar-bg);
  color: var(--demo-bar-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}
.ab-demo-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ab-demo-label { color: var(--demo-bar-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ab-demo-controls { display: flex; align-items: center; gap: 16px; }
.ab-swatches { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.ab-swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--demo-bar-ink);
  font-size: 12px;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.ab-swatch-btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
}
.ab-swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-block;
  flex-shrink: 0;
}
.ab-demo-back {
  color: var(--demo-bar-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}
.ab-demo-back:hover { opacity: 0.82; }
.ab-demo-back-short { display: none; }

/* Site Header (3-zone Top Bar Contract) */
.ab-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.ab-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.ab-brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.ab-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.ab-nav a { text-decoration: none; white-space: nowrap; transition: color 160ms ease; }
.ab-nav a:hover { color: var(--ink); }
.ab-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ab-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  flex-shrink: 0;
}
.ab-mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 20px;
}
.ab-mobile-nav.is-open { display: block; }
.ab-mobile-nav a {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.ab-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 6px;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 160ms ease, transform 160ms ease;
}
.ab-btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }

.ab-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.ab-btn-outline:hover { background: var(--surface); }

/* Hero */
.ab-hero { padding: 64px 0 48px; }
.ab-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: stretch; }
.ab-hero-copy { display: flex; flex-direction: column; justify-content: center; }
.ab-kicker { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.ab-h1 { font-family: var(--font-display); font-size: clamp(2.75rem, 4.5vw, 4.25rem); line-height: 1.06; margin: 0 0 22px; font-weight: 500; text-wrap: balance; }
.ab-lead { font-size: 16px; color: var(--muted); max-width: 52ch; margin: 0 0 32px; line-height: 1.7; }
.ab-hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ab-text-link { text-decoration: none; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--border-strong); padding-bottom: 3px; }
.ab-hero-media { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); min-height: 360px; }
.ab-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.ab-strip {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ab-strip-title { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.ab-strip-value { font-size: 14px; font-weight: 500; }

/* Sections */
section[id], aside[id], main[id] { scroll-margin-top: 72px; }
.ab-section { padding: 80px 0; border-top: 1px solid var(--border); }
.ab-section-surface { background: var(--surface); }
.ab-section-head { max-width: 680px; margin-bottom: 40px; }
.ab-h2 { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.85rem); line-height: 1.12; margin: 0 0 12px; font-weight: 500; text-wrap: balance; }

/* Service Tabs */
.ab-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 28px; }
.ab-tab-btn {
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.ab-tab-btn[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}
.ab-service-list { display: grid; gap: 0; }
.ab-service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.ab-service-name { font-family: var(--font-display); font-size: 24px; margin: 0 0 6px; font-weight: 500; }
.ab-service-desc { font-size: 14px; color: var(--muted); margin: 0; max-width: 62ch; }
.ab-service-meta { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.ab-price-block { text-align: right; white-space: nowrap; }
.ab-price { font-size: 15px; font-weight: 600; display: block; }
.ab-duration { font-size: 13px; color: var(--muted); }

/* Stylists */
.ab-stylists-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ab-stylist-card { display: flex; flex-direction: column; }
.ab-stylist-photo { aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 18px; background: var(--bg); }
.ab-stylist-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ab-stylist-name { font-family: var(--font-display); font-size: 26px; margin: 4px 0 4px; font-weight: 500; }
.ab-stylist-role { font-size: 14px; font-weight: 500; color: var(--accent); margin: 0 0 8px; }
.ab-stylist-meta { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.ab-stylist-bio { font-size: 14px; color: var(--muted); margin: 0 0 18px; flex: 1; }

/* Lookbook */
.ab-lookbook-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ab-look-card { display: flex; flex-direction: column; }
.ab-look-img { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 14px; background: var(--surface); }
.ab-look-img img { width: 100%; height: 100%; object-fit: cover; }
.ab-look-title { font-family: var(--font-display); font-size: 23px; margin: 4px 0 6px; font-weight: 500; }

/* Policies & Visit */
.ab-two-col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.ab-policy-item { border-bottom: 1px solid var(--border); }
.ab-policy-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
}
.ab-policy-panel { padding: 0 0 20px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.ab-visit-box { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 32px; }
.ab-hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.ab-hours-row:last-child { border-bottom: none; }

/* Footer */
.ab-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; font-size: 14px; }
.ab-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.ab-footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }

/* Drawer & Modal */
.ab-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  z-index: 80;
  display: none;
  justify-content: flex-end;
}
.ab-backdrop.is-open { display: flex; }
.ab-drawer {
  width: min(500px, 100%);
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ab-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.ab-field select, .ab-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.ab-slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ab-slot-btn {
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: transparent;
  font-size: 13px;
}
.ab-slot-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.ab-error { color: #b91c1c; font-size: 12px; margin-top: 4px; }
:root[data-mode="dark"] .ab-error { color: #fca5a5; }

.ab-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ab-modal-backdrop.is-open { display: flex; }
.ab-modal {
  max-width: 480px;
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 32px;
}

@media (max-width: 900px) {
  .ab-nav { display: none; }
  .ab-menu-toggle { display: inline-flex; }
  .ab-header-inner { padding: 14px 16px; gap: 12px; }
  .ab-brand { font-size: 23px; }
  .ab-header .ab-btn-primary { padding: 9px 14px; font-size: 12px; }
  .ab-hero-grid, .ab-stylists-grid, .ab-lookbook-grid, .ab-two-col, .ab-footer-grid, .ab-strip {
    grid-template-columns: 1fr;
  }
  .ab-service-row { flex-direction: column; align-items: flex-start; }
  .ab-service-meta { width: 100%; justify-content: space-between; }
  .ab-price-block { text-align: left; }
}

@media (max-width: 640px) {
  section[id], aside[id], main[id] { scroll-margin-top: 84px; }
  .ab-container { padding: 0 16px; }
  .ab-demo-bar-inner { padding: 6px 16px; gap: 6px; }
  .ab-demo-label { font-size: 11px; width: 100%; }
  .ab-demo-controls { width: 100%; justify-content: space-between; gap: 8px; }
  .ab-swatch-btn { padding: 5px 6px; min-height: 26px; }
  .ab-swatch-label { display: none; }
  .ab-demo-back { font-size: 11px; }
  .ab-demo-back-full { display: none; }
  .ab-demo-back-short { display: inline; }
}
