@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/lato-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/lato-latin-700-normal.woff2') format('woff2');
}

/* Colours and type follow the Virtue theme's default skin the WordPress site used. */
:root {
  --blue: #2d5c88;
  --blue-dark: #1f4266;
  --ink: #333;
  --text: #444;
  --muted: #666;
  --rule: #eee;
  --footer: #f2f2f2;
  --container: 1140px;
  --heading-font: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}
main { flex: 1; }

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: #fff;
  color: var(--blue);
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 30px, var(--container));
  margin-inline: auto;
}

/* Top bar: the theme's blue band, now carrying the booking number instead of search. */
.topbar { background: var(--blue); }
.topbar-inner {
  display: flex;
  justify-content: flex-end;
  min-height: 33px;
  align-items: center;
}
.topbar a {
  padding: .3rem 0;
  color: #fff;
  font-family: var(--heading-font);
  font-size: 13px;
  text-decoration: none;
}
.topbar a:hover { text-decoration: underline; }

.site-header { position: relative; background: #fff; }
.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 25px 0 30px;
}

.brand { max-width: 300px; }
.brand-name {
  display: block;
  color: var(--blue);
  font-family: var(--heading-font);
  font-size: 32px;
  line-height: 40px;
  text-decoration: none;
}
.brand-name:hover { color: var(--blue-dark); }
.brand-tagline {
  margin: 0;
  color: var(--text);
  font-family: var(--heading-font);
  font-size: 14px;
  line-height: 20px;
}

.nav { margin-top: 13px; }
.nav-links {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-family: var(--heading-font);
  font-size: 13px;
  text-decoration: none;
  transition: color .3s ease;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] { color: var(--blue); }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  transition: transform .25s ease;
}
.menu-bars { position: relative; }
.menu-bars::before,
.menu-bars::after { content: ''; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-button[aria-expanded='true'] .menu-bars { background: transparent; }
.menu-button[aria-expanded='true'] .menu-bars::before { transform: translateY(6px) rotate(45deg); background: currentColor; }
.menu-button[aria-expanded='true'] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); background: currentColor; }

/* Page title band between two hairlines, as the theme drew it. */
.page-header {
  margin: 0 0 22px;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.page-header h1 {
  margin: 10px 0;
  color: var(--ink);
  font-family: var(--heading-font);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.15;
}

.entry {
  max-width: 820px;
  padding-bottom: 60px;
}
.entry p,
.entry ul { margin: 0 0 16px; }
.entry ul { padding-left: 20px; }
.entry li { margin-bottom: 4px; }
.entry h2 {
  margin: 28px 0 12px;
  color: var(--ink);
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
}
.entry .postnominals { margin-top: 0; font-size: 32px; }

.services li::marker { color: var(--blue); }

.clinics { padding: 0; list-style: none; }
.entry .clinics { padding-left: 0; }
.clinic {
  display: grid;
  gap: .4rem;
  max-width: 420px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--blue);
  border-radius: 0 0 4px 4px;
}
.entry .clinic-name {
  margin: 0;
  color: var(--ink);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.clinic address { font-style: normal; }
.clinic-map { justify-self: start; }

.book-cta { margin-top: 28px; }

.site-footer {
  padding: 26px 0 20px;
  background: var(--footer);
  color: var(--muted);
}
.footer-inner p {
  margin: 0;
  font-size: 12px;
}
.site-footer a { color: #555; }
.site-footer a:hover { color: var(--blue); }

@media (max-width: 767px) {
  .topbar-inner { justify-content: center; }
  .header-inner {
    align-items: center;
    padding: 20px 0;
  }
  .brand-name { font-size: 28px; line-height: 34px; }
  .menu-button { display: grid; place-items: center; flex-shrink: 0; }

  .nav { margin: 0; }
  .nav-links {
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0 15px 10px;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .06);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav-links.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }
  .nav-links a {
    padding: 12px 0;
    border-top: 1px solid var(--rule);
    font-size: 16px;
  }

  .page-header h1 { font-size: 32px; }
  .entry .postnominals { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition-duration: 0s !important; }
}

.updated { color: var(--muted); font-size: 13px; }
