/* CME Physiotherapy. Clinical look: white and soft blue-grey, their logo navy, the maroon from the logo's dots as a small accent. */
:root {
  --paper: #FFFFFF;
  --tint: #F2F6FA;
  --tint-2: #E6EEF6;
  --ink: #102A47;
  --ink-soft: #52627A;
  --navy: #1D487E;
  --navy-deep: #12325B;
  --maroon: #7E2625;
  --line: rgba(16, 42, 71, 0.11);
  --ok: #1F8A5B;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 42, 71, .06), 0 8px 28px -12px rgba(16, 42, 71, .18);
  --shadow-lg: 0 2px 4px rgba(16, 42, 71, .06), 0 24px 60px -24px rgba(16, 42, 71, .35);
  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; color: var(--ink); }
h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--maroon); margin-bottom: 14px; }
.eyebrow .ic { width: 16px; height: 16px; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 40em; margin-top: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--navy);
  background: var(--navy); color: #fff; font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(29, 72, 126, .7); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid rgba(29, 72, 126, .35); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(29, 72, 126, .3); }
.btn-ghost:hover { background: var(--tint); color: var(--navy); border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy-deep); border-color: #fff; }
.btn-light:hover { background: var(--tint-2); border-color: var(--tint-2); color: var(--navy-deep); }
.btn-small { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.btn-small .ic { width: 17px; height: 17px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Top bar */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(16, 42, 71, .5); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { height: 46px; width: auto; }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { padding: 8px 13px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15.5px; transition: background .2s, color .2s; }
.links a:hover, .links a.here { color: var(--navy); background: var(--tint); }
.burger { display: none; }
.mmenu { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; background:
  radial-gradient(900px 520px at 88% 10%, rgba(29, 72, 126, .10), transparent 65%),
  radial-gradient(600px 400px at -5% 90%, rgba(126, 38, 37, .05), transparent 70%),
  linear-gradient(180deg, #fff 0%, var(--tint) 100%); }
.dots { position: absolute; width: 300px; left: -110px; top: -50px; z-index: -1; opacity: .6; pointer-events: none; }
.dots circle { fill: var(--maroon); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
h1 { isolation: isolate; font-size: clamp(44px, 6.4vw, 76px); font-weight: 800; letter-spacing: -0.035em; }
h1 em { font-style: normal; color: var(--navy); position: relative; white-space: nowrap; }
h1 em::after { content: ''; position: absolute; left: 2%; right: 4%; bottom: .04em; height: .14em; border-radius: 99px; background: linear-gradient(90deg, rgba(126, 38, 37, .85), rgba(126, 38, 37, .25)); z-index: -1; }
.hero .lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-soft); margin-top: 20px; max-width: 30em; }
.open { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; padding: 7px 14px 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink-soft); box-shadow: var(--shadow); }
.open[hidden] { display: none; }
.open i { width: 9px; height: 9px; border-radius: 50%; background: #B0B8C4; }
.open.is-open i { background: var(--ok); box-shadow: 0 0 0 0 rgba(31, 138, 91, .5); animation: ping 2s infinite; }
.open.is-open { color: var(--ink); }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(31, 138, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 138, 91, 0); } }

.hero-media { position: relative; isolation: isolate; padding: 18px 0 30px; }
.frame { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.3; background: var(--tint-2) url(img/hero.jpg) center / cover; box-shadow: var(--shadow-lg); }
.frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 16px; box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.3; animation: bob 6s ease-in-out infinite; }
.float b { display: block; font-family: var(--display); font-size: 15px; color: var(--ink); }
.float small { color: var(--ink-soft); font-size: 13px; }
.float-a { left: -26px; bottom: 0; }
.float-a img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.float-b { right: -18px; top: 0; animation-delay: -3s; }
.float-b .ic { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--tint); color: var(--navy); }
@keyframes bob { 50% { transform: translateY(-7px); } }

