@import url("https://fonts.googleapis.com/css?family=Karla:400,400i,700%7CWork+Sans:300,700&display=swap");

:root {
  color-scheme: light;
  --ink: hsl(212, 47%, 22%);
  --green: #185a46;
  --wash: #e8eff3;
  --line: #e8eff3;
  --white: #fff;
  font-family: "Karla", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.site-header, .site-footer { flex: none; }
main {
  display: flex;
  flex-direction: column;
  flex: 1 0 8rem;
  min-height: 0;
  container-type: size;
}
.page-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
}
.page-content:focus-visible { outline: 2px solid #a35620; outline-offset: -2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: "Work Sans", system-ui, sans-serif; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.45rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.45rem); }
h3 { font-size: 1.35rem; }
a { color: var(--ink); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible { outline: 3px solid #a35620; outline-offset: 5px; border-radius: .15rem; }
.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip { position: absolute; top: .5rem; left: .5rem; padding: .6rem 1rem; background: white; transform: translateY(-150%); z-index: 2; }
.skip:focus { transform: none; }
.site-header { position: relative; z-index: 1; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.1rem; flex-wrap: wrap; }
.header-inner {
  --header-padding: 1.1rem;
  width: min(100% - 2.5rem, 82.8rem);
  padding-block: var(--header-padding);
}
.brand { width: 17rem; max-width: 100%; }
.brand a, .brand img { display: block; }
.brand img { width: 100%; height: auto; }
nav ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; padding: 0; margin: 0; }
nav a { display: inline-block; padding-block: .35rem; font-weight: 650; text-decoration: none; }
.site-header nav a, .header-phone { font-size: calc(1rem + 2pt); }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; }
.services-nav { position: relative; display: flex; align-items: center; }
.services-nav summary {
  display: grid;
  place-items: center;
  min-width: 2rem;
  min-height: 2rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.services-nav summary::-webkit-details-marker { display: none; }
.services-nav summary::after {
  content: "";
  width: .45rem;
  height: .45rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-.125rem) rotate(45deg);
}
.services-nav details[open] summary::after { transform: translateY(.125rem) rotate(225deg); }
.services-nav summary:focus-visible { outline: 3px solid #a35620; outline-offset: 2px; }
.services-dropdown {
  position: absolute;
  z-index: 1;
  inset-block-start: 100%;
  inset-inline-start: 0;
  display: block;
  width: max-content;
  min-width: 14rem;
  padding: .35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: .45rem;
  box-shadow: 0 .4rem 1rem #142f2926;
}
.services-dropdown a { display: block; padding: .45rem .65rem; border-radius: .25rem; }
.site-header .services-dropdown a { font-size: calc(1rem + 1pt); }
.services-dropdown a:hover, .services-dropdown a[aria-current="page"] { background: var(--wash); }
.header-contact { display: flex; align-items: center; gap: .75rem; max-width: 100%; }
.header-phone { font-weight: 700; white-space: nowrap; }
.header-ndis-link {
  width: clamp(5.5rem, 15vw, 9rem);
  min-width: 0;
}
.header-ndis-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (min-width: 75rem) {
  .header-inner { column-gap: 1rem; }
  .header-ndis-link { width: auto; margin-block: calc(-1 * var(--header-padding)); }
  .header-ndis-logo {
    width: auto;
    height: calc(17rem * 137 / 764 + 2 * var(--header-padding));
  }
}
.hero { flex: none; }
.hero-intro { background: var(--wash); }
.hero-copy { font-size: 1.15rem; text-align: center; }
.hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 45vh;
  max-height: 45dvh;
  max-height: min(45dvh, 60cqh);
  object-fit: cover;
}
.hero .hero-portrait { object-position: 50% 32%; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.button { display: inline-block; padding: .65rem 1rem; border: 1px solid var(--green); border-radius: .45rem; background: var(--green); color: var(--ink); font-weight: 700; text-decoration: none; }
.button.outline { background: transparent; }
.button:hover { text-decoration: underline; }
.services { padding-block: clamp(1.32rem, 3.3vw, 2.53rem) clamp(2.4rem, 6vw, 4.6rem); }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.services > .card-grid:first-child { margin-block-start: .825rem; }
.card-grid article, .reading-panel { border: 1px solid var(--line); border-radius: .75rem; }
.card-grid article { display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 1.35rem; background: #f5f9f6; }
.card-grid h3 a { color: var(--ink); text-decoration: none; }
.card-grid h3 a:hover { text-decoration: underline; }
.card-grid p { margin: .8rem 0 1.1rem; }
.read-link { font-weight: 700; margin-top: auto; }
.reading {
  max-width: 48rem;
  padding-block: clamp(.75rem, calc(3.3vw - .64rem), 1.84rem) clamp(2.5rem, 6vw, 4.5rem);
}
.reading-panel { padding: 1.35rem; }
.reading-panel + .reading-panel { margin-top: 1rem; }
.reading h2:not(:first-child) { margin-top: 2rem; }
.reading p, .reading ul { margin-top: .6rem; }
.location { text-align: center; max-width: 42rem; padding: clamp(2rem, 6vw, 4rem) 1.25rem; margin-block: 2rem; border: 1px solid var(--line); border-radius: 1rem; }
.hero-intro + .location { margin-block-start: 1.1rem; padding-block-start: clamp(1.1rem, 3.3vw, 2.2rem); }
.location p { max-width: 34rem; margin: .85rem auto 0; }
.location dl { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; margin: 1.5rem 0 0; }
.location dt { font-weight: 750; }
.location dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.site-footer { background: hsl(196, 100%, 47%); color: white; }
.hero-copy, .footer-inner { padding-block: 1rem; }
.footer-inner { row-gap: .75rem; }
.site-footer a, .site-footer p { color: #e5f2e8; }
.footer-contact { display: grid; gap: .15rem; }
@media (max-width: 56rem) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 36rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .header-inner nav { order: 1; flex-basis: 100%; }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-height: 42rem) {
  .header-inner { --header-padding: .5rem; row-gap: .4rem; }
  .hero-copy, .footer-inner { padding-block: .2rem; }
  .footer-inner { row-gap: .25rem; }
}
