/* Homepage reading rhythm: flexible sections, legible copy, and grouped details. */
body[data-page="home"] {
  /* Text must follow browser zoom, rather than shrink with the viewport. */
  --body-size: 1.25rem;
  --section-space: clamp(56px, 5vw, 128px);
  --heading-space: clamp(40px, 3vw, 64px);
  --ribbon-size: clamp(360px, 30vw, 720px);
  --ribbon-inset: clamp(48px, 6.25vw, 160px);
}
body[data-page="home"] h2 { font-size: 5rem; }

/* Responsive portrait frames with individually aligned faces. */
.team-photo { position:relative; overflow:clip; background:#fff; }
.team-photo img {
  position:absolute;
  width:var(--portrait-width,100%);
  max-width:none;
  height:auto;
  left:var(--portrait-left,0%);
  top:var(--portrait-top,0%);
}
.team-photo-placeholder {
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--green);
}
.team-photo-placeholder span { font: 400 clamp(3rem, 6vw, 5rem)/1 Madefor, Arial, sans-serif; }
@media (min-width: 1001px) {
  /* Centre a final pair within the existing four-column team grid. */
  .team-person:nth-child(4n + 1):nth-last-child(2) { grid-column: 2; }
}

.hero {
  height: auto;
  min-height: calc(100vh - var(--site-header-height));
  min-height: calc(100dvh - var(--site-header-height));
  display: grid;
  grid-template-columns: 55.13% 44.87%;
  grid-template-areas: "copy photo";
  gap: 0;
  align-items: stretch;
  padding: 0;
}
.hero-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  gap: 2rem;
  padding: 3rem 10.5%;
}
.hero h1, .hero-intro, .hero-photo, .hero-booking {
  position: relative;
  inset: auto;
  width: 100%;
}
.hero h1 { margin: 0; font-size: 6rem; text-wrap: balance; }
.hero-intro { margin: 0; font-size: 2.25rem; }
.hero-intro p { line-height: 1.5; }
.hero-photo { grid-area: photo; align-self: stretch; height: auto; min-height: 0; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-booking.content-button { --button-x: 0px; width: 224px; margin: 0; align-self: center; font-size: 1.375rem; }
.hero-pink { width: var(--ribbon-size); left: -10rem; top: -10rem; }
.hero-lime { width: var(--ribbon-size); left: auto; right: calc(-1 * var(--ribbon-inset)); top: auto; bottom: -3rem; }

/* Reuse the hero silhouettes at their original proportions, without a deeper arch. */
.section-ribbons {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}
.edge-ribbon {
  position: absolute;
  top: var(--ribbon-top, calc(var(--ribbon-size) * -.22));
  bottom: var(--ribbon-bottom, auto);
  width: var(--ribbon-size);
  aspect-ratio: 791 / 646;
}
.edge-ribbon-left {
  left: calc(-1 * var(--ribbon-inset));
  --ribbon-enter: -36px;
  --edge-enter-angle: -12deg;
}
.edge-ribbon-right {
  right: calc(-1 * var(--ribbon-inset));
  --ribbon-enter: 36px;
  --edge-enter-angle: 12deg;
}
.edge-ribbon-art {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ribbon-colour);
  mask: var(--ribbon-mask) center / 100% 100% no-repeat;
}
.ribbon-pink { --ribbon-colour: #f7b0c5; --ribbon-mask: url('/assets/curve-pink-left.png'); }
.ribbon-green { --ribbon-colour: #68be5e; --ribbon-mask: url('/assets/curve-lightgr-right.png'); aspect-ratio: 933 / 692; }
.support .section-ribbons { --ribbon-top: calc(var(--ribbon-size) * -.36); }
.contact-section .section-ribbons { --ribbon-top: 45%; }
.values > h2, .values-grid, .support > h2, .support-grid, .team > h2, .team-grid { position: relative; z-index: 2; }

.body-copy { font-size: var(--body-size); line-height: 1.6; }
.body-copy p { line-height: inherit; margin: 0; }
.body-copy p + p { margin-top: 1.2em; }
.body-copy br { display: none; }
.about {
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 36% 58%;
  gap: 6%;
  align-items: center;
  padding: 0 6.526%;
}
.about-photo-frame { position: relative; align-self: stretch; min-width: 0; min-height: 0; margin: 32px -24px; }
.about-photo { position: absolute; inset: 0; width: 100%; max-width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: contain; }
.about-copy { position: static; width: 100%; padding: var(--section-space) 0; }
.about .body-copy { font-size: 1.5rem; line-height: 1.5; }
.about .body-copy p + p { margin-top: 1em; }
.about-copy > .body-copy { width: 100%; max-width: 70ch; margin: var(--heading-space) auto 0; }
.funding { margin-top: 28px; }
body[data-page="home"] .funding h2 { font-size: 4rem; }
.funding .body-copy { max-width: 54ch; margin: 16px auto 20px; }
.about .funding-badges img:first-child { max-width: 7.5rem; }
.about .funding-badges img:last-child { max-width: 5.5rem; }

.values { min-height: 0; padding: var(--section-space) 8%; }
.values h2 { margin-bottom: var(--heading-space); }
.values-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 125rem; margin-inline: auto; gap: 48px 32px; }
.value { min-width: 0; }
.value:last-child { grid-column: auto; width: 100%; }
.value-icon { width: min(100%, 10rem); height: auto; aspect-ratio: 1; margin-bottom: 20px; }
.quote-mark { height: 40px; font-size: 44px; }
.value h3 { font-size: 1.375rem; line-height: 1.4; margin: 8px 0 18px; }
.value-copy { font: 400 1.125rem/1.6 Madefor, Arial, sans-serif; max-width: 27ch; margin-inline: auto; }
.value-copy p { line-height: inherit; }

.what, .fees-summary { min-height: 0; padding-top: var(--section-space); padding-bottom: var(--section-space); align-items: center; }
.what-copy h2, .fees-copy h2 { margin-bottom: clamp(24px, 2vw, 52px); }
.what-copy .body-copy, .fees-copy .body-copy { max-width: 58ch; width: 92%; margin-inline: auto; font-size: 1.5rem; }
.what-photo, .fees-photo { height: 100%; min-height: 32vw; max-height: 46vw; object-fit: cover; }
.fees-button { margin-top: clamp(28px, 2vw, 48px); font-size: 1.375rem; }

.support { min-height: 0; padding: var(--section-space) 0; }
body[data-page="home"] .support h2 { padding-inline: 24px; margin-bottom: var(--heading-space); font-size: 4rem; }
.support-grid {
  width: min(calc(100% - 80px), 2000px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.5vw, 32px);
}
.support-grid article {
  min-height: 0;
  padding: clamp(24px, 2vw, 44px) clamp(18px, 1.5vw, 32px);
  font-size: 1.25rem;
}
.support-grid h3 { min-height: 2.8em; margin-bottom: 16px; font-size: 1.5rem; line-height: 1.4; text-wrap: balance; }
.support-grid p { line-height: 1.6; }
.support-green { width: clamp(160px, 18vw, 360px); left: -8%; top: 90px; }
.support-lime { width: clamp(200px, 20vw, 400px); right: -6%; bottom: 20px; }

.contact-section { min-height: 0; padding-top: var(--section-space); padding-bottom: var(--section-space); }
body[data-page="home"] .contact-section h2 { max-width: min(75%, calc(100% - 380px)); margin-top: clamp(30px, 2.8vw, 72px); font-size: 4.75rem; }
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  width: 340px;
  max-width: 100%;
}
.contact-actions > .content-button { width: 100%; height: 72px; min-height: 72px; font-size: 1.3125rem; }
.contact-actions .social-links { justify-content: center; gap: 24px; margin-top: 12px; }
.contact-actions .social-links a, .contact-actions .linkedin-mark,
.contact-actions .social-links svg { width: 32px; height: 32px; }
.contact-actions .linkedin-mark { font-size: 34px; line-height: 32px; }
.trustpilot-review { margin: 0; }
.trustpilot-review-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 18px 20px;
  border: 1px solid #f4f3b480;
  border-radius: 999px;
  color: var(--cream);
  background: transparent;
  font: 700 1.3125rem/1.4 Madefor, Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.trustpilot-review-link svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}
