/* Osler Medical Centre
   Contents: fonts · tokens · base · icons · header · banners · sections ·
             components · home page · footer · entrance animation · small screens */

/* ---------- Fonts ---------- */
@font-face { font-family: "Museo Sans"; font-weight: 300; font-display: swap; src: url(../fonts/museo-sans-300.woff2) format("woff2"); }
@font-face { font-family: "Museo Sans"; font-weight: 500; font-display: swap; src: url(../fonts/museo-sans-500.woff2) format("woff2"); }
@font-face { font-family: "Museo Sans"; font-weight: 700; font-display: swap; src: url(../fonts/museo-sans-700.woff2) format("woff2"); }
@font-face { font-family: "Forum"; font-weight: 400; font-display: swap; src: url(../fonts/forum-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Forum"; font-weight: 400; font-display: swap; src: url(../fonts/forum-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url(../fonts/barlow-condensed-500.woff2) format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --teal: #1db4b2;
  --teal-light: #3fc0be;
  --blue: #01509f;
  --ink: #000;
  --text: #30373e;
  --muted: #4e4e4e;
  --tint: #f3f9ff;
  --footer: #23282d;
  --footer-text: #9ba1a7;
  --line: rgba(0, 0, 0, .085);
  --body: "Museo Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Forum", Georgia, serif;
  --container: 1200px;
  --header-h: 52px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 300 16px/1.733 var(--body); color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--blue); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.1; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 12px; }
.container--narrow { max-width: 1024px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; padding: 10px 16px; background: #fff; color: var(--blue); }
.skip-link:focus { left: 0; }

/* ---------- Icons (Font Awesome shapes, coloured by the text colour) ---------- */
.icon { display: inline-block; width: 1em; height: 1em; background: currentColor; vertical-align: -.125em;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.icon--phone { --icon: url(../icons/phone.svg); }
.icon--envelope { --icon: url(../icons/envelope.svg); }
.icon--bars { --icon: url(../icons/bars.svg); }
.icon--chevron-up { --icon: url(../icons/chevron-up.svg); }

/* ---------- Top bar and header ---------- */
.topbar { background: var(--teal); color: #fff; border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 24px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; }
.topbar a:hover { opacity: .8; }
.topbar .icon { margin-right: 10px; font-size: 14px; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.site-logo img { height: 51px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: 24px; }
.site-nav a, .site-nav button { font: inherit; color: var(--ink); text-transform: uppercase; background: none; border: 0; padding: 0; cursor: pointer; }
.site-nav > ul > li > a, .site-nav > ul > li > button { display: block; line-height: 32px; border-bottom: 2px solid transparent; }
.site-nav > ul > li > a:hover, .site-nav > ul > li > button:hover,
.site-nav > ul > li > .is-current, .site-nav > ul > li.is-current > button { color: var(--teal); }
.site-nav > ul > li > .is-current { font-weight: 500; border-bottom-color: var(--teal); }
.site-nav .has-menu { position: relative; }
.site-nav .has-menu > button::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; background: currentColor; vertical-align: 2px;
  -webkit-mask: url(../icons/chevron-down.svg) center / contain no-repeat; mask: url(../icons/chevron-down.svg) center / contain no-repeat; }
.site-nav .has-menu > ul { position: absolute; top: 100%; left: -15px; width: 260px; padding: 0; background: #fff; border-top: 2px solid var(--teal);
  box-shadow: 0 10px 35px -3px rgba(0, 0, 0, .12); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .15s, transform .15s, visibility .15s; }
.site-nav .has-menu:hover > ul, .site-nav .has-menu:focus-within > ul, .site-nav .has-menu.is-open > ul { opacity: 1; visibility: visible; transform: none; }
.site-nav .has-menu > ul a { display: block; padding: 15px; line-height: 1.5; }
.site-nav .has-menu > ul a:hover, .site-nav .has-menu > ul .is-current { color: var(--teal); }
.nav-toggle { display: none; font-size: 22px; padding: 8px; color: var(--ink); background: none; border: 0; cursor: pointer; }

/* ---------- Page banners ----------
   <section class="hero" style="background-image: url(/assets/img/x.jpg); --shade: .26">
   Pictures are set with an inline background-image so each page names its own. */
.hero { position: relative; padding: 200px 12px; color: #fff; text-align: center; background: #333 center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--shade, .4); }
.hero > * { position: relative; }
.hero h1 { color: #fff; font-size: 54px; letter-spacing: 4px; text-transform: uppercase; }
.hero--title-case h1 { text-transform: none; letter-spacing: 2px; }
.hero--short { padding: 0; min-height: 454px; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section--tint { background: var(--tint); }
.section--texture { background: #fff url(../img/texture.jpg) center / cover no-repeat; }
.section--flush-bottom { padding-bottom: 0; }
.section-title { font-size: 50px; letter-spacing: 3px; text-transform: uppercase; text-align: center; margin-bottom: 30px; }
.section-title--blue { color: var(--blue); }
.lead { font-size: 20px; }
.text-center { text-align: center; }
.prose { font-size: 18px; color: var(--ink); }
.prose--large { font-size: 20px; }

.section-title--condensed { font-family: "Barlow Condensed", var(--display); font-weight: 500; letter-spacing: 2px; margin-bottom: 10px; }
.subheading { font: 400 20px/1.3 var(--display); letter-spacing: 2px; margin: 20px 0 30px; }
.text-blue { color: var(--blue); }

/* ---------- Picture with an overlapping text card ----------
   .split           picture left, card right
   .split--reverse  card left, picture right */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.split__media { min-height: 520px; background: #ddd center / cover no-repeat; align-self: stretch; margin-left: 50px; }
.split__card { position: relative; background: #fff; padding: 40px; margin-left: -62px; box-shadow: 0 0 40px rgba(0, 0, 0, .22); font-size: 18px; color: var(--ink); }
.split__card h2 { font-size: 38px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }
.split--reverse .split__media { order: 2; margin-left: 0; margin-right: 50px; }
.split--reverse .split__card { margin-left: 0; margin-right: -62px; z-index: 1; }
.split--tall .split__media { min-height: 648px; }
.split--large .split__card h2 { font-size: 50px; letter-spacing: 3px; }

/* ---------- Lists with an icon bullet ---------- */
.icon-list { list-style: none; margin: 0 0 1em; padding: 0; font-size: 18px; color: var(--ink); }
.icon-list li { position: relative; padding: 4px 0 4px 30px; }
.icon-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 18px; height: 18px; background: var(--blue);
  -webkit-mask: var(--bullet, url(../icons/arrow-circle-right.svg)) center / contain no-repeat; mask: var(--bullet, url(../icons/arrow-circle-right.svg)) center / contain no-repeat; }
.icon-list--check { --bullet: url(../icons/check.svg); }
.icon-list a { color: inherit; }
.icon-list a:hover { color: var(--teal); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: 30px; text-align: center; }
.team a { display: block; color: var(--ink); }
.team img { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 20px; object-fit: cover; }
.team h3 { font: 300 30px/1.2 var(--body); }
.team p { font-size: 15px; text-transform: uppercase; }
.team a:hover h3 { color: var(--teal); }

/* ---------- Provider profile ---------- */
.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 0 80px; align-items: start; }
.profile h1 { font-size: 42px; letter-spacing: 2px; margin-bottom: 6px; }
.profile__role { font: 400 28px/1.2 var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 0; }
.profile__role + .profile__role { font-size: 32px; }
.profile__bio { margin-top: 20px; font-size: 18px; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq details { margin-bottom: 10px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 20px 18px; background: #ecf6ff; color: #4f4f4f;
  font: 400 24px/1.2 var(--display); letter-spacing: 1px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background: var(--teal);
  -webkit-mask: url(../icons/plus.svg) center / contain no-repeat; mask: url(../icons/plus.svg) center / contain no-repeat; }
.faq details[open] summary { color: var(--teal); }
.faq details[open] summary::after { -webkit-mask-image: url(../icons/minus.svg); mask-image: url(../icons/minus.svg); }
.faq__answer { padding: 25px 25px 10px; font-size: 18px; color: var(--ink); }

/* ---------- Coloured bands ---------- */
.band { padding: 70px 0; color: #fff; text-align: center; font-size: 22px; background: var(--blue); }
.band h2 { color: #fff; font-size: 38px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.band a { color: #fff; text-decoration: underline; }
.band--teal-blue { background: linear-gradient(26deg, var(--teal) 0%, var(--blue) 100%); }
.band--blue-black { padding: 120px 0; background: linear-gradient(0deg, var(--blue) 0%, #000 100%); }
.band--photo { position: relative; background: var(--blue) center / cover no-repeat; }
.band--photo::before { content: ""; position: absolute; inset: 0; background: #000; opacity: .56; }
.band--photo > * { position: relative; }
.band--photo h2 { font-size: 50px; letter-spacing: 3px; }

/* ---------- Buttons ---------- */
.button { display: inline-block; padding: 14px 34px; font: 500 16px/1.2 var(--body); letter-spacing: 1px; text-transform: uppercase; color: #fff; background: var(--teal); border: 2px solid var(--teal); transition: background .15s, color .15s; }
.button:hover { background: transparent; color: var(--teal); }
.band .button { text-decoration: none; margin: 30px 6px 0; }
.band .button:hover { color: #fff; border-color: #fff; }
.button--outline { background: transparent; border-color: #fff; }
.band .button--outline:hover { background: #fff; color: var(--blue); }

/* ---------- Contact ---------- */
.contact-intro h2 { font-size: 36px; letter-spacing: 2px; text-transform: uppercase; color: #242424; margin-bottom: 10px; }
.contact-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; text-align: center; color: var(--ink); }
.contact-details h3 { font-size: 22px; letter-spacing: 1px; margin-bottom: 4px; }
.contact-details p { margin-bottom: 16px; }
.contact-photo { height: 430px; margin: 0 50px 50px; border-radius: 6px; background: #ddd url(../img/contact-reception.jpg) top center / cover no-repeat; }
.map { display: block; width: 100%; height: 430px; border: 0; }

/* ---------- Home page ---------- */
.home-hero { position: relative; display: flex; align-items: center; min-height: 767px; padding: 70px 0; background: #fff url(../img/hero-home.jpg) center / cover no-repeat; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 40%, #fff 66%); }
.home-hero__text { position: relative; width: 60%; margin-left: 40%; color: var(--ink); font-size: 20px; }
.home-hero h1 { font-size: 70px; line-height: 1; letter-spacing: 2px; margin-bottom: 20px; }
.home-hero__tagline { font: 500 32px/1 var(--body); color: var(--blue); margin: 0 0 20px; }

.home-mission { display: grid; grid-template-columns: 1fr 1fr; background: #fff url(../img/texture.jpg) center / cover no-repeat; }
.home-mission__photo { min-height: 668px; background: url(../img/home-mission.jpg) center / cover no-repeat; }
.home-mission__text { display: flex; flex-direction: column; justify-content: center; padding: 20%; text-align: center; font-size: 20px; color: var(--ink); box-shadow: inset 0 0 89px rgba(0, 0, 0, .17); }
.home-mission h2 { font-size: 50px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 20px; }
.home-mission h2 span { display: block; color: var(--teal); letter-spacing: 1px; }

.home-about { padding: 70px 0; background: radial-gradient(at center center, var(--teal) 47%, var(--blue) 100%); }
.home-about .split__media { min-height: 522px; margin-left: 0; }
.home-about .split__card { padding: 8%; margin-left: -68px; box-shadow: 0 0 43px rgba(0, 0, 0, .29); }
.home-about .split__card h2 { font-size: 50px; letter-spacing: 3px; margin-bottom: 20px; }
.eyebrow { font: 400 20px/1.2 var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--teal); margin: 0 0 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--footer-text); }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 100px; padding-bottom: 60px; }
.site-footer__logo { width: 143px; margin-bottom: 30px; }
.site-footer h2 { font-size: 18px; line-height: 1.5; color: #fff; }
.site-footer p { margin-bottom: 16px; }
.site-footer__copyright { padding-top: 26px; padding-bottom: 26px; text-align: center; border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer__copyright p { margin: 0; }

.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: #fff; background: rgba(0, 0, 0, .35); font-size: 14px; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s, background .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { color: #fff; background: var(--teal); }

/* ---------- Entrance animation ----------
   Anything marked data-reveal fades up when it scrolls into view. It is only
   hidden once the script in the page head has run, and that script shows
   everything again if site.js never loads. */
@keyframes fade-in-up { from { opacity: 0; transform: translate3d(0, min(100%, 120px), 0); } to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-visible { opacity: 1; animation: fade-in-up 1.25s both; }
.js.reveal-all [data-reveal] { opacity: 1; }
.team a:nth-child(2).is-visible { animation-delay: .1s; }
.team a:nth-child(3).is-visible { animation-delay: .2s; }

/* ---------- Small screens ---------- */
@media (max-width: 1150px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #eaeaea; box-shadow: 0 15px 25px -10px rgba(50, 52, 54, .125); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-nav.is-open { display: block; }
  .site-nav > ul { display: block; }
  .site-nav > ul > li > a, .site-nav > ul > li > button { width: 100%; padding: 10px 30px; text-align: left; line-height: inherit; border-bottom: 1px solid #eaeaea; }
  .site-nav .has-menu > ul { position: static; display: none; width: auto; border: 0; box-shadow: none; background: #f8f8f8; opacity: 1; visibility: visible; transform: none; transition: none; }
  .site-nav .has-menu.is-open > ul { display: block; }
  .site-nav .has-menu > ul a { padding: 10px 30px 10px 50px; border-bottom: 1px solid #eaeaea; }
  .site-nav .has-menu > button::after { float: right; margin-top: 10px; }
}

@media (max-width: 900px) {
  .hero { padding: 120px 12px; }
  .hero h1 { font-size: 40px; letter-spacing: 2px; }
  .hero--short { padding: 0; min-height: 260px; }
  .section, .band, .home-about { padding: 50px 0; }
  .band--blue-black { padding: 70px 0; }
  .section-title, .split--large .split__card h2, .home-mission h2, .home-about .split__card h2, .band--photo h2 { font-size: 36px; letter-spacing: 2px; }
  .split, .profile, .home-mission, .contact-details { grid-template-columns: 1fr; }
  .contact-photo { height: 260px; margin: 0 16px 30px; }
  .split__media, .split--reverse .split__media, .home-about .split__media { order: 0; min-height: 300px; margin: 0; }
  .split--tall .split__media { min-height: 300px; }
  .split__card, .split--reverse .split__card, .home-about .split__card { margin: -40px 16px 0; padding: 28px; }
  .split__card h2 { font-size: 30px; }
  .profile { gap: 30px; }
  .profile img { max-width: 420px; }
  .home-hero { min-height: 0; padding: 60px 0; background-position: 20% center; }
  .home-hero::before { background: rgba(255, 255, 255, .82); }
  .home-hero__text { width: 100%; margin-left: 0; }
  .home-hero h1 { font-size: 44px; }
  .home-hero__tagline { font-size: 24px; line-height: 1.2; }
  .home-mission__photo { min-height: 320px; }
  .home-mission__text { padding: 50px 24px; }
  .site-footer__cols { grid-template-columns: 1fr; padding-top: 50px; padding-bottom: 30px; }
}

@media (max-width: 600px) {
  .topbar__inner { justify-content: center; font-size: 14px; }
  .team { grid-template-columns: 1fr; }
  .faq summary { font-size: 20px; }
  .band { font-size: 18px; }
  .band h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .js [data-reveal], .js [data-reveal].is-visible { opacity: 1; animation: none; }
}
