/* =====================================================================
   The Luxe Studio — site styles
   Brand: magenta #ec1891 + sage #899664, Playfair Display + Poppins
   ===================================================================== */

:root {
  --magenta: #ec1891;
  --magenta-dark: #b20074;
  --sage: #899664;
  --ink: #1a1718;
  --ink-soft: #5f5a5c;
  --cream: #faf6f4;
  --cream-2: #f3ebe7;
  --white: #ffffff;
  --line: #ece2dd;
  --shadow: 0 18px 50px -24px rgba(120, 20, 80, 0.35);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

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

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--magenta);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.8rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: var(--magenta-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--magenta); color: var(--magenta); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 244, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand .name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.01em; }
.brand .tag { font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--sage); margin-top: 4px; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.86rem; font-weight: 400; letter-spacing: 0.02em; position: relative; }
.nav-links a:hover { color: var(--magenta); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: 0.3s; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: clamp(420px, 60vh, 640px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(255,247,251,0.96) 0%, rgba(255,247,251,0.86) 34%, rgba(255,247,251,0.40) 60%, rgba(255,247,251,0.05) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(2.5rem,6vw,5rem) 0; max-width: 46rem; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; color: var(--magenta); }
.hero p.lead { font-size: 1.12rem; color: var(--ink-soft); margin: 1.4rem 0 2rem; max-width: 32rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.4rem; margin-top: 2.6rem; }
.hero-stats .stat .n { font-family: var(--font-display); font-size: 1.9rem; color: var(--magenta-dark); }
.hero-stats .stat .l { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: 0.6rem; }
.section-head p { color: var(--ink-soft); margin-top: 0.8rem; }
.section.alt { background: var(--cream-2); }

/* ---------- treatment category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; }
.cat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  cursor: pointer; position: relative; overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.cat-card .cat-media {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #f7dce9, #efe7da);
}
.cat-card .cat-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.5s ease;
}
.cat-card:hover .cat-media img { transform: scale(1.06); }
.cat-card .cat-media .ico {
  font-size: 2.4rem; color: #fff; z-index: 1;
  width: 100%; height: 100%; align-items: center; justify-content: center;
}
.cat-card .cat-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45));
}
.cat-card .cat-name {
  position: absolute; left: 1rem; bottom: 0.8rem; z-index: 2;
  color: #fff; font-family: var(--font-display); font-size: 1.3rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4); letter-spacing: 0.01em;
}
.cat-card .cat-body {
  padding: 1rem 1.2rem 1.2rem; display: flex; align-items: center;
  justify-content: space-between;
}
.cat-card .meta { font-size: 0.82rem; color: var(--ink-soft); }
.cat-card .from { font-size: 0.82rem; font-weight: 600; color: var(--magenta); letter-spacing: 0.03em; }

/* ---------- price list ---------- */
.price-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2.5rem; }
.price-tab {
  font-size: 0.82rem; padding: 0.5rem 1.1rem; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); transition: 0.2s;
}
.price-tab:hover { border-color: var(--magenta); color: var(--magenta); }
.price-tab.active { background: var(--magenta); color: #fff; border-color: var(--magenta); }
.price-panel { display: none; }
.price-panel.active { display: block; animation: fade 0.4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.price-cols { columns: 2; column-gap: 3rem; }
.price-row {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: 0.7rem 0; border-bottom: 1px dashed var(--line); break-inside: avoid;
}
.price-row .pname { font-size: 0.92rem; }
.price-row .pname .dur { color: var(--ink-soft); font-size: 0.76rem; margin-left: 0.4rem; }
.price-row .pprice { font-weight: 500; color: var(--magenta-dark); white-space: nowrap; }
.price-row.addon .pname { color: var(--ink-soft); font-size: 0.84rem; }

/* ---------- booking ---------- */
.booking-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 3rem); max-width: 640px; margin: 0 auto;
  border: 1px solid var(--line);
}
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem; font-weight: 300;
  padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--cream); color: var(--ink); transition: 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--magenta); background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field .hint { font-size: 0.74rem; color: var(--ink-soft); margin-top: 0.3rem; }
.notice {
  font-size: 0.82rem; padding: 0.9rem 1.1rem; border-radius: 10px;
  background: rgba(236,24,145,0.07); border: 1px solid rgba(236,24,145,0.2);
  color: var(--magenta-dark); margin-bottom: 1.2rem;
}
.booking-status { margin-top: 1.2rem; font-size: 0.9rem; text-align: center; min-height: 1.4rem; }
.booking-status.ok { color: var(--sage); font-weight: 500; }
.booking-status.err { color: #c0392b; }
.patch-warning {
  display: none; font-size: 0.8rem; padding: 0.8rem 1rem; border-radius: 10px;
  background: #fff7e6; border: 1px solid #f0c674; color: #8a5a00; margin-bottom: 1.2rem;
}
.patch-warning.show { display: block; }

/* slot picker */
.slot-msg { font-size: 0.85rem; color: var(--ink-soft); margin: 1.1rem 0 0.4rem; text-align: center; }
.slot-msg strong { color: var(--magenta-dark); font-weight: 600; }
.slot-msg.empty { color: var(--ink-soft); }
.slot-grid { margin: 0.6rem 0 0.4rem; }
.slot-period { margin-top: 1.1rem; }
.slot-period-label {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.6rem; font-weight: 600;
}
.slot-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 0.7rem; }
.slot-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  padding: 0.7rem 0.6rem; border: 1.5px solid var(--line); background: var(--white);
  border-radius: 12px; cursor: pointer; font-family: var(--font-body);
  transition: transform 0.12s ease, border-color 0.2s, background 0.2s, color 0.2s; color: var(--ink);
}
.slot-btn .slot-time { font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; }
.slot-btn .slot-end { font-size: 0.66rem; color: var(--ink-soft); letter-spacing: 0.02em; }
.slot-btn:hover { border-color: var(--magenta); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(236,24,145,0.12); }
.slot-btn.selected { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.slot-btn.selected .slot-end { color: rgba(255,255,255,0.85); }

/* ---------- info strip ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.info-item h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--magenta); margin-bottom: 0.5rem; }
.info-item p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.quote {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem;
  border: 1px solid var(--line); position: relative;
}
.quote::before { content: "\201C"; font-family: var(--font-display); font-size: 4rem; color: var(--magenta); opacity: 0.18; position: absolute; top: 0.2rem; left: 1rem; }
.quote p { font-size: 0.92rem; color: var(--ink-soft); font-style: italic; position: relative; }
.quote .who { margin-top: 1rem; font-weight: 500; font-size: 0.86rem; font-style: normal; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d8cfd2; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.site-footer a { color: #d8cfd2; font-size: 0.88rem; }
.site-footer a:hover { color: var(--magenta); }
.footer-hours { font-size: 0.86rem; line-height: 1.9; }
.footer-hours .d { display: flex; justify-content: space-between; max-width: 240px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.78rem; color: #9a9094; text-align: center; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 78px 0 auto 0; background: var(--cream);
    flex-direction: column; padding: 1.5rem 24px; gap: 1.2rem;
    border-bottom: 1px solid var(--line); transform: translateY(-120%);
    transition: transform 0.3s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: none; }
  .nav-toggle { display: flex; }
  .price-cols { columns: 1; }
  .field-row { grid-template-columns: 1fr; }
}