.trustpilot-review-link:hover { color: var(--green); background: var(--cream); border-color: var(--cream); transform: translateY(-2px); }
.trustpilot-review-link:active { background: var(--yellow); border-color: var(--yellow); transform: scale(.97); }
.trustpilot-review-link:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; }
.contact-copy {
  position: relative;
  z-index: 2;
  width: 70%;
  max-width: 1500px;
  margin-top: clamp(32px, 2.5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 1.8vw, 46px) clamp(28px, 3vw, 76px);
  font-size: 1.3125rem;
  line-height: 1.6;
}
.contact-copy h3 { font-size: 1.15em; line-height: 1.4; font-weight: 700; margin-bottom: .35em; }
.contact-copy > h3 { grid-column: 1 / -1; margin-bottom: -.5em; }
.contact-copy p { line-height: inherit; }
.contact-copy a { overflow-wrap: anywhere; text-underline-offset: 3px; }
.contact-hours { grid-column: 1; }
.contact-hours, .contact-business { margin-top: 24px; }
.clinic-location {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #f4f3b44d;
  border-radius: 18px;
  background: #ffffff08;
  font-size: 1.125rem;
}
.clinic-location-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(20px, 1.6vw, 36px);
}
.clinic-location h4 { margin: 0 0 8px; color: var(--cream); font-size: 1.2em; font-weight: 700; line-height: 1.35; }
.clinic-location p { margin-bottom: 16px; }
.clinic-directions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: auto;
  color: var(--cream);
  font: 700 16px/1.4 Madefor, Arial, sans-serif;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.clinic-directions svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.clinic-directions:hover { color: var(--yellow); text-decoration-thickness: 2px; }
