/* Choose Well-Being — static recreation of the December 2021 site. */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/opensans-normal-400.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/opensans-normal-600.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/opensans-normal-700.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/opensans-italic-400.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/opensans-italic-700.woff2") format("woff2");
}

:root {
  --accent: #22879f;
  --accent-dark: #17687a;
  --ink: #555555;
  --heading: #22879f;
  --dark: #232323;
  --line: #d5d5d5;
  --soft: #f4f4f4;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
}

b, strong { font-weight: 700; }
em, i { font-style: italic; }

img { max-width: 100%; height: auto; }

a { color: var(--accent); }
a:hover { color: #424242; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { top: 8px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

.site-header { background: #fff; }

.logo-row {
  position: relative;
  text-align: center;
  padding: 18px 56px 12px;
}

.logo { display: inline-block; line-height: 0; }
.logo img { width: min(850px, 100%); height: auto; }

.menu-toggle {
  display: none;
  position: absolute;
  right: 8px;
  top: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  position: relative;
}
.bars { margin: 0 auto; }
.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.bars::before { top: -7px; }
.bars::after { top: 7px; }

.nav {
  border-top: 1px solid var(--line);
  background: #fff;
}
.home .nav { border-bottom: 1px solid var(--line); }

.menu,
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu { text-align: center; }

.menu > li { display: inline-block; position: relative; }

.menu a {
  display: block;
  padding: 0.55em 0.75em;
  color: #4a4a4a;
  text-decoration: none;
  font-size: 17px;
  line-height: 1.3;
}

.menu a:hover,
.menu a[aria-current="page"],
.menu .current > a {
  color: var(--accent);
}

.menu ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  text-align: left;
  z-index: 30;
  padding: 6px 0;
}

.menu ul ul { top: -7px; left: 100%; }
.menu ul ul ul { left: auto; right: 100%; }

.menu ul a {
  font-size: 15px;
  padding: 8px 16px;
  white-space: nowrap;
}

.sub-toggle { display: none; }

@media (min-width: 960px) {
  .menu li:hover > ul,
  .menu li:focus-within > ul { display: block; }
  .menu > li > a { font-size: 16px; padding: 0.55em 0.55em; }
}

@media (min-width: 1180px) {
  .menu > li > a { font-size: 17px; padding: 0.55em 0.75em; }
}

/* Banners and title bars */

.banner {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.page-title-bar {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-title-bar h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 400;
  color: var(--dark);
}

.crumbs.dark { color: #777; font-size: 13px; }
.crumbs.dark a { color: var(--accent); text-decoration: none; }

.entry { padding: 28px 0 16px; }

.entry h1,
.entry h2,
.entry h3,
.entry h4 {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-weight: 600;
  line-height: 1.4;
  margin: 24px 0 16px;
}

.entry h1 {
  color: var(--heading);
  font-size: 26px;
}

.entry h1.light { font-weight: 400; }
.entry h1.center { text-align: center; }

.entry h2 {
  color: var(--heading);
  font-size: 20px;
}

.entry h3 {
  font-size: 16px;
  color: #333;
}

.entry h4 {
  color: var(--dark);
  font-size: 16px;
}

.entry p { margin: 0 0 20px; }
.entry a:not(.btn) {
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.entry a:not(.btn):hover { text-decoration: underline; }

.entry ul { margin: 0 0 20px; padding-left: 1.4em; line-height: 2; list-style: disc; }
.entry li { margin: 0; }
.entry li h3,
.entry li h4 { margin: 0; }

.muted { color: #808080; }
.center { text-align: center; }
.quote {
  text-align: center;
  color: #808080;
  font-style: italic;
  font-size: 1.25em;
  margin: 8px 0 18px;
}

/* Home */

.hero { display: grid; grid-template-columns: 1fr 1fr; }
.hero a { display: block; line-height: 0; }
.hero img { width: 100%; height: auto; display: block; }
.hero-mobile { display: none; }
.hero-mobile a + a { border-top: 10px solid #d1d1d1; }

.skills {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px 24px;
  align-items: center;
  margin: 36px 0 10px;
}

.skills img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

.skills h1 { text-align: center; font-size: 29px; margin: 0 0 16px; }

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  border: 0;
  border-bottom: 3px solid var(--accent-dark);
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: #1c7388; color: #fff; }
.btn.grey { background: #7c7c7c; border-bottom-color: #5a5a5a; }
.btn.grey:hover { background: #6b6b6b; color: #fff; }
.btn.block { display: block; }

.rule {
  border: 0;
  border-top: 2px solid #c8c8c8;
  margin: 28px 0;
}
.rule.thick { border-top-width: 3px; border-color: #9e9e9e; }
.rule.dotted { border-top-style: dotted; }

.split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px 40px;
  align-items: start;
}
.split.flip { grid-template-columns: 2fr 1fr; }
.split.even { grid-template-columns: 1fr 1fr; }

.benefits {
  background: #5ab7c5;
  border: 4px solid #047391;
  color: #fff;
  padding: 18px 22px 18px 36px;
}
.benefits h2 { color: #fff; margin-top: 0; }
.benefits ul { margin: 0; line-height: 2; }
.benefits li::marker { color: #fff; }

.offerings { list-style: disc; }
.offerings h4 { font-weight: 400; margin: 4px 0; }
.offerings strong { font-weight: 700; }

.video {
  position: relative;
  padding-top: 56.25%;
  background: #111;
  margin-top: 18px;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.figure { text-align: center; margin: 8px 0 16px; }
.figure img { display: inline-block; }
.figure p { margin: 8px 0 0; color: var(--dark); }

.peace {
  background: #047391;
  color: #fff;
  margin-top: 10px;
}
.peace .container { padding: 64px 0 36px; }
.peace p {
  margin: 0;
  font-size: 24px;
  font-style: italic;
  line-height: 1.45;
}

/* Interior pages */

.team {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px 28px;
  align-items: center;
  max-width: 820px;
  margin: 22px auto;
}
.team img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
}
.team h2 { margin: 0 0 8px; }
.team h2 a { color: inherit; text-decoration: none; }
.team p { margin: 0; }

.portrait {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: block;
  margin: 20px auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0 28px;
}
.gallery img { width: 100%; height: auto; display: block; }

.books {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 8px 0 28px;
}
.books img {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  display: block;
}

.side-photo { width: 100%; height: auto; display: block; margin: 8px auto; }
.contact-photo { max-width: 300px; }

.link-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
.entry .link-row a {
  display: inline-block;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 8px 14px;
  font-weight: 600;
  text-decoration: none;
}
.entry .link-row a:hover { background: var(--accent); color: #fff; text-decoration: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 18px; }

.pdf-frame {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--line);
  margin-top: 16px;
  background: #fafafa;
}

/* Contact */

.form p { margin: 0 0 14px; }
.form label { display: block; font-weight: 600; color: #444; }
.programs-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}
.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid #ccc;
  background: #f1f1f1;
  font: inherit;
  color: #333;
}
.form textarea { min-height: 160px; resize: vertical; }
.checks { margin-top: 6px; font-weight: 400; }
.checks label {
  display: block;
  font-weight: 400;
  margin: 2px 0;
}
.form-note {
  background: #eef7f9;
  border: 1px solid #c5e3ea;
  padding: 12px 14px;
  margin-top: 8px;
}
.form-note[hidden] { display: none; }
.form-copy {
  white-space: pre-wrap;
  font-family: inherit;
  margin: 0;
}

/* Footer */

.site-footer {
  background: #1f1f1f;
  color: #cfcfcf;
  font-size: 13px;
  padding: 16px 0;
  margin-top: 30px;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ececec;
  color: #333;
  text-decoration: none;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.to-top:hover { background: var(--accent); color: #fff; }
.to-top[hidden] { display: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (min-width: 960px) {
  .banner { height: 400px; }
}

@media (max-width: 959px) {
  .menu-toggle { display: block; }
  .logo-row { padding: 12px 56px 8px 16px; }
  .nav { display: none; border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .menu { text-align: left; }
  .menu > li { display: block; border-top: 1px solid #eee; }
  .menu a {
    position: relative;
    font-size: 16px;
    padding: 12px 16px;
    white-space: normal;
  }
  .menu ul,
  .menu ul ul {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    min-width: 0;
    padding: 0 0 8px;
    background: #f7f7f7;
  }
  .menu ul a { white-space: normal; padding-left: 28px; }
  .menu ul ul a { padding-left: 42px; }
  .menu li.open > ul { display: block; }
  .menu .has-sub > a { padding-right: 48px; }
  .sub-toggle {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 46px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .sub-toggle::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    border: solid #777;
    border-width: 0 2px 2px 0;
    padding: 3px;
    transform: rotate(45deg);
  }
  .menu .has-sub.open > .sub-toggle::after { transform: rotate(-135deg); top: 20px; }
  .menu li { position: relative; }

  .banner { height: 180px; }
  .hero { display: none; }
  .hero-mobile { display: block; }

  .container { width: min(100% - 32px, var(--max)); }
  .skills,
  .split,
  .split.flip,
  .split.even,
  .btn-row,
  .team,
  .bar-inner,
  .books,
  .gallery {
    grid-template-columns: 1fr;
    display: grid;
  }
  .skills img { width: 150px; height: 150px; }
  .btn, .btn.block { display: block; width: 100%; }
  .bar-inner { display: block; }
  .crumbs.dark { display: block; margin-top: 6px; }
  .page-title-bar h1,
  .entry h1 { font-size: 22px; }
  .skills h1 { font-size: 24px; }
  .entry h2 { font-size: 20px; }
  .peace .container { padding: 36px 0 28px; }
  .peace p { font-size: 18px; }
  .books { grid-template-columns: repeat(2, 1fr); }
  .team { justify-items: center; text-align: left; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .figure img,
  .side-photo,
  .contact-photo { max-width: 100%; height: auto; }
}
