/* Additional overrides for mobile navigation */
#mobile-menu-toggle,
#mobile-menu {
  display: none;
}

/*
     * Tides Talk v11 Overrides
     *
     * This stylesheet contains targeted updates requested for improved colour
     * contrast and readability.  It builds on v10 by adjusting the merchandise
     * heading and subheading colours, updating product card text colours, and
     * refining the podcast title typography.  It also ensures the Brand Hub
     * description text is white for better visibility.  These overrides are
     * loaded after `style-v10.css` to selectively overwrite specific rules.
     */

    /* === Merchandise Section Colour Adjustments === */
    /* Set the merchandise heading colour to match the podcast heading (deep 
 navy) */
    .merch-section h2 {
      color: #003049;
    }

    /* Set the merchandise subheading colour to the podcast subheading teal */
    .merch-section .section-description {
      color: #006D77;
    }

    /* Within each product card, ensure all text appears white for contrast */
    .product-embed-v10 {
      color: #FFFFFF;
    }
    .product-embed-v10 * {
      color: #FFFFFF;
    }

    /* === Brand Hub Description Colour === */
    .brandhub-section .section-description {
      color: #FFFFFF;
    }

    /* === Podcast Title Typography Adjustments === */
    /* Reduce the font size and line height of episode titles while retaining 
 bold weight */
    .podcast-grid-v10 .podcast-item h3 {
      font-size: 1rem;
      line-height: 1.2;
    }
    @import url('mobile-nav.css?v=1');

/* -------------------------------------------------------------------
 * Custom styles introduced for the homepage update (August 2025)
 * These styles define CTA buttons, collapsible panels for Calendly and
 * contact form, founder section aesthetics, brand hub buttons, and
 * contact/donate enhancements. They intentionally leverage existing
 * colour variables defined in the base stylesheet to maintain the
 * established look and feel.
 *------------------------------------------------------------------- */

/* Hero CTA container */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Primary (filled) CTA */
.btn-primary {
  display: inline-block;
  background: var(--accent-gradient);
  color: var(--text-light);
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  font-weight: 600;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}
.btn-primary:hover {
  transform: translateY(-3px);
}

/* Outlined CTA */
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--teal);
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  font-weight: 600;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--text-light);
}

/* Calendly collapsible panel */
.calendly-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.calendly-panel.is-open {
  max-height: 1000px;
}

/* Book session button */
.book-session-button {
  display: inline-block;
  background: var(--teal);
  color: var(--text-light);
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}
.book-session-button:hover {
  background: var(--deep-ocean);
}

/* Founder section styling */
.founder-section {
  background-color: var(--deep-ocean);
  color: var(--text-light);
}
.founder-section h2 {
  color: var(--teal);
  margin-bottom: 1rem;
  text-align: center;
}
.founder-section .founder-quote {
  font-style: italic;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-light);
}
.founder-section .founder-description {
  max-width: 800px;
  margin: 0 auto 1rem;
  text-align: center;
}
.founder-section .founder-list {
  max-width: 600px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.founder-section .founder-list li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.founder-section .founder-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--teal);
}

/* Merchandise discount note */
.merch-section .discount-note {
  color: var(--teal);
  font-weight: 600;
  margin-top: 0.5rem;
  text-align: center;
}

/* Brand hub buttons container */
.brandhub-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.collaborate-button {
  display: inline-block;
  background: var(--accent-gradient);
  color: var(--text-light);
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  font-weight: 600;
  transition: transform var(--transition-speed);
}
.collaborate-button:hover {
  transform: translateY(-3px);
}

/* Normalize hover states for all Brand Hub buttons */
.brandhub-section .brandhub-buttons a {
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.brandhub-section .brandhub-buttons a:hover {
  background-color: var(--color-dark-blue);
  color: var(--color-text-white);
  transform: translateY(-2px);
}

/* Responsive CTA grid for Brand Hub */
@media (max-width: 767px) {
  .brandhub-section .cta-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
  }
  .brandhub-section .cta-wrap .btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 360px) {
  .brandhub-section .cta-wrap {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------
 * Contact Us section refinements
 * These rules ensure typography aligns with the Support section and that
 * form fields have persistent borders for improved utility feel. They
 * override any previous contact-related styles defined earlier in the
 * file.
 *------------------------------------------------------------------- */

/* Scale Contact heading to 90% of Support heading size */
.contact-section h2 {
  font-size: clamp(1.71rem, 3.06vw, 2.16rem) !important;
  margin-bottom: 0.5rem !important;
}
/* Match body text to Support section body copy */
.contact-section .section-desc {
  font-size: clamp(1rem, 1.4vw, 1.125rem) !important;
  line-height: 1.6 !important;
}
/* Ensure buttons in Contact section mirror standard CTA sizing */
.contact-section .btn {
  padding: 12px 22px !important;
  font-weight: 600 !important;
}
/* Match vertical spacing to Support section */
.contact-section {
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}
/* Always show borders on form inputs/textarea within Contact */
.contact-section #contact-form input,
.contact-section #contact-form textarea {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 6px;
}
.contact-section #contact-form input:focus,
.contact-section #contact-form textarea:focus {
  border-color: var(--accent-teal);
  outline: none;
}

/* Inline collaborate form panel
 * Hide by default and reveal with a smooth height transition when
 * .is-open is applied via JS. Shares form field styling with the
 * Contact section for consistent appearance.
 */
.inline-form-collab {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.inline-form-collab.is-open {
  max-height: 2000px; /* large enough to reveal the form */
}
/* Style inputs and textarea inside collaborate form */
.inline-form-collab input,
.inline-form-collab textarea {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 6px;
  width: 100%;
}
.inline-form-collab input:focus,
.inline-form-collab textarea:focus {
  border-color: var(--accent-teal);
  outline: none;
}

/* Checkerboard reordering for Founder cards on desktop
 * Swap the positions of the third and fourth cards at 1024px and up
 * to create an alternating pattern across rows (white/beige, beige/white, etc.).
 */
@media (min-width: 1024px) {
  .founder-grid {
    grid-auto-flow: dense;
  }
  .founder-grid .founder-card:nth-child(3) {
    grid-row: 2;
    grid-column: 2;
  }
  .founder-grid .founder-card:nth-child(4) {
    grid-row: 2;
    grid-column: 1;
  }
}

/* Donate section subheading */
.donate-subheading {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--teal);
  text-align: center;
}