.clinic-directions:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; border-radius: 2px; }
.clinic-map { display: block; width: 100%; min-width: 0; height: clamp(260px, 17vw, 360px); border: 0; background: var(--sand); }
.contact-lime { width: 32%; right: -14%; top: 30%; z-index: 0; }
.acknowledgement {
  position: relative;
  margin-top: clamp(48px, 4vw, 100px);
  padding-top: clamp(28px, 2.5vw, 64px);
  font-size: 1rem;
  color: #fff;
}
.acknowledgement p { width: 100%; max-width: 110ch; line-height: 1.65; }
.acknowledgement p + p { margin-top: 1em; }
.contact-marks { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: clamp(28px, 2.5vw, 64px); }
.contact-marks .footer-flags { width: clamp(150px, 14.7vw, 376px); margin: 0; }
.contact-marks .footer-badges { position: static; max-width: 100%; margin: 0; }
.footer-badges .funding-badges { flex-wrap: wrap; gap: clamp(12px, 1.25vw, 26px); }
.footer-badges img.funding-badge-medicare { width: clamp(55px, 6.48vw, 166px); height: auto; }
.footer-badges img.funding-badge-ndis { width: clamp(42px, 4.806vw, 123px); height: auto; }
.footer-badges img.funding-badge-certification { width: clamp(120px, 10vw, 256px); max-width: 100%; height: auto; }

@media (max-width: 1600px), (max-height: 950px) {
  body[data-page="home"] { --ribbon-size: 22rem; }
  .hero-pink { left: -16rem; top: -2rem; }
}

