/* MJL Therapy — v2
   Palette from the Physio From Home brand. One typeface (Archivo), set big.
   The aqua band is the only decorative device and it does real work everywhere it appears. */

:root {
  --deep: #08505F;
  --deep-2: #063E4A;
  --ocean: #038489;
  --teal: #00B393;
  --aqua: #03C5AA;
  --ink: #10292E;
  --muted: #4F6C72;
  --tint: #EDF5F5;
  --line: #D3E2E4;
  --white: #FFFFFF;
  --danger: #B3261E;
  --max: 1160px;
  --r: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ocean); text-underline-offset: 3px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.01em; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; color: var(--muted); max-width: 46ch; }
.measure { max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s, background-color .15s, color .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-aqua { background: var(--aqua); color: var(--deep); }
.btn-aqua:hover { background: #2BDBC1; color: var(--deep); }
.btn-deep { background: var(--deep); color: var(--white); }
.btn-deep:hover { background: var(--ocean); color: var(--white); }
.btn-white { background: var(--white); color: var(--deep); }
.btn-white:hover { background: var(--tint); color: var(--deep); }
.btn-line { background: transparent; color: var(--deep); border-color: var(--deep); }
.btn-line:hover { background: var(--tint); color: var(--deep); }
.btn-line-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-line-light:hover { border-color: var(--white); color: var(--white); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); border-radius: var(--r); }
.btn-danger:hover { background: #FBEDEC; color: var(--danger); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.logo { display: inline-flex; align-items: stretch; gap: 10px; text-decoration: none; color: var(--deep); }
.logo-stack { display: flex; flex-direction: column; justify-content: center; font-weight: 800; font-size: 14px; line-height: 1.06; letter-spacing: -0.2px; }
.logo-stack span:first-child { color: var(--ocean); }
.logo-band { background: var(--aqua); color: var(--deep); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -0.02em; padding: 0 9px; display: flex; align-items: center; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover { color: var(--ocean); }
.nav .phone { font-weight: 700; color: var(--deep); }
@media (max-width: 860px) { .nav a:not(.btn):not(.phone) { display: none; } }
@media (max-width: 520px) { .nav .phone { display: none; } }

section[id] { scroll-margin-top: 84px; }

/* Phone menu */
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 2px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--deep); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(8, 80, 95, .12); padding: 8px 24px 16px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.mobile-menu a:last-child { border-bottom: 0; color: #1DA851; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav { gap: 12px; }
}
@media (min-width: 861px) { .mobile-menu { display: none !important; } }

/* Hero */
.hero { background: var(--deep); color: var(--white); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: var(--white); }
.hero h1 .band-word { display: inline-block; background: var(--aqua); color: var(--deep); padding: 0 .18em; margin-top: .08em; }
.hero .lead { color: rgba(255,255,255,.85); margin-top: 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero .small { margin-top: 24px; color: rgba(255,255,255,.65); font-size: .95rem; }
.hero-visual { position: relative; }
.photo {
  position: relative; border-radius: var(--r); overflow: hidden; background: var(--deep-2);
  aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-mark { width: 52%; opacity: .9; }
.photo-tag {
  position: absolute; left: 20px; bottom: 20px;
  background: var(--aqua); color: var(--deep); font-weight: 800; padding: 10px 14px; border-radius: var(--r); line-height: 1.15;
}
.photo-tag small { display: block; font-weight: 600; font-size: .8rem; opacity: .8; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 48px; padding-bottom: 48px; gap: 36px; }
  .hero-visual { order: -1; max-width: 340px; }
  .photo { aspect-ratio: 1 / 1; }
}

.label-short { display: none; }
@media (max-width: 480px) { .label-long { display: none; } .label-short { display: inline; } }

/* Plain hero (white) */
.hero-plain { background: var(--white); color: var(--ink); }
.hero-plain .wrap { display: block; max-width: 880px; padding-top: 96px; padding-bottom: 96px; }
.hero-plain h1 { color: var(--deep); }
.hero-plain .lead { color: var(--muted); margin-top: 24px; max-width: 54ch; }
.hero-plain .rule { width: 72px; height: 8px; background: var(--aqua); margin-bottom: 32px; }
@media (max-width: 720px) { .hero-plain .wrap { padding-top: 56px; padding-bottom: 56px; } }

ul.plain { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
ul.plain li { margin-bottom: 6px; }

/* Credential strip (unused in v3, kept for the option) */
.strip { background: var(--aqua); color: var(--deep); overflow: hidden; border-top: 1px solid rgba(8,80,95,.15); }
.strip-track { display: flex; width: max-content; animation: strip 40s linear infinite; }
.strip ul { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.strip li { padding: 14px 28px; font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 28px; }
.strip li::after { content: ""; width: 8px; height: 8px; background: var(--deep); border-radius: 50%; opacity: .55; }
@keyframes strip { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; flex-wrap: wrap; width: auto; } .strip ul { flex-wrap: wrap; } .strip ul + ul { display: none; } }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-deep { background: var(--deep); color: var(--white); }
.section-deep h2, .section-deep h3 { color: var(--white); }
.section-deep .lead { color: rgba(255,255,255,.85); }
.section-deep a { color: var(--aqua); }
@media (max-width: 720px) { .section { padding: 64px 0; } }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .lead { margin-top: 16px; }

/* Why — three reasons, editorial */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.reason { border-top: 4px solid var(--aqua); padding-top: 22px; }
.reason h3 { margin-bottom: 12px; }
.reason p { color: var(--muted); margin: 0; }
.reason strong { color: var(--ink); }
@media (max-width: 860px) { .reasons { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Services list */
.services { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.services .sticky { position: sticky; top: 100px; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.service h3 { font-size: 1.25rem; }
.service p { color: var(--muted); margin: 6px 0 0; max-width: 56ch; }
.service .price { text-align: right; max-width: 150px; }
.service .price strong { display: block; font-size: 1.25rem; color: var(--deep); letter-spacing: -0.01em; line-height: 1.2; }
.service .price span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .services { grid-template-columns: minmax(0, 1fr); gap: 24px; } .services .sticky { position: static; } }
@media (max-width: 520px) { .service { grid-template-columns: minmax(0, 1fr); } .service .price { text-align: left; } }

/* About */
.about { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.about .photo { aspect-ratio: 4 / 5; }
.about-cols { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.about-cols h3 { margin-bottom: 8px; }
@media (max-width: 720px) { .about-cols { grid-template-columns: minmax(0, 1fr); } }
.timeline { list-style: none; margin: 32px 0 0; padding: 0; border-left: 3px solid var(--aqua); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--aqua); border: 3px solid var(--white); }
.timeline .when { font-weight: 800; color: var(--deep); display: block; }
.timeline .what { color: var(--muted); }
.skills { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.skills li { background: var(--tint); color: var(--deep); font-weight: 600; padding: 8px 14px; border-radius: 999px; font-size: .95rem; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } .about .photo { max-width: 300px; } }

/* Booking */
.booking { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .booking { grid-template-columns: minmax(0, 1fr); } }
.status { color: rgba(255,255,255,.7); margin-bottom: 14px; }
.empty { color: rgba(255,255,255,.85); font-size: 1.1rem; }
.days { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: thin; }
.day {
  flex: 0 0 auto; min-width: 88px; padding: 12px 12px; text-align: left; line-height: 1.2;
  background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.28); border-radius: var(--r); font: inherit; cursor: pointer;
}
.day small { display: block; font-size: .78rem; opacity: .75; text-transform: uppercase; letter-spacing: .04em; }
.day strong { display: block; font-size: 1.15rem; margin: 2px 0; }
.day[aria-pressed="true"] { background: var(--aqua); color: var(--deep); border-color: var(--aqua); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 18px; }
.slot {
  min-height: 50px; background: rgba(255,255,255,.07); color: var(--white);
  border: 2px solid rgba(255,255,255,.28); border-radius: var(--r); font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer;
}
.slot:hover { border-color: var(--white); }
.slot[aria-pressed="true"] { background: var(--white); color: var(--deep); border-color: var(--white); }
.panel { background: var(--white); color: var(--ink); border-radius: var(--r); padding: 28px; }
.panel h3 { color: var(--deep); margin-bottom: 6px; }
.panel .hint { color: var(--muted); }
.summary { background: var(--tint); color: var(--deep); font-weight: 700; padding: 14px 16px; border-radius: var(--r); margin: 16px 0 22px; }
.confirm { border-top: 8px solid var(--aqua); }
.confirm dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 16px 0 20px; }
.confirm dt { color: var(--muted); }
.confirm dd { margin: 0; font-weight: 700; }
.booking-aside { color: rgba(255,255,255,.85); margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); }
.booking-aside p { margin-bottom: 6px; }

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: var(--white); border: 2px solid var(--line); border-radius: var(--r);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ocean); outline: none; }
.field .check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; font-weight: 400; color: var(--muted); line-height: 1.45; margin: 0; cursor: pointer; }
.field .check input { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0; flex: 0 0 auto; accent-color: var(--deep); cursor: pointer; }
.hint { font-size: .92rem; color: var(--muted); margin-top: 6px; }
.error { color: var(--danger); font-weight: 700; margin-top: 12px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 520px) { .row { grid-template-columns: minmax(0, 1fr); } }

/* Booking — health screening */
.health { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 18px; margin: 0 0 16px; }
.health legend { font-weight: 800; color: var(--deep); padding: 0 6px; font-size: 1.05rem; }
.health .urgent { background: #FBEDEC; color: #7A1D17; border-radius: var(--r); padding: 10px 12px; font-size: .92rem; margin: 4px 0 12px; }
.conds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
@media (max-width: 560px) { .conds { grid-template-columns: minmax(0, 1fr); } }
.health .check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink); line-height: 1.35; cursor: pointer; }
.health .check input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; flex: 0 0 auto; accent-color: var(--deep); }
.health .check.none { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* Review band */
.review-band { background: var(--tint); padding: 48px 0; }
.review-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.review-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.review-band p { color: var(--muted); margin: 0; max-width: 56ch; }
.review-band .btn svg { flex: 0 0 auto; }

/* Location */
.find { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.find h3 { margin-bottom: 8px; }
.find p { color: var(--muted); max-width: 48ch; }
address { font-style: normal; font-size: 1.15rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.towns { color: var(--muted); }
.find-media { display: flex; flex-direction: column; gap: 20px; }
.clinic-photo { margin: 0; }
.clinic-photo img { width: 100%; height: auto; border-radius: var(--r); display: block; }
.clinic-photo figcaption { color: var(--ink); font-weight: 700; font-size: .95rem; margin-top: 8px; }
.map { aspect-ratio: 16 / 10; background: var(--tint); border-radius: var(--r); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .find { grid-template-columns: minmax(0, 1fr); } }

.pay { margin-top: 12px; color: var(--muted); }
.btn-wa { background: #1DA851; color: #fff; border-radius: 999px; }
.btn-wa:hover { background: #178A43; color: #fff; }
.btn-wa img { width: 18px; height: 18px; }
/* Social buttons */
.social { display: flex; gap: 18px; margin-top: 14px; align-items: center; }
.social a { display: inline-flex; opacity: .8; }
.social a:hover { opacity: 1; }
.social img { width: 32px; height: 32px; }
.social-footer { margin-top: 14px; gap: 14px; }
.social-footer a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.14); opacity: 1; }
.social-footer a:hover { background: rgba(255,255,255,.26); }
.social-footer img { width: 24px; height: 24px; }

/* Footer */
.site-footer { background: var(--deep-2); color: rgba(255,255,255,.7); padding: 40px 0; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: start; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer .regs { margin-top: 10px; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Admin (unchanged behaviour, new skin) */
.admin-main { padding: 48px 0 96px; }
.admin-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: minmax(0, 1fr); } }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card h2 { font-size: 1.6rem; margin-bottom: 16px; }
.card h3 { margin-bottom: 4px; }
.daygroup { margin-bottom: 28px; }
.daygroup h3 { padding-bottom: 10px; border-bottom: 3px solid var(--aqua); font-size: 1.15rem; }
.slotrow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 16px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.slotrow .time { font-weight: 800; color: var(--deep); font-size: 1.1rem; }
.slotrow .who { color: var(--muted); font-size: .95rem; }
.slotrow .who strong { color: var(--ink); }
.slotrow .actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.pill-open { background: var(--tint); color: var(--ocean); }
.pill-booked { background: var(--aqua); color: var(--deep); }
@media (max-width: 520px) { .slotrow { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
/* Admin — patients */
.patients-card { margin-bottom: 40px; }
.pt-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pt-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; margin-top: 12px; align-items: start; }
@media (max-width: 900px) { .pt-grid { grid-template-columns: minmax(0, 1fr); } }
.pt-results { max-height: 520px; overflow-y: auto; border-top: 1px solid var(--line); }
.pt-item { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 10px; font: inherit; color: var(--ink); cursor: pointer; }
.pt-item:hover { background: var(--tint); }
.pt-item[aria-current="true"] { background: var(--tint); box-shadow: inset 4px 0 0 var(--aqua); }
.pt-item strong { display: block; }
.pt-item span { display: block; font-size: .88rem; color: var(--muted); }
.pt-detail h3 { margin-bottom: 10px; }
.pt-detail h4 { font-size: 1.05rem; margin: 26px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.pt-history { list-style: none; margin: 0; padding: 0; }
.pt-history li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.pt-history li .when { font-weight: 700; color: var(--deep); }
.pt-history li .why { color: var(--muted); }
.toast { background: var(--deep); color: var(--white); padding: 12px 16px; border-radius: var(--r); margin-bottom: 20px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
