/* Mary Hughes Speech Pathology — shared styles for the 2026 static website.
   Edit these colour and spacing tokens to update the whole site. */
@font-face {
  font-family: Jost;
  src: url("fonts/jost-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Jost;
  src: url("fonts/jost-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Jost;
  src: url("fonts/jost-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --navy: #263643;
  --taupe: #ddd9d3;
  --pale: #f1f5f4;
  --ink: #303537;
  --accent: #3b737b;
  --white: #fff;
  --content-width: 1180px;
  --section-space: clamp(40px, 6vw, 80px);
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 400 20px/1.6 Jost, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--navy); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
button { cursor: pointer; }
h1, h2, h3 { color: var(--navy); line-height: 1.3; overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(34px, 4vw, 50px); font-weight: 700; }
h2 { margin: 0 0 24px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; }
h3 { margin: 0 0 10px; font-size: 21px; font-weight: 700; }
p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 8px; }
address { font-style: normal; margin-bottom: 20px; }
.container { width: min(var(--content-width), 100% - 60px); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.section-taupe { background: var(--taupe); }
.section-pale { background: var(--pale); }
.phone { white-space: nowrap; }
.email { overflow-wrap: anywhere; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  inset: 12px auto auto 12px;
  z-index: 100;
  padding: 10px 20px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; color: var(--white); }
/* Shared navigation. It also works without JavaScript. */
.site-header { border-bottom: 1px solid var(--navy); }
.header-inner { min-height: 198px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-logo { flex: 0 0 220px; }
.site-logo img { width: 220px; }
.desktop-nav { display: flex; align-items: center; gap: 24px; }
.desktop-nav a { text-decoration: none; }
.desktop-nav a[aria-current="page"], .footer-nav a[aria-current="page"] { text-decoration: underline; }
.header-actions { display: flex; gap: 20px; align-items: center; }
.button {
  display: inline-flex;
  min-height: 46px;
  padding: 11px 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  color: var(--taupe);
  background: var(--navy);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  text-align: center;
}
.button:hover { background: var(--taupe); color: var(--navy); }
.button-outline { color: var(--navy); background: transparent; }
.button-light { border-color: var(--taupe); color: var(--navy); background: var(--taupe); }
.button-light:hover { background: transparent; color: var(--taupe); }
.button-row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.button-row:first-child { margin-top: 0; }
.menu-toggle { display: none; border: 0; background: none; padding: 12px 4px; color: var(--navy); }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 28px; height: 2px; background: currentColor; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { position: absolute; content: ""; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.mobile-nav { display: none; }
/* Common page sections. */
.page-heading { padding-block: 52px 64px; text-align: center; }
.page-heading h1 { text-transform: uppercase; }
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-row > * { min-width: 0; }
.split-row > img { width: 100%; }
.split-row + .split-row { margin-top: 60px; }
.offset-panel {
  position: relative;
  margin: 20px 30px 0 0;
  padding: clamp(30px, 5vw, 64px);
  background: var(--pale);
  border: 1px solid #8a9296;
  box-shadow: 30px -30px 0 var(--navy);
}
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list > li { position: relative; padding-left: 42px; }
.check-list > li::before { content: "✓"; position: absolute; inset: 2px auto auto 0; width: 26px; height: 26px; border: 2px solid currentColor; font-size: 20px; line-height: 22px; text-align: center; color: var(--navy); }
.check-list > li + li { margin-top: 20px; }
/* Homepage. */
.home-intro { text-align: center; padding-block: 40px; }
.home-intro h1 { font-weight: 400; font-size: clamp(34px, 3.2vw, 40px); margin-bottom: 24px; }
.home-intro .established { font-size: 22px; }
.lifespan { font-weight: 700; font-size: 20px; }
.home-supports { max-width: 1050px; margin-inline: auto; font-size: clamp(20px, 2vw, 26px); line-height: 1.45; }
.home-feature { background: var(--navy); color: var(--white); padding-block: 80px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-grid > * { min-width: 0; }
.feature-grid h2 { color: var(--white); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.5; }
.feature-grid img { width: 100%; }
.home-tiles { padding-block: 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home-tiles a { display: block; overflow: hidden; }
.home-tiles img { width: 100%; }
.home-tiles a:hover img { opacity: .85; }
/* About page. */
.core-values { max-width: 960px; margin-inline: auto; }
.core-values h2 { text-align: center; text-transform: uppercase; font-weight: 700; }
.value-grid { display: grid; gap: 0; }
.value-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--taupe); }
.value-card:nth-child(odd) .value-image { order: 2; }
.value-card:nth-child(odd) .value-copy { order: 1; }
.value-card:nth-child(even) { background: var(--navy); color: var(--white); }
.value-card:nth-child(even) h2 { color: var(--white); }
.value-image { position: relative; min-height: 360px; }
.value-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.value-copy { min-width: 0; padding: clamp(30px, 5vw, 64px); }
/* Therapy programs and staff cards. */
.programs-panel > h2 { margin-top: 30px; font-size: 26px; }
.programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 44px; padding: 0; margin: 30px 0; list-style: none; counter-reset: program; font-size: 18px; }
.programs > li { min-width: 0; position: relative; padding-left: 30px; margin: 0; counter-increment: program; }
.programs > li::before { content: counter(program) "."; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.programs h3 { font-size: inherit; line-height: 1.55; }
.programs ul { list-style-type: disc; padding-left: 20px; margin: 0; }
.programs ul li + li { margin-top: 4px; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 42px; row-gap: 60px; }
.team-card { text-align: center; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.portrait-link { display: block; margin-bottom: 20px; }
.portrait { width: 250px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.team-card h2 { margin-bottom: 14px; font-size: 26px; font-weight: 400; }
.team-role { margin-bottom: 22px; }
.team-role p { margin-bottom: 12px; }
.team-role p:last-child { font-size: 18px; }
.team-card .button { margin-top: auto; max-width: 100%; }
.mentoring { max-width: 900px; text-align: center; }
.mentoring .button-row { margin-bottom: 24px; }
/* Native dialogs replace the old popup library. Without JavaScript the same
   biographies remain readable as ordinary sections below the team listing. */
.profile-dialog { color: var(--ink); background: var(--pale); border: 1px solid #8a9296; padding: 0; width: min(800px, calc(100% - 32px)); max-height: 85dvh; overflow: auto; }
.profile-dialog::backdrop { background: rgb(20 31 39 / .7); }
.dialog-content { position: relative; padding: 54px 40px 32px; }
.dialog-content h2 { padding-right: 28px; }
.dialog-close { position: absolute; top: 12px; right: 16px; }
.dialog-close button { background: none; border: 0; color: var(--navy); font-size: 36px; line-height: 1; padding: 4px 8px; }
html:not(.enhanced) .profile-dialog { display: block; position: static; margin: 32px auto; max-height: none; }
html:not(.enhanced) .dialog-close { display: none; }
html.dialog-open { overflow: hidden; }
/* Services, resources and the contact journey. */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; margin-bottom: 50px; }
.service-column { display: grid; gap: 40px; align-content: start; }
.service-card { display: flex; align-items: flex-start; gap: 24px; }
.service-card svg { width: 64px; height: 64px; flex: 0 0 64px; fill: var(--navy); }
.service-card h2 { font-size: 26px; font-weight: 400; margin: 8px 0 0; }
.resources-intro { max-width: 960px; }
.resource-list { list-style: none; padding: 0; margin: 30px 0 50px; }
.resource-list li { border-bottom: 1px solid var(--taupe); padding-block: 18px; margin: 0; }
.resource-list a { display: inline-block; }
.resources-intro h2 { margin-top: 40px; }
.contact-location { align-items: start; }
.contact-location h2 { font-size: 26px; font-weight: 700; }
.enquiry-section { max-width: 1000px; }
.enquiry-section iframe { max-width: 100%; }
.form-fallback { margin-top: 20px; font-size: 18px; }
.journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; margin-top: 40px; }
.journey-grid h2 { font-size: 26px; font-weight: 500; }
/* Funding logos and shared footer. */
.funding-partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px; align-items: center; padding-block: 45px; }
.funding-partners > div { min-width: 0; }
.funding-partners img { max-height: 100px; width: 100%; object-fit: contain; }
.site-footer { background: var(--navy); color: var(--taupe); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr 1fr; gap: 60px; padding-block: 60px; font-size: 18px; }
.site-footer h2 { color: var(--taupe); font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.site-footer h2:not(:first-child) { margin-top: 22px; }
.site-footer a { color: inherit; }
.site-footer .button-light { color: var(--navy); }
.site-footer .button-light:hover { color: var(--taupe); }
.footer-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
.footer-nav a { width: fit-content; }
.copyright { border-top: 1px solid rgb(221 217 211 / .35); text-align: center; padding-block: 20px; font-size: 16px; }
/* Tablet and phone layouts. */
@media (max-width: 1024px) {
  .container { width: calc(100% - 40px); }
  .desktop-nav { display: none; }
  .enhanced .menu-toggle { display: block; }
  .mobile-nav { display: grid; gap: 4px; padding-block: 12px 24px; }
  .mobile-nav a { display: block; padding-block: 8px; }
  .enhanced .mobile-nav:not(.is-open) { display: none; }
  .split-row { gap: 30px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
  .footer-grid { gap: 32px; }
  .funding-partners { gap: 30px; }
}
@media (max-width: 767px) {
  body { font-size: 19px; }
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 150px; gap: 12px; }
  .site-logo { flex-basis: 120px; }
  .site-logo img { width: 120px; }
  .header-actions { gap: 12px; }
  .header-actions .button { padding: 12px 16px; font-size: 14px; }
  .page-heading { padding-block: 36px 42px; }
  .home-intro { padding-block: 32px; }
  .home-intro .established { font-size: 20px; }
  .lifespan { font-size: 18px; }
  .home-feature { padding-block: 45px; }
  .feature-grid, .split-row, .value-grid, .value-card, .services-grid, .journey-grid, .footer-grid { grid-template-columns: 1fr; }
  .feature-grid { gap: 32px; }
  .feature-grid h2 { font-size: 24px; }
  .home-tiles { grid-template-columns: repeat(2, 1fr); gap: 14px; padding-block: 30px; }
  .offset-panel { padding: 26px 22px; margin-right: 14px; box-shadow: 14px -14px 0 var(--navy); }
  .core-values h2 { font-size: 27px; }
  .check-list > li { padding-left: 35px; }
  .check-list > li::before { width: 23px; height: 23px; font-size: 18px; line-height: 19px; }
  .value-copy { padding: 26px; }
  .value-grid { gap: 0; }
  .value-card .value-copy { order: 0; }
  .value-card .value-image { order: 1; height: 320px; min-height: 0; }
  .value-card:nth-child(odd) .value-copy { order: 0; }
  .value-card:nth-child(odd) .value-image { order: 1; }
  .programs { grid-template-columns: 1fr; gap: 24px; }
  .programs-panel > h2 { font-size: 25px; }
  .team-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .team-role { max-width: 370px; }
  .dialog-content { padding: 52px 24px 24px; font-size: 18px; }
  .dialog-content h2 { font-size: 27px; }
  .service-card { gap: 20px; }
  .service-card svg { width: 50px; height: 50px; flex-basis: 50px; }
  .service-card h2 { font-size: 24px; }
  .services-grid { gap: 32px; }
  .split-row + .split-row { margin-top: 40px; }
  .footer-grid { padding-block: 40px; gap: 36px; }
  .funding-partners { grid-template-columns: repeat(2, 1fr); gap: 30px; padding-block: 30px; }
  .funding-partners img { max-height: 80px; }
}
@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .site-logo { flex-basis: 95px; }
  .site-logo img { width: 95px; }
  .header-actions .button { padding-inline: 12px; }
  .home-tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: color .15s ease, background-color .15s ease; }
}
@media print {
  .site-header, .funding-partners, .footer-nav, .button-row, .menu-toggle, .dialog-close { display: none !important; }
  body { font: 12pt/1.5 sans-serif; }
  .container { width: 100%; }
  .section { padding-block: 20px; }
  .offset-panel { margin: 0; box-shadow: none; }
  .profile-dialog:not([open]) { display: block; position: static; max-height: none; }
  .site-footer { color: #000; background: #fff; }
  .site-footer h2 { color: #000; }
}
