/* ===========================================================================
   Up the Road Physiotherapy & Rehabilitation - one stylesheet for the whole website.

   HOW TO CHANGE THE COLOUR:
   Edit the three --accent values in the ":root" block directly below.
   Nothing else on the site needs touching. The current teal is a PLACEHOLDER
   until the real logo arrives.

   Everything is written mobile-first: the plain rules are the phone layout,
   and the "@media" blocks further down add the wider-screen layout.
   =========================================================================== */

:root {
  /* --- the accent colour (change these three lines) --- */
  --accent:          #2f7e82;  /* buttons, links, section highlights */
  --accent-dark:     #22595c;  /* hover + focus outline, darker for contrast */
  --accent-tint:     #eef5f5;  /* pale background for highlighted sections */

  /* --- the rest of the palette --- */
  --paper:           #fdfcfa;  /* page background, warm off-white */
  --white:           #ffffff;
  --ink:             #262b2e;  /* body text: 12.9:1 contrast on paper */
  --ink-soft:        #4f575c;  /* quieter text: 7.3:1 contrast on paper */
  --line:            #e1dcd5;  /* hairline borders */

  /* --- the "TO DO" highlight for facts still missing --- */
  --todo-bg:         #fff8dc;
  --todo-line:       #b88900;
  --todo-ink:        #5a4300;

  --radius:          8px;
  --wrap:            68rem;    /* max page width */
  --prose:           44rem;    /* max width for readable text */
}

/* --- resets ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.125rem;      /* 18px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* The email address is one long unbreakable word
   (info@uptheroadphysiotherapy.com.au). Let text break mid-word when, and only
   when, it would otherwise push the page sideways on a narrow phone. */
p, li, td, th, dd, dt, figcaption, address { overflow-wrap: break-word; }
a[href^="mailto:"], a[href^="http"] { overflow-wrap: anywhere; }

/* --- layout helpers -------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.prose { max-width: var(--prose); }

section { padding-top: 2.25rem; padding-bottom: 2.25rem; }
section.tight { padding-top: 1.25rem; padding-bottom: 1.25rem; }

.band {
  background: var(--accent-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- typography ------------------------------------------------------------ */

h1, h2, h3, h4 {
  line-height: 1.22;
  margin: 0 0 0.6em;
  font-weight: 650;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 4.2vw, 1.85rem); margin-top: 2.2rem; }
h3 { font-size: 1.2rem; margin-top: 1.8rem; }
h4 { font-size: 1.05rem; margin-top: 1.4rem; }
h1 + p, h2 + p, h3 + p { margin-top: 0; }

p, ul, ol, table, figure, form { margin: 0 0 1.15rem; }

.lede {
  font-size: clamp(1.18rem, 3.4vw, 1.4rem);
  line-height: 1.5;
}

.small   { font-size: 0.95rem; color: var(--ink-soft); }
.eyebrow {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-dark);
  margin: 0 0 0.6rem;
}
/* The one eyebrow that is the business name itself. The registered name is too
   long to shout in capitals over two lines, so this one is set normally. */
.eyebrow.is-name {
  font-size: 0.95rem; letter-spacing: 0;
  text-transform: none;
}

ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.5rem; }
li > ul, li > ol { margin-top: 0.5rem; }

strong { font-weight: 680; }

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--ink); }

/* visible keyboard focus on everything interactive */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- skip link ------------------------------------------------------------- */

.skip-link {
  position: absolute; left: 0.5rem; top: -5rem;
  z-index: 50;
  background: var(--white); color: var(--accent-dark);
  padding: 0.7rem 1rem; border: 2px solid var(--accent-dark);
  border-radius: var(--radius); font-weight: 650;
}
.skip-link:focus { top: 0.5rem; }

/* --- buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem;                 /* 48px tap target */
  padding: 0.7rem 1.4rem;
  background: var(--accent); color: var(--white);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font: inherit; font-weight: 650;
  text-decoration: none; text-align: center;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent-dark); border-color: var(--accent-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent; color: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn-ghost:hover { background: var(--accent-dark); color: var(--white); }

.btn-small { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 1rem; }

.btn[disabled] {
  background: #d8d4ce; border-color: #6f6a63; color: #3c4347;
  cursor: not-allowed;
}

.btn-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.15rem;
}
.btn-row > .btn { flex: 1 1 auto; }
@media (min-width: 30em) { .btn-row > .btn { flex: 0 0 auto; } }

