:root {
  --blue: #00a9e8;
  --blue-dark: #138ec5;
  --ink: #3f4750;
  --muted: #7b858e;
  --line: #e2e7eb;
  --cream: #fbf6f2;
  --brown: #4b3b26;
  --shadow: 0 14px 34px rgba(37, 57, 69, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
}

body {
  margin: 0;
  min-height: 100%;
  font-size: 16px;
  line-height: 1.62;
  background: #fff url("../images/home-start.jpg") center top / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.9);
}

a {
  color: var(--blue-dark);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--blue);
  text-decoration: underline;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 50;
  padding: 8px 12px;
  background: #fff;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 169, 232, 0.2);
  box-shadow: 0 2px 10px rgba(37, 57, 69, 0.12);
}

.header-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 34px;
  width: min(1040px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 320px;
  max-width: 52vw;
}

.brand img {
  display: block;
  width: 100%;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 26px;
  min-width: 0;
}

.site-nav a {
  color: #81868c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.is-active {
  color: #101820;
  text-decoration: none;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  justify-self: end;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 240ms ease, opacity 180ms ease, background-color 220ms ease;
  transform-origin: center center;
}

.menu-toggle[aria-expanded="true"] {
  background: #3f4750;
  border-color: #3f4750;
}

.menu-toggle[aria-expanded="true"] span:not(.sr-only) {
  background: #fff;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 980;
  display: block;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 320ms ease;
}

body.mobile-nav-open {
  overflow: hidden;
}

body.mobile-nav-open .mobile-nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero {
  --hero-image: url("../images/home-start.jpg");
  --hero-position: center center;
  position: relative;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)), var(--hero-image);
  background-position: var(--hero-position);
  background-size: cover;
  background-repeat: no-repeat;
}

.hero--psychotherapy,
.hero--vita,
.hero--costs {
  --hero-position: center top;
}

.hero--home {
  min-height: clamp(390px, 78vh, 746px);
}

.hero--subpage {
  height: clamp(320px, 42vw, 560px);
}

.hero--subpage::after {
  display: none;
}

.hero__title {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 40px));
  color: var(--ink);
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 300;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.site-main {
  background: rgba(255, 255, 255, 0.97);
}

.content-shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 70px;
}

.content-shell--home {
  padding-top: 54px;
}

.content-shell h1 {
  margin: 0 0 24px;
  color: #3e4650;
  font-size: clamp(29px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.6px;
}

.content-shell h2 {
  margin: 42px 0 20px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
}

.content-shell h3,
.content-shell h4,
.content-shell h5 {
  margin: 28px 0 14px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.page-subtitle {
  margin: -2px auto 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.45;
  text-align: center;
}

.content-shell--home > h1 {
  margin-bottom: 20px;
  font-size: clamp(28px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: 2px;
}

.content-body {
  color: #4f5d68;
  font-size: 16px;
  line-height: 1.58;
}

.content-body p {
  margin: 0 0 18px;
}

.content-body ul {
  margin: 0 0 24px 1.2em;
  padding: 0;
}

.content-body li {
  margin: 0 0 8px;
}

.content-body .panel-grid {
  margin: 28px 0;
}

.content-body .panel-grid-cell {
  min-width: 0;
}

.content-body .panel-row-style,
.content-body .panel-grid:not(.panel-no-style) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 36px;
  align-items: start;
}

.content-body .panel-has-style > .panel-row-style {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 34px max(20px, calc((100vw - 1040px) / 2));
  background: #fff;
}

.content-body .panel-has-style > .panel-row-style.panel-row-style-for-9-2,
.content-body .panel-row-style-for-9-2 {
  margin-top: 56px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--brown);
  color: #fff;
  grid-template-columns: minmax(280px, 525px) minmax(320px, 1fr);
  gap: 0;
  align-items: stretch;
}

.content-body .panel-row-style-for-9-2 .panel-grid-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-body .panel-row-style-for-9-2 .panel-grid-cell:first-child {
  justify-content: flex-end;
}

.content-body .panel-row-style-for-9-2 .panel-grid-cell:last-child {
  padding: 36px 40px;
  text-align: center;
}

.content-body .panel-row-style-for-9-2 h1,
.content-body .panel-row-style-for-9-2 h2,
.content-body .panel-row-style-for-9-2 h3,
.content-body .panel-row-style-for-9-2 p,
.content-body .panel-row-style-for-9-2 span,
.content-body .panel-row-style-for-9-2 a {
  color: #fff;
}

.content-body .panel-row-style-for-9-2 h1 {
  margin: 0 0 22px;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
}

.content-body .panel-row-style-for-9-2 h3 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 400;
}

.content-body .panel-row-style-for-9-2 p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.55;
}

.content-body .panel-row-style-for-9-2 img {
  display: block;
  width: min(525px, 100%);
  margin: 0;
  border: 0;
}

.content-body .aligncenter {
  display: block;
  margin: 0 auto 22px;
}

.content-body .vita-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.55;
}

.content-body .vita-table td {
  padding: 14px 18px;
  vertical-align: top;
  border-bottom: 1px solid #e6ecef;
}

.content-body .vita-table tr:nth-child(odd) {
  background: #f8fafb;
}

.content-body .vita-table__year {
  width: 190px;
  color: var(--blue-dark);
  font-weight: 700;
}