.trust { list-style: none; margin: 46px 0 0; padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); position: relative; }
.trust li { display: flex; align-items: center; gap: 12px; padding: 6px 14px; font-size: 14px; line-height: 1.35; }
.trust li + li { border-left: 1px solid var(--line); }
.trust img { height: 44px; width: auto; margin: 0 auto; }
.trust .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--tint); color: var(--navy); }
.trust b { display: block; color: var(--ink); font-weight: 600; }
.trust small { color: var(--ink-soft); font-size: 13px; }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.head { max-width: 640px; margin-bottom: 44px; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { position: relative; padding: 34px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.badge { position: absolute; top: -24px; left: 20px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--navy); color: #fff; box-shadow: 0 8px 20px -8px rgba(29, 72, 126, .8); }
.badge .ic { width: 22px; height: 22px; }
.card h3 { margin-bottom: 6px; }
.card-body > p { color: var(--ink-soft); font-size: 15.5px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; font-size: 15px; }
.ticks li { position: relative; padding-left: 28px; line-height: 1.4; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: var(--tint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D487E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7 10 16l-4.5-4.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 15px; text-decoration: none; }
.more .ic { width: 17px; height: 17px; transition: transform .2s; }
.more:hover .ic { transform: translateX(3px); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; top: 31px; left: 12%; right: 12%; border-top: 2px dashed rgba(29, 72, 126, .22); }
.steps li { position: relative; counter-increment: s; text-align: center; padding: 0 8px; }
.step-ic { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step-ic .ic { width: 26px; height: 26px; }
.step-ic::after { content: counter(s); position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--maroon); color: #fff; font: 700 12.5px/24px var(--display); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-soft); font-size: 15.5px; max-width: 18em; margin-inline: auto; }

/* Physio */
.physio { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.physio-img { position: relative; isolation: isolate; }
.physio-img::before { content: ''; position: absolute; inset: 24px -24px -24px 24px; border-radius: 28px; background: var(--tint); z-index: -1; }
.physio-img img { border-radius: 28px; width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; object-position: 50% 20%; box-shadow: var(--shadow-lg); }
.cred { display: flex; align-items: center; gap: 9px; margin: 12px 0 20px; font-weight: 600; color: var(--navy); font-size: 15.5px; }
.physio-text > p:not(.eyebrow):not(.cred) { color: var(--ink-soft); font-size: 18px; max-width: 34em; }
.chips { list-style: none; padding: 0; margin: 22px 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); }

/* NDIS band */
.ndis { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; position: relative; overflow: hidden; }
.ndis::after { content: ''; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .04); pointer-events: none; }
.ndis h2, .ndis h3 { color: #fff; }
.ndis .eyebrow { color: #F2B8B5; }
.ndis .lede { color: rgba(255, 255, 255, .78); }
.ndis-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.ndis-img img { border-radius: 24px; width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.regions { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.regions li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); font-size: 14.5px; font-weight: 500; }
.regions .ic { width: 15px; height: 15px; }
.why { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; z-index: 1; }
.why li { padding: 24px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); }
.why .ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .12); margin-bottom: 14px; }
.why h3 { font-size: 17.5px; margin-bottom: 6px; }
.why p { color: rgba(255, 255, 255, .74); font-size: 15px; }

/* Fees */
.fees { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.fees .head { margin: 0; }
.fees .head .btn { margin-top: 26px; }
.fee-list { margin: 0; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.fee-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; }
.fee-list > div + div { border-top: 1px solid var(--line); }
.fee-list dt { display: flex; align-items: center; gap: 13px; font-weight: 600; }
.fee-list dt .ic { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: var(--tint); color: var(--navy); }
.fee-list dd { margin: 0; color: var(--ink-soft); font-size: 15.5px; text-align: right; }

/* Book */
.book { background: var(--tint); }
.book-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.book-text > p:not(.eyebrow) { color: var(--ink-soft); font-size: 18px; margin-top: 14px; max-width: 26em; }
.num { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; font: 800 clamp(30px, 3.6vw, 40px)/1 var(--display); color: var(--navy); text-decoration: none; letter-spacing: -0.02em; }
.num .ic { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--navy); color: #fff; }
.book-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: var(--ink-soft); font-size: 15.5px; }
.book-facts li { display: flex; gap: 10px; align-items: center; }
.book-facts .ic { color: var(--navy); }
.qform { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.qrow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qform label { display: grid; gap: 7px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.qform label[hidden] { display: none; }
.qform label i { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.qform input, .qform select, .qform textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--tint); border: 1.5px solid transparent; border-radius: 12px; padding: 13px 14px; transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none; }
.qform select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352627A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.qform input:focus, .qform select:focus, .qform textarea:focus { outline: none; border-color: var(--navy); background-color: #fff; }
.qform textarea { resize: vertical; min-height: 96px; }
.qform .btn { width: 100%; margin-top: 4px; }
.qnote { font-size: 13.5px; color: var(--ink-soft); text-align: center; }
.qmsg:empty { display: none; }
.qmsg.err { color: #B42318; font-size: 14.5px; text-align: center; }
.qdone { font-size: 18px; text-align: center; padding: 30px 10px; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.addr { display: flex; gap: 12px; margin-top: 20px; font-size: 18px; line-height: 1.5; }
.addr .ic { width: 24px; height: 24px; color: var(--maroon); margin-top: 2px; }
.open-visit { margin-top: 18px; }
.hours { width: 100%; max-width: 420px; margin-top: 20px; border-collapse: collapse; font-size: 16px; }
.hours th, .hours td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; color: var(--ink-soft); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { color: var(--navy); font-weight: 700; background: #fff; }
.hours tr.today th { border-radius: 10px 0 0 10px; }
.hours tr.today td { border-radius: 0 10px 10px 0; }
.map { width: 100%; aspect-ratio: 1 / .85; border: 0; border-radius: 24px; box-shadow: var(--shadow-lg); background: var(--tint-2); }

/* About fold-out */
.about-wrap { padding: 64px 0; }
.about { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.about summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; font: 700 19px/1.3 var(--display); color: var(--ink); }
.about summary::-webkit-details-marker { display: none; }
.about summary::after { content: ''; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D487E' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s; }
.about[open] summary::after { transform: rotate(45deg); }
.about-body { padding: 0 26px 28px; max-width: 760px; }
.about-body h3 { font-size: 17px; margin: 22px 0 6px; color: var(--navy); }
.about-body h3:first-child { margin-top: 0; }
.about-body p { color: var(--ink-soft); font-size: 16px; margin-bottom: 10px; }
.about-links { margin-top: 20px !important; }

/* Footer */
.foot { background: #0C2240; color: rgba(255, 255, 255, .72); padding: 56px 0 96px; font-size: 15px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; align-items: start; }
.foot-brand img { height: 52px; width: auto; background: #fff; padding: 8px 12px; border-radius: 12px; margin-bottom: 14px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.foot-small { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }

/* Phone book pill */
.bookbar { display: none; }

/* Small bits */
.hours-sum { display: none; }
.qref { text-align: center; font-size: 14.5px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2px; }
.linkbtn { border: 0; background: none; padding: 0; font: 600 14.5px var(--sans); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html.modal-open { overflow: hidden; }

/* NDIS referral popup */
.ref { width: min(680px, calc(100vw - 32px)); max-height: min(860px, calc(100vh - 48px)); max-height: min(860px, calc(100dvh - 48px)); padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(16, 42, 71, .6); overflow: hidden; }
.ref[open] { display: flex; animation: pop .3s cubic-bezier(.2, .8, .2, 1.05) both; }
.ref:focus { outline: none; }
.ref::backdrop { background: rgba(12, 34, 64, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ref-form { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.ref-head { display: flex; align-items: flex-start; gap: 16px; padding: 26px 28px 20px; border-bottom: 1px solid var(--line); }
.ref-head > div { flex: 1; }
.ref-head .eyebrow { margin-bottom: 6px; }
.ref-head h2 { font-size: 28px; }
.ref-head p:not(.eyebrow) { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }
.ref-x { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--tint); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.ref-x:hover { background: var(--tint-2); }
.ref-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 28px 20px; }
.ref fieldset { border: 0; margin: 0; padding: 20px 0 8px; min-width: 0; }
.ref fieldset > * + * { margin-top: 14px; }
.ref legend + * { clear: both; margin-top: 0; }
.ref fieldset + fieldset { border-top: 1px solid var(--line); }
.ref legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font: 700 16px/1.3 var(--display); color: var(--ink); }
.ref legend span { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; }
.ref label, .ref .flabel { display: grid; gap: 7px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.ref label i { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.ref .field { display: grid; gap: 8px; }
.ref input:not([type=radio]), .ref textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--tint); border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px; transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none; min-height: 48px; }
.ref input:focus, .ref textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.ref textarea { resize: vertical; }
.ref .qrow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ref .qrow > label { min-width: 0; }
.ref input[type=date] { min-width: 0; max-width: 100%; display: block; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 46px; padding: 8px 6px; text-align: center; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-soft); transition: all .15s; }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid rgba(29, 72, 126, .35); outline-offset: 2px; }
.ref-foot { display: grid; gap: 10px; padding: 16px 28px 20px; border-top: 1px solid var(--line); background: #fff; }
.ref-foot[hidden] { display: none; }
.ref-foot .btn { width: 100%; }
.ref-done { flex: 1; display: grid; place-items: center; align-content: center; gap: 10px; padding: 48px 28px; text-align: center; }
.ref-done .ic { width: 60px; height: 60px; padding: 14px; border-radius: 50%; background: #E3F4EC; color: var(--ok); stroke-width: 2.4; }
.ref-done p { color: var(--ink-soft); max-width: 30em; }
.ref-done .btn { margin-top: 8px; min-width: 160px; }

/* Chat */
.chat { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; font-size: 15px; }
.chat-btn { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(16, 42, 71, .65); transition: transform .2s, background .2s; }
.chat-btn:hover { transform: scale(1.06); background: var(--navy-deep); }
.chat-btn .ic { width: 26px; height: 26px; grid-area: 1 / 1; transition: opacity .2s, transform .25s; }
.chat-btn .ic-close { opacity: 0; transform: rotate(-90deg); }
.chat.is-open .chat-btn .ic-open { opacity: 0; transform: rotate(90deg); }
.chat.is-open .chat-btn .ic-close { opacity: 1; transform: none; }
.chat-btn::after { content: ''; position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); border: 2.5px solid #fff; opacity: 0; transition: opacity .2s; }
.chat.is-live .chat-btn::after { opacity: 1; }
.chat.is-open .chat-btn::after { opacity: 0; }
.chat-teaser { position: relative; margin: 0; max-width: 240px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow-lg); color: var(--ink-soft); cursor: pointer; animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.chat-teaser b { color: var(--navy); }
.chat-teaser[hidden], .chat-panel[hidden] { display: none; }
.chat-panel { width: min(370px, calc(100vw - 32px)); height: min(560px, calc(100vh - 140px)); height: min(560px, calc(100dvh - 140px)); display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(16, 42, 71, .45), 0 0 0 1px var(--line); transform-origin: bottom right; animation: pop .28s cubic-bezier(.2, .8, .2, 1.1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.94); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 16px 18px; background: linear-gradient(150deg, var(--navy), var(--navy-deep)); color: #fff; }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 6px; object-fit: contain; }
.chat-head div { flex: 1; line-height: 1.3; }
.chat-head b { display: block; font: 700 16px/1.3 var(--display); }
.chat-head small { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .78); font-size: 13px; }
.chat-head small::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #B0B8C4; }
.chat.is-live .chat-head small::before { background: #4ADE80; }
.chat-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-x:hover { background: rgba(255, 255, 255, .22); }
.chat-x .ic { width: 18px; height: 18px; }
.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 8px; background: var(--tint); }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; animation: rise .3s ease both; word-wrap: break-word; }
.msg.bot { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 5px; box-shadow: 0 1px 2px rgba(16, 42, 71, .08); }
.msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
.msg a { font-weight: 600; }
.msg.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9AA6B6; animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px 10px; background: var(--tint); }
.chat-chips:empty { display: none; }
.chat-chips button { border: 1.5px solid rgba(29, 72, 126, .35); background: #fff; color: var(--navy); border-radius: 999px; padding: 7px 13px; font: 600 13.5px/1.2 var(--sans); cursor: pointer; transition: background .15s, color .15s; }
.chat-chips button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-input input { flex: 1; min-width: 0; border: 1.5px solid transparent; background: var(--tint); border-radius: 999px; padding: 11px 16px; font: 400 16px/1.3 var(--sans); color: var(--ink); }
.chat-input input:focus { outline: none; border-color: var(--navy); background: #fff; }
.chat-input button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--navy); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-input button:disabled { opacity: .5; cursor: default; }
.chat-input .ic { width: 19px; height: 19px; }

/* Scroll reveal */
.js [data-r] { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-r].in { opacity: 1; transform: none; }
.hero-text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-media { animation: rise 1s .15s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-r] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Tablet */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .trust li:nth-child(3) { border-left: 0; }
  .links a { padding: 8px 9px; }
}
@media (max-width: 900px) {
  .links, .nav-in > .btn-small { display: none; }
  .burger { display: grid; place-items: center; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--tint); cursor: pointer; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .25s, background .25s; }
  .burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
  .burger span::before { top: -6px; } .burger span::after { top: 6px; }
  .nav.menu-open .burger span { background: transparent; }
  .nav.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
  .nav.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
  .mmenu { display: grid; gap: 2px; padding: 8px 20px 20px; border-top: 1px solid var(--line); background: #fff; }
  .mmenu[hidden] { display: none; }
  .mmenu a:not(.btn) { padding: 13px 4px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line); }
  .mmenu .btn { margin-top: 14px; }
  .hero { padding-top: 36px; }
  .hero-in, .physio, .ndis-top, .fees, .book-in, .visit { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 560px; }
  .float-a { left: 8px; } .float-b { right: 8px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
  .physio-img { max-width: 420px; }
  .physio-img::before { inset: 16px -16px -16px 16px; }
  .section { padding: 72px 0; }
}

/* Phone: one column, less on screen at once. Photos shrink, small print goes, and there is one floating button (chat). */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .section { padding: 56px 0; }
  .head { margin-bottom: 26px; }
  .lede { font-size: 16.5px; margin-top: 10px; }
  .nav-in { height: 64px; }
  .brand img { height: 40px; }
  html { scroll-padding-top: 72px; }
  .hide-sm { display: none; }

  /* Hero */
  .hero { padding: 28px 0 32px; }
  .hero-in { gap: 26px; }
  h1 { font-size: clamp(40px, 12vw, 50px); }
  .hero .lead { font-size: 17px; margin-top: 14px; }
  .cta { margin-top: 22px; gap: 10px; }
  .cta .btn { flex: 1 1 100%; }
  .open { margin-top: 16px; }
  .hero-media { padding: 0; }
  .frame { border-radius: 20px; aspect-ratio: 16 / 10; }
  .float, .dots { display: none; }
  .trust { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; padding: 0; background: none; border: 0; box-shadow: none; }
  .trust li, .trust li + li { border: 0; padding: 10px 12px; gap: 10px; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(16, 42, 71, .06); font-size: 13.5px; }
  .trust li:first-child { justify-content: center; }
  .trust small { display: none; }
  .trust .ic { width: 32px; height: 32px; padding: 7px; border-radius: 10px; }
  .trust img { margin: 0; height: 30px; }

  /* Services: small photo beside the name, no tick lists */
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { flex-direction: row; border-radius: 16px; }
  .card:hover { transform: none; }
  .card-img { flex: none; width: 104px; aspect-ratio: auto; }
  .card-body { padding: 14px 16px; justify-content: center; }
  .badge, .ticks { display: none; }
  .card h3 { font-size: 17px; margin-bottom: 3px; }
  .card-body > p { font-size: 14.5px; line-height: 1.45; }
  .more { padding-top: 6px; font-size: 14.5px; }

  /* First visit: titles only */
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { display: flex; align-items: center; gap: 14px; text-align: left; padding: 0 0 16px; }
  .steps li::before { content: ''; position: absolute; left: 23px; top: 48px; bottom: 0; border-left: 2px dashed rgba(29, 72, 126, .22); }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:last-child::before { display: none; }
  .step-ic { width: 48px; height: 48px; margin: 0; flex: none; }
  .step-ic .ic { width: 22px; height: 22px; }
  .step-ic::after { width: 20px; height: 20px; font-size: 11px; line-height: 20px; top: -5px; right: -5px; }
  .steps h3 { margin: 0; font-size: 17px; }
  .steps p { display: none; }
  .step-ic::after { display: none; }

  /* Physio: small photo, three tags */
  .physio { gap: 22px; }
  .physio-img { max-width: 132px; }
  .physio-img::before { display: none; }
  .physio-img img { border-radius: 50%; aspect-ratio: 1; box-shadow: var(--shadow); }
  .cred { margin: 8px 0 14px; font-size: 14.5px; align-items: flex-start; }
  .physio-text > p:not(.eyebrow):not(.cred) { font-size: 16px; }
  .chips { margin: 16px 0 22px; }
  .chips li:nth-child(n+4) { display: none; }

  /* NDIS: no photo, plain list instead of boxes */
  .ndis-img { display: none; }
  .ndis-top { gap: 0; }
  .regions li { font-size: 13.5px; padding: 6px 12px 6px 9px; }
  .why { grid-template-columns: 1fr; gap: 0; margin-top: 30px; }
  .why li { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; padding: 14px 0; background: none; border: 0; border-radius: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .why .ic { grid-row: span 2; width: 36px; height: 36px; padding: 8px; margin: 2px 0 0; }
  .why h3 { font-size: 16px; margin-bottom: 2px; }
  .why p { font-size: 14.5px; }

  /* Fees */
  .fees { gap: 24px; }
  .fees .head .btn { margin-top: 18px; }
  .fee-list > div { padding: 13px 14px; gap: 10px; }
  .fee-list dt { gap: 10px; font-size: 15px; }
  .fee-list dt .ic { width: 32px; height: 32px; padding: 7px; }
  .fee-list dd { font-size: 13.5px; max-width: 46%; }

  /* Book */
  .book-in { gap: 24px; }
  .book-facts { display: none; }
  .num { margin-top: 18px; font-size: 28px; }
  .num .ic { width: 40px; height: 40px; padding: 10px; }
  .qform { padding: 20px; border-radius: 20px; gap: 14px; }
  .qrow { grid-template-columns: 1fr; gap: 14px; }

  /* Visit: two lines of hours instead of the table */
  .visit { gap: 24px; }
  .addr { font-size: 16.5px; margin-top: 14px; }
  .hours { display: none; }
  .hours-sum { display: block; margin-top: 14px; font-size: 16px; line-height: 1.6; font-weight: 500; }
  .visit .cta { margin-top: 20px; flex-wrap: nowrap; }
  .visit .cta .btn { flex: 1 1 0; }
  .map { aspect-ratio: 4 / 3; border-radius: 18px; }

  .about-wrap { padding: 40px 0 56px; }
  .about summary { padding: 18px 20px; font-size: 17px; }
  .about-body { padding: 0 20px 22px; }
  .foot { padding: 44px 0 96px; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; }

  /* One floating button: the chat. Booking is in the hero, the menu and the chat. */
  .bookbar { display: none; }
  .chat { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .chat-btn { width: 56px; height: 56px; }
  .chat-panel { width: calc(100vw - 24px); height: calc(100dvh - 100px); margin-right: -4px; }
  .chat-teaser { display: none; }

  /* Referral form fills the screen */
  .ref { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .ref-head { padding: 18px 18px 14px; }
  .ref-head h2 { font-size: 24px; }
  .ref-body { padding: 4px 18px 16px; }
  .ref-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
  .seg { grid-template-columns: 1fr 1fr; }
}