/* --- header + navigation --------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  min-height: 4rem;
  padding-top: 0.5rem; padding-bottom: 0.5rem;
}

.logo {
  display: flex; flex-direction: column; line-height: 1.12;
  text-decoration: none; color: var(--ink);
  padding: 0.25rem 0;
}
/* The text logo stands in for the real logo. Two lines, so the whole
   registered name shows: "UP THE ROAD" over "Physiotherapy & Rehabilitation".
   The second line is the long one, so it shrinks a little on narrow phones
   to keep the header on one row at 320px. */
.logo-mark {
  font-size: 1.25rem; font-weight: 750; letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.logo-rest {
  font-size: clamp(0.66rem, 2.9vw, 0.8rem);
  font-weight: 600; letter-spacing: 0;
  color: var(--ink-soft);
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.5rem 0.9rem;
  background: var(--white); color: var(--ink);
  border: 1px solid #b9b2a8; border-radius: var(--radius);
  font: inherit; font-size: 1rem; font-weight: 650;
  cursor: pointer;
}
.nav-toggle-bars {
  position: relative; width: 1.1rem; height: 2px;
  background: var(--ink);
}
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0;
  width: 100%; height: 2px; background: var(--ink);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top:  6px; }

.site-nav { display: none; width: 100%; }
.site-nav.is-open { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0 0 0.75rem; }
.site-nav li { margin: 0; border-top: 1px solid var(--line); }
.site-nav a:not(.btn) {
  display: block; padding: 0.85rem 0.25rem;
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.site-nav a:not(.btn):hover { color: var(--accent-dark); }
/* The "Contact and book" button is also a nav link, and on contact.html it
   carries aria-current="page". Without :not(.btn) it would get dark teal text
   on the teal button, which fails AA. */
.site-nav a[aria-current="page"]:not(.btn) {
  color: var(--accent-dark);
  box-shadow: inset 4px 0 0 var(--accent);
  padding-left: 0.85rem;
}
.site-nav .nav-cta { padding-top: 0.85rem; }
.site-nav .nav-cta .btn { width: 100%; }

@media (min-width: 62em) {
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav ul {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 0.25rem 1rem; padding: 0;
  }
  .site-nav li { border-top: 0; }
  .site-nav a:not(.btn) { padding: 0.4rem 0; font-size: 0.97rem; }
  .site-nav a[aria-current="page"]:not(.btn) {
    box-shadow: inset 0 -3px 0 var(--accent);
    padding-left: 0;
  }
  .site-nav .nav-cta { padding-top: 0; margin-left: 0.5rem; }
  .site-nav .nav-cta .btn { width: auto; }
}

/* --- hero and page heads --------------------------------------------------- */

.hero {
  background: var(--accent-tint);
  border-bottom: 1px solid var(--line);
  padding-top: 2.5rem; padding-bottom: 2.25rem;
}
.hero h1 { margin-bottom: 0.5rem; }
.hero .inner { max-width: 46rem; }
.hero .lede { max-width: 38rem; }

.page-head { padding-top: 2.25rem; padding-bottom: 0.5rem; }
.page-head h1 { margin-bottom: 0.4rem; }

/* --- cards ----------------------------------------------------------------- */

.cards {
  display: grid; gap: 1rem;
  list-style: none; margin: 0 0 1.15rem; padding: 0;
}
@media (min-width: 46em) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards.two { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 0;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card p  { margin: 0 0 0.9rem; font-size: 1rem; }
.card > :last-child { margin-bottom: 0; }

.feature-list { list-style: none; padding: 0; }
.feature-list > li {
  padding-left: 1.6rem; position: relative; margin-bottom: 0.9rem;
}
.feature-list > li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--accent);
}

/* --- numbered steps -------------------------------------------------------- */

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  position: relative; padding-left: 3rem; margin-bottom: 1.2rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.1em;
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  background: var(--accent); color: var(--white);
  border-radius: 50%; font-weight: 700; font-size: 1rem;
}

/* --- tables ---------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 1.15rem;
  background: var(--white);
}
table { border-collapse: collapse; width: 100%; min-width: 34rem; margin: 0; }
caption { text-align: left; padding: 0.9rem 1rem 0; font-weight: 650; }
th, td {
  text-align: left; padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line); font-size: 1rem;
  vertical-align: top;
}
thead th { background: var(--accent-tint); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }

/* --- questions (plain headings, no JavaScript) ----------------------------- */

.qa { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 1.1rem; }
.qa h2 { font-size: 1.18rem; margin: 0 0 0.4rem; }
.qa p:last-child { margin-bottom: 0; }

