/* ==========================================================================
   /clinics/  Ad landing page for physio and allied health clinics.
   Same tokens as the main site: BLUE is Cornerman acting, ORANGE is a missed call.
   ========================================================================== */

:root {
  --navy-950: #060C1D; --navy-900: #0A1330; --navy-850: #0D1839; --navy-800: #111E45; --navy-700: #1B2B5E;
  --blue: #3366FF; --blue-hi: #6E95FF; --blue-ink: #1B45D6;
  --ivory: #F3EEE3; --ivory-2: #E8E0CF; --paper: #FBF9F4;
  --ink: #0A1330; --ink-2: #333D58; --ink-3: #5A6279;
  --fog: #AEB8D2; --fog-2: #8D9ABB;
  --signal: #FF7A4D;
  --sans: "Archivo", "Archivo Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --scripts: system-ui, -apple-system, "PingFang SC", "PingFang HK", "Microsoft YaHei", "Geeza Pro", "Segoe UI", "Kohinoor Devanagari", "Nirmala UI", "Noto Sans", sans-serif;
  --gut: clamp(20px, 5vw, 64px);
  --maxw: 1200px;
  --sec-y: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--paper); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 99; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gut), 820px); }
.link { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; font-weight: 650; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap; border-radius: 999px; border: 0; cursor: pointer; transition: transform .3s ease, box-shadow .3s ease, background-color .25s, border-color .25s; }
.btn--pri { background: linear-gradient(160deg, #1b45d6, #2f61fb 55%, #3366ff); color: #fff; box-shadow: rgb(51 102 255 / .4) 0 8px 22px -8px; }
.btn--pri:hover { transform: translateY(-2px); box-shadow: rgb(51 102 255 / .6) 0 14px 30px -8px; }
.btn--ghost { border: 1px solid rgb(10 19 48 / .25); background: transparent; color: var(--ink); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--blue); background: rgb(51 102 255 / .06); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1.06rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--navy-950); color: #EEF1F8; border-bottom: 1px solid rgb(174 184 210 / .14); }
.top__cta { display: flex; align-items: center; gap: 10px; }
.top__in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand__word { font-weight: 700; letter-spacing: .21em; font-size: .95rem; }
.brand__sub { font-size: .84rem; font-stretch: 88%; color: var(--fog); }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(120% 90% at 85% 10%, #13235a 0%, var(--navy-950) 60%); color: #EEF1F8; padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero__in { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 980px) { .hero__in { grid-template-columns: 1.15fr .85fr; } }
.eyebrow { font-size: .84rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-hi); margin-bottom: 18px; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.9vw, 4.4rem); line-height: 1.02; letter-spacing: -.02em; font-weight: 750; font-stretch: 92%; text-wrap: balance; }
h1 em { display: block; font-family: var(--serif); font-style: italic; font-weight: 420; letter-spacing: -.01em; color: var(--blue-hi); }
.lede { margin-top: 22px; max-width: 34em; font-size: clamp(1.06rem, 1rem + .42vw, 1.25rem); color: #D3DAEC; }

.try { margin-top: 32px; max-width: 560px; }
.try__label { display: block; font-weight: 650; margin-bottom: 10px; }
.try__row { display: flex; gap: 8px; padding: 6px; background: rgb(255 255 255 / .06); border: 1px solid rgb(174 184 210 / .3); border-radius: 999px; }
.try__row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; background: transparent; border: 0; color: #fff; font-size: 1rem; }
.try__row input::placeholder { color: var(--fog-2); }
.try__row input:focus { outline: none; }
.try__row:focus-within { border-color: var(--blue-hi); }
.try__note { margin-top: 10px; font-size: .92rem; color: var(--fog); }

.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-size: .95rem; color: #D3DAEC; }
.facts li { display: inline-flex; align-items: center; gap: 10px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--blue-hi); }

