/* massage.co.za — Booksy-style re-skin · dark marketplace shell, brand-red accent
   Style: memory/styles/booksy.md · Brand: memory/clients/massage-co-za.md */

:root {
  --ink: #0C0D10;         /* header / hero band — near-black, matches logo ground */
  --ink-2: #1D1F24;       /* secondary buttons */
  --red: #C9314B;         /* brand accent — Sensunova rose-crimson, sampled from logo (5.2:1 on white) */
  --red-dark: #A6273E;
  --text: #1B1C1F;
  --muted: #6B6F76;
  --grey: #F2F3F5;        /* chips, input fills */
  --line: #E7E8EA;
  --white: #FFFFFF;
  --radius: 7px;
  --radius-lg: 12px;
  --container: 1264px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px; line-height: 1.55; color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px;
}
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible,
.search-btn:focus-visible, .btn-red:focus-visible, .btn-dark:focus-visible {
  outline-color: #fff;
}

/* ---------- Header (dark marketplace shell) ---------- */
.site-header { background: var(--ink); color: #fff; }
.header-top { display: flex; align-items: center; gap: 20px; padding: 14px 0; }
.wordmark { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.mark-img { width: 44px; height: 44px; object-fit: cover; object-position: center 42%; flex: none; }
.blend { mix-blend-mode: screen; }
.wordmark .wm-name {
  display: block; font-family: "Cinzel", serif; font-size: 19px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.1;
  background: linear-gradient(115deg, #E9788D 0%, #CE3A55 45%, #A6273E 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.site-footer .wm-name, .hero .wm-name { -webkit-text-fill-color: transparent; }
.wordmark small { display: block; font-size: 8.5px; font-weight: 500; color: #9BA0A8; letter-spacing: 0.28em; text-transform: uppercase; margin-top: 3px; }
.hero-logo { width: 190px; margin: 0 auto 6px; mix-blend-mode: screen; }

.search-bar { display: flex; gap: 10px; flex: 1; min-width: 0; }
.search-field {
  display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 8px;
  height: 46px; padding: 0 14px; color: var(--muted); flex: 1; min-width: 0; font-size: 14px;
}
.search-field svg { flex: none; }
.search-field input { border: 0; outline: 0; width: 100%; font: inherit; color: var(--text); background: transparent; }
.search-btn {
  height: 46px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--red);
  color: #fff; font: 600 14px/1 "Inter", sans-serif; cursor: pointer;
}
.search-btn:hover { background: var(--red-dark); }
.header-auth { display: flex; align-items: center; gap: 16px; font-weight: 600; white-space: nowrap; }
.header-auth a:hover { color: var(--red); }

.cat-nav { display: flex; gap: 4px; overflow-x: auto; }
.cat-nav a {
  padding: 12px 14px 14px; color: #D6D8DC; font-weight: 500; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.cat-nav a:hover { color: #fff; }
.cat-nav a.active { color: #fff; border-bottom-color: #fff; font-weight: 600; }

/* ---------- Homepage hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: 0.28; }
.hero-inner { position: relative; text-align: center; padding: 96px 24px 72px; max-width: 860px; margin: 0 auto; }
.hero h1 { font-family: "Cinzel", serif; font-size: clamp(32px, 4.6vw, 52px); font-weight: 600; letter-spacing: 0.06em; }
.hero p { font-size: 17px; color: #E5E7EA; margin: 14px auto 30px; max-width: 560px; }
.hero .search-bar { max-width: 720px; margin: 0 auto; }
.hero-chips { position: relative; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; padding: 0 24px 26px; }
.hero-chips a { color: #D6D8DC; font-weight: 500; padding-bottom: 6px; border-bottom: 3px solid transparent; }
.hero-chips a:hover { color: #fff; border-bottom-color: var(--red); }

/* ---------- Sections ---------- */
.section { padding: 64px 0 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { font-family: "Cinzel", serif; font-size: 23px; font-weight: 600; letter-spacing: 0.03em; }
.rail-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(20,21,25,.08);
}

/* Card rail */
.card-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.biz-card .photo { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 3/2; background: var(--grey); }
.biz-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.biz-card:hover .photo img { transform: scale(1.03); }
.rating-badge {
  position: absolute; top: 0; right: 0; background: rgba(20,21,25,.82); color: #fff;
  padding: 8px 12px; border-radius: 0 0 0 8px; text-align: center;
}
.rating-badge strong { display: block; font-size: 16px; }
.rating-badge span { font-size: 11px; color: #C9CCD1; }
.biz-card h3 { font-size: 16px; font-weight: 700; margin: 12px 0 2px; }
.biz-card .meta { color: var(--muted); font-size: 13px; }
.tag-chip {
  display: inline-block; margin-top: 8px; background: var(--grey); border-radius: 6px;
  padding: 3px 8px; font-size: 12px; font-weight: 600; color: #3A3D42;
}
.tag-chip.adult { background: #1F2024; color: #E8B4B5; }

/* Split promo bands */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.flip .split-media { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy .kicker { color: var(--red); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.split-copy h2 { font-family: "Cinzel", serif; font-size: 28px; font-weight: 600; letter-spacing: 0.03em; margin: 8px 0 14px; }
.split-copy p { color: #3A3D42; font-size: 15px; margin-bottom: 12px; }
.split-copy ul { margin: 4px 0 20px; }
.split-copy li { padding-left: 24px; position: relative; margin-bottom: 8px; font-size: 15px; color: #3A3D42; }
.split-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.price-line { font-size: 15px; margin-bottom: 6px; }
.price-line strong { font-size: 18px; }

.btn { display: inline-block; border: 0; border-radius: var(--radius); cursor: pointer; font: 600 14px/1 "Inter", sans-serif; }
.btn-red { background: var(--red); color: #fff; padding: 15px 26px; }
.btn-red:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink-2); color: #fff; padding: 15px 26px; }
.btn-dark:hover { background: var(--ink); }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--line); padding: 14px 25px; }
.btn-sm { padding: 9px 18px; }
.btn-ghost.btn-sm { padding: 8px 17px; }

/* SEO trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trio h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.trio p { color: #3A3D42; font-size: 14px; }

/* Area link matrix */
.matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.matrix h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.matrix li { margin-bottom: 7px; }
.matrix a { color: #3A3D42; font-size: 13.5px; }
.matrix a:hover { color: var(--red); }
.matrix .count { color: #767B82; }

/* ---------- Listing page ---------- */
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 22px 0 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff;
  border-radius: 20px; padding: 9px 16px; font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.pill:hover { border-color: #C6C9CE; }
.toolbar .spacer { flex: 1; }
.page-title { padding: 14px 0 4px; }
.page-title h1 { font-family: "Cinzel", serif; font-size: 28px; font-weight: 600; letter-spacing: 0.03em; }
.page-title .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; padding: 22px 0; }
.chip { background: var(--grey); border-radius: 8px; padding: 10px 16px; font-size: 13.5px; font-weight: 500; color: #2E3136; }
.chip:hover { background: #E8EAED; }
.chip.on { background: var(--ink); color: #fff; }

.result { display: grid; grid-template-columns: 420px 1fr; gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); }
.result .photo { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 3/2; background: var(--grey); }
.result .photo img { width: 100%; height: 100%; object-fit: cover; }
.result h2 { font-size: 20px; font-weight: 700; }
.result .meta { color: var(--muted); font-size: 13.5px; margin: 4px 0 8px; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--grey); border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.badge.provider { background: #FDEBEB; color: var(--red-dark); }

.svc-row { display: flex; align-items: center; gap: 16px; padding: 13px 0; border-top: 1px dashed var(--line); }
.svc-row:first-of-type { border-top: 0; }
.svc-name { flex: 1; font-weight: 600; font-size: 15px; }
.svc-name small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.svc-price { text-align: right; }
.svc-price strong { font-size: 15px; }
.svc-price .lock { color: var(--muted); font-size: 12px; display: block; }
.more-link { display: inline-block; margin-top: 12px; color: var(--red); font-weight: 600; }

.pagination { display: flex; gap: 8px; justify-content: center; padding: 36px 0; }
.pagination a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; }
.pagination a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.treatments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 24px; }
.treatments a { font-size: 14.5px; font-weight: 600; padding: 6px 0; }
.treatments a:hover { color: var(--red); }
.treatments a span { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }

.prose { max-width: 820px; }
.prose h2 { font-size: 22px; font-weight: 700; margin: 34px 0 10px; letter-spacing: -0.01em; }
.prose h3 { font-size: 15px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin: 22px 0 6px; }
.prose p { color: #3A3D42; font-size: 14.5px; margin-bottom: 10px; }

.breadcrumb { padding: 26px 0 46px; color: var(--muted); font-size: 13px; }
.breadcrumb a:hover { color: var(--red); }

/* ---------- Profile page ---------- */
.profile-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; padding-top: 28px; }
.gallery { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--grey); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-actions { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 8px; background: #fff; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(20,21,25,.14); font-size: 16px; }
.show-all { position: absolute; bottom: 14px; right: 14px; background: #fff; border-radius: var(--radius); padding: 9px 14px; font-weight: 600; font-size: 13px; box-shadow: 0 2px 8px rgba(20,21,25,.14); }
.filmstrip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 6px; }
.filmstrip img { border-radius: 4px; aspect-ratio: 1; object-fit: cover; width: 100%; }

.profile-head { padding: 22px 0 6px; }
.profile-head .chips { display: flex; gap: 8px; margin-bottom: 12px; }
.profile-head h1 { font-family: "Cinzel", serif; font-size: 32px; font-weight: 600; letter-spacing: 0.04em; }
.profile-head .addr { color: var(--muted); margin: 4px 0 10px; }
.stars { color: var(--red); letter-spacing: 2px; font-size: 15px; }
.review-link { font-weight: 600; border-bottom: 1px solid var(--line); }

.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 18px; }
.side-card h4 { font-size: 12px; letter-spacing: .06em; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.side-card p { font-size: 14px; color: #3A3D42; }
.side-card .today { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; }
.hours-row { display: flex; justify-content: space-between; font-size: 13.5px; color: #3A3D42; padding: 5px 0; border-top: 1px dashed var(--line); }
.map-thumb { border-radius: 8px; overflow: hidden; aspect-ratio: 2/1; background: linear-gradient(135deg, #E8EAED, #F5F6F7); display: grid; place-items: center; margin-bottom: 12px; position: relative; }
.map-pin { width: 34px; height: 34px; background: var(--ink); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; }
.map-pin::after { content: ""; width: 12px; height: 12px; background: var(--red); border-radius: 50%; transform: rotate(45deg); }

.section-h2 { font-family: "Cinzel", serif; font-size: 23px; font-weight: 600; margin: 40px 0 18px; letter-spacing: 0.03em; }
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 20px; margin-bottom: 8px; }
.area-item { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 7px 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.always { background: var(--red); }
.dot.sometimes { background: #E9A0AE; }
.dot.rarely { background: #E7E8EA; }
.legend { display: flex; gap: 18px; color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.review-summary { display: flex; gap: 48px; align-items: flex-start; margin-bottom: 28px; }
.big-score { font-size: 56px; font-weight: 700; line-height: 1; }
.histogram { flex: 1; max-width: 420px; }
.hist-row { display: flex; align-items: center; gap: 12px; margin-bottom: 7px; font-size: 13px; }
.hist-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--grey); overflow: hidden; }
.hist-bar i { display: block; height: 100%; background: var(--red); border-radius: 3px; }
.review-card { border-top: 1px solid var(--line); padding: 22px 0; }
.review-card .who { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.review-card .name { font-weight: 700; }
.review-card .date { color: var(--muted); font-size: 12.5px; }
.confirmed { background: var(--grey); border-radius: 6px; padding: 3px 8px; font-size: 11.5px; font-weight: 600; color: #3A3D42; }
.review-card .svc { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.review-card blockquote { font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9BDC3; margin-top: 80px; padding: 56px 0 32px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer li { margin-bottom: 9px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2A2D32; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8B9098; }

/* Demo watermark */
.demo-note { background: #FFF7E6; border-bottom: 1px solid #F2E2BC; color: #8A6D1F; text-align: center; padding: 8px 16px; font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .card-rail { grid-template-columns: repeat(2, 1fr); }
  .matrix, .treatments { grid-template-columns: repeat(2, 1fr); }
  .trio { grid-template-columns: 1fr; }
  .result { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-top { flex-wrap: wrap; }
  .search-bar { order: 3; width: 100%; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .card-rail { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .hero-inner { padding: 64px 20px 48px; }
  .search-bar { flex-direction: column; }
  .review-summary { flex-direction: column; gap: 20px; }
}

/* ---------- Forms (Netlify-backed) ---------- */
form.search-bar { margin: 0; }
.form-select {
  display: block; width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; font: inherit; color: var(--text); background: #fff;
  margin-bottom: 10px; appearance: auto;
}
.form-status { display: none; margin: 10px 0 0; font-size: 13px; border-radius: 8px; padding: 10px 12px; }
.form-status.is-error { display: block; background: #FBEDEF; border: 1px solid #F0C6CE; color: #8C1D33; }
.form-status.is-sending { display: block; background: var(--grey); border: 1px solid var(--line); color: var(--muted); }
.form-status a { text-decoration: underline; font-weight: 600; }

/* ---------- Search results ---------- */
.sr-list { display: grid; gap: 14px; max-width: 820px; }
.sr-item { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; display: block; }
.sr-item:hover { border-color: var(--red); }
.sr-item h3 { font-size: 16px; font-weight: 700; }
.sr-item .sr-kind { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.sr-item p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
