/* ==========================================================
   Oz Counseling Services - shared stylesheet
   Every page links to this one file.
   To change the look of the whole site, edit the colors and
   fonts in the :root block just below.
   ========================================================== */

:root {
  /* Colors (taken from the misty forest photo) */
  --fog:      #f4f6f3;  /* page background */
  --paper:    #ffffff;  /* cards */
  --lichen:   #dde5dc;  /* soft green band */
  --mist:     #5f7d7e;  /* muted blue-green, secondary text and lines */
  --spruce:   #22383a;  /* deep green, headings and main text */
  --heather:  #7b5873;  /* soft plum, links and buttons */
  --heather-dark: #5f4259;

  /* Fonts */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --page-width: 1120px;
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  background: var(--fog);
  color: var(--spruce);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.1em; max-width: 68ch; }

a { color: var(--heather); text-underline-offset: 3px; }
a:hover { color: var(--heather-dark); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--heather);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--page-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); padding: 10px 16px; z-index: 10;
}
.skip-link:focus { left: 8px; top: 8px; }

.button {
  display: inline-block;
  background: var(--heather);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8em 1.5em;
  border-radius: 999px;
}
.button:hover { background: var(--heather-dark); color: #fff; }

/* ---------- Header and menu ---------- */
.site-header { background: var(--fog); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 22px;
  padding-bottom: 18px;
}
.site-name {
  font-family: var(--display);
  font-size: 1.55rem;
  color: var(--spruce);
  text-decoration: none;
}
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 26px;
}
.site-nav a {
  color: var(--spruce);
  text-decoration: none;
  font-size: 1rem;
  padding: 6px 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--heather); color: var(--spruce); }

/* ---------- Home page opening photo ---------- */
.hero { position: relative; }
.hero img {
  width: 100%;
  height: clamp(460px, 78vh, 760px);
  object-fit: cover;
  object-position: center 60%;
}
.hero::before {            /* keeps the words readable over the fog */
  content: "";
  position: absolute; inset: 0 0 30% 0;
  background: linear-gradient(to bottom, rgba(244,246,243,0.92), rgba(244,246,243,0.7) 55%, rgba(244,246,243,0));
}
.hero-text {
  position: absolute; inset: 0;
  padding-top: clamp(28px, 7vh, 80px);
}
.hero-text h1 { max-width: 13em; }
.hero-text p {
  font-size: 1.2rem;
  max-width: 34ch;
  margin-bottom: 1.4em;
}