/* --- suburb lists ---------------------------------------------------------- */

.suburbs { columns: 2; column-gap: 1.5rem; list-style: none; padding: 0; }
.suburbs li { margin-bottom: 0.35rem; font-size: 1rem; break-inside: avoid; }
@media (min-width: 46em) { .suburbs { columns: 3; } }

/* --- the "TO DO" highlight ------------------------------------------------- */

.todo {
  background: var(--todo-bg);
  border: 2px solid var(--todo-line);
  border-left-width: 8px;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
  color: var(--todo-ink);
}
.todo > :first-child { margin-top: 0; }
.todo > :last-child  { margin-bottom: 0; }
.todo-label {
  display: block; font-weight: 750; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 0.8rem; margin-bottom: 0.35rem;
}
.todo a { color: var(--todo-ink); }
.todo ul, .todo ol { margin-bottom: 0; }

.todo-inline {
  display: inline-block;
  background: var(--todo-bg); color: var(--todo-ink);
  border: 2px dashed var(--todo-line); border-radius: 4px;
  padding: 0.1rem 0.45rem;
  font-size: 0.95rem; font-weight: 650;
}

/* --- photo placeholders ---------------------------------------------------- */

.photo-ph { margin: 0 0 1.15rem; }
.photo-ph-box {
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  background: #f0ede8;
  border: 2px dashed #8f8880;
  border-radius: var(--radius);
  color: var(--ink-soft); font-weight: 650; text-align: center;
  padding: 1rem;
}
.photo-ph.portrait .photo-ph-box { aspect-ratio: 3 / 4; }
.photo-ph.video .photo-ph-box { aspect-ratio: 16 / 9; }
.photo-ph figcaption {
  margin-top: 0.5rem; font-size: 0.95rem;
  background: var(--todo-bg); color: var(--todo-ink);
  border-left: 6px solid var(--todo-line);
  padding: 0.5rem 0.7rem; border-radius: 4px;
}

/* --- side-by-side (text + photo) ------------------------------------------- */

.split { display: grid; gap: 1.5rem; }
@media (min-width: 48em) {
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .split.narrow-photo { grid-template-columns: 1.4fr 1fr; }
}

/* --- callout (quiet box) --------------------------------------------------- */

.callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}
.callout > :first-child { margin-top: 0; }
.callout > :last-child  { margin-bottom: 0; }

/* --- forms ----------------------------------------------------------------- */

.form-field { margin-bottom: 1.15rem; max-width: 30rem; }
.form-field label { display: block; font-weight: 650; margin-bottom: 0.35rem; }
.form-field .hint {
  display: block; font-size: 0.95rem; color: var(--ink-soft);
  margin-bottom: 0.35rem; font-weight: 400;
}

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  font: inherit; font-size: 1.0625rem;
  color: var(--ink); background: var(--white);
  border: 2px solid #8f8880; border-radius: var(--radius);
}
textarea { min-height: 8rem; resize: vertical; }

fieldset {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1rem 0.4rem; margin: 0 0 1.15rem; max-width: 30rem;
}
legend { font-weight: 650; padding-left: 0.35rem; padding-right: 0.35rem; }

.radio-row { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.75rem; }
.radio-row input[type="radio"] {
  width: 1.3rem; height: 1.3rem; margin: 0.2rem 0 0; flex: none;
}
.radio-row label { font-weight: 400; margin: 0; }