/* Contact section styling */
.contact-section {
  background-color: var(--deep-ocean);
  color: var(--text-light);
}
.contact-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--teal);
}
.contact-button {
  display: inline-block;
  background: var(--teal);
  color: var(--text-light);
  padding: 0.7rem 1.6rem;
  border-radius: 30px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin: 0 auto;
  display: block;
  transition: background-color var(--transition-speed);
}
.contact-button:hover {
  background: var(--deep-ocean);
}
.contact-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.contact-panel.is-open {
  max-height: 1000px;
}
.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 1rem auto;
}
.contact-section label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.contact-section input,
.contact-section textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
}
.submit-button {
  display: inline-block;
  background: var(--accent-gradient);
  color: var(--text-light);
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-speed);
}
.submit-button:hover {
  transform: translateY(-3px);
}

/* Mobile nav CTA container */
#mobile-menu .mobile-ctas {
  margin-top: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
#mobile-menu .mobile-ctas a {
  text-align: center;
}

/* -------------------------------------------------------------------
 * Section and component refinements (September 2025)
 * These rules fine‑tune the hero section for smaller screens, add
 * responsive card layouts to the therapy section, unify Brand Hub
 * typography and spacing, and style the inline collaboration form.
 *------------------------------------------------------------------- */

/* Mobile hero polish */
@media (max-width: 767px) {
  .hero-section .hero-headline {
    font-size: clamp(1.6rem, 7vw, 2rem);
    line-height: 1.15;
    margin-bottom: 10px;
  }
  .hero-section .hero-subheading {
    font-size: clamp(1rem, 4.4vw, 1.125rem);
    line-height: 1.45;
    margin-bottom: 14px;
  }
  .hero-section .hero-ctas {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .hero-section .hero-ctas .btn-primary,
  .hero-section .hero-ctas .btn-outline {
    flex: 1 1 auto;
  }
  .hero-section {
    padding-top: 28px;
    padding-bottom: 32px;
  }
}
/* Very narrow phones: stack CTAs */
@media (max-width: 350px) {
  .hero-section .hero-ctas {
    flex-direction: column;
  }
}

/* Therapy cards grid */
.therapy-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 1rem;
}
@media (min-width: 640px) {
  .therapy-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .therapy-cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
/* Card appearance */
.therapy-card {
  background: var(--color-white);
  color: var(--color-text-dark);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.therapy-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.therapy-card h4 {
  color: var(--color-dark-blue);
  margin: 0 0 0.4rem 0;
}
.therapy-card p {
  margin: 0;
  line-height: 1.6;
}
/* Alternate backgrounds for variety */
.therapy-card:nth-child(2n) {
  background: var(--color-light-beige);
}
/* Mobile breathing room */
@media (max-width: 767px) {
  .therapy-card {
    padding: 20px;
  }
}

/* =============== Therapy Card Icons =============== */
/* Size and spacing for the premium outline icons in therapy cards */
.therapy-card .tc-icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  margin-bottom: 10px;
  color: currentColor;
}
@media (max-width: 767px) {
  .therapy-card .tc-icon {
    display: block;
    margin: 0 auto 10px;
  }
  .therapy-card h4,
  .therapy-card p {
    text-align: center;
  }
}

/* Brand Hub subheading & audience spacing */
.brandhub-section .section-subhead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 600;
}
.brandhub-section .audience-line {
  margin-top: 0.35rem;
  text-align: center;
}

/* Brand Hub CTA grid for mobile */
@media (max-width: 767px) {
  .brandhub-section .cta-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
  }
  .brandhub-section .cta-wrap .btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 360px) {
  .brandhub-section .cta-wrap {
    grid-template-columns: 1fr;
  }
}

/* Collapsible helper */
.collapsible[hidden] {
  display: none !important;
}
/* Brand hub inline collaboration form styling */
#brandhub-collab-form input,
#brandhub-collab-form textarea {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 6px;
}
#brandhub-collab-form input:focus,
#brandhub-collab-form textarea:focus {
  border-color: var(--color-accent-teal);
  outline: none;
}

/* -------------------------------------------------------------
 * Custom Colour Scheme (August 2025)
 *
 * Define reusable variables for the site's new colour palette. These
 * variables provide clarity and centralised control when applying
 * background and text colours across sections. Accent colours remain
 * unchanged from the original theme.
 */
:root {
  /* Section background colours */
  --color-dark-blue: #003B5C;
  --color-light-blue: #E6F2F8;
  --color-light-beige: #F9F5EE;
  --color-white: #FFFFFF;
  /* Section text colours */
  --color-text-dark: #333333;
  --color-text-light: #F2F2F2;
  --color-text-white: #FFFFFF;
  /* Accent colour for links and CTAs (adjust if different) */
  --color-accent-teal: #00A5A5;
}

/* -------------------------------------------------------------
 * Section Backgrounds & Typography
 *
 * Apply the new colour palette to each major section of the page. Each
 * section receives a distinct background colour from the palette and
 * text colours chosen for optimal contrast and readability. Headings
 * and body text are styled individually where necessary.
 */

/* Hero Section */
.hero-section {
  background-color: var(--color-dark-blue);
  color: var(--color-text-light);
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.hero-section .hero-headline {
  font-size: 2.5rem; /* slightly reduced size */
  color: var(--color-text-white);
}
.hero-section .hero-subheading {
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

/* About Section */
.about-section {
  background-color: var(--color-light-blue);
  color: var(--color-text-dark);
}
.about-section h2,
.about-section h3 {
  color: var(--color-dark-blue);
}
.about-subheading {
  text-align: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;        /* match About */
  font-weight: 700;
  line-height: 1.4;
}


}

/* Values Section */
.values-section {
  background-color: var(--color-white);
  color: var(--color-text-dark);
}
.values-section h2,
.values-section h3 {
  color: var(--color-dark-blue);
}

/* Podcast Section */
.podcast-section-v10 {
  background-color: var(--color-light-blue) !important;
  color: var(--color-text-dark);
}
.podcast-section-v10 h2 {
  color: var(--color-dark-blue);
}
.podcast-section-v10 .section-description {
  color: var(--color-text-dark);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Therapy Section */
.therapy-section-v10 {
  background-color: var(--color-light-beige);
  color: var(--color-text-dark);
}
.therapy-section-v10 h2,
.therapy-section-v10 h3 {
  color: var(--color-dark-blue);
}
.therapy-section-v10 .therapy-subheading {
  font-size: 1.2rem; /* slightly reduced */
}
.therapy-section-v10 h3 {
  font-size: 1.4rem; /* reduce size of service heading */
  margin-top: 2rem;
}
.book-session-button {
  margin-top: 1.5rem; /* add spacing above button */
}

/* Founder Section */
.founder-section {
  background-color: var(--color-light-blue);
  color: var(--color-text-dark);
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.founder-section h2 {
  color: var(--color-dark-blue);
  text-align: center;
  margin-bottom: 1rem;
}
.founder-section .founder-quote {
  color: var(--color-text-dark);
  font-style: italic;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}
.founder-section .founder-description {
  max-width: 800px;
  margin: 0 auto 1rem;
  text-align: center;
  color: var(--color-text-dark);
}
.founder-section .founder-list {
  max-width: 600px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  color: var(--color-text-dark);
}
.founder-section .founder-list li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.founder-section .founder-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--teal);
}

/* Merchandise Section */
.merch-section {
  background-color: var(--color-white);
  color: var(--color-text-dark);
}
.merch-section h2 {
  color: var(--color-dark-blue);
}
.merch-section .section-description {
  color: var(--color-text-dark);
}

/* Brand Hub Section */
.brandhub-section {
  background-color: var(--color-light-blue);
  color: var(--color-text-dark);
}
.brandhub-section h2 {
  color: var(--color-dark-blue);
}
/* Brand Hub subheading style */
.brandhub-section .brandhub-subheading {
  color: var(--color-dark-blue);
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 auto;
  max-width: 700px;
}
/* Reset the old section-description styling (no longer used for subheading) */
.brandhub-section .section-description {
  color: var(--color-text-dark);
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
/* Ensure Quick Resources button uses rounded corners like other CTAs */
.brandhub-section .resource-button {
  border-radius: 30px;
  padding: 0.7rem 1.4rem;
}

/* Support/Donate Section */
.donate-section {
  background-color: var(--color-light-beige);
  color: var(--color-text-dark);
}
.donate-section h2,
.donate-section h3 {
  color: var(--color-dark-blue);
}
.donate-section p {
  color: var(--color-text-dark);
}

/* Contact Section */
.contact-section {
  background-color: var(--color-white);
  color: var(--color-text-dark);
  padding-top: 4rem;
  padding-bottom: 4rem;
}
/* Adjust heading scale (90% of support heading) */
.contact-section h2 {
  font-size: clamp(1.71rem, 3.06vw, 2.16rem);
  margin-bottom: 0.5rem;
}
/* Match body text size and line height */
.contact-section .section-desc {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.6;
}
/* Button size match */
.contact-section .btn {
  padding: 12px 22px;
  font-weight: 600;
}
/* Match Support vertical spacing */
.contact-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

/* Make contact form fields distinct against the white background */
.contact-section #contact-form input,
.contact-section #contact-form textarea {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 6px;
  width: 100%;
}
.contact-section #contact-form input:focus,
.contact-section #contact-form textarea:focus {
  border-color: var(--color-accent-teal);
  outline: none;
}
/* Inline collaborate form fields reuse the same styling */
.inline-form-collab input,
.inline-form-collab textarea {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 6px;
  width: 100%;
}
.inline-form-collab input:focus,
.inline-form-collab textarea:focus {
  border-color: var(--color-accent-teal);
  outline: none;
}

/* Founder credentials grid
   The founder section now contains a responsive 2x3 grid highlighting
   certifications, experience and heritage. Cards adopt light backgrounds
   with subtle shadows and a gentle hover lift. */
/* Sub-header under Founder title */
.founder-subhead {
  text-align: center;
  color: var(--color-dark-blue);
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
}

/* Grid layout for founder credentials */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .founder-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Base card styling */
.founder-card {
  border-radius: 12px;
  padding: 22px;
  color: var(--text-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.founder-card h4 {
  color: var(--color-dark-blue);
  margin-bottom: .5rem;
}
.founder-card:hover {
  transform: translateY(-4px);
}

/* Colour-specific card backgrounds */
.founder-card.white {
  background: #FFFFFF;
}
.founder-card.beige {
  background: #F9F5EE;
}

/* Hover depth balance */
.founder-card.white:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.founder-card.beige:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}

/* Mobile adjustments for cards */
@media (max-width: 767px) {
  .founder-grid {
    gap: 1.25rem;
  }
  .founder-card {
    padding: 20px;
  }
  .founder-card.beige {
    padding: 24px;
  }
  .founder-card:active,
  .founder-card:focus-within {
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  }
}

/* Override about text colour for enhanced readability */
.about-section .about-text {
  color: #000000;
}

/* Merchandise mission heading styling */
.merch-section .merch-mission {
  color: var(--color-dark-blue);
  text-align: center;
  margin-bottom: 0.5rem;
}


/* Brand Hub adjustments */
.brandhub-section .brandhub-audience {
  text-align: center;
  max-width: 600px;
  /* Position closer to the subheading with a smaller gap */
  margin: 0.5rem auto 0;
  color: var(--color-text-dark);
}
/* Adjust the collaborate button hover to match others */
.brandhub-section .collaborate-button {
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.brandhub-section .collaborate-button:hover {
  background-color: var(--color-dark-blue);
  color: var(--text-white);
  transform: translateY(-2px);
}
.contact-section h2 {
  color: var(--color-dark-blue);
  text-align: center;
}
.contact-section .contact-description {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}
.contact-button {
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background-color: var(--color-dark-blue);
  color: var(--color-text-light);
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.site-footer a {
  color: var(--teal);
}

/* === HOTFIX: Therapy cards (2025-08-11) === */
/* Center "Best for" whether it's using .best-for wrapper or the old .card-back structure */
.best-for{
  margin-top:.5rem;
  font-size:.95rem;
  line-height:1.5;
  text-align:center;
}
.best-for .label{
  display:block;
  font-size:.8rem;
  font-weight:600;
  letter-spacing:.06em;
  opacity:.75;
  margin-bottom:.25rem;
  text-transform:uppercase;   /* ALL CAPS */
  text-align:center;
}

/* If markup still uses <div class="card-back"><h5>Best for</h5><p>…</p> */
.therapy-card .card-back h5{
  margin-top:.5rem;
  font-size:.8rem;
  font-weight:600;
  letter-spacing:.06em;
  opacity:.75;
  margin-bottom:.25rem;
  text-transform:uppercase;   /* ALL CAPS */
  text-align:center;
}
.therapy-card .card-back p{ text-align:center; }

/* Make non-accent cards white, regardless of older alternating rule */
.therapy-card:not([data-variant="accent"]){
  background: var(--color-white) !important;
}

/* Accent (NLP) card pulls the exact Founder blue if available, else your token */
.therapy-card[data-variant="accent"]{
  background: var(--tt-founder-bg, var(--color-light-blue)) !important; /* --color-light-blue is #E6F2F8 in your tokens */
  color: var(--color-text-dark);
}

/* Belt-and-braces: disable any visual flip even if a class toggles */
.flip-card, .card-inner, .card-front, .card-back{
  transform:none !important;
  transition:none !important;
  backface-visibility:visible !important;
}


/* === Desktop align polish for Therapy cards (2025-08-11) === */
@media (min-width: 1024px) {
  /* Center all content in the cards on desktop */
  .therapy-card { text-align: center; }

  /* If any inner container uses flex-start, nudge it to center */
  .therapy-card,
  .therapy-card .card,
  .therapy-card .card-body,
  .therapy-card .content {
    align-items: center;
  }

  /* Center common icon types */
  .therapy-card img,
  .therapy-card svg {
    display: block;
    margin: 0 auto;
  }

  /* Make sure headings/paragraphs don't cling left due to inherited margins */
  .therapy-card h4,
  .therapy-card p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Counselling title: put (Nov 2025) on its own line on desktop only */
.therapy-card h4 .subtitle { display: inline; }  /* mobile stays inline */
@media (min-width: 1024px) {
  .therapy-card h4 .subtitle {
    display: block;           /* forces a new line under "Counselling" */
    margin-top: .1rem;
    font-weight: 600;
    opacity: .85;
  }
}



/* Center the Book a Session button on mobile only */
@media (max-width: 767px) {
  #therapy a.button,
  #therapy .btn,
  #therapy .btn-primary {
    display: block;
    width: fit-content;
    margin: 1rem auto 0;   /* centers horizontally */
    align-self: center;    /* if parent is flex */
  }
}

/* Breathing room between the cards and the paragraph */
.therapy-note { margin-top: 1.25rem; }
@media (min-width: 1024px) {
  .therapy-note { margin-top: 1.5rem; }
}


/* Center the Book a Session button on MOBILE ONLY */
@media (max-width: 767px) {
  #book-session-toggle {
    display: block !important;
    width: max-content;            /* or use fit-content if you prefer */
    margin: 1rem auto 0 !important;/* centers horizontally */
    float: none !important;        /* ignore any legacy floats */
  }
}


/* Make the Book a Session button a bit bigger on MOBILE ONLY */
@media (max-width: 767px) {
  #book-session-toggle {
    /* keep it centered from earlier */
    display: block !important;
    width: max-content;
    margin: 1rem auto 0 !important;

    /* size bump */
    font-size: 1.05rem;        /* ~16.8px */
    line-height: 1.1;
    padding: 0.9rem 1.25rem;   /* taller + a touch wider */
    min-width: 240px;          /* gives it presence like the YouTube CTA */
    border-radius: 9999px;     /* nice pill shape (matches your style) */
  }
}


/* Mobile-only: center + enlarge the Contact CTA */
@media (max-width: 767px) {
  #contact-toggle {
    display: block !important;
    width: max-content;
    margin: 1rem auto 0 !important;   /* centers horizontally */
    /* size bump to match your larger CTAs */
    font-size: 1.05rem;
    line-height: 1.1;
    padding: 0.9rem 1.25rem;
    min-width: 240px;
    border-radius: 9999px;
    min-height: 44px; /* good tap size */
  }
}


/* === Brand Hub tweaks (desktop + mobile) === */

/* Center the whole CTA group and add breathing room under the paragraph */
#brandhub .cta-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* centers the row on desktop */
  gap: .75rem .75rem;        /* space between pills */
  margin-top: 1rem;          /* space between audience line and buttons */
}
@media (min-width: 1024px) {
  #brandhub .cta-wrap { margin-top: 1.25rem; } /* a touch more on desktop */
}

/* Mobile only: ensure text inside each pill is actually centered */
@media (max-width: 767px) {
  #brandhub .cta-wrap .btn,
  #brandhub .cta-wrap a,
  #brandhub .cta-wrap button {
    display: inline-flex;         /* use flex so we can center contents */
    align-items: center;
    justify-content: center;      /* centers the text inside the pill */
    text-align: center;           /* fallback if not flex */
  }
}


/* Swap therapy logos by breakpoint (desktop same size as before) */
#therapy .therapy-logo-mobile,
#therapy .therapy-logo-desktop {
  display: block;
  margin: 0 auto;
  height: auto;
}

/* Desktop: keep original size */
#therapy .therapy-logo-desktop { max-width: 340px; }

/* Hide mobile mark on desktop */
#therapy .therapy-logo-mobile { display: none; }

/* Mobile: show icon-only mark, hide full logo */
@media (max-width: 767px) {
  #therapy .therapy-logo-mobile { display: block; max-width: 160px; } /* tweak if you like */
  #therapy .therapy-logo-desktop { display: none; }
}


/* Mobile: enlarge the icon-only logo a touch */
@media (max-width: 767px) {
  #therapy .therapy-logo-mobile {
    max-width: 210px;        /* try 200–240px to taste */
    margin-bottom: .6rem;    /* gentle space before the H2 */
  }
}

/* MOBILE ONLY: tighten Therapy hero spacing with high-specificity overrides */
@media (max-width: 767px) {
  /* Less blank space at the very top of the section */
  #therapy.therapy-section-v10,
  #therapy .therapy-container-v10,
  #therapy .container {
    padding-top: 0.9rem !important;     /* raise to 1.1rem if navbar clips; lower to 0.6 for tighter */
  }

  /* Logo block spacing */
  #therapy .therapy-hero {
    margin-top: 0 !important;
    margin-bottom: 0.35rem !important;  /* closer to the H2 */
    padding: 0 !important;
  }

  /* The logo image itself (mobile mark) */
  #therapy .therapy-logo-mobile {
    margin: 0 auto 0.35rem !important;  /* tiny gap under the logo */
  }

  /* Heading -> subheading gap */
  #therapy .therapy-content h2 {
    margin: 0.2rem 0 0.45rem !important;
  }

  /* Subheading -> first paragraph gap */
  #therapy .therapy-subheading {
    margin: 0 0 0.55rem !important;
  }

  /* Paragraph rhythm */
  #therapy .therapy-content p { margin: 0.6rem 0 0 !important; }
  #therapy .therapy-content p + p { margin-top: 0.5rem !important; }

  /* Smooth anchor jump so navbar doesn't cover this section */
  #therapy.therapy-section-v10 { scroll-margin-top: 72px; }
}

/* Mobile: slam the gap between the logo and the H2 */
@media (max-width: 767px) {
  /* kill any top spacing on the content wrapper */
  #therapy .therapy-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* smaller space under the logo block + the image itself */
  #therapy .therapy-hero { margin-bottom: 0.25rem !important; }
  #therapy .therapy-logo-mobile { margin: 0 auto 0.25rem !important; }

  /* remove stray top margin on the H2 */
  #therapy .therapy-content h2 { margin-top: 0 !important; }
}

/* Mobile: pull the H2 closer if the PNG has extra transparent pixels */
@media (max-width: 767px) {
  #therapy .therapy-logo-mobile {
    margin-bottom: -6px !important; /* try -6px first; adjust to -8px or -10px if needed */
  }
}

/* Mobile + Tablet: center H2/subhead and pull text closer to the logo */
@media (max-width: 1024px) {
  /* Center only the main heading and the subheading */
  #therapy .therapy-content h2,
  #therapy .therapy-subheading {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Reduce the gap under the logo block */
  #therapy .therapy-hero {
    margin-bottom: 0.20rem !important;   /* tighter space below the logo */
  }

  /* If the mobile icon has a tiny invisible bottom edge, compensate */
  #therapy .therapy-logo-mobile {
    margin-bottom: -6px !important;      /* try -4 to -8px to taste */
  }

  /* Pull the whole text group up and keep even rhythm */
  #therapy .therapy-content {
    margin-top: -4px !important;         /* nudges all text closer to the logo */
    padding-top: 0 !important;
  }

  /* Headline/subhead spacing so they sit nicely together */
  #therapy .therapy-content h2 {
    margin-top: 0.10rem !important;
    margin-bottom: 0.40rem !important;
  }
  #therapy .therapy-subheading {
    margin-top: 0 !important;
    margin-bottom: 0.55rem !important;
  }
}

/* Mobile + Tablet: move all Therapy text up closer to the logo */
@media (max-width: 1024px) {
  /* keep the logo gap tiny */
  #therapy .therapy-hero { margin-bottom: 0.15rem !important; }

  /* pull the whole text block upward together */
  #therapy .therapy-content {
    margin-top: -4.0rem !important;   /* ≈ 57–58px (~just over 1/2") */
    padding-top: 0 !important;
  }

  /* keep the headline/subhead rhythm tidy */
  #therapy .therapy-content h2 { margin-bottom: 0.4rem !important; }
  #therapy .therapy-subheading { margin-bottom: 0.55rem !important; }
}

/* Mobile/Tablet: keep the top of the Therapy section visible under the sticky header */
@media (max-width: 1024px) {
  #therapy { scroll-margin-top: calc(64px + 12px); } /* tweak the 12px if needed */
}


@media (max-width: 1024px) {
  /* Make #therapy land like the other sections under the sticky header */
  #therapy { 
    scroll-margin-top: calc(var(--nav-height, 64px) + 8px);
  }
}

/* Force the CTA line to normal text */
#podcast .podcast-cta,
.podcast-section .podcast-cta{
  font-weight: 400 !important;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 16px;
  color: #0f3850;
}

/* Desktop-only paragraph rhythm for Therapy intro/footer */
@media (min-width: 1024px) {
  .therapy-intro, .therapy-footer { max-width: 56ch; }
  .therapy-intro p, .therapy-footer p { margin: 0 0 14px; line-height: 1.6; }
}

/* Prevent sticky header overlap when scrolling to anchors */
@media (min-width: 1024px) {
  /* Desktop: when we jump to the top of Founder */
  #founder { scroll-margin-top: 60px; } /* tweak to your header height */
}
@media (max-width: 1023px) {
  /* Mobile: when we jump to "What I Bring" */
  #what-i-bring { scroll-margin-top: 80px; } /* tweak if your mobile header is taller/shorter */
}


/* Small helpers (optional) */
.small { font-size: 0.95rem; opacity: 0.9; }
.inline-link { text-decoration: underline; }
.trust-line { margin-top: 6px; }


@media (min-width: 1024px) {
  .therapy-intro,
  .therapy-footer {
    max-width: none; /* removes the limit entirely */
  }
}

.founder-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;     /* wraps neatly on small screens */
  margin: 0 0 6px;
}

.inline-badge {
  height: 1em;         /* same height as the heading text */
  width: auto;
  vertical-align: middle;
  margin-left: 2px;
}

@media (max-width: 380px) {
  .inline-badge { display: none; }  /* optional: hide on very tiny phones */
}


/* Desktop: make the inline badge ~10–15% bigger */
@media (min-width: 1024px) {
  .inline-badge { height: 1.5em; } /* try 1.1–1.15em if you want to tweak */
}


/* Keep alignment tidy no matter the size */
.inline-badge {
  width: auto;
  vertical-align: middle;   /* sits nicely with the text */
  margin-left: 2px;
}


/* Mobile: slightly bigger badge */
@media (max-width: 767px) {
  .inline-badge { height: 1.5em; }       /* try 1.10–1.15em */
}


/* Certificates lightbox */
.cert-modal[hidden] { display: none; }
.cert-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.cert-dialog {
  position: relative; background: #fff; border-radius: 12px;
  width: min(96vw, 1000px); max-height: 90vh;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  padding: 12px 12px 16px; box-sizing: border-box;
}
.cert-frame {
  position: relative; overflow: hidden; border-radius: 10px;
  background: #f7f7f7; height: min(80vh, calc(100vh - 200px));
  display: flex; align-items: center; justify-content: center;
}
#cert-img { max-width: 100%; max-height: 100%; display: block; }
.cert-close {
  position: absolute; top: 8px; right: 8px;
  background: transparent; border: 0; font-size: 28px; line-height: 1;
  cursor: pointer; padding: 6px; color: #333;
}
.cert-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.55); color: #fff; border: 0;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
}
.cert-prev { left: 12px; }
.cert-next { right: 12px; }
.cert-caption { margin-top: 8px; font-size: 14px; text-align: center; }
.cert-download { display: inline-block; margin-top: 6px; font-size: 14px; text-decoration: underline; }

@media (max-width: 640px){
  .cert-dialog { padding: 10px; }
  .cert-nav { width: 36px; height: 36px; }
}


/* Lightbox sizing: smaller on phones, comfy on desktop */
.cert-dialog {
  width: min(92vw, 960px);
  max-height: 84vh;            /* leave click-outside space */
}

.cert-frame {
  /* Keep a nice landscape shape, not too tall on phones */
  height: clamp(320px, 58vh, 680px);
}

/* Buttons + padding tidy on small screens */
@media (max-width: 640px) {
  .cert-dialog { width: 92vw; max-height: 80vh; }
  .cert-frame  { height: clamp(260px, 50vh, 560px); }
  .cert-nav    { width: 34px; height: 34px; }
}

.brandhub-subheading { font-size: inherit; font-weight: inherit; line-height: inherit; }


/* Normalize all subheadings and force Brand Hub to match */
.about-subheading,
.podcast-subheading,
.donate-subheading {
  text-align: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

/* In case something earlier targets Brand Hub more specifically,
   this wins with higher specificity + !important */
.brandhub-subheading.about-subheading,
#brand-hub .about-subheading,
.brandhub-section .about-subheading,
.brandhub .about-subheading {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  margin: 0 auto 1.25rem !important;
  letter-spacing: 0 !important;
}


/* Make just this subhead a touch smaller, like an h4 */
.services-subheading {
  font-size: 1.125rem;   /* smaller than your 1.25rem subheads */
  font-weight: 700;
  line-height: 1.35;
  margin: 0.75rem 0;
}
@media (min-width: 1024px) {
  .services-subheading { margin: 1rem 0; }
}

/* Force this one subhead to render smaller (like an h4) */
#services-subheading {
  font-size: 1.125rem !important;   /* ~18px */
  line-height: 1.35 !important;
  font-weight: 700 !important;
  margin: 0.75rem 0 !important;
}
@media (min-width: 1024px) {
  #services-subheading { margin: 1rem 0 !important; }
}


/* Mobile-only breathing room around the services subheading */
@media (max-width: 767px) {
  /* add a little space after the "Qualified coach — see credentials." line */
  .therapy-content .trust-line { 
    margin-bottom: 0.75rem !important;  /* ~12px */
  }

  /* make the subheading feel less cramped */
  #services-subheading {
    margin-top: 1rem !important;        /* ~16px above */
    margin-bottom: 0.75rem !important;  /* ~12px below */
  }

  /* small nudge so cards don’t crowd the heading */
  .therapy-content .therapy-cards {
    margin-top: 0.5rem !important;      /* ~8px */
  }
}





/* === Inline expander layout (final, consolidated) ================= */

/* Card structure */
.therapy-cards .card-inner{
  display:flex; flex-direction:column; height:100%;
  margin-inline:0; width:100%;
  transition: margin .25s ease, width .25s ease, box-shadow .25s ease;
}
.therapy-cards .card-front{ display:flex; flex-direction:column; gap:10px; }
.therapy-cards .card-front p{ margin:0; }
.therapy-cards .card-back{ margin-top:12px; }

/* Mobile/tablet CTA button; desktop uses whole-card click */
.card-cta{
  display:inline-block; margin:12px auto 0;
  padding:.55rem .9rem; border-radius:999px;
  background:#0b5c6b; color:#fff; font-weight:700; border:0; cursor:pointer;
}
@media (min-width:1024px){
  .card-cta{ display:none; }
  .therapy-card[data-desktop-open="inline"]{ cursor:pointer; }
}

/* Expander panel inside each card */
.card-expander{
  margin-top:14px;
  background:#f6f8f9;
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  padding:12px;
  overflow:visible; /* let Calendly grow; no inner scroll box */
}

/* Close button row (the little “×” bar) */
.expander-head{
  display:flex; justify-content:flex-end; align-items:center;
  margin-bottom:6px;
}
.expander-close{
  background:transparent; border:0; cursor:pointer;
  font-size:22px; line-height:1; padding:2px 6px; color:#2c3e50;
}
.expander-close:hover{ opacity:.75; }

/* Netlify “Register interest” form in the expander */
.interest-form{ display:grid; gap:10px; }
.interest-form label{ display:grid; gap:6px; font-weight:600; }
.interest-form input, .interest-form textarea{
  width:100%; border:1px solid #cfd8dc; border-radius:8px; padding:10px; font:inherit; background:#fff;
}
.interest-form .interest-intro{ margin:0 0 4px; }
.form-cta{
  display:inline-block; padding:.55rem .9rem; border-radius:999px;
  background:#0b5c6b; color:#fff; font-weight:700; border:0; cursor:pointer;
}
.hidden{ display:none !important; }

/* Kill any legacy min-heights that created big gaps */
.therapy-cards .therapy-card.card{ min-height:unset; height:auto; }




/* Ensure no wrapper re-introduces clipping */
.card-expander,
.card-expander .cal-inline{
  max-height: none !important;
  overflow: visible !important;
}


/* --- Desktop: widen ONLY the opened card a little --- */
@media (min-width:1024px){
  /* Ensure closed cards stay slim (neutralize any older widening rules) */
  .therapy-card:not(.open) .card-inner{
    margin-inline:0 !important; width:100% !important; box-shadow:none;
  }

  /* How much the open card bleeds left/right (tweak to taste) */
  .therapy-cards{ --open-bleed: 28px; } /* try 32–36px if you want a hair wider */

  .therapy-card.open .card-inner{
    margin-inline: calc(-1 * var(--open-bleed));
    width: calc(100% + (2 * var(--open-bleed)));
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
  }
}

/* Mobile/tablet: keep behavior exactly the same */
@media (max-width:1023px){
  .therapy-card.open .card-inner{ margin-inline:0; width:100%; }
}


/* Kill any leftover caps that could reintroduce the short scroll box */
.card-expander,
.card-expander .cal-inline{
  max-height: none !important;
  overflow: visible !important;
}


/* === Calendly inline (iframe) — tall, full-width, no inner scroll === */
.cal-inline .cal-iframe{
  display:block;
  width:100%;
  min-width:320px;
  border:0;
  /* Mobile/tablet default height */
  height: 900px;
}
@media (min-width:1024px){
  .cal-inline .cal-iframe{ height: 1100px; } /* desktop “long” look */
}

/* Make absolutely sure nothing clips the panel */
.card-expander,
.card-expander .cal-inline{
  max-height:none !important;
  overflow:visible !important;
}


/* === Inline expander (cards) ===================================== */

/* Panel that appears inside each card */
.card-expander{
  margin-top:14px;
  background:#f6f8f9;
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  padding:12px;
  /* important: allow the iframe to be as tall as it needs */
  overflow: visible;
}

/* Optional little title above the iframe (we inject this in HTML) */
.cal-inline-title{
  font-weight:700;
  margin: 0 0 8px;
  color:#2a3a42;
}

/* Close button row */
.inline-close{
  float:right;
  background:transparent;
  border:0;
  cursor:pointer;
  font-size:22px;
  line-height:1;
  padding:2px 6px;
  color:#2c3e50;
}
.inline-close:hover{ opacity:.75; }

/* Netlify “Register interest” form inside expander */
.interest-form{ display:grid; gap:10px; }
.interest-form label{ display:grid; gap:6px; font-weight:600; }
.interest-form input, .interest-form textarea{
  width:100%; border:1px solid #cfd8dc; border-radius:8px; padding:10px; font:inherit; background:#fff;
}
.interest-form .interest-intro{ margin:0 0 4px; }
.form-cta{
  display:inline-block; padding:.55rem .9rem; border-radius:999px;
  background:#0b5c6b; color:#fff; font-weight:700; border:0; cursor:pointer;
}
.hidden{ display:none !important; }

/* Kill any legacy min-heights that created big gaps */
.therapy-cards .therapy-card.card{ min-height:unset; height:auto; }

/* === Calendly iframe: tall, no inner scroll ===================== */
.cal-iframe{
  display:block;
  width:100%;
  border:0;
  /* Phones: tall but within viewport */
  height: clamp(860px, 92vh, 1100px);
}
@media (min-width:1024px){
  /* Desktop/tablet: the long look you wanted */
  .cal-iframe{ height: clamp(980px, 88vh, 1400px); }
}

/* Ensure nothing wraps the iframe with a max-height/overflow */
.card-expander, .cal-inline{
  max-height: none !important;
  overflow: visible !important;
}

/* === Desktop: widen ONLY the opened card a little ================ */
@media (min-width:1024px){
  /* Closed cards stay slim */
  .therapy-card:not(.open) .card-inner{
    margin-inline:0 !important; width:100% !important; box-shadow:none;
  }

  /* How much the open card “bleeds” left/right */
  .therapy-cards{ --open-bleed: 28px; } /* tweak 24–36px to taste */

  .therapy-card.open .card-inner{
    margin-inline: calc(-1 * var(--open-bleed));
    width: calc(100% + (2 * var(--open-bleed)));
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
  }
}

/* Mobile/tablet unchanged */
@media (max-width:1023px){
  .therapy-card.open .card-inner{ margin-inline:0; width:100%; }
}




/* === Inline Expander & Calendly MOBILE width fix (2025-08-14) === */
.therapy-cards .therapy-card .card-expander { contain: layout paint; }
@media (max-width: 767px){ .therapy-cards .therapy-card .card-expander { overflow: hidden; } }
.card-expander .calendly-inline-widget { width: 100% !important; min-width: 0 !important; }
.card-expander iframe { width: 100% !important; max-width: 100% !important; min-width: 0 !important; display: block; }
@media (max-width: 767px){ .therapy-section-v10, .therapy-container-v10, .therapy-cards { overflow-x: clip; } }
.expander-head { display:flex; justify-content:flex-end; align-items:center; gap:8px; }
.expander-close { font-size:20px; line-height:1; padding:2px 8px; border-radius:8px; }
.expander-close:hover { opacity:.8; }






/* === Inline Expander Refinements (2025-08-14 v2) === */

/* Contain horizontal growth; allow vertical content to show */
.therapy-cards .therapy-card .card-expander {
  contain: layout paint;
}

/* Mobile: only clip X, keep Y visible so content isn't hidden */
@media (max-width: 767px){
  .therapy-cards .therapy-card .card-expander {
    overflow-x: clip;
    overflow-y: visible;
  }
}

/* Calendly widgets should not force wider than card */
.card-expander .calendly-inline-widget { width: 100% !important; min-width: 0 !important; }
.card-expander iframe { width: 100% !important; max-width: 100% !important; min-width: 0 !important; display: block; }

/* Guard section from accidental horizontal scroll on small screens */
@media (max-width: 767px){
  .therapy-section-v10, .therapy-container-v10, .therapy-cards { overflow-x: clip; }
}

/* Keep open card above neighbors */
.therapy-card .card-expander.is-open { position: relative; z-index: 2; }

/* Give the open card a touch more breathing room on desktop */
@media (min-width: 1024px){
  .therapy-card[aria-expanded="true"] .card-inner {
    transform: scale(1.02);
    transform-origin: center top;
  }
  /* If the services grid supports spanning, you can consider:
  .therapy-cards { display: grid; }
  .therapy-card[aria-expanded="true"] { grid-column: span 2; }
  */
}

/* Close bar styles */
.expander-head { display:flex; justify-content:flex-end; align-items:center; gap:8px; }
.expander-close { font-size:20px; line-height:1; padding:2px 8px; border-radius:8px; }
.expander-close:hover { opacity:.8; }


/* === Inline Expander Sizing (2025-08-14 v5) — Desktop-only widen === */

/* Keep open expander above neighbours */
.therapy-card .card-expander.is-open { position: relative; z-index: 3; }

/* DESKTOP ONLY: make the open card feel wider (mobile stays unchanged) */
@media (min-width: 1024px){
  .therapy-card[aria-expanded="true"] .card-inner {
    transform: scale(1.06);
    transform-origin: center top;
  }
}

/* Calendly / form heights — taller on both desktop & mobile */
@media (min-width: 1024px){
  .therapy-card[aria-expanded="true"] .expander-body,
  .therapy-card[aria-expanded="true"] .expander-body > div,
  .therapy-card[aria-expanded="true"] .expander-body iframe {
    height: 80vh !important;
    max-height: 920px !important;
    min-height: 700px !important;
  }
}

@media (max-width: 767px){
  .therapy-card[aria-expanded="true"] .expander-body,
  .therapy-card[aria-expanded="true"] .expander-body > div,
  .therapy-card[aria-expanded="true"] .expander-body iframe {
    height: 86vh !important;
    min-height: 720px !important;
  }

  /* Prevent horizontal scroll; allow vertical content */
  .therapy-cards .therapy-card .card-expander { overflow-x: clip; overflow-y: visible; }
}

/* Ensure Calendly never forces width */
.card-expander .calendly-inline-widget { width: 100% !important; min-width: 0 !important; }
.card-expander iframe { width: 100% !important; max-width: 100% !important; min-width: 0 !important; display: block; }
/* === Inline Expander Sizing (2025-08-14 v6) — Desktop-only widen & mid heights === */

/* Keep open expander above neighbours */
.therapy-card .card-expander.is-open { position: relative; z-index: 4; }

/* DESKTOP ONLY: make the open card feel wider (mobile unchanged) */
@media (min-width: 1024px){
  .therapy-card[aria-expanded="true"] .card-inner {
    transform: scale(1.10);              /* more obvious than v5 */
    transform-origin: center top;
    transition: transform 180ms ease;     /* smooth open/close */
  }
}

/* Calendly / form heights — middle ground */
@media (min-width: 1024px){
  .therapy-card[aria-expanded="true"] .expander-body,
  .therapy-card[aria-expanded="true"] .expander-body > div,
  .therapy-card[aria-expanded="true"] .expander-body iframe {
    height: 72vh !important;   /* was 80vh */
    max-height: 820px !important;
    min-height: 640px !important;
  }
}

@media (max-width: 767px){
  .therapy-card[aria-expanded="true"] .expander-body,
  .therapy-card[aria-expanded="true"] .expander-body > div,
  .therapy-card[aria-expanded="true"] .expander-body iframe {
    height: 78vh !important;   /* was 86vh */
    min-height: 660px !important;
  }
  /* Make sure only horizontal overflow is clipped on mobile; vertical remains visible */
  .therapy-cards .therapy-card .card-expander { overflow-x: clip; overflow-y: visible; }
}

/* Ensure Calendly never forces width */
.card-expander .calendly-inline-widget { width: 100% !important; min-width: 0 !important; }
.card-expander iframe { width: 100% !important; max-width: 100% !important; min-width: 0 !important; display: block; }

