/* =============================================================================
   SPECIALIZATIONS: service pages (/specializations/{slug}) and hub (/specializations),
   plus the shared visible breadcrumb and the menu's "Life Stages" group.
   Built on the tokens in styles.css :root. Deliberately different from the Life Stage
   layout (full-bleed photo hero + stacked image strips): a split hero with the therapist,
   a calm reading column, a therapist card, a card grid, visible FAQs and a dark closing band.
   Loaded after styles.css by includes/metatags-icons-css.php (versioned by file time).
   ============================================================================= */

/* ---------- Keep the copy's capitalisation (the site default is text-transform: capitalize) ---------- */
.svc-page h1,
.svc-page h2,
.svc-page h3,
.svc-page h4,
.svc-page .superbutton {
  text-transform: none;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  margin: 0 0 2.4rem;
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  font-size: 1.4rem;
  letter-spacing: .04em;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin: 0;
  padding: 0;
  color: var(--medium);
}
.breadcrumb li + li::before {
  content: "/";
  color: var(--main);
}
.breadcrumb a {
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--animate);
}
.breadcrumb a:hover {
  border-bottom-color: var(--main);
}

/* ---------- Reading column ---------- */
.svc-prose {
  max-width: 760px;
}
.svc-prose h2 {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  margin-bottom: 2.4rem;
}
.svc-prose h3 {
  font-size: clamp(2.1rem, 3.5vw, 2.6rem);
  margin: 3.2rem 0 1.6rem;
}
.svc-prose p,
.svc-prose li {
  font-size: 1.8rem;
  line-height: 1.7;
}
.svc-prose ul {
  list-style: none;
  margin: 0 0 2.4rem;
  padding: 0;
}
.svc-prose ul li {
  position: relative;
  padding-left: 2.8rem;
  margin: 0 0 1.2rem;
}
.svc-prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--second);
  transform: translateY(-50%);
}

/* ---------- Hero ---------- */
.svc-hero {
  background: var(--light-light);
  padding-block: 4.8rem;
}
.svc-hero-inner {
  display: grid;
  gap: 4rem;
  align-items: center;
}
.svc-hero h1 {
  margin-bottom: 2.4rem;
}
.svc-lede {
  font-style: italic;
  font-size: clamp(2rem, 3vw, 2.4rem);
  line-height: 1.5;
  color: var(--dark);
  margin: 0;
  max-width: 46ch;
}
.svc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem 3.2rem;
  margin-top: 3.2rem;
}
.svc-actions .superbutton {
  margin: 0;
}
.svc-hero-portrait {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 320px;
}
.svc-hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 999px 999px 2.4rem 2.4rem;
  box-shadow: var(--shadow);
}
.svc-hero-portrait figcaption {
  margin-top: 1.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: 1.5rem;
  color: var(--medium);
}
.svc-hero-portrait figcaption strong {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--dark);
}
@media (min-width: 960px) {
  .svc-hero {
    padding-block: 8rem;
  }
  .svc-hero-inner {
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
    gap: 8rem;
  }
  .svc-hero-portrait {
    justify-self: end;
  }
}

/* ---------- Introduction and sections ---------- */
.svc-intro .svc-prose > p:first-child {
  font-size: 2rem;
}
.svc-section {
  border-top: 1px solid hsla(280 18% 17% / 0.08);
}
.svc-section-alt {
  background: var(--light-light);
}
.svc-section .svc-prose > h2:first-child {
  position: relative;
  padding-top: 2.4rem;
}
.svc-section .svc-prose > h2:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6.4rem;
  height: .3rem;
  border-radius: 2px;
  background: var(--main);
}

/* ---------- Meet your therapist ---------- */
.svc-therapist {
  background: var(--light);
}
.svc-therapist-card {
  display: grid;
  gap: 3.2rem;
  align-items: start;
  max-width: 1024px;
  padding: 3.2rem;
  border-radius: 2.4rem;
  background: hsl(0 0% 100%);
  box-shadow: var(--shadow);
}
.svc-therapist-photo img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 1.6rem;
}
.svc-therapist-body h2 {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  margin-bottom: 1.6rem;
}
.svc-therapist-body h3 {
  margin: 0 0 2rem;
  font-family: var(--font);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--main);
}
.svc-therapist-body .editable_content p {
  font-size: 1.7rem;
  line-height: 1.7;
}
.svc-therapist-body .svc-actions {
  margin-top: 2.4rem;
}
@media (min-width: 768px) {
  .svc-therapist-card {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 4.8rem;
    padding: 4.8rem;
  }
}