.costs-page .content-body img,
.content-page .content-body img[src*="vod-logo"] {
  max-width: 360px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 44px;
  align-items: stretch;
}

.contact-details {
  padding: 34px;
  background: #fff;
  border-top: 4px solid var(--blue);
  box-shadow: var(--shadow);
}

.contact-details h1 {
  margin-bottom: 20px;
  text-align: left;
}

.contact-details h2 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
}

.contact-details p {
  margin: 0 0 22px;
}

.map-optin {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #dfe8ed;
  box-shadow: var(--shadow);
}

.map-optin iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.map-optin.is-loaded iframe {
  opacity: 1;
}

.map-optin.is-loaded .map-optin__overlay,
.map-optin.is-loaded .map-optin__background {
  display: none;
}

.map-optin__background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.66)),
    radial-gradient(circle at 58% 46%, rgba(0, 169, 232, 0.35) 0 7px, transparent 8px),
    linear-gradient(35deg, transparent 0 43%, rgba(255, 255, 255, 0.9) 44% 47%, transparent 48%),
    linear-gradient(150deg, transparent 0 30%, rgba(255, 255, 255, 0.8) 31% 34%, transparent 35%),
    linear-gradient(80deg, transparent 0 56%, rgba(255, 255, 255, 0.86) 57% 60%, transparent 61%),
    #cfdde4;
}

.map-optin__background::before,
.map-optin__background::after {
  content: "";
  position: absolute;
  border-radius: 999px 999px 999px 0;
  transform: rotate(-45deg);
}

.map-optin__background::before {
  left: 57%;
  top: 41%;
  width: 22px;
  height: 22px;
  background: var(--blue);
}

.map-optin__background::after {
  left: 23%;
  top: 58%;
  width: 14px;
  height: 14px;
  background: rgba(71, 82, 91, 0.36);
}

.map-optin__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.48);
}

.map-optin__panel {
  max-width: 560px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.9);
  border-left: 4px solid var(--blue);
  box-shadow: var(--shadow);
}

.map-optin__panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--blue-dark);
  background: var(--blue-dark);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button:hover,
.button:focus {
  background: var(--blue);
  border-color: var(--blue);
}

.site-footer {
  background: #f7f9fa;
  border-top: 1px solid var(--line);
}

.footer-shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--muted);
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-separator {
  color: #a6b0b8;
}

.system-message {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px;
  background: #fff7da;
  border: 1px solid #f1df9a;
}

@media (min-width: 921px) {
  .mobile-nav-backdrop {
    display: none;
  }
}

@media (max-width: 920px) {
  body.mobile-nav-open .site-header {
    z-index: 1100;
  }

  .header-shell {
    grid-template-columns: auto auto;
    gap: 18px;
    min-height: 74px;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 1102;
  }

  .site-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1101;
    right: 0;
    left: auto;
    width: var(--mobile-nav-width, min(82vw, 340px));
    max-width: calc(100vw - 42px);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 94px 28px 34px;
    background: #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.22);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    pointer-events: none;
    transition: transform 360ms cubic-bezier(0.76, 0, 0.24, 1);
  }

  body.mobile-nav-from-left .site-nav {
    right: auto;
    left: 0;
    transform: translateX(-100%);
  }

  body.mobile-nav-open .site-nav,
  .site-nav.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .site-nav a {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid #ececec;
    color: #3f4750;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: normal;
  }

  .site-nav a:hover,
  .site-nav a:focus,
  .site-nav a.is-active {
    color: var(--blue-dark);
    background: transparent;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .content-body .panel-has-style > .panel-row-style.panel-row-style-for-9-2,
  .content-body .panel-row-style-for-9-2 {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 34px 20px;
  }

  .content-body .panel-row-style-for-9-2 .panel-grid-cell,
  .content-body .panel-row-style-for-9-2 .panel-grid-cell:first-child {
    justify-content: center;
    min-width: 0;
  }

  .content-body .panel-row-style-for-9-2 .panel-grid-cell:last-child {
    padding: 28px 0 0;
  }

  .content-body .panel-row-style-for-9-2 img {
    width: min(100%, 360px);
  }

  .content-body .panel-row-style-for-9-2 p,
  .content-body .panel-row-style-for-9-2 h1,
  .content-body .panel-row-style-for-9-2 h2,
  .content-body .panel-row-style-for-9-2 h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-shell,
  .content-shell,
  .footer-shell,
  .hero__title {
    width: min(100% - 28px, 1040px);
  }

  .brand {
    width: 250px;
    max-width: 68vw;
  }

  .hero--home {
    min-height: 360px;
  }

  .hero--subpage {
    height: clamp(240px, 52vw, 340px);
  }

  .content-shell {
    padding: 40px 0 54px;
  }

  .content-body {
    font-size: 16px;
  }

  .content-body .panel-has-style > .panel-row-style {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .content-body .vita-table,
  .content-body .vita-table tbody,
  .content-body .vita-table tr,
  .content-body .vita-table td {
    display: block;
    width: 100%;
  }

  .content-body .vita-table td {
    padding: 10px 12px;
  }

  .content-body .vita-table__year {
    padding-bottom: 0;
  }

  .contact-details {
    padding: 24px;
  }
}
