/* David Berry Physiotherapy & Pilates */
:root {
  --slate: #2b373d; --slate2: #3b4a52; --ink: #1f2a30; --muted: #4a5a62; --line: #e3e8ea;
  --cyan: #5fe3f4; --cyan-soft: #c9f5fb; --teal: #087a8c; --teal-dark: #055a68; --cream: #faf5ef;
  --mist: #f2f6f7; --pale: #d9e2e5; --red: #b42318; --amber: #b54708; --green: #067647;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Poppins, system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.5; }
a { color: var(--teal); } a:hover { color: var(--teal-dark); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.kicker { font-family: 'Josefin Sans', sans-serif; letter-spacing: .22em; text-transform: uppercase; font-size: 14px; color: var(--teal); }
.dark .kicker { color: var(--cyan); }
h1, h2, h3 { line-height: 1.12; }
h2.big { margin: 10px 0 0; font-size: clamp(30px, 4.5vw, 40px); font-weight: 700; }
.lead { margin: 12px 0 0; font-size: 17px; color: var(--muted); max-width: 680px; }
.dark { background: var(--slate); color: var(--cream); }
.dark .lead, .dark p { color: var(--pale); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 9; }

/* buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 15px 28px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; font-size: 16px; text-align: center; line-height: 1.2; }
.btn-cyan { background: var(--cyan); color: var(--ink); } .btn-cyan:hover { color: var(--ink); filter: brightness(.95); }
.btn-slate { background: var(--slate); color: #fff; } .btn-slate:hover { color: #fff; background: var(--ink); }
.btn-teal { background: var(--teal); color: #fff; } .btn-teal:hover { color: #fff; background: var(--teal-dark); }
.btn-ghost { border-color: var(--cream); color: var(--cream); } .btn-ghost:hover { color: var(--ink); background: var(--cream); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: #fff; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.linkbtn { background: none; border: none; color: var(--teal); font-weight: 600; cursor: pointer; padding: 8px 0; min-height: 44px; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.logo img { display: block; height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a.btn { padding: 11px 22px; font-size: 15px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; font-size: 22px; }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 24px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 12px; border: none; }
  .logo img { height: 42px; }
}

/* hero */
.hero .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 460px; min-width: 0; }
.hero h1 { margin: 16px 0 0; font-size: clamp(42px, 7vw, 64px); line-height: 1.05; font-weight: 700; }
.hero .intro { margin: 22px 0 0; font-size: 20px; line-height: 1.55; color: var(--pale); max-width: 520px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 500; }
.chips li { background: var(--slate2); padding: 8px 14px; border-radius: 999px; color: var(--cream); }
.hero-media { flex: 1 1 420px; min-width: 0; position: relative; }
.hero-media { flex: 0 1 460px !important; }
.hero-media img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 30%; border-radius: 28px; display: block; }
.badge { position: absolute; left: -14px; bottom: 26px; background: var(--cyan); color: var(--ink); font-weight: 700; padding: 14px 20px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
@media (max-width: 600px) { .hero .wrap { padding-top: 48px; padding-bottom: 56px; gap: 36px; } .badge { left: 12px; } }

section.pad > .wrap { padding-top: 88px; padding-bottom: 88px; }
@media (max-width: 600px) { section.pad > .wrap { padding-top: 56px; padding-bottom: 56px; } }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 36px; }
.claim-card { background: var(--slate); color: var(--cream); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.claim-card h3 { margin: 4px 0 0; font-size: 22px; }
.claim-card p { margin: 0; color: var(--pale); line-height: 1.6; }
.icon-dot { width: 48px; height: 48px; border-radius: 50%; background: var(--cyan); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.note { margin: 24px 0 0; font-size: 15px; color: var(--muted); }

.tt-card { border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tt-card h3 { margin: 4px 0 0; font-size: 26px; }
.tt-card .time { font-size: 17px; font-weight: 500; }
.tt-card .where { font-size: 15px; color: var(--muted); }
.lvl { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #e3e8ea; color: var(--ink); white-space: nowrap; }
.lvl-beg { background: var(--cyan-soft); color: var(--ink); }
.lvl-int { background: var(--slate2); color: #fff; }
.lvl-mix { background: var(--teal); color: #fff; }

.prices { background: var(--mist); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 32px; }
.price { background: #fff; border-radius: 18px; padding: 24px; text-align: center; }
.price .n { font-size: 15px; color: var(--muted); } .price .v { font-size: 34px; font-weight: 700; margin-top: 6px; } .price .u { font-size: 14px; color: var(--muted); }
.price.top { background: var(--slate); color: var(--cream); } .price.top .n { color: var(--cyan); } .price.top .u { color: var(--pale); }

.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split img.photo { width: 100%; aspect-ratio: 1285/1113; object-fit: cover; border-radius: 28px; display: block; }
.split p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.dark .split p { color: var(--pale); }
.headshot { flex: 0 1 320px !important; aspect-ratio: 1; border-radius: 50%; object-fit: cover; width: 100%; }

.voucher-banner { background: var(--cyan-soft); border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.voucher-banner h2 { margin: 0; font-size: 34px; } .voucher-banner p { margin: 10px 0 0; font-size: 17px; color: var(--slate); }
@media (max-width: 600px) { .voucher-banner { padding: 30px 24px; } }

.site-footer { background: var(--ink); color: var(--pale); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; font-size: 15px; line-height: 1.8; }
.site-footer .brand { font-family: 'Josefin Sans', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.site-footer h4 { margin: 0; color: var(--cyan); font-weight: 600; font-size: 15px; }
.site-footer a { color: var(--pale); }

/* plain content pages */
.page { background: var(--mist); min-height: 70vh; }
.page .wrap { padding-top: 40px; padding-bottom: 64px; }
.page h1 { margin: 0; font-size: clamp(30px, 5vw, 40px); }
.card { background: #fff; border-radius: 24px; padding: 28px; }
.card + .card { margin-top: 20px; }
.prose { max-width: 760px; } .prose p { font-size: 16px; line-height: 1.7; }
.quote { font-size: 22px; font-weight: 600; color: var(--slate); border-left: 4px solid var(--cyan); padding-left: 18px; margin: 28px 0; }
.ticks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.ticks li { background: var(--mist); border-radius: 12px; padding: 12px 14px 12px 40px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 14px; color: var(--teal); font-weight: 700; }

/* forms */
label { display: block; font-weight: 500; font-size: 14px; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=time], select, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #b7c4c9; border-radius: 12px; background: #fff; color: var(--ink); min-height: 48px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.err { background: #fef3f2; color: var(--red); border-radius: 12px; padding: 12px 14px; margin-top: 14px; font-weight: 500; }
.ok { background: #ecfdf3; color: var(--green); border-radius: 12px; padding: 12px 14px; margin-top: 14px; font-weight: 500; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* booking page */
.book-layout { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; align-items: flex-start; }
.cal { flex: 999 1 560px; min-width: 0; background: #fff; border-radius: 24px; padding: 24px; }
.side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
@media (max-width: 960px) { .side { position: static; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-head h2 { margin: 0; font-size: 24px; font-weight: 600; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #dfe6e8; background: #fff; font-size: 20px; cursor: pointer; }
.round:disabled { opacity: .3; cursor: default; }
.dow, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.dow { font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; margin-bottom: 8px; }
.day { min-height: 92px; border-radius: 14px; padding: 8px; font-size: 15px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.day.empty { background: #f7f9fa; color: #a3b1b7; }
.day.blank { background: transparent; }
.day.has { background: #fff; color: var(--ink); border: 1px solid #dfe6e8; cursor: pointer; }
.day.has:hover { border-color: var(--teal); }
.day.sel { background: var(--slate); color: #fff; border: 2px solid var(--slate); }
.day .num { font-weight: 600; }
.pill { font-size: 11px; font-weight: 600; padding: 3px 6px; border-radius: 6px; white-space: nowrap; }
.pill.mine { outline: 2px solid var(--ink); outline-offset: 1px; } .day.sel .pill.mine { outline-color: var(--cyan); }
.pill.full { text-decoration: line-through; opacity: .7; }
.day.soon { background: #f7f9fa; color: #a3b1b7; border: 1px dashed #dfe6e8; }
.day.soon .pill { background: #e3e8ea !important; color: #8a9aa1 !important; }
@media (max-width: 640px) {
  .cal { padding: 14px; } .dow, .days { gap: 4px; }
  .day { min-height: 64px; padding: 5px; font-size: 13px; border-radius: 10px; }
  .pill { font-size: 0; width: 9px; height: 9px; padding: 0; border-radius: 50%; }
}
.panel { background: #fff; border-radius: 24px; padding: 24px; }
.panel h2 { margin: 0; font-size: 20px; font-weight: 600; }
.cls { border: 1px solid #dfe6e8; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.cls .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cls .t { font-size: 18px; font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper .lbl { flex: 1; font-size: 14px; color: var(--muted); }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #b7c4c9; background: #fff; font-size: 20px; cursor: pointer; }
.stepper button.plus { border: none; background: var(--cyan); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper .n { min-width: 20px; text-align: center; font-size: 18px; font-weight: 600; }
.spaces { font-size: 14px; font-weight: 500; color: var(--muted); } .spaces.low { color: var(--amber); } .spaces.full { color: var(--red); }
.basket { background: var(--slate); color: var(--cream); border-radius: 24px; padding: 24px; }
.basket h2 { margin: 0; font-size: 20px; font-weight: 600; }
.bitem { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; border-bottom: 1px solid var(--slate2); padding: 6px 0; }
.bitem .s { color: #b7c4c9; } .bitem button { background: none; border: none; color: var(--cyan); font-size: 13px; font-weight: 600; cursor: pointer; min-height: 44px; }
.brow { display: flex; justify-content: space-between; font-size: 15px; margin-top: 6px; }
.btotal { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--muted); }
.btotal .v { font-size: 32px; font-weight: 700; }
.nudge { margin: 10px 0 0; font-size: 14px; color: var(--cyan); font-weight: 500; }
.basket .fine { margin: 10px 0 0; font-size: 12px; color: #b7c4c9; text-align: center; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.filters button { font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; cursor: pointer; border: 2px solid transparent; }
.filters button[aria-pressed=false] { opacity: .35; }
.modal-bg { position: fixed; inset: 0; background: rgba(31,42,48,.6); display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; overflow-y: auto; z-index: 50; }
.modal { background: #fff; border-radius: 24px; padding: 28px; width: 100%; max-width: 560px; }
.modal h2 { margin: 0 0 4px; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary-line.total { font-weight: 700; font-size: 18px; border-bottom: none; }

/* manage page */
.mrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mrow:last-child { border-bottom: none; }
.mrow .when { font-weight: 600; }
.credit-pill { display: inline-block; background: var(--cyan-soft); padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }
