/* Scoped tweaks for service pages only.
   Goal: keep Webflow's styling, align copy with the hero start, and even out spacing. */

/* Match services page typography on all service pages */
body.service-page {
  color: var(--paragraph, #2b2b2b);
  font-family: "Manrope", "Open Sans", "Lato", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

body.service-page h1,
body.service-page h2,
body.service-page h3 {
  color: var(--text-dark, #0f1720);
  font-family: "Manrope", "Open Sans", "Lato", sans-serif;
}

/* Match hero/title treatment used on About/Home */
body.service-page h1,
body.service-page .banner-animated-title {
  color: #fff;
}

body.service-page h2,
body.service-page .heading-7 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

body.service-page p,
body.service-page .paragraph-6,
body.service-page li {
  font-size: 18px;
  line-height: 1.65;
}

body.service-page ul {
  margin-top: 0;
  margin-bottom: 28px;
  padding-left: 22px;
}

body.service-page ul li + li {
  margin-top: 10px;
}

body.service-page .link-2 {
  font-weight: 600;
}

/* Keep service page content left-aligned (some Webflow heading classes center text). */
body.service-page .container-3,
body.service-page .container-3 h2,
body.service-page .container-3 p,
body.service-page .container-3 ul,
body.service-page .container-3 li {
  text-align: left;
}

/* Align hero/title with the same left start as the body copy */
body.service-page .pages-bigger-banner {
  padding-left: 40px;
  padding-right: 40px;
}

body.service-page .banner-animated-title {
  text-align: left;
}

/* Widen the body content so it lines up with the hero start */
body.service-page .section .base-container {
  align-items: flex-start;
  padding-top: 0;
}

body.service-page .w-layout-blockcontainer.container-3 {
  max-width: 1100px;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

body.service-page .container-3 {
  margin-top: 0;
}

/* Consistent section spacing (normalize vertical rhythm). */
body.service-page .section {
  padding: 40px 40px;
}

body.service-page .section.light-background {
  margin-bottom: 0;
  padding-bottom: 40px;
}

/* Slightly tighter right under the hero banner */
body.service-page .pages-bigger-banner + .section {
  padding-top: 24px;
}

/* Reduce stacking gap between consecutive sections */
body.service-page .section + .section {
  padding-top: 28px;
}

/* Reusable booking button component */
.book-appointment-button {
  border: 1px solid var(--primary, #555457);
  background-color: var(--primary, #555457);
  color: var(--light-gray, #f9f9fa);
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: none;
  border-radius: 60px;
  margin-top: 12px;
  margin-bottom: 16px;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: "Manrope", "Open Sans", "Lato", sans-serif;
  vertical-align: baseline;
  box-sizing: border-box;
}

.book-appointment-button:hover {
  opacity: 0.9;
  background-color: var(--text-dark, #0e0e0e);
  border-color: var(--text-dark, #0e0e0e);
  color: var(--light-gray, #f9f9fa);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.book-appointment-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Fix button in contact page context - align with paragraph-5 padding */
.about-top-block-content .book-appointment-button {
  margin-top: 0;
  margin-bottom: 16px;
  margin-left: 60px;
  display: block;
  width: auto;
}

/* Mobile alignment for contact page button */
@media screen and (max-width: 991px) {
  .about-top-block-content .book-appointment-button {
    margin-left: 20px;
  }
}

@media screen and (max-width: 767px) {
  .about-top-block-content .book-appointment-button {
    margin-left: 10px;
  }
}

/* Fix button in paragraph contexts - ensure it doesn't break flow */
p + .book-appointment-button,
.paragraph-5 + .book-appointment-button,
.paragraph-6 + .book-appointment-button {
  margin-top: 12px;
  margin-bottom: 16px;
  display: inline-block;
}

/* Fix button inside accordion dropdowns */
.accordion-list-content .book-appointment-button {
  margin-top: 8px;
  margin-bottom: 12px;
  display: block;
  width: 100%;
}

/* Contact button - secondary style */
.contact-button {
  border: 1px solid var(--primary, #555457);
  background-color: transparent;
  color: var(--primary, #555457);
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: none;
  border-radius: 60px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  display: block;
  width: 100%;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: "Manrope", "Open Sans", "Lato", sans-serif;
  vertical-align: baseline;
  box-sizing: border-box;
  white-space: nowrap;
}

.contact-button:hover {
  background-color: var(--primary, #555457);
  color: var(--light-gray, #f9f9fa);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.contact-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Contact button in accordion dropdowns */
.accordion-list-content .contact-button {
  margin-top: 0;
  margin-bottom: 0;
}

/* Fix button in services section */
.section p .book-appointment-button {
  margin-left: 0;
  margin-right: 0;
}

/* Ensure button doesn't inherit paragraph padding */
.paragraph-5 + .book-appointment-button,
.paragraph-6 + .book-appointment-button {
  margin-left: 0;
}

/* Override for contact page - button should align with paragraph-5 padding */
.about-top-block-content .paragraph-5 + .book-appointment-button {
  margin-left: 60px !important;
}

@media screen and (max-width: 991px) {
  .about-top-block-content .paragraph-5 + .book-appointment-button {
    margin-left: 20px !important;
  }
}

@media screen and (max-width: 767px) {
  .about-top-block-content .paragraph-5 + .book-appointment-button {
    margin-left: 10px !important;
  }
}

/* Reset any inherited styles that might break button appearance */
.book-appointment-button {
  white-space: nowrap;
  word-spacing: normal;
}

/* Ensure button works in flex/grid contexts */
.about-top-block-content .book-appointment-button,
.home-session-list .book-appointment-button {
  align-self: flex-start;
}

/* Full width on mobile */
@media screen and (max-width: 767px) {
  .book-appointment-button {
    display: block;
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Contact page button should align with paragraph-5 padding on mobile */
  .about-top-block-content .book-appointment-button {
    width: auto;
    margin-left: 10px !important;
    text-align: left;
  }
}

/* ---------------------------
   Card layout for services
   --------------------------- */
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

.service-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  padding: 28px 26px;
  border: 1px solid #f0f0f3;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.services-card {
  padding: 26px 24px;
  gap: 12px;
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.07);
}

.services-card h3,
.services-card .heading-7,
.services-card .heading-13 {
  margin-top: 0;
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: -0.15px;
  font-size: 24px !important;
  line-height: 1.3;
}

.services-card p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--paragraph, #2b2b2b);
  flex: 1;
  margin-bottom: 0;
}

/* Align price boxes at the bottom of cards */
.services-card .price-box {
  margin-top: auto;
}

.service-hero-card {
  gap: 16px;
  padding: 32px 30px;
}

.service-info-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1.2;
}

/* Fix white text on light background for Service Area & Location card */
.service-info-card .heading-5,
.service-info-card h3.heading-5 {
  color: var(--text-dark, #0f1720) !important;
}

.service-info-card .paragraph-3 {
  color: var(--paragraph, #2b2b2b) !important;
}

/* Service location card cleanup */
.service-location-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-location-content .paragraph-3 {
  margin-bottom: 0;
}

.location-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.location-detail strong {
  color: var(--text-dark, #0f1720);
  font-weight: 700;
  margin-bottom: 4px;
}

.location-detail p {
  margin: 0;
  color: var(--paragraph, #2b2b2b);
  line-height: 1.6;
}

.service-card ul {
  margin: 0;
  padding-left: 20px;
}

.resources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resources-list li {
  margin: 0;
}

.service-card ul li + li {
  margin-top: 8px;
}

.service-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.service-meta {
  margin: 0;
  color: var(--paragraph, #2b2b2b);
}

.service-card .book-appointment-button {
  margin-top: 0;
  margin-bottom: 0;
}

.service-card .contact-button {
  display: inline-block;
  width: auto;
  padding-left: 22px;
  padding-right: 22px;
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.faq-item {
  padding: 18px 20px;
  border: 1px solid #f0f0f3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 38px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-question {
  font-weight: 700;
  color: var(--text-dark, #0f1720);
  margin: 0;
  line-height: 1.35;
  font-size: 18px;
}

.faq-answer {
  margin: 0;
  color: var(--paragraph, #2b2b2b);
  line-height: 1.6;
  font-size: 17px;
}

@media screen and (max-width: 767px) {
  .service-card {
    padding: 22px 20px;
  }

  .service-info-card h3 {
    font-size: 22px;
  }

  .service-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .service-card .contact-button,
  .service-card .book-appointment-button {
    width: 100%;
    text-align: center;
  }
}

/* ---------------------------
   Price box styling
   --------------------------- */
.price-box {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-box .price-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark, #0f1720);
  line-height: 1.2;
  font-family: "Manrope", "Open Sans", "Lato", sans-serif;
}

.price-box .price-duration {
  font-size: 16px;
  font-weight: 600;
  color: var(--paragraph, #2b2b2b);
  line-height: 1.4;
  font-family: "Manrope", "Open Sans", "Lato", sans-serif;
}

.price-box.multiple-prices {
  gap: 12px;
}

.price-box .price-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e9ecef;
}

.price-box .price-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.price-box .price-item .price-amount {
  font-size: 28px;
}

@media screen and (max-width: 767px) {
  .price-box .price-amount {
    font-size: 28px;
  }
  
  .price-box .price-item .price-amount {
    font-size: 24px;
  }

  /* Mobile fix: Allow hero titles to wrap instead of overflow */
  .banner-animated-title,
  .banner-animated-title.top,
  .banner-animated-title.bottom {
    white-space: normal !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  /* Mobile fix: Ensure buttons don't overflow viewport */
  .book-appointment-button,
  .contact-button {
    white-space: normal !important;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* Mobile fix: Override contact page button margin overrides */
  .about-top-block-content .book-appointment-button,
  .about-top-block-content .paragraph-5 + .book-appointment-button {
    margin-left: 10px !important;
    margin-right: 10px !important;
  }

  /* Mobile fix: Ensure two-column wrapper doesn't cause overflow */
  .two-column-wrapper {
    margin-left: 0;
    margin-right: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Mobile fix: Prevent horizontal scroll from any element */
  body {
    overflow-x: hidden;
  }

  .section,
  .base-container,
  .w-container {
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media screen and (max-width: 479px) {
  /* Extra small phones: Further reduce title size if needed */
  .banner-animated-title.top {
    font-size: 24px !important;
    line-height: 1.2em !important;
  }

  .banner-animated-title.bottom {
    font-size: 30px !important;
    line-height: 1.2em !important;
  }

  /* Extra small phones: Ensure buttons have full width for better UX */
  .book-appointment-button,
  .contact-button {
    width: 100%;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }

  /* Extra small phones: Reset contact page overrides */
  .about-top-block-content .book-appointment-button {
    width: auto;
    min-width: 200px;
    margin-left: 5px !important;
    margin-right: 5px !important;
  }

  /* Extra small phones: Tighter spacing for two-column layouts */
  .two-column-wrapper {
    padding-left: 5px;
    padding-right: 5px;
  }

  /* Extra small phones: Reduce base container padding */
  .base-container {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}


/* Booking link in the top nav */
.nav-link.nav-book-link {
  border: 1px solid currentColor;
  border-radius: 60px;
  margin-left: 8px;
  padding: 6px 18px;
}

@media screen and (max-width: 991px) {
  .nav-link.nav-book-link {
    display: inline-block;
    align-self: flex-start;
    width: auto;
    margin-left: 0;
    margin-top: 8px;
  }
}

/* Homepage hero: static, readable before any JS runs */
.homepage-2-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.4) 45%,
    rgba(0, 0, 0, 0.05) 80%
  );
}

@media screen and (max-width: 767px) {
  .homepage-2-banner::before {
    background: rgba(0, 0, 0, 0.5);
  }
}

.hero-copy {
  max-width: 720px;
}

.hero-eyebrow {
  color: var(--white, #fff);
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 16px;
  opacity: 0.9;
}

.hero-title {
  color: var(--white, #fff);
  font-size: 56px;
  line-height: 1.15;
  margin: 0 0 20px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.hero-lede {
  color: var(--white, #fff);
  font-size: 20px;
  line-height: 1.55;
  margin: 0 0 28px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.hero-cta-row .book-appointment-button.hero-book {
  margin: 0;
  background-color: var(--white, #fff);
  border-color: var(--white, #fff);
  color: var(--text-dark, #0e0e0e);
}

.hero-cta-row .book-appointment-button.hero-book:hover {
  background-color: var(--light-gray, #f9f9fa);
  color: var(--text-dark, #0e0e0e);
}

.hero-secondary-link {
  color: var(--white, #fff);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media screen and (max-width: 767px) {
  .hero-title {
    font-size: 38px;
  }

  .hero-lede {
    font-size: 17px;
  }
}

@media screen and (max-width: 479px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-eyebrow {
    font-size: 12px;
  }
}

/* Visible session hours (replaces collapsed accordions) */
.hours-block {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--gray, #e9e9e9);
  border-radius: 10px;
  background-color: var(--light-gray, #f9f9fa);
}

.hours-title {
  margin: 0 0 16px;
  font-size: 22px;
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 32px;
}

.hours-group h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.hours-group p,
.hours-note {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.hours-note {
  margin-top: 12px;
  font-size: 14px;
}

/* Footer: practice details and crisis information */
.footer-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px 40px;
  width: 100%;
  margin-bottom: 24px;
  text-align: left;
  color: var(--primary, #555457);
  font-size: 14px;
  line-height: 1.6;
}

.footer-info p {
  margin: 0;
}

.footer-info a {
  color: inherit;
  text-decoration: underline;
}

.footer-crisis {
  padding: 12px 16px;
  border-left: 3px solid var(--primary, #555457);
  background-color: var(--light-gray, #f9f9fa);
}

@media screen and (max-width: 767px) {
  .footer-info {
    grid-template-columns: 1fr;
  }
}

/* Larger tap targets for footer links on touch screens */
@media screen and (max-width: 767px) {
  .footer-link {
    display: inline-block;
    padding: 10px 4px;
  }
}

/* Service pages: counsellor card, fees and related services */
.therapist-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px 32px;
  align-items: start;
}

.therapist-card-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}

.therapist-card h2 {
  margin-top: 0;
}

.fees-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
  padding: 0;
  list-style: none;
}

.fees-strip li {
  padding: 6px 14px;
  border: 1px solid var(--gray, #e9e9e9);
  border-radius: 60px;
  background-color: var(--white, #fff);
  font-size: 15px;
}

.related-services {
  margin-top: 24px;
}

.related-services ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.related-services a {
  font-weight: 600;
}

@media screen and (max-width: 767px) {
  .therapist-card {
    grid-template-columns: 1fr;
  }

  .therapist-card-photo {
    width: 120px;
    height: 120px;
  }
}

/* Contact page details */
.contact-details h2 {
  margin: 24px 0 8px;
  font-size: 20px;
}

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

.crisis-note {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--primary, #555457);
  background-color: var(--light-gray, #f9f9fa);
}

.crisis-note h2 {
  margin-top: 0;
}

.crisis-list {
  margin: 8px 0 0;
  padding-left: 20px;
}

.crisis-list li {
  margin-bottom: 6px;
}

/* Override the global bullet-list styling for pill and inline lists */
body .service-card ul.fees-strip,
body nav.related-services ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 12px 0 12px;
  padding: 0;
}

body.service-page nav.related-services h3.heading-7 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

body .service-card ul.fees-strip li,
body nav.related-services ul li {
  display: inline-flex;
  width: auto;
  margin: 0;
  background-image: none;
}

body .service-card ul.fees-strip li {
  padding: 6px 14px;
  font-size: 15px;
  line-height: 1.4;
}

body nav.related-services ul li {
  padding: 0;
}

body nav.related-services ul {
  gap: 8px 24px;
}

body nav.related-services ul li a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Centre the hero call-to-action on small screens to match the centred copy */
@media screen and (max-width: 767px) {
  .hero-copy {
    text-align: center;
  }

  .hero-cta-row {
    justify-content: center;
  }
}

/* Crisis and contact lists: plain readable list items, links sized like their text */
body ul.crisis-list {
  display: block;
  margin: 8px 0 0;
  padding-left: 20px;
  list-style: disc;
}

body ul.crisis-list li {
  display: list-item;
  margin: 0 0 6px;
  padding-left: 0;
  background-image: none;
  font-size: 15px;
  line-height: 1.6;
}

body.service-page ul.crisis-list li {
  font-size: 17px;
}

.contact-details,
.crisis-note {
  font-size: 15px;
  line-height: 1.6;
}

.contact-details a,
.crisis-note a {
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-details h2,
.crisis-note h2 {
  font-size: 18px;
}

/* Inline links inside service copy match the surrounding text size */
body .service-card p a,
body .service-card .faq-answer a {
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Numbered steps and credential lists: real list items, not the global flex bullets */
body ol.steps-list,
body ul.credentials-list {
  display: block;
  margin: 8px 0 16px;
  padding-left: 22px;
}

body ol.steps-list {
  list-style: decimal;
}

body ul.credentials-list {
  list-style: disc;
}

body ol.steps-list li,
body ul.credentials-list li {
  display: list-item;
  margin: 0 0 8px;
  padding-left: 4px;
  background-image: none;
}

.detail-grid .service-card h2.heading-7 {
  font-size: 24px;
  line-height: 1.3;
}

body ul.credentials-list a {
  font-size: inherit;
  text-decoration: underline;
}