/* The call card: a missed call turning into a booking */
.hero__call { display: flex; justify-content: center; }
.phone { position: relative; width: min(100%, 380px); padding: 26px 24px 22px; border-radius: 28px; background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02)); border: 1px solid rgb(174 184 210 / .22); box-shadow: 0 40px 80px -40px rgb(0 0 0 / .7); }
.phone__time { font-size: .84rem; color: var(--fog-2); }
.phone__who { margin-top: 14px; font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.phone__num { font-size: 1.4rem; font-weight: 650; letter-spacing: .02em; }
.wave { display: flex; align-items: center; gap: 4px; height: 34px; margin: 16px 0 6px; }
.wave span { flex: 1; height: 30%; border-radius: 9px; background: var(--blue-hi); opacity: .85; }
.wave span:nth-child(3n) { height: 70%; } .wave span:nth-child(4n+1) { height: 45%; } .wave span:nth-child(5n) { height: 90%; }
.say { margin-top: 12px; padding: 12px 14px; border-radius: 16px; font-family: var(--serif); font-size: 1.04rem; line-height: 1.4; }
.say--her { background: rgb(51 102 255 / .18); border: 1px solid rgb(110 149 255 / .35); margin-right: 18px; }
.say--them { background: rgb(255 255 255 / .06); margin-left: 18px; color: #D3DAEC; }
.phone__done { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 650; color: #fff; }
.tick { width: 22px; height: 22px; border-radius: 99px; background: var(--blue); position: relative; }
.tick::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .js .wave span { animation: talk 1.4s var(--ease) infinite alternate; }
  .js .wave span:nth-child(2n) { animation-delay: .2s; } .js .wave span:nth-child(3n) { animation-delay: .45s; }
  @keyframes talk { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
}

/* ---------- Sections ---------- */
.sec { padding: var(--sec-y) 0; }
.sec--paper { background: var(--ivory); }
.sec--night { background: var(--navy-900); color: #EEF1F8; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); line-height: 1.06; letter-spacing: -.015em; font-weight: 720; font-stretch: 92%; text-wrap: balance; }
h3 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); line-height: 1.2; font-weight: 680; }
.sub { margin-top: 16px; max-width: 40em; font-size: 1.1rem; color: var(--ink-2); }
.sec--night .sub { color: var(--fog); }
.sub--small { font-size: 1rem; }

.grid4 { display: grid; gap: 18px; margin-top: 44px; }
@media (min-width: 720px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid4 { grid-template-columns: repeat(4, 1fr); } }
.card { padding: 28px 24px; background: #fff; border: 1px solid rgb(10 19 48 / .08); border-radius: 20px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); }

.langs { display: grid; gap: 12px; margin-top: 40px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .langs { grid-template-columns: repeat(6, 1fr); } }
.langs li { padding: 22px 18px; border-radius: 18px; background: rgb(255 255 255 / .04); border: 1px solid rgb(174 184 210 / .18); }
.langs__own { display: block; font-family: var(--scripts); font-size: 1.45rem; font-weight: 600; color: #fff; }
.langs__who { display: block; margin-top: 6px; font-size: .9rem; color: var(--fog); }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 20px; margin-top: 44px; }
@media (min-width: 860px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px 30px; background: #fff; border: 1px solid rgb(10 19 48 / .1); border-radius: 24px; }
.plan--pick { background: var(--navy-900); color: #EEF1F8; border-color: var(--navy-700); }
.plan__tag { position: absolute; top: -13px; left: 30px; padding: 5px 12px; border-radius: 99px; background: var(--blue); color: #fff; font-size: .8rem; font-weight: 650; letter-spacing: .04em; }
.plan__price { margin-top: 14px; font-size: 1.05rem; color: var(--ink-3); }
.plan--pick .plan__price { color: var(--fog); }
.plan__price strong { font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 760; letter-spacing: -.02em; color: var(--ink); margin-right: 4px; }
.plan--pick .plan__price strong { color: #fff; }
.plan__setup { margin-top: 2px; font-size: .95rem; color: var(--ink-3); }
.plan--pick .plan__setup { color: var(--fog); }
.plan ul { margin: 24px 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { position: relative; padding-left: 28px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border: solid var(--blue); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.plan--pick li::before { border-color: var(--blue-hi); }
.plan .btn { align-self: flex-start; }
.plan--pick .btn--pri { box-shadow: none; }

.extras { margin-top: 36px; padding: 28px 30px; border-radius: 20px; background: var(--paper); border: 1px solid rgb(10 19 48 / .08); }
.extras dl { margin-top: 14px; display: grid; gap: 0; }
.extras dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 12px 0; border-top: 1px solid rgb(10 19 48 / .08); }
.extras dt { color: var(--ink-2); }
.extras dd { font-weight: 650; white-space: nowrap; }

.promise { margin-top: 20px; padding: 28px 30px; border-radius: 20px; background: rgb(51 102 255 / .08); border: 1px solid rgb(51 102 255 / .25); }
.promise p { margin-top: 8px; color: var(--ink-2); max-width: 46em; }

/* ---------- Setup steps ---------- */
.steps { display: grid; gap: 18px; margin-top: 44px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; padding: 26px 24px; border-top: 2px solid var(--blue); background: #fff; border-radius: 0 0 18px 18px; }
.steps li::before { content: counter(s); display: block; font-size: .84rem; font-weight: 700; color: var(--blue); margin-bottom: 10px; letter-spacing: .1em; }
.steps p { margin-top: 8px; color: var(--ink-2); }

/* ---------- Questions ---------- */
details { border-top: 1px solid rgb(10 19 48 / .14); }
details:last-of-type { border-bottom: 1px solid rgb(10 19 48 / .14); }
#questions h2 { margin-bottom: 30px; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; font-weight: 650; font-size: 1.1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--blue); }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 0 22px; color: var(--ink-2); max-width: 42em; }

/* ---------- Lead form ---------- */
.start { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 980px) { .start { grid-template-columns: .9fr 1.1fr; } }
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(24px, 3.5vw, 36px); border-radius: 24px; background: var(--paper); color: var(--ink); }
.field { grid-column: 1 / -1; display: grid; gap: 6px; }
@media (min-width: 560px) { .field--half { grid-column: auto; } }
.field label { font-size: .92rem; font-weight: 650; }
.field input, .field select { min-height: 50px; padding: 0 14px; border: 1px solid rgb(10 19 48 / .2); border-radius: 12px; background: #fff; font-size: 1rem; width: 100%; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(51 102 255 / .18); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #C2410C; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead .btn { grid-column: 1 / -1; width: 100%; margin-top: 6px; }
.lead__fine { grid-column: 1 / -1; font-size: .84rem; color: var(--ink-3); }
.lead__msg { grid-column: 1 / -1; font-weight: 600; color: #B63A10; }
.lead__msg:empty { display: none; }
.done { padding: clamp(28px, 4vw, 44px); border-radius: 24px; background: var(--paper); color: var(--ink); }
.done p { margin-top: 12px; color: var(--ink-2); }
.done:focus { outline: none; }

/* ---------- Footer ---------- */
.foot { background: var(--navy-950); color: var(--fog); padding: 36px 0 48px; font-size: .92rem; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot .brand { color: #EEF1F8; }
.foot p a { color: #EEF1F8; }

/* Booking link: header, hero and a mobile dock, so it is never more than a tap away. */
.btn--line { border: 1px solid rgb(174 184 210 / .4); background: rgb(255 255 255 / .04); color: #EEF1F8; }
.btn--line:hover { transform: translateY(-2px); border-color: var(--blue-hi); background: rgb(110 149 255 / .12); }
.hero__book { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 20px 0 0; }
.hero__book span { flex: 1 1 220px; font-size: .92rem; line-height: 1.45; color: var(--fog); }
.dock { display: none; }
@media (max-width: 640px) {
  .brand__sub { display: none; }
  .top__book { display: none; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); background: rgb(6 12 29 / .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgb(174 184 210 / .16); transform: translateY(110%); transition: transform .35s var(--ease); }
  .dock[hidden] { display: grid; visibility: hidden; }
  .dock.is-on { transform: none; visibility: visible; }
  .dock .btn { min-height: 48px; padding: 0 12px; }
  body.has-dock .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

/* Form spacing: room on every side, and the dropdown arrow sits inside the box like the text does. */
.lead { gap: 22px 18px; padding: clamp(26px, 4vw, 48px); }
.field { gap: 8px; }
.field input, .field select { padding: 0 16px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230A1330' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center / 12px 8px; }
.lead .btn { margin-top: 8px; }
.lead__fine { margin-top: 2px; }