/* (Optional quick hide if you keep honeypot in markup)
   Hide any Netlify honeypot labels/inputs by name. Remove if you delete from HTML instead. */
form [name="bot-field"], form label[for="bot-field"] { display: none !important; }
/* === Desktop Widen Effect (2025-08-14 v7) — visual widen, no layout reflow === */

/* Ensure scaled card can visually extend beyond its grid/flex footprint */
@media (min-width: 1024px){
  .therapy-cards { overflow: visible; }
  .therapy-card { overflow: visible; }

  /* Make the open card draw above neighbours */
  .therapy-card[aria-expanded="true"] { position: relative; z-index: 6; }

  /* Visually widen the open card ~one-third (no change on mobile) */
  .therapy-card[aria-expanded="true"] .card-inner {
    transform: scale(1.30);            /* ≈ 30% wider look */
    transform-origin: center top;
    transition: transform 180ms ease;   /* smooth in/out */
  }

  /* When closed, snap back smoothly */
  .therapy-card .card-inner {
    transition: transform 180ms ease;
  }
}

/* Keep all existing v6 height controls and mobile styles intact */
/* === Desktop Widen Effect (2025-08-14 v7b) — force-visible, stronger selectors === */

/* Ensure nothing clips the scaled card on desktop */
@media (min-width: 1024px){
  .therapy-section-v10,
  .therapy-container-v10,
  .therapy-cards,
  .therapy-card { overflow: visible; }

  /* Open card draws above neighbours */
  .therapy-cards .therapy-card[aria-expanded="true"] { position: relative; z-index: 10; }

  /* Visually widen the active card by ~33% (target both shells) */
  .therapy-cards .therapy-card[aria-expanded="true"] .card-inner,
  .therapy-cards .therapy-card[aria-expanded="true"] .card {
    transform: scaleX(1.33) !important;   /* width only */
    transform-origin: center top;
    transition: transform 180ms ease;
  }

  /* Smooth return to normal on close */
  .therapy-cards .therapy-card .card-inner,
  .therapy-cards .therapy-card .card {
    transition: transform 180ms ease;
  }
}

/* NOTE:
   - We intentionally do not set any @media (max-width: 767px) width/scale rules, so mobile stays unchanged.
   - If earlier CSS set a smaller transform (e.g., scale(1.02)) on the same selector,
     this v7b block comes later and uses !important to override it on desktop only. */


/* === Desktop Widen Effect (2025-08-14 v7c) — scale the outer card shell === */

@media (min-width: 1024px){
  /* Make sure nothing clips the widened card */
  .therapy-section-v10,
  .therapy-container-v10,
  .therapy-cards,
  .therapy-card { overflow: visible; }

  /* The open card should overlay neighbours */
  .therapy-cards .therapy-card[aria-expanded="true"] {
    position: relative;
    z-index: 12;
    /* Apply widen to the OUTER card (the rounded panel owner) */
    transform: scaleX(1.33) !important;
    transform-origin: center top;
    transition: transform 180ms ease;
  }

  /* Smooth default transition for all cards */
  .therapy-cards .therapy-card {
    transition: transform 180ms ease;
  
  
  }

  /* Neutralize any inner-scale rules from earlier patches when expanded,
     so text doesn’t stretch separately from the card shell. */
  .therapy-cards .therapy-card[aria-expanded="true"] .card-inner,
  .therapy-cards .therapy-card[aria-expanded="true"] .card {
    transform: none !important;
  }
}

/* No mobile width changes by design. */


/* === Desktop Widen Final Adjustment (2025-08-14) — scale outer card, neutralize inner text === */
@media (min-width: 1024px) {
  /* Ensure containers allow the widened card to overflow if needed */
  .therapy-section-v10,
  .therapy-container-v10,
  .therapy-cards,
  .therapy-card { overflow: visible; }

  /* Outer card scales wider on open */
  .therapy-cards .therapy-card[aria-expanded="true"] {
    position: relative;
    z-index: 20;
    transform: scaleX(1.33);
    transform-origin: center top;
    transition: transform 180ms ease;
  }

  /* Default transition on all cards */
  .therapy-cards .therapy-card {
    transition: transform 180ms ease;
  }

  /* Neutralize text scaling inside open card */
  .therapy-cards .therapy-card[aria-expanded="true"] .card-inner,
  .therapy-cards .therapy-card[aria-expanded="true"] .card {
    transform: scaleX(0.75) !important;
    transform-origin: center top;
  }
}



/* === Desktop Widen Adjust Final (2025-08-14 v7d) — grid-column widen effect === */
@media (min-width: 1024px){
  /* widen card by spanning two columns within the grid */
  .therapy-cards .therapy-card[aria-expanded="true"] {
    grid-column: span 2;
    z-index: 15;
    transition: all 180ms ease;
  }
  /* neutralize transforms on inner wrappers to prevent text distortion */
  .therapy-cards .therapy-card[aria-expanded="true"] .card-inner,
  .therapy-cards .therapy-card[aria-expanded="true"] .card {
    transform: none !important;
  }
}


/* === Desktop layout widen (2025-08-15 v8 FINAL) — true width, no text distortion === */

/* Desktop only */
@media (min-width: 1024px){

  /* 0) Hard override: kill any previous transform-based widen on open cards */
  .therapy-section-v10 .therapy-cards .therapy-card[aria-expanded="true"],
  .therapy-section-v10 .therapy-cards .therapy-card[aria-expanded="true"] .card,
  .therapy-section-v10 .therapy-cards .therapy-card[aria-expanded="true"] .card-inner {
    transform: none !important;
  }

  /* 1) Make the row flexible so a card can actually grow */
  .therapy-section-v10 .therapy-cards {
    display: flex !important;         /* override grid if present */
    gap: clamp(20px, 2vw, 32px);
    align-items: stretch;
    overflow: visible;
  }

  /* 2) Base card sizing (equal by default) */
  .therapy-section-v10 .therapy-cards .therapy-card {
    flex: 1 1 0;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    position: relative;
    z-index: 1;
    transition: flex-basis 180ms ease, flex 180ms ease;
  }

  /* 3) Open card becomes ~33% wider; neighbours compress slightly → even gaps */
  .therapy-section-v10 .therapy-cards .therapy-card[aria-expanded="true"] {
    flex: 2.65 1 0;
    z-index: 10;
  }

  /* 4) Ensure the inner expander can breathe */
  .therapy-section-v10 .therapy-cards .therapy-card .card-expander { overflow: visible; }
}

/* Mobile widths unchanged by design */





/* --- Kill legacy Calendly inline widget (from old script) --- */
.card-expander .calendly-inline-widget {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