@media (min-width: 751px) and (max-width: 1100px) {
  /* Reflow the layout at larger zoom instead of cancelling it with smaller type. */
  .hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "copy" "photo"; }
  .hero-copy { padding: 3rem 6%; }
  .hero h1, .hero-intro { max-width: 52rem; }
  .hero-photo { min-height: 0; height: auto; aspect-ratio: 1.5; }
  .about { grid-template-columns: 36% 58%; gap: 6%; padding-inline: 5%; }
  .about-copy > .body-copy { width: 100%; }
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value:last-child { grid-column: 1 / -1; width: 50%; }
  .what, .fees-summary { grid-template-columns: 1fr 1fr; gap: 5%; padding-inline: 5%; }
  .what-copy .body-copy, .fees-copy .body-copy { width: 100%; }
  .what-photo, .fees-photo { max-height: none; min-height: 460px; }
  .support-grid { width: calc(100% - 64px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .contact-copy { width: 85%; }
  body[data-page="home"] .contact-section h2 { max-width: 100%; margin-top: 48px; }
  .contact-actions { position: static; width: 100%; text-align: left; margin-top: 36px; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 24px; }
  .contact-actions > .content-button, .trustpilot-review { width: 340px; max-width: 100%; }
  .contact-actions .social-links { margin-top: 0; }
}

@media (min-width: 751px) and (max-width: 900px) {
  .clinic-location { grid-column: 1 / -1; }
}

@media (max-width: 750px) {
  body[data-page="home"] { --ribbon-size: 224px; }
  body[data-page="home"] h2,
  body[data-page="home"] .funding h2,
  body[data-page="home"] .support h2,
  body[data-page="home"] .contact-section h2 { font-size: 2.5rem; overflow-wrap: anywhere; }
  .hero { display: flex; padding: 0; gap: 0; }
  .hero-copy { flex-grow: 1; width: 100%; padding: 2rem 6%; gap: 1.5rem; }
  .hero h1 { font-size: 3rem; margin: 0; }
  .hero-photo { height: auto; min-height: 0; aspect-ratio: 1.5; }
  .hero-intro { margin: 0; font-size: 1.5rem; }
  .hero-intro p { line-height: 1.65; }
  .hero-booking.content-button { width: 224px; margin: 0; }
  .hero-pink { left: -184px; top: -64px; }
  .hero-lime { right: -48px; top: auto; bottom: -30px; }
  .about { display: block; padding: 48px 8% 40px; }
  .about-photo-frame { display: none; }
  .about-copy { padding: 0; }
  .about-copy > .body-copy { width: 100%; margin-top: var(--heading-space); }
  .about .body-copy p { margin-bottom: 0; }
  .funding { margin-top: 28px; }
  .funding .body-copy { margin: 16px auto 20px; }
  .values { padding: 48px 9% 56px; }
  .values h2 { margin-bottom: 40px; }
  .values-grid { gap: 44px; }
  .value-copy { max-width: 32ch; }
  .value-icon { width: 120px; height: 120px; margin-bottom: 16px; }
  .value h3 { margin: 6px 0 14px; }
  .what, .fees-summary { padding: 48px 8% 56px; gap: 32px; }
  .what-copy .body-copy, .fees-copy .body-copy { width: 100%; font-size: 1.375rem; }
  .what-photo, .fees-photo { min-height: 0; max-height: none; height: auto; }
  .fees-button { margin-top: 28px; }
  .support { padding: 48px 0 56px; }
  body[data-page="home"] .support h2 { margin-bottom: var(--heading-space); }
  .support-grid { width: min(calc(100% - 40px), 500px); grid-template-columns: 1fr; gap: 20px; }
  .support-grid article { padding: 28px 24px; }
  .support-grid h3 { min-height: 0; }
  .contact-section { padding: 48px 7% 40px; }
  body[data-page="home"] .contact-section h2 { max-width: 100%; line-height: 1.2; }
  .contact-copy { width: 100%; grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .contact-copy > h3 { margin-bottom: -8px; }
  .contact-actions { margin-top: 32px; }
  .contact-actions > .content-button { height: 64px; min-height: 64px; font-size: 1.125rem; }
  .trustpilot-review-link { min-height: 64px; padding: 16px; font-size: 1.125rem; }
  .contact-lime { top: 50%; right: -40%; width: 60%; }
  .acknowledgement { margin-top: 40px; padding-top: 28px; }
  .contact-marks { flex-wrap: wrap; gap: 28px; }
}

@media (max-width: 1100px) {
  .values, .team, .contact-section {
    padding-bottom: max(var(--section-space), calc(var(--ribbon-size) * .82));
  }
  .section-ribbons, .contact-section .section-ribbons {
    --ribbon-top: auto;
    --ribbon-bottom: 0px;
  }
  .support { padding-top: max(var(--section-space), calc(var(--ribbon-size) * .42)); }
  .support .section-ribbons {
    --ribbon-top: calc(var(--ribbon-size) * -.36);
    --ribbon-bottom: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trustpilot-review-link { transition: none; }
  .trustpilot-review-link:hover, .trustpilot-review-link:active { transform: none; }
}