/* ---------- Related support cards ---------- */
.svc-related h2 {
  text-align: center;
}
.svc-related-grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 1080px;
  margin: 0 auto;
}
.svc-related-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.6rem;
  background: hsl(0 0% 100%);
  box-shadow: var(--shadow);
  transition: var(--animate);
}
.svc-related-card:hover {
  transform: translateY(-4px);
}
.svc-related-img img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.svc-related-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.4rem;
}
.svc-related-type {
  align-self: flex-start;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  background: var(--light);
  color: var(--dark);
  font-size: 1.2rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.svc-related-body h3 {
  margin: 0;
  font-size: 2.2rem;
}
.svc-related-body h3 a {
  color: var(--dark);
  text-decoration: none;
}
.svc-related-body p {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.6;
}
.svc-related-body .text-link {
  margin-top: auto;
  padding-top: .8rem;
}

/* ---------- FAQs (always visible: no click needed to read an answer) ---------- */
.svc-faqs {
  background: var(--light-light);
}
.svc-faq {
  padding: 2.4rem 0;
  border-top: 1px solid hsla(280 18% 17% / 0.12);
}
.svc-faq:last-child {
  border-bottom: 1px solid hsla(280 18% 17% / 0.12);
}
.svc-faq h3 {
  margin: 0 0 1.2rem;
  font-size: clamp(2rem, 3vw, 2.4rem);
}
.svc-faq .editable_content p:last-child {
  margin-bottom: 0;
}

/* ---------- Closing call to action ---------- */
.svc-cta {
  text-align: center;
}
.svc-cta .svc-prose h2,
.svc-cta .svc-prose h3,
.svc-cta .svc-prose p {
  color: hsl(0 0% 100%);
}
.svc-cta .svc-actions {
  justify-content: center;
}

/* ---------- Hub ---------- */
.svc-hub-grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.svc-hub-card {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 3.2rem;
  border-top: .4rem solid var(--second);
  border-radius: 1.6rem;
  background: hsl(0 0% 100%);
  box-shadow: var(--shadow);
}
.svc-hub-card h2 {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 2.6rem);
}
.svc-hub-card h2 a {
  color: var(--dark);
  text-decoration: none;
}
.svc-hub-card p {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.6;
}
.svc-hub-card-foot {
  margin-top: auto;
  padding-top: 1.6rem;
  border-top: 1px solid hsla(280 18% 17% / 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.svc-hub-therapist {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  color: var(--medium);
}
.svc-hub-therapist img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}
.svc-pathway-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 2.4rem 0 3.2rem;
}
.svc-prose .svc-pathway-list li {
  margin: 0;
  padding: 0;
}
.svc-prose .svc-pathway-list li::before {
  display: none;
}
.svc-pathway-list a {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 999px;
  background: hsl(0 0% 100%);
  box-shadow: var(--shadow);
  color: var(--dark);
  font-size: 1.6rem;
  text-decoration: none;
  transition: var(--animate);
}
.svc-pathway-list a:hover {
  background: var(--second);
}

/* ---------- Menu: the "Life Stages" group inside the Specializations dropdown ---------- */
.jqueryslidemenu ul li ul li.nav-group-label {
  border-top: 1px solid hsla(0 0% 100% / 0.35);
}
.jqueryslidemenu ul li ul li.nav-group-label > a,
.jqueryslidemenu ul li:hover ul li.nav-group-label > a {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.jqueryslidemenu ul li ul li.nav-group-item > a,
.jqueryslidemenu ul li:hover ul li.nav-group-item > a {
  padding-left: 3.2rem;
}
.mm-menu li.nav-group-label > a {
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mm-menu li.nav-group-item > a {
  padding-left: 4rem;
}

/* ---------- Life Stages: breadcrumb inside the existing heroes ---------- */
.spec-intro .breadcrumb,
.inner-intro .breadcrumb {
  margin-bottom: 1.6rem;
}

/* ---------- Life Stages hub: "Looking for Support With Something More Specific?" ---------- */
.ls-pathway .svc-prose {
  text-align: center;
}
.ls-pathway .svc-prose ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin: 2.4rem 0 0;
}
.ls-pathway .svc-prose ul li {
  margin: 0;
  padding: 0;
}
.ls-pathway .svc-prose ul li::before {
  display: none;
}
.ls-pathway .svc-prose ul li a {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border-radius: 999px;
  background: hsl(0 0% 100%);
  box-shadow: var(--shadow);
  color: var(--dark);
  font-size: 1.6rem;
  text-decoration: none;
  transition: var(--animate);
}
.ls-pathway .svc-prose ul li a:hover {
  background: var(--second);
}

/* ---------- Article: "Looking for Support With This?" (Article -> Specialization -> Therapist) ---------- */
.article-support {
  margin: 32px 0 0;
  padding: 24px 28px;
  border-left: 4px solid var(--second);
  border-radius: 12px;
  background: var(--light-light);
}
.article-support h2 {
  margin: 0 0 12px;
  font-size: 2.2rem;
  text-transform: none;
}
.article-support ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-support li {
  margin: 0 0 8px;
  font-size: 1.7rem;
  line-height: 1.5;
}
.article-support li > a {
  font-weight: 700;
}
.article-support li span {
  color: var(--medium);
}

/* ---------- Resources: link back to the related service page ---------- */
.resource-related {
  font-size: 1.4rem;
  line-height: 1.5;
}
