/* Revivify Counselling • self-hosted version. All fonts and artwork are local. */
@font-face {
  font-family: Amaranth;
  src: url("fonts/amaranth.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("fonts/montserrat.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("fonts/source-sans-pro.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #f3f0e0;
  --ink: #50555c;
  --heading: #333;
  --slate: #556677;
  --green: #31e941;
  --body: "Gotham Rounded", Helvetica, sans-serif;
  --title: Amaranth, sans-serif;
  --subhead: Montserrat, Helvetica, sans-serif;
  --title-size: 44px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.45 var(--body);
  background: white;
}
h1,
h2,
h3,
p,
figure,
ul,
fieldset,
legend {
  margin: 0;
  padding: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
h2 {
  font: 400 var(--title-size)/1.45 var(--title);
  color: var(--heading);
}
h3 {
  font: 400 24px/1.45 var(--subhead);
  color: var(--heading);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button {
  border: 0;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: rgba(85, 102, 119, 0.15);
}
:focus-visible {
  outline: 3px solid #266c9a;
  outline-offset: 3px;
}
#main-content:focus,
#main-content section:focus {
  outline: none;
}
[hidden] {
  display: none !important;
}
.sr-only,
.icon-definitions {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 10px;
  top: 10px;
  z-index: 120;
  background: white;
  color: #222;
  padding: 10px 16px;
  transform: translateY(-165%);
}
.skip-link:focus {
  transform: none;
}
/* Left-hand dot navigation, with the original section names on hover/focus. */
.section-nav {
  position: fixed;
  z-index: 20;
  top: calc(50% + 2px);
  left: 10px;
  transform: translateY(-50%);
}
.section-nav ul {
  list-style: none;
}
.section-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  text-decoration: none;
}
.section-nav a::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  border: 3px solid transparent;
}
.section-nav a[aria-current]::before {
  background: #fff;
  border-color: #171717;
}
.section-nav span {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  background: #000;
  color: white;
  width: max-content;
  max-width: 158px;
  padding: 3px 8px;
  border-radius: 99px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.section-nav a:is(:hover, :focus-visible) span {
  opacity: 1;
  visibility: visible;
}
.menu-toggle,
.menu-backdrop,
.mobile-actions {
  display: none;
}
/* Welcome. The scheduled landscape sits behind the practice’s full-colour sign mark. */
.hero {
  overflow: hidden;
  --splash-photo: var(--rv-scene-wide);
  background: var(--rv-shade), var(--splash-photo) center center / cover no-repeat;
  background-color: #213c31;
  text-align: center;
  color: white;
  padding: clamp(28px,3.3vw,48px) 0 22px;
}
.hero-inner {
  width: 92%;
  margin: 0 auto;
}
.hero h1 {
  line-height: 0;
}
.hero-phone {
  position: relative;
  font: 400 var(--title-size)/1.45 var(--title);
}
.hero-phone a {
  text-shadow: 0 1px 3px rgba(4,18,12,.83);
  text-decoration: none;
}
.hero-phone a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.profile-credit {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font:
    400 12px/1.2 "Source Sans Pro",
    sans-serif;
}
.profile-credit a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-underline-offset: 2px;
  text-shadow: 0 1px 3px #222;
}
/* About and Revivify: wide and standard-width 7:5 columns respectively. */
.paper {
  background: var(--paper);
  text-align: center;
}
.about {
  min-height: 100vh;
  padding: 10px 0 11px;
}
.section-inner {
  width: 98%;
  margin: 0 auto;
}
.section-inner > h2 {
  margin-bottom: 20px;
}
.two-columns {
  display: grid;
  grid-template-columns: minmax(0, calc(58.333333% - 12.5px)) minmax(0, 1fr);
  gap: 30px;
}
.two-columns > * {
  min-width: 0;
}
.portrait {
  width: 596px;
  margin: 0 auto;
}
/* Keep the supplied Psychology Today portrait sharp and in its original 4:5 framing. */
.portrait--profile { width: 320px; max-width: 100%; height: auto; }
figcaption {
  margin-top: 20px;
}
.bio-copy {
  margin-top: 20px;
}
.bio-copy > p:first-child,
.bio-copy > p:last-child,
.meaning-copy {
  text-align: left;
}
.bio-copy ul {
  list-style: disc;
  padding-left: 32px;
  margin: 16px 0;
}
.bio-copy strong,
.meaning-copy strong {
  font-weight: 700;
}
.meaning {
  padding: 10px 0 calc(11px + 2.9em);
}
.meaning .section-inner {
  width: min(92.2%, 1176px);
}
.crossword {
  width: 100%;
  margin: 0 auto;
}
/* Therapy Descriptions */
.therapies {
  padding: 80px 0;
  background: #fff;
  text-align: center;
}
.therapy-inner {
  width: min(86%, 1020px);
  margin: auto;
}
.therapy-inner > h2,
.office-heading h2 {
  line-height: 1.2;
}
.therapy-inner > h2 {
  margin-bottom: 35px;
}
.therapy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.therapy-card {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 50px 40px;
  background-position: center;
  background-size: cover;
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.therapy-card--trauma {
  background-color: #516f52;
  background-image: radial-gradient(ellipse at 15% 4%,#6e955d,transparent 56%), radial-gradient(ellipse at 78% 54%,#796766,transparent 63%), linear-gradient(157deg,#4b7051 8%,#44534b 60%,#243d31);
}
.therapy-card--solution {
  background-color: #276086;
  background-image: radial-gradient(ellipse at 18% 0%,#6ca3a0,transparent 67%), linear-gradient(157deg,#3d7c88,#1e5e7c 56%,#123956);
}
.therapy-card h3 {
  color: inherit;
  margin-bottom: 5px;
}
/* The two existing office sections. */
.office {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 100vh;
  background: var(--paper);
  color: #555;
}
.office-cover {
  position: relative;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 50px 70px;
  background-position: center;
  background-repeat: no-repeat;
}
.office-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.39);
}
.office--simcoe .office-cover {
  background: #f3f0e0;
}
.office--simcoe .office-cover::before { content: none; }
.office--simcoe .office-heading { color: #254a38; margin: 0; }
.office--simcoe .office-heading p { color: #3a5148; }
.office-sign { display: block; width: clamp(180px, 20vw, 285px); height: auto; margin: 0 auto 24px; }
@media (max-width: 727px) {
  .office-sign { width: clamp(110px, 30vw, 146px); margin-bottom: 12px; }
}
.office--brantford .office-cover { isolation: isolate; background-color: #274848; }
.rv-office-landscape { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.rv-office-landscape img { width: 100%; height: 100%; object-fit: cover; }
.office--brantford .office-cover::before { z-index: 1; }
.office--brantford .office-heading { z-index: 2; }
.office-heading {
  position: relative;
  margin-bottom: 30px;
  color: white;
}
.office-heading h2 {
  color: inherit;
}
.office-heading p {
  margin-top: 15px;
  font: 400 20px/1.45 var(--subhead);
}
.office-side {
  display: grid;
  align-items: center;
  padding: 80px 70px;
  background: #fff;
}
.office-inner {
  width: 94%;
  max-width: 380px;
  margin-inline: auto;
}
.office address {
  font-style: normal;
}
.details-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.details-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow-wrap: anywhere;
}
.icon {
  width: 15px;
  height: 18px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.details-list .icon {
  margin-top: 2px;
}
.office-address {
  max-width: 250px;
}
.details-list a {
  text-decoration: none;
}
.details-list a:hover {
  text-decoration: underline;
}
.map-box {
  position: relative;
  isolation: isolate;
  width: calc(100% - 30px);
  height: 250px;
  margin: 20px 0 26px;
  background: #efefeb;
  overflow: hidden;
  font-family: Arial, sans-serif;
}
.map-box--simcoe {
  height: 302px;
  margin-top: 25px;
  margin-bottom: 34px;
}
.map-preview,
.map-box iframe {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.map-box iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.map-external,
.map-load,
.map-close,
.map-credit {
  position: absolute;
  z-index: 2;
  background: #fff;
  font:
    400 12px/1.25 Arial,
    sans-serif;
  text-decoration: none;
  color: #286b9c;
}
.map-external,
.map-load,
.map-close {
  padding: 7px 9px;
  border-radius: 2px;
  box-shadow: 0 1px 3px #0002;
}
.map-external {
  top: 8px;
  left: 8px;
}
.map-load,
.map-close {
  bottom: 20px;
  left: 8px;
}
.map-close {
  bottom: 5px;
}
.map-credit {
  right: 0;
  bottom: 0;
  font-size: 9px;
  padding: 1px 3px;
  color: #454545;
  background: rgba(255, 255, 255, 0.92);
}
.map-box a:hover,
.map-box button:hover {
  text-decoration: underline;
}
.map-loaded .map-credit,
.map-loaded .map-preview {
  visibility: hidden;
}
.page-footer {
  padding: 82px 20px 135px;
  background: var(--paper);
  text-align: center;
  color: #686965;
  min-height: 320px;
}
.share-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.share-links a {
  font:
    bold 12px/1 Arial,
    sans-serif;
  padding: 4px 11px;
  color: #fff;
  text-decoration: none;
}
.share-facebook {
  background: #1877f2;
  border-radius: 4px;
}
.share-x {
  background: #111;
  border-radius: 12px;
}
.policy-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  text-underline-offset: 2px;
}
@media (max-width: 1023px) {
  :root {
    --title-size: 36px;
  }
  .about .section-inner {
    width: 88.5%;
  }
  .therapy-inner {
    width: calc(82.8% - 58px);
  }
  .office-cover {
    padding-inline: 35px;
  }
  .office-side {
    padding-inline: 35px;
  }
  .office-inner {
    width: 92%;
  }
  .map-box--simcoe {
    height: 250px;
    margin: 20px 0 26px;
  }
}
@media (min-width: 728px) and (max-width: 900px) {
  .therapy-card {
    padding: 34px 15px;
  }
  .therapy-grid {
    gap: 6px;
  }
}
@media (max-width: 727px) {
  /* Without JavaScript the same navigation remains visible and usable above the page. */
  .section-nav {
    position: static;
    transform: none;
    background: white;
  }
  .section-nav ul {
    padding: 12px 24px;
  }
  .section-nav a {
    display: block;
    width: 100%;
    height: auto;
    padding: 15px 30px;
    line-height: 1;
  }
  .section-nav li + li {
    border-top: 1px solid #eee;
  }
  .section-nav a::before {
    display: none;
  }
  .section-nav span {
    position: static;
    display: block;
    transform: none;
    max-width: none;
    width: auto;
    color: #666;
    background: transparent;
    font: 400 16px/1 var(--body);
    text-align: left;
    text-transform: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
  }
  .section-nav a[aria-current] span {
    font-weight: 700;
    color: #333;
  }
  .enhanced .section-nav {
    display: none;
    position: fixed;
    inset: 0 0 auto;
    z-index: 51;
    max-height: calc(100dvh - 36px);
    overflow: auto;
  }
  .enhanced .section-nav ul {
    padding: 44px 24px 0;
  }
  .enhanced.menu-open .section-nav {
    display: block;
  }
  .menu-open {
    overflow: hidden;
  }
  .menu-toggle {
    position: fixed;
    z-index: 52;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    top: max(10px, env(safe-area-inset-top));
    left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: var(--slate);
    box-shadow: 0 1px 5px #0003;
  }
  .menu-toggle span {
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: white;
    transition: transform 0.16s ease;
  }
  .menu-open .menu-toggle {
    background: transparent;
    box-shadow: none;
  }
  .menu-open .menu-toggle span {
    background: #687078;
  }
  .menu-open .menu-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .menu-open .menu-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }
  .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 50;
  }
  .mobile-actions {
    position: fixed;
    z-index: 22;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: stretch;
    background: #fff;
    box-shadow: 0 -1px 6px #0001;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-actions a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 4px 3px;
    font-size: 14px;
    color: #636972;
    text-decoration: none;
  }
  .mobile-actions .quick-book { background: #244b3b; color: #fff; font-weight: 700; }
  .mobile-actions a:focus-visible { outline-offset: -4px; }
  .mobile-actions .icon {
    width: 18px;
    height: 20px;
  }
  .hero {
    --splash-photo: var(--rv-scene-phone);
    padding-top: 50px;
    padding-bottom: 40px;
  }
  .hero-inner {
    width: 88.5%;
  }
  .about {
    min-height: 0;
    padding: 50px 0 51px;
  }
  .two-columns {
    display: flex;
    flex-direction: column;
    margin: 0;
    gap: 20px;
  }
  .two-columns > * {
    padding: 0;
  }
  .meaning {
    padding: 50px 0 calc(51px + 2.9em);
  }
  .meaning .section-inner {
    width: 92.45%;
  }
  .therapies {
    padding: 40px 0;
  }
  .therapy-inner {
    width: calc(82.8% - 46.4px);
  }
  .therapy-inner > h2 {
    margin-bottom: 33px;
  }
  .therapy-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .therapy-card {
    padding: 34px 15px;
  }
  .office {
    display: block;
    min-height: 0;
    padding: 40px 0;
  }
  .office-cover {
    padding: 40px 28px;
    min-height: clamp(246px, 67.2vw, 320px);
  }
  .office-heading {
    margin-bottom: 10px;
  }
  .office-side {
    padding: 40px 28px;
  }
  .office-address {
    max-width: 100%;
  }
  .map-box,
  .map-box--simcoe {
    width: 100%;
    height: 250px;
    margin: 20px 0 30px;
  }
  .page-footer {
    min-height: 180px;
    padding: 42px 20px calc(64px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
@media print {
  .site-navigation,
  .mobile-actions,
  .skip-link,
  .share-links,
  .map-load,
  .map-close,
  .map-external,
  .policy-link {
    display: none !important;
  }
  .hero,
  .office-cover,
  .therapy-card {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .about,
  .office {
    min-height: 0;
  }
  .page-footer {
    padding: 24px;
    min-height: 0;
  }
  .office-side,
  .therapies {
    padding: 30px;
  }
  .office {
    break-inside: avoid;
  }
}
