@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Reset + base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: #fff; color: #1e0f1a; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; }

:root {
  --primary: #c4578a;
  --primary-dark: #9b3d6b;
  --primary-light: #e87fb5;
  --primary-bg: #fce7f3;
  --text: #1e0f1a;
  --text-muted: #7a5d70;
  --border: #e8d5e2;
  --bg: #fdf6f9;
  --surface: #fff;
  --radius: 14px;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.pub-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.pub-header-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.pub-logo { font-size: 1.1rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.pub-logo span { color: var(--text); }
.pub-btn-text { font-size: .84rem; font-weight: 600; color: var(--primary); padding: 7px 14px; border-radius: 99px; border: 1.5px solid var(--primary); transition: .15s; }
.pub-btn-text:hover { background: var(--primary-bg); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #fce7f3 0%, #fdf0f8 40%, #fff5fb 70%, #fff 100%);
  min-height: 86vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 24px 40px;
  position: relative;
}
.hero-eyebrow { font-size: .8rem; font-weight: 600; color: var(--primary); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.hero-title {
  font-size: clamp(2.8rem, 8vw, 5rem); font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #e87fb5 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 16px;
}
.hero-subtitle { font-size: clamp(.95rem, 2.5vw, 1.15rem); color: var(--text-muted); max-width: 480px; line-height: 1.6; margin-bottom: 32px; }
.hero-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-btn-primary {
  background: var(--primary); color: #fff;
  padding: 14px 32px; border-radius: 99px;
  font-size: .95rem; font-weight: 700;
  box-shadow: 0 4px 20px rgba(196,87,138,.35);
  transition: transform .15s, box-shadow .15s;
  display: inline-block;
}
.hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(196,87,138,.45); }
.hero-btn-secondary {
  background: rgba(196,87,138,.1); color: var(--primary-dark);
  padding: 14px 24px; border-radius: 99px;
  font-size: .88rem; font-weight: 600;
  border: 1.5px solid rgba(196,87,138,.25);
  transition: .15s; display: inline-block;
}
.hero-btn-secondary:hover { background: var(--primary-bg); }
.hero-referral-hint { margin-top: 22px; font-size: .78rem; color: var(--text-muted); }
.hero-referral-hint a { color: var(--primary); font-weight: 600; }

.hero-scroll-indicator {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: .7rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; animation: bounceDown 2s ease-in-out infinite;
}
.scroll-arrow { font-size: 1.4rem; line-height: 1; }
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Catalog ─────────────────────────────────────────────────────────────── */
.catalog-section { background: var(--bg); padding: 60px 20px 120px; }
.catalog-container { max-width: 1100px; margin: 0 auto; }
.catalog-header { text-align: center; margin-bottom: 32px; }
.catalog-title { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.catalog-subtitle { color: var(--text-muted); font-size: .9rem; }

/* Area tabs */
.area-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.area-tab {
  padding: 8px 18px; border-radius: 99px; font-size: .8rem; font-weight: 600;
  background: white; border: 1.5px solid var(--border); color: var(--text-muted);
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.area-tab.active, .area-tab:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Area group label */
.area-group-label {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); margin-top: 8px; margin-bottom: 4px;
}
.area-group-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Service card */
.svc-card {
  background: white; border-radius: var(--radius);
  border: 2px solid var(--border);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .15s, border-color .15s, transform .15s;
  position: relative;
}
.svc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--primary-light); }
.svc-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(196,87,138,.15); }

