/* Ardlow Skin Clinic — demo theme (taupe, rose, porcelain) */
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope.woff2") format("woff2-variations"), url("../fonts/manrope.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --taupe: #4a3c37;
  --taupe-2: #6b5a53;
  --rose: #c98b7f;
  --rose-2: #96564b;
  --blush: #f1e4de;
  --porcelain: #fbf8f6;
  --card: #ffffff;
  --ink: #2b2220;
  --muted: #6b5d57;
  --line: #e8dcd6;
  --sage: #7f9384;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--porcelain); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--serif); line-height: 1.02; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--rose-2); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .98rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
.btn-dark { background: var(--taupe); color: #fff; }
.btn-dark:hover:not(:disabled) { background: var(--taupe-2); }
.btn-rose { background: var(--rose); color: var(--ink); }
.btn-rose:hover:not(:disabled) { background: var(--rose-2); color: #fff; }
.btn-line { border-color: var(--taupe); color: var(--taupe); background: transparent; }
.btn-line:hover { background: var(--taupe); color: #fff; }
.btn-block { width: 100%; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 246, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { font-family: var(--serif); font-size: 1.9rem; color: var(--taupe); text-decoration: none; line-height: 1; padding-block: 8px; display: flex; align-items: baseline; gap: 8px; }
.logo span { font-family: var(--sans); font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.top-nav { display: flex; gap: 6px; margin-left: auto; }
.top-nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; font-weight: 500; font-size: .95rem; }
.top-nav a:hover { color: var(--taupe); }
@media (max-width: 680px) { .top-nav { display: none; } .top-inner > .btn { margin-left: auto; } .logo span { display: none; } }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 104px); background: radial-gradient(ellipse 70% 80% at 85% 20%, var(--blush), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 24px; }
.eyebrow { font-size: .75rem; letter-spacing: .26em; text-transform: uppercase; color: var(--rose-2); font-weight: 700; }
.hero h1 { font-size: clamp(2.8rem, 1.6rem + 5vw, 5.4rem); color: var(--taupe); }
.hero h1 em { font-style: italic; color: var(--rose-2); }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.next-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 10px; box-shadow: 0 30px 60px -40px rgba(74, 60, 55, .45); }
.next-label { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.next-card strong { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1.05; color: var(--taupe); }
.next-sub { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.trust { list-style: none; display: grid; gap: 8px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.trust li { position: relative; padding-left: 22px; }
.trust li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Treatments */
.treat { padding-block: clamp(56px, 8vw, 100px); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.treat h2, .book h2, .visit h2, .quiz h2 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); color: var(--taupe); }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--blush); border-radius: 999px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--taupe); font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.seg button[aria-selected="true"] { background: var(--taupe); color: #fff; }
.t-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.t-card { display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.t-card:hover { border-color: var(--rose); transform: translateY(-3px); box-shadow: 0 20px 40px -30px rgba(74, 60, 55, .5); }
.t-cat { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rose-2); font-weight: 700; }
.t-card h3 { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; color: var(--taupe); }
.t-card p { color: var(--muted); font-size: .95rem; }
.t-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.t-meta span { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--porcelain); border: 1px solid var(--line); color: var(--taupe); }
.t-meta .consult { background: #eef2ee; border-color: #d6e0d8; color: #4d6253; }
.t-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.t-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.t-price small { font-weight: 500; color: var(--muted); margin-right: 4px; }
.t-book { background: none; border: 0; color: var(--rose-2); font-weight: 700; cursor: pointer; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .t-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .t-grid { grid-template-columns: 1fr; } }

/* Quiz */
.quiz { padding-block: clamp(56px, 8vw, 100px); background: var(--taupe); color: #fff; }
.quiz h2 { color: #fff; }
.quiz-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.quiz-intro p { color: #d9ccc6; font-size: 1.08rem; margin-top: 16px; max-width: 40ch; }
.quiz-card { background: var(--porcelain); color: var(--ink); border-radius: 24px; padding: clamp(22px, 3vw, 34px); min-height: 330px; display: grid; align-content: start; gap: 18px; }
.quiz-steps { display: flex; gap: 6px; }
.quiz-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background-color .3s ease; }
.quiz-steps span.on { background: var(--rose); }
.q-title { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; color: var(--taupe); }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-opt { min-height: 56px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: left; font-weight: 600; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; animation: rise .3s ease both; }
.q-opt:hover { border-color: var(--rose); background: #fff7f4; }
.q-result { display: grid; gap: 12px; animation: rise .35s ease both; }
.q-result .t-cat { margin-top: 4px; }
.q-result h3 { font-family: var(--serif); font-size: 2.2rem; line-height: 1.05; color: var(--taupe); }
.q-result p { color: var(--muted); }
.q-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (max-width: 860px) { .quiz-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .q-opts { grid-template-columns: 1fr; } }

/* Booking */
.book { padding-block: clamp(56px, 8vw, 100px); }
.book-sub { color: var(--muted); margin: 12px 0 28px; max-width: 56ch; }
.booker { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: clamp(20px, 3.5vw, 40px); display: grid; gap: 24px; scroll-margin-top: 90px; }
.b-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.b-steps li { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); padding-bottom: 10px; border-bottom: 2px solid var(--line); transition: color .2s ease, border-color .2s ease; }
.b-steps li span { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: .75rem; }
.b-steps li.on { color: var(--taupe); border-color: var(--rose); }
.b-steps li.on span { background: var(--rose); border-color: var(--rose); color: var(--ink); }
@media (max-width: 560px) { .b-steps li { font-size: 0; gap: 0; justify-content: center; } }
.b-panel { display: grid; gap: 16px; animation: rise .3s ease both; }
.b-panel h3 { font-family: var(--serif); font-size: 1.9rem; color: var(--taupe); }
.b-panel h3 small { font-family: var(--sans); font-size: .95rem; color: var(--muted); margin-left: 6px; }
.b-treatments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt { position: relative; cursor: pointer; display: block; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-body { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s ease, background-color .15s ease; height: 100%; }
.opt-body b { font-weight: 700; }
.opt-body span { color: var(--muted); font-size: .88rem; }
.opt-body em { font-style: normal; font-weight: 700; grid-row: 1 / span 2; grid-column: 2; align-self: center; font-variant-numeric: tabular-nums; }
.opt:hover .opt-body { border-color: var(--rose); }
.opt input:checked + .opt-body { border-color: var(--taupe); background: var(--blush); box-shadow: inset 0 0 0 1px var(--taupe); }
.opt input:focus-visible + .opt-body { outline: 2px solid var(--rose-2); outline-offset: 2px; }
@media (max-width: 640px) { .b-treatments { grid-template-columns: 1fr; } }

.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { position: relative; }
.day input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.day span { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.day span small { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.day span b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.day span i { font-style: normal; font-size: .7rem; color: var(--muted); }
.day input:checked + span { background: var(--taupe); border-color: var(--taupe); color: #fff; }
.day input:checked + span small, .day input:checked + span i { color: #e7dad4; }
.day input:disabled + span { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.day input:focus-visible + span { outline: 2px solid var(--rose-2); outline-offset: 2px; }
.day:not(.closed) span:hover { border-color: var(--rose); }
@media (max-width: 560px) { .days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.slot-group h4 { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.slot span { display: inline-flex; min-width: 76px; justify-content: center; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: all .15s ease; }
.slot span:hover { border-color: var(--rose); }
.slot input:checked + span { background: var(--rose); border-color: var(--rose); color: var(--ink); }
.slot input:focus-visible + span { outline: 2px solid var(--rose-2); outline-offset: 2px; }
.b-note { font-size: .88rem; color: var(--muted); }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f { display: grid; gap: 6px; }
.f label { font-weight: 600; font-size: .92rem; }
.f label em { font-style: normal; font-weight: 400; color: var(--muted); }
.f input { min-height: 50px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--porcelain); font: inherit; color: var(--ink); }
.f input:focus { outline: none; border-color: var(--taupe); box-shadow: 0 0 0 3px rgba(201, 139, 127, .25); }
.f input[aria-invalid="true"] { border-color: #b4412c; }
.err { color: #b4412c; font-size: .86rem; font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; accent-color: var(--taupe); }
.summary { display: grid; gap: 6px; padding: 18px; border-radius: 16px; background: var(--blush); }
.summary div { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.summary dt, .summary span:first-child { color: var(--muted); }
.summary b { font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 600px) { .f-row { grid-template-columns: 1fr; } }

.b-nav { display: flex; justify-content: space-between; gap: 10px; }
.b-nav #b-next, .b-nav #b-confirm { margin-left: auto; }
.b-done { display: grid; gap: 14px; justify-items: start; animation: rise .35s ease both; }
.b-done:focus { outline: none; }
.done-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: #fff; }
.done-ico svg { width: 28px; height: 28px; }
.b-done h3 { font-family: var(--serif); font-size: 2.4rem; color: var(--taupe); }
.b-done p { color: var(--muted); max-width: 56ch; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Visit */
.visit { padding-block: clamp(56px, 8vw, 100px); background: var(--blush); }
.visit-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.visit-addr { font-weight: 700; margin: 14px 0 8px; }
.visit-copy { color: var(--muted); max-width: 48ch; }
.hrs { margin: 0; background: var(--card); border-radius: 20px; padding: 8px 24px; }
.hrs div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hrs div:last-child { border-bottom: 0; }
.hrs dt { color: var(--muted); }
.hrs dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .visit-grid { grid-template-columns: 1fr; } }

.foot { background: var(--taupe); color: #d9ccc6; padding-block: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .92rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { color: #fff; font-weight: 700; }

section[id], .booker { scroll-margin-top: 72px; }