/* ---------- Page sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-lichen { background: var(--lichen); }
.section-intro { max-width: 46rem; margin-bottom: 40px; }

.welcome { display: grid; gap: 24px 64px; }
.welcome h2 { max-width: 14em; }
@media (min-width: 820px) {
  .welcome { grid-template-columns: 5fr 6fr; align-items: start; }
}

/* ---------- Services cards ---------- */
.cards {
  display: grid;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
@media (min-width: 620px)  { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px)  { .cards { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  position: relative;
  background: var(--paper);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: 0.35em; }
.card p { font-size: 1rem; color: #3d5355; margin-bottom: 1em; }
.card a {
  margin-top: auto;
  font-weight: 600;
  text-decoration: underline;
}
.card a::after {            /* makes the whole card clickable */
  content: ""; position: absolute; inset: 0;
}
.card:hover { box-shadow: 0 0 0 2px var(--mist); }

/* The first card runs the full width with the photo beside the words */
@media (min-width: 620px) {
  .card-wide { grid-column: 1 / -1; flex-direction: row; }
  .card-wide img { width: 55%; aspect-ratio: auto; height: 100%; min-height: 300px; }
  .card-wide .card-body { justify-content: center; padding: 36px 40px; }
  .card-wide h3 { font-size: 1.9rem; }
  .card-wide a { margin-top: 0; }
}

/* ---------- About me ---------- */
.about { display: grid; gap: 32px 64px; align-items: center; }
.about img {
  width: 100%; max-width: 380px;
  aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 6px;
  background: var(--lichen);
}
@media (min-width: 820px) { .about { grid-template-columns: 380px 1fr; } }
.credentials { color: var(--mist); font-size: 1rem; }

/* ---------- Getting started and fees ---------- */
.two-up { display: grid; gap: 40px 64px; }
@media (min-width: 820px) { .two-up { grid-template-columns: 1fr 1fr; } }

.steps { margin: 0 0 1.4em; padding-left: 1.3em; }
.steps li { margin-bottom: 0.7em; padding-left: 0.3em; }
.steps li::marker { font-family: var(--display); font-size: 1.2em; color: var(--mist); }

.fees { margin: 0 0 1.2em; }
.fees div { display: flex; justify-content: space-between; gap: 16px;
            padding: 10px 0; border-bottom: 1px solid rgba(34,56,58,0.2); }
.fees dt { margin: 0; }
.fees dd { margin: 0; font-weight: 600; }

.plain-list { list-style: none; margin: 0 0 1.2em; padding: 0; columns: 2; column-gap: 32px; }
.plain-list li { padding: 3px 0; }

/* ---------- Closing photo band ---------- */
.closing { position: relative; color: #fff; text-align: center; }
.closing img { width: 100%; height: clamp(360px, 55vh, 520px); object-fit: cover; }
.closing::before { content: ""; position: absolute; inset: 0; background: rgba(34,56,58,0.55); }
.closing-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 var(--gutter);
}
.closing-text p { max-width: 40ch; font-size: 1.15rem; }
.closing .button { background: #fff; color: var(--spruce); }
.closing .button:hover { background: var(--lichen); color: var(--spruce); }

/* ---------- Footer ---------- */
.site-footer { background: var(--spruce); color: #dfe7e2; font-size: 0.97rem; }
.site-footer .wrap {
  display: grid; gap: 28px 48px;
  padding-top: 48px; padding-bottom: 36px;
}
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 2fr; } }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: 1.25rem; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 2px 0; }
.site-footer p { margin-bottom: 0.6em; }
.footer-note {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  color: #b9c7c2;
  font-size: 0.9rem;
}
.footer-note p { max-width: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ==========================================================
   Added for the inside pages
   ========================================================== */

/* ---------- Page title band (top of every inside page) ---------- */
.page-head { background: var(--lichen); padding: clamp(40px, 7vw, 80px) 0; }
.page-head .wrap { display: grid; gap: 32px 56px; align-items: center; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 0.3em; }
.page-head .lead { font-size: 1.2rem; margin: 0; max-width: 36ch; }
.page-head img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
@media (min-width: 820px) { .page-head.has-photo .wrap { grid-template-columns: 1fr 1fr; } }

/* ---------- Text pages ---------- */
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 1.7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose ul:not(.plain-list), .prose ol { max-width: 68ch; margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.35em; }
.prose .fees { max-width: 34rem; }
.prose .plain-list { max-width: 34rem; }
.prose ul.credentials-list:not(.plain-list) { max-width: none; }

/* Yellow notes marking text you still need to write. Delete each one when done. */
.todo {
  background: #fff6d6;
  border-left: 4px solid #d9a400;
  padding: 12px 16px;
  font-size: 0.97rem;
}

/* ---------- Contact band ---------- */
.cta { text-align: center; }
.cta p { margin-left: auto; margin-right: auto; max-width: 46ch; }
.cta .button { margin-top: 0.4em; }

/* ---------- Home page: three links to the other pages ---------- */
.doors { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 48px; }
@media (min-width: 760px) { .doors { grid-template-columns: 1fr 1fr 1fr; } }
.doors li { border-top: 2px solid var(--mist); padding-top: 18px; }
.doors h2 { font-size: 1.7rem; margin-bottom: 0.25em; }
.doors a { color: var(--spruce); }
.doors a:hover { color: var(--heather); }
.doors p { margin: 0; }

/* ---------- Other services list ---------- */
.related { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.related a {
  display: inline-block; padding: 8px 16px;
  border: 1px solid var(--mist); border-radius: 999px;
  text-decoration: none; color: var(--spruce); background: var(--paper);
}
.related a:hover { border-color: var(--heather); color: var(--heather); }

/* ---------- Psychology Today badge ---------- */
.pt-badge { display: inline-block; margin-top: 6px; }
.pt-badge img { width: 200px; max-width: 100%; }

/* ---------- Plain-text email address under the email buttons ---------- */
.email-plain { font-size: 0.97rem; margin: 0.9em 0 0; user-select: all; }
.cta .email-plain { margin-left: auto; margin-right: auto; }

/* Text read by Google and screen readers but hidden on screen */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Heading above the services cards on the Services page */
.cards-heading { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-bottom: 28px; }

/* ---------- Email menu (opened by js/email-menu.js) ---------- */
.email-menu {
  border: 0;
  border-radius: 8px;
  padding: 28px 28px 22px;
  width: min(92vw, 380px);
  background: var(--paper);
  color: var(--spruce);
  box-shadow: 0 12px 40px rgba(34, 56, 58, 0.25);
}
.email-menu::backdrop { background: rgba(34, 56, 58, 0.45); }
.email-menu h2 { font-size: 1.6rem; margin: 0 0 0.15em; }
.email-menu-address { color: var(--mist); margin: 0 0 18px; }
.email-menu-options { display: grid; gap: 10px; }
.email-menu-option {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--spruce);
  background: var(--fog);
  border: 1px solid var(--lichen);
  border-radius: 6px;
  padding: 12px 16px;
  text-decoration: none;
  cursor: pointer;
}
.email-menu-option:hover { border-color: var(--heather); color: var(--heather); }
.email-menu-option:focus-visible { outline: 3px solid var(--heather); outline-offset: 2px; }
.email-menu-status { min-height: 1.4em; margin: 12px 0 0; font-size: 0.95rem; color: var(--heather-dark); }
.email-menu-close {
  margin-top: 6px;
  font: inherit;
  background: none;
  border: 0;
  color: var(--mist);
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
}
