/*
Theme Name: Beyond The Needle
Description: Studio site for Beyond The Needle PH. Pairs with the Booking, Accounting and Installable app plugins.
Version: 2.1.2
Requires PHP: 8.0
Author: Spell Depot Digital Solutions
Text Domain: beyond-the-needle
*/
/* Her brand, turned up: black, cream and red, with the butter-yellow italic serif from her viral posts and a pink highlighter. */
:root {
  --bg: #fff7ea;
  --ink: #141113;
  --muted: #5e5458;
  --red: #e0262f;
  --red-dark: #b81a22;
  --butter: #f8d977;
  --pink: #ff9cc4;
  --line: #e7d9c3;
  --card: #ffffff;
  --bad: #b81a22;
  --ok: #1c7a46;
  --m: clamp(18px, 4vw, 56px);
  --gap: clamp(16px, 2.4vw, 32px);
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --step-h2: clamp(2.5rem, 1.6rem + 4vw, 5rem);
  --step-hero: clamp(3.75rem, 1rem + 11vw, 11rem);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.55 Jost, system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
::selection { background: var(--butter); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
.serif { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: -0.02em; line-height: .95; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hl { background: linear-gradient(transparent 55%, var(--pink) 55%); padding: 0 .1em; }
.wrap { padding-left: var(--m); padding-right: var(--m); }
section { scroll-margin-top: 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 1.6em; border: 0; border-radius: 999px;
  background: var(--red); color: #fff; font: 500 var(--step-body)/1 Jost, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .12s var(--ease), background-color .15s; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--red-dark); }
.btn:active { transform: scale(.97); }
.btn[disabled] { background: var(--muted); cursor: progress; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.link { font-weight: 500; text-underline-offset: .2em; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--m);
  background: rgba(20, 17, 19, .92); color: var(--butter); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bar .mark { font-size: 1.6rem; text-decoration: none; white-space: nowrap; }
.bar nav { display: flex; gap: 20px; align-items: center; font-size: 15px; color: #fff; }
.bar nav a { text-decoration: none; }
.bar nav a:hover { color: var(--butter); }
.bar .btn { min-height: 40px; padding: 0 1.1em; font-size: 15px; }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: #fff; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: center;
  padding: clamp(40px, 6vw, 88px) var(--m) clamp(56px, 7vw, 104px); }
.hero .kicker { display: inline-block; background: var(--pink); color: var(--ink); font-weight: 500; font-size: var(--step-small); padding: 6px 14px; border-radius: 999px; margin-bottom: 28px; }
.hero h1 { font-size: var(--step-hero); color: var(--butter); }
.hero h1 span { display: block; }
.hero .lead { font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; margin: 28px 0 36px; color: #f4ece4; }
.hero .acts { display: flex; flex-wrap: wrap; gap: 12px; }
.hero figure { margin: 0; position: relative; }
.hero figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--radius) var(--radius); }
.hero .tag { position: absolute; left: -18px; bottom: 28px; background: var(--butter); color: var(--ink); padding: 12px 18px; border-radius: var(--radius);
  font-size: var(--step-small); line-height: 1.3; max-width: 22ch; transform: rotate(-3deg); }
.hero .tag b { display: block; font: italic 500 1.5rem/1 "Cormorant Garamond", serif; }

/* ---------- section heads ---------- */
.sec { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head h2 { font-size: var(--step-h2); max-width: 14ch; }
.sec-head p { max-width: 40ch; }

/* ---------- prices ---------- */
.prices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; background: var(--card); border-radius: var(--radius); padding: 18px 22px; }
.prices .name { font: italic 500 1.75rem/1 "Cormorant Garamond", serif; }
.prices .price { font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prices-note { margin-top: 24px; max-width: 62ch; }

/* ---------- her work ---------- */
.work { background: var(--butter); }
.work .sec-head p { color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: #ead39a; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .big { grid-column: span 2; grid-row: span 2; }

/* ---------- why book with us ---------- */
.why .cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.why .card { margin: 0; }
.why .card img { width: 100%; aspect-ratio: 636 / 900; object-fit: cover; border-radius: var(--radius); }
.why .card figcaption { margin-top: 14px; }
.why .card b { display: block; font: italic 500 1.6rem/1.05 "Cormorant Garamond", serif; margin-bottom: 4px; }
.why .card span { font-size: 1rem; }

/* ---------- meet Zae ---------- */
.meet { background: var(--ink); color: #fff; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.meet img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.meet h2 { font-size: var(--step-h2); color: var(--butter); margin-bottom: 24px; }
.meet p { max-width: 46ch; color: #f4ece4; }
.meet p + p { margin-top: 1em; }
.meet ul { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.meet li { background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 8px 16px; font-size: 15px; }

/* ---------- how booking works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); counter-reset: s; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 28px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: #fff;
  font: italic 500 2rem/1 "Cormorant Garamond", serif; margin-bottom: 20px; }
.steps b { display: block; font-size: var(--step-lead); font-weight: 500; margin-bottom: 8px; }

/* ---------- aftercare + policy ---------- */
.qa { background: #fff; }
.qa.alt { background: var(--bg); }
.qa { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap) clamp(32px, 5vw, 80px); align-items: start; }
.qa .sec-head { flex-direction: column; align-items: flex-start; margin: 0; }
.qa-list { display: grid; gap: 8px; }
.qa details { background: var(--bg); border-radius: var(--radius); padding: 0 24px; }
.qa.alt details { background: #fff; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0;
  font: italic 500 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 "Cormorant Garamond", serif; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--butter);
  font: 400 1.5rem/1 Jost, sans-serif; transition: transform .2s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa .a { padding: 0 0 24px; max-width: 62ch; }
.qa .a p + p, .qa .a ul { margin-top: .7em; }
.qa .a ul { padding-left: 1.2em; margin-bottom: 0; }

/* ---------- visit ---------- */
.visit { background: var(--red); color: #fff; }
.visit .sec-head h2 { color: var(--butter); }
.visit .sec-head p { color: #ffe9ea; }
.visit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.visit-grid div { background: rgba(0, 0, 0, .16); border-radius: var(--radius); padding: 24px; }
.visit-grid b { display: block; font: italic 500 1.6rem/1.1 "Cormorant Garamond", serif; color: var(--butter); margin-bottom: 6px; }
.visit .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.visit .btn { background: var(--ink); }
.visit .btn:hover { background: #000; }
.visit .btn.ghost { background: transparent; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #f4ece4; padding: clamp(56px, 7vw, 96px) var(--m) 32px; }
.foot .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.foot .say { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); line-height: 1.05; color: var(--butter); max-width: 18ch; }
.foot .links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 48px; font-size: 15px; }
.foot .links a { text-decoration: none; }
.foot .links a:hover { color: var(--butter); }
.foot .legal { margin-top: 40px; font-size: var(--step-small); color: #b9adb2;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- booking page ---------- */
.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); padding-top: clamp(32px, 4vw, 64px); padding-bottom: 120px; align-items: start; }
.book-head { position: sticky; top: 88px; }
.book-head h1 { font-size: var(--step-h2); }
.book-head .lead { font-size: var(--step-lead); line-height: 1.35; margin: 20px 0 28px; max-width: 28ch; }
.book-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; }
.book-pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.book-note { margin-top: 24px; background: var(--butter); border-radius: var(--radius); padding: 18px 20px; max-width: 460px; font-size: 1rem; }
.book-note b { font-weight: 600; }
.book-form { min-width: 0; }

fieldset { border: 0; margin: 0 0 20px; padding: clamp(20px, 3vw, 32px); background: var(--card); border-radius: calc(var(--radius) + 6px); min-width: 0; }
legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; font: italic 500 clamp(1.75rem, 1.4rem + 1vw, 2.25rem)/1 "Cormorant Garamond", serif; margin: 0 0 20px; padding: 0; }
legend .n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--butter); font: 500 1rem/1 Jost, sans-serif; }
fieldset > :not(legend) { clear: both; }
label { display: block; font-weight: 500; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.hint { color: var(--muted); font-size: var(--step-small); font-weight: 400; }
input[type=text], input[type=tel], input[type=email], input[type=date], input[type=number], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #d9c9b3; border-radius: 12px; -webkit-appearance: none; appearance: none; }
select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23141113' stroke-width='2'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 44px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px var(--butter); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* calendar */
.cal { user-select: none; -webkit-user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-head b { font: italic 500 1.6rem/1 "Cormorant Garamond", serif; }
.cal-nav { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #d9c9b3; background: #fff; color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-nav:not(:disabled):active { transform: scale(.94); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-size: 13px; font-weight: 500; color: var(--muted); padding-bottom: 4px; }
.cal-day { position: relative; aspect-ratio: 1; min-height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: #f6eedf; color: var(--ink);
  font: 500 1.05rem/1 Jost, sans-serif; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .12s, transform .1s; }
.cal-day:hover:not(:disabled) { background: var(--butter); }
.cal-day:active:not(:disabled) { transform: scale(.94); }
.cal-day[aria-pressed=true], .cal-day[aria-pressed=true]:hover:not(:disabled) { background: var(--ink); color: var(--butter); }
.cal-day.today::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.cal-day:disabled { background: transparent; color: #c9bba8; cursor: not-allowed; }
.cal-day.full:disabled { text-decoration: line-through; }
.cal-blank { aspect-ratio: 1; }
.cal-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.cal-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.picked { margin-top: 14px; font-weight: 500; }

/* time picker */
.times { margin-top: 24px; }
.slot-group + .slot-group { margin-top: 16px; }
.slot-group h4 { margin: 0 0 8px; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.slots .chip span { padding: 8px 4px; white-space: nowrap; }

/* chips (times + services) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: block; margin: 0; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.chip span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 16px; background: #fff; border: 2px solid #d9c9b3; border-radius: 14px;
  font-weight: 500; font-variant-numeric: tabular-nums; text-align: center; line-height: 1.2; transition: background-color .12s, color .12s, border-color .12s, transform .1s; }
.chip:hover input:not(:disabled) + span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--butter); }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.chip input:disabled { cursor: not-allowed; }
.chip input:disabled + span { background: #f3ede3; border-color: #f3ede3; color: #b5a793; }
.chip input:disabled + span s { text-decoration-thickness: 2px; }
.chip:active input:not(:disabled) + span { transform: scale(.97); }
.chip small { font-weight: 400; opacity: .85; }
.svc .chip span { justify-content: space-between; min-width: 150px; }
.times-empty { color: var(--muted); padding: 14px 16px; background: #f6eedf; border-radius: 12px; }
.total { font-size: var(--step-lead); font-weight: 600; margin: 18px 0 0; font-variant-numeric: tabular-nums; }

.policy { background: #fff3f4; border-radius: 14px; padding: 18px 20px 18px 22px; margin-bottom: 18px; }
.policy ul { margin: 0; padding-left: 1.1em; }
.policy li + li { margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin-bottom: 14px; cursor: pointer; }
.check input { width: 26px; height: 26px; margin: 0; flex: none; accent-color: var(--red); }

.summary { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--ink); color: #fff; border-radius: calc(var(--radius) + 6px); padding: 14px 14px 14px 22px; box-shadow: 0 12px 32px rgba(20, 17, 19, .25); }
.summary p { font-size: 15px; line-height: 1.35; color: #f4ece4; min-width: 0; }
.summary p b { display: block; color: var(--butter); font-size: 1.05rem; font-weight: 500; }
.summary .btn { flex: none; }
.err { color: var(--bad); background: #fff3f4; border-radius: 12px; padding: 12px 16px; font-weight: 500; margin: 0 0 14px; }
.done { background: var(--card); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 4vw, 44px); }
.done h2 { font-size: var(--step-h2); margin-bottom: 20px; }
.done .id { display: inline-block; background: var(--butter); border-radius: 8px; padding: 2px 10px; font-size: var(--step-lead); font-weight: 600; font-variant-numeric: tabular-nums; }
.done p + p { margin-top: 1em; }
.done ol { padding-left: 1.2em; margin: 1.2em 0; }
.done li + li { margin-top: .6em; }
.pay { margin-top: 28px; background: var(--bg); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.pay h3 { font: italic 500 clamp(1.6rem, 1.3rem + 1vw, 2rem)/1.05 "Cormorant Garamond", serif; margin: 0 0 8px; }
.pay-pick { margin: 16px 0; }
.qr { margin: 0; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px; align-items: center; }
.qr[hidden] { display: none; }
.qr img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 14px; }
.qr figcaption { display: grid; gap: 12px; justify-items: start; font-size: 1rem; }
.pay-note { margin-top: 14px; font-size: 1rem; }
.qr-name { font-size: var(--step-lead); font-weight: 600; }

/* ---------- plain pages ---------- */
.plain-page { padding-top: 48px; padding-bottom: 160px; max-width: calc(72ch + 2 * var(--m)); }
.plain-page h1 { font-size: var(--step-h2); margin-bottom: 32px; }
.plain-page p + p { margin-top: 1em; }

/* ---------- motion ---------- */
.rise { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rise.in { opacity: 1; transform: none; }
.no-js .rise { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .gallery img { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .why .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; }
  .book-head { position: static; }
  .book-pics { grid-template-columns: repeat(4, 1fr); max-width: none; }
  .book-note { max-width: none; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .bar nav .hide-sm { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero figure { order: -1; max-width: 420px; }
  .hero figure img { aspect-ratio: 5 / 4; border-radius: 160px 160px var(--radius) var(--radius); }
  .hero .kicker { margin-bottom: 16px; }
  .hero .lead { font-size: 1.125rem; }
  .hero .tag { left: auto; right: 10px; bottom: 18px; }
  .hero .lead { margin: 20px 0 28px; }
  .hero .acts .btn { flex: 1 1 100%; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .why .cards { gap: 16px; }
  .why .card b { font-size: 1.35rem; }
  .meet { grid-template-columns: 1fr; }
  .meet img { max-width: 360px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .visit-grid { grid-template-columns: 1fr; gap: 12px; }
  .visit .acts .btn { flex: 1 1 100%; }
  .foot .top .btn { width: 100%; }
  .book-pics { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .book-pics img { border-radius: 12px; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .cal-grid { gap: 4px; }
  .cal-day { border-radius: 10px; font-size: 1rem; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc .chip { flex: 1 1 100%; }
  .summary { padding: 12px 12px 12px 18px; }
  .summary .btn { width: 100%; }
  .qr { grid-template-columns: 1fr; }
  .qr img { max-width: 320px; margin: 0 auto; }
  .qr .btn, .pay-proof .btn { width: 100%; }
}

@media (max-width: 360px) { .slots .chip span { font-size: .9rem; } }