.svc-card-top { height: 5px; }
.svc-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.svc-name { font-size: .95rem; font-weight: 700; }
.svc-description { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }
.svc-meta { display: flex; align-items: center; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.svc-duration { font-size: .75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.svc-price { font-size: 1rem; font-weight: 800; color: var(--primary-dark); margin-left: auto; }

.svc-profs { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.svc-prof-chip {
  font-size: .68rem; padding: 3px 8px; border-radius: 99px;
  background: var(--bg); color: var(--text-muted); font-weight: 500;
}

.svc-card-footer { padding: 12px 16px 16px; }
.svc-add-btn {
  width: 100%; padding: 11px; border-radius: 10px;
  font-size: .84rem; font-weight: 700;
  background: var(--primary-bg); color: var(--primary-dark);
  border: 1.5px solid rgba(196,87,138,.25);
  transition: .15s; min-height: 44px;
}
.svc-add-btn:hover { background: var(--primary); color: white; }
.svc-card.selected .svc-add-btn { background: var(--primary); color: white; }

/* ── Floating selection bar ───────────────────────────────────────────────── */
.selection-bar {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: white;
  border-radius: 99px; padding: 12px 12px 12px 22px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
  z-index: 300; min-width: 320px; max-width: calc(100vw - 40px);
  animation: slideUpBar .25s ease;
}
@keyframes slideUpBar { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.sel-summary { flex: 1; }
.sel-count { font-size: .78rem; font-weight: 600; opacity: .7; margin-bottom: 2px; }
.sel-info { font-size: .88rem; font-weight: 700; }
.sel-btn {
  background: var(--primary); color: white;
  padding: 10px 22px; border-radius: 99px;
  font-size: .88rem; font-weight: 700;
  white-space: nowrap; transition: .15s; min-height: 42px;
  flex-shrink: 0;
}
.sel-btn:hover { background: var(--primary-dark); }

/* ── Loading ──────────────────────────────────────────────────────────────── */
.catalog-loading { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 60px; color: var(--text-muted); }
.spinner-pub { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.pub-footer { background: #1e0f1a; color: rgba(255,255,255,.6); padding: 24px 20px; }
.pub-footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.pub-footer-logo { color: var(--primary-light); font-weight: 700; }
.pub-footer-links { display: flex; gap: 16px; font-size: .8rem; }
.pub-footer-links a { color: rgba(255,255,255,.5); transition: color .15s; }
.pub-footer-links a:hover { color: var(--primary-light); }

/* ── Booking step pages shared ────────────────────────────────────────────── */
.booking-wrap {
  min-height: 100vh; background: var(--bg);
  display: flex; flex-direction: column;
}
.booking-header {
  background: white; border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 50;
}
.booking-back { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; flex-shrink: 0; transition: .15s; }
.booking-back:hover { background: var(--primary-bg); border-color: var(--primary); }
.booking-step-title { font-weight: 700; font-size: 1rem; }
.booking-step-sub { font-size: .74rem; color: var(--text-muted); margin-top: 2px; }

/* Progress steps */
.booking-progress { display: flex; align-items: center; gap: 0; margin-left: auto; }
.step-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.step-dot.done { background: var(--primary); }
.step-dot.active { background: var(--primary); box-shadow: 0 0 0 3px rgba(196,87,138,.2); }
.step-line { width: 20px; height: 2px; background: var(--border); }
.step-line.done { background: var(--primary); }

.booking-body { flex: 1; padding: 20px; max-width: 680px; margin: 0 auto; width: 100%; }

/* Summary cards */
.booking-summary-card {
  background: white; border-radius: var(--radius); border: 1px solid var(--border);
  padding: 16px; margin-bottom: 16px;
}
.booking-summary-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 12px; }
.summary-svc-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); gap: 10px; }
.summary-svc-row:last-child { border-bottom: none; }
.summary-svc-name { font-size: .88rem; font-weight: 600; }
.summary-svc-meta { font-size: .74rem; color: var(--text-muted); margin-top: 2px; }
.summary-svc-price { font-size: .88rem; font-weight: 700; color: var(--primary-dark); white-space: nowrap; }
.summary-remove-btn { background: none; border: none; color: #d1d5db; font-size: 18px; cursor: pointer; padding: 0 4px; transition: color .15s; flex-shrink: 0; }
.summary-remove-btn:hover { color: #ef4444; }
.summary-total-row { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; margin-top: 4px; border-top: 2px solid var(--border); }
.summary-total-label { font-weight: 700; font-size: .88rem; }
.summary-total-price { font-size: 1.1rem; font-weight: 800; color: var(--primary); }

/* Forms */
.pub-form-group { margin-bottom: 18px; }
.pub-label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; letter-spacing: .02em; }
.pub-input {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 16px; font-family: inherit;
  color: var(--text); background: white; outline: none;
  transition: border-color .15s, box-shadow .15s; min-height: 50px;
}
.pub-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(196,87,138,.12); }
.pub-input::placeholder { color: #b0909f; }
select.pub-input { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a5d70' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }

/* Buttons */
.pub-btn-primary {
  width: 100%; padding: 15px; border-radius: 12px;
  background: var(--primary); color: white;
  font-size: 1rem; font-weight: 700;
  border: none; cursor: pointer; min-height: 52px;
  transition: background .15s, transform .1s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pub-btn-primary:hover { background: var(--primary-dark); }
.pub-btn-primary:active { transform: scale(.98); }
.pub-btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.pub-btn-outline {
  width: 100%; padding: 14px; border-radius: 12px;
  background: transparent; color: var(--primary);
  font-size: .9rem; font-weight: 600;
  border: 1.5px solid var(--primary); cursor: pointer; min-height: 50px;
  transition: .15s; margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pub-btn-outline:hover { background: var(--primary-bg); }

/* Prof cards in scheduling */
.prof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.prof-card {
  background: white; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 16px 12px; text-align: center; cursor: pointer;
  transition: .15s; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.prof-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.prof-card.selected { border-color: var(--primary); background: var(--primary-bg); }
.prof-avatar-lg {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 1.1rem;
}
.prof-name-sm { font-size: .82rem; font-weight: 700; }
.prof-days-sm { font-size: .68rem; color: var(--text-muted); }

/* Time slots grid */
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.time-slot {
  padding: 11px 0; border-radius: 10px; text-align: center;
  font-size: .84rem; font-weight: 600; border: 1.5px solid var(--border);
  background: white; cursor: pointer; transition: .15s; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.time-slot:hover { border-color: var(--primary); color: var(--primary); }
.time-slot.selected { background: var(--primary); color: white; border-color: var(--primary); }
.time-slot.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* Date grid */
.date-picker-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.date-chip {
  flex-shrink: 0; width: 64px; padding: 10px 0; border-radius: 12px;
  text-align: center; border: 1.5px solid var(--border); background: white;
  cursor: pointer; transition: .15s; scroll-snap-align: start;
}
.date-chip:hover { border-color: var(--primary-light); }
.date-chip.selected { background: var(--primary); color: white; border-color: var(--primary); }
.date-chip.today { border-color: var(--primary-light); }
.date-chip-day { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.date-chip.selected .date-chip-day { opacity: .8; }
.date-chip-num { font-size: 1.1rem; font-weight: 800; line-height: 1; margin-top: 2px; }

/* Empty / loading states */
.pub-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.pub-empty-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.pub-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px; color: var(--text-muted); }

/* Confirmation */
.confirm-card {
  background: white; border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; margin-bottom: 16px;
}
.confirm-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 28px 24px; text-align: center; color: white;
}
.confirm-check { font-size: 3rem; margin-bottom: 8px; }
.confirm-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.confirm-sub { opacity: .85; font-size: .88rem; }
.confirm-details { padding: 20px; }
.confirm-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.confirm-row:last-child { border-bottom: none; }
.confirm-icon-wrap { font-size: 1.2rem; flex-shrink: 0; width: 28px; text-align: center; }
.confirm-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 2px; }
.confirm-value { font-size: .9rem; font-weight: 600; }

/* ── Tag / Badge ─────────────────────────────────────────────────────────── */
.pub-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 99px;
  font-size: .75rem; font-weight: 600;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .service-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 20px 50px; min-height: 75vh; }
  .hero-title { font-size: 2.8rem; }
  .catalog-section { padding: 40px 16px 100px; }
  .pub-footer-inner { flex-direction: column; text-align: center; gap: 8px; }
  .selection-bar { min-width: 0; width: calc(100vw - 24px); border-radius: 16px; padding: 12px 12px 12px 18px; }
  .booking-body { padding: 16px; }
}