.req { color: #8a2b2b; font-weight: 700; }

/* --- footer ---------------------------------------------------------------- */

.site-footer {
  margin-top: 2rem;
  background: #f4f1ec;
  border-top: 1px solid var(--line);
  padding-top: 2rem; padding-bottom: 2rem;
  font-size: 1rem;
}
.footer-name { font-weight: 750; font-size: 1.1rem; margin-bottom: 0.3rem; }
.site-footer p { margin: 0 0 0.6rem; }
.footer-nav ul {
  list-style: none; margin: 1.25rem 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem;
}
.footer-nav a { font-weight: 600; }
.footer-legal { font-size: 0.95rem; color: var(--ink-soft); }
.footer-ack {
  font-size: 0.95rem; color: var(--ink-soft);
  border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem;
  max-width: var(--prose);
}

/* --- print ----------------------------------------------------------------- */

@media print {
  .site-header, .footer-nav, .skip-link, .btn { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .band, .hero { background: #fff !important; }
}

/* --- small utility ---------------------------------------------------------- */

.flush { margin-top: 0; }

/* --- "Which fees apply to me?" helper -------------------------------------- */

.helper {
  background: var(--accent-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  max-width: var(--prose);
}
.helper fieldset { background: var(--white); max-width: none; }
.helper .radio-row { margin-bottom: 0.6rem; }
.helper input[type="checkbox"] { width: 1.3rem; height: 1.3rem; }

.helper-result:empty { display: none; }
.helper-result {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.helper-result h3 { margin: 0 0 0.6rem; font-size: 1.1rem; }
.helper-result p { margin: 0 0 0.75rem; font-size: 1rem; }
.helper-result p:last-child { margin-bottom: 0; }

/* checkboxes share the radio row layout */
.radio-row input[type="checkbox"] {
  width: 1.3rem; height: 1.3rem; margin: 0.2rem 0 0; flex: none;
}

/* --- responsive table ------------------------------------------------------
   On phones the fees table would need sideways scrolling, which hides the
   prices. Below 46em each row becomes its own block with the column name
   printed beside each value instead.
   --------------------------------------------------------------------------- */

@media (max-width: 45.99em) {
  .table-scroll {
    overflow-x: visible; border: 0; background: transparent;
    border-radius: 0;
  }
  .fees-table { min-width: 0; }
  .fees-table caption { padding: 0 0 0.6rem; }
  .fees-table thead {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .fees-table tbody tr {
    display: block;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
  }
  .fees-table tbody th[scope="row"] {
    display: block; padding: 0.6rem 0 0.4rem;
    border-bottom: 0; font-size: 1.1rem;
  }
  .fees-table tbody td {
    display: flex; gap: 1rem; justify-content: space-between;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
  }
  .fees-table tbody td::before {
    content: attr(data-label);
    font-weight: 700; flex: 0 0 auto;
  }
  .fees-table tbody tr td:last-child { border-bottom: 0; }
}


/* --- "Services" drop-down --------------------------------------------------
   Written last, and with `.site-nav` in front of each selector, so these rules
   beat the general `.site-nav ul` layout rules higher up the file.
   The same button is used on phone and desktop: tapping it opens the list.
   On a phone the list drops in underneath; on a wide screen it floats over
   the page.
   --------------------------------------------------------------------------- */

.site-nav .sub-toggle {
  display: flex; align-items: center; gap: 0.45rem;
  width: 100%; min-height: 3rem;
  padding: 0.85rem 0.25rem;
  background: none; border: 0;
  font: inherit; font-weight: 600; color: var(--ink);
  text-align: left; cursor: pointer;
}
.site-nav .sub-toggle:hover { color: var(--accent-dark); }
.site-nav .has-sub.is-current > .sub-toggle {
  color: var(--accent-dark);
  box-shadow: inset 4px 0 0 var(--accent);
  padding-left: 0.85rem;
}
.site-nav .caret {
  width: 0; height: 0;
  border-left: 0.3rem solid transparent;
  border-right: 0.3rem solid transparent;
  border-top: 0.36rem solid currentColor;
}
.site-nav .sub-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }

.site-nav .sub-menu {
  display: none;
  list-style: none; margin: 0; padding: 0 0 0.5rem 1rem;
}
.site-nav .has-sub[data-open] .sub-menu { display: block; }
.site-nav .sub-menu li { border-top: 1px solid var(--line); margin: 0; }
.site-nav .sub-menu a { display: block; padding: 0.8rem 0.25rem; }

@media (min-width: 62em) {
  .site-nav .sub-toggle {
    width: auto; min-height: 0; padding: 0.4rem 0;
    font-size: 0.97rem;
  }
  .site-nav .has-sub { position: relative; }
  .site-nav .has-sub.is-current > .sub-toggle {
    box-shadow: inset 0 -3px 0 var(--accent);
    padding-left: 0;
  }
  .site-nav .sub-menu {
    position: absolute; top: calc(100% + 0.6rem); left: -0.75rem;
    min-width: 15.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(38, 43, 46, 0.16);
    padding: 0.35rem 0;
    z-index: 30;
  }
  .site-nav .sub-menu li { border-top: 0; }
  .site-nav .sub-menu li + li { border-top: 1px solid var(--line); }
  .site-nav .sub-menu a { padding: 0.7rem 1rem; font-size: 0.97rem; }
  .site-nav .sub-menu a:hover { background: var(--accent-tint); }
}

/* --- service-area map ------------------------------------------------------ */

.map-figure { margin: 1.5rem 0; max-width: 34rem; }
.map-figure img {
  width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.map-figure figcaption {
  margin-top: 0.6rem; font-size: 0.95rem; color: var(--ink-soft);
}
