/* Our Care Team page (care-team-page.php).
   Shared: page-hero, balance-cta-section (assets/css/custom.css). */

body.page-template-care-team-page {
    --ct-heading: #250806;
    --ct-text: #5f6368;
    --ct-brown: #8e4a24;
    --ct-brown-dark: #6f3618;
    --ct-slate: #326374;
    --ct-slate-dark: #264d5b;
    --ct-gold: #b98a5e;
    --ct-cream: #f8f3ed;
}

/* ---- Shared bits ---- */
.ct-title {
    margin: 0 0 12px;
    color: var(--ct-heading);
    font-family: var(--font-secondary);
    font-size: var(--fs-h2);
    font-weight: 600;
    line-height: 1.12;
}
.ct-title--lg {
    font-size: var(--fs-h2);
}
.ct-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    color: var(--ct-brown);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}
.ct-kicker::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--ct-gold);
}
.ct-subtitle {
    display: block;
    margin-bottom: 20px;
    color: var(--ct-slate);
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}
.ct-rule {
    display: block;
    width: 56px;
    height: 1px;
    margin: 18px auto;
    background: var(--ct-gold);
}
.ct-rule--left {
    margin: 0 0 22px;
}
.ct-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border-radius: 3px;
    background: var(--ct-brown);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 1.4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease;
}
.ct-btn:hover {
    background: var(--ct-brown-dark);
    color: #fff;
}

/* ---- Intro ---- */
.ct-intro {
    padding: 64px 0;
    background: var(--ct-cream);
}
.ct-intro__row {
    display: grid;
    /* Equal halves: the divider sits on the page centre, in line with the
       middle of the four steps below. */
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
}
.ct-intro__badge {
    padding: 8px 48px;
    border-right: 1px solid #d3bda8;
    text-align: center;
}
.ct-intro__icon svg {
    width: 50px;
    height: 50px;
    fill: none;
    stroke: var(--ct-brown);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ct-intro__title {
    margin: 0;
    color: var(--ct-heading);
    font-family: var(--font-secondary);
    font-size: var(--fs-h2);
    font-weight: 500;
    line-height: 1.15;
}
.ct-intro__text {
    max-width: 780px;
    margin: 0;
    padding-left: clamp(40px, 5vw, 80px);
    color: var(--ct-text);
    font-size: var(--fs-lead);
    line-height: 1.6;
}
.ct-intro__text p {
    margin: 0 0 14px;
}
.ct-intro__text p:last-child {
    margin-bottom: 0;
}

/* ---- Steps ---- */
.ct-steps {
    position: relative;
    overflow: hidden;
    padding: 56px 0;
    background: #fff;
}
.ct-steps__leaf {
    position: absolute;
    left: -40px;
    top: 50%;
    width: 170px;
    fill: #eef0e6;
    stroke: #d9dccd;
    stroke-width: 1.2;
    transform: translateY(-45%) rotate(-100deg);
    pointer-events: none;
}
.ct-steps__leaf path:first-child {
    fill: none;
}
.ct-steps__row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0 auto;
    list-style: none;
}
/* Closing line under the four steps. */
.ct-steps__note {
    position: relative;
    max-width: 820px;
    margin: 40px auto 0;
    color: var(--ct-heading);
    font-family: var(--font-secondary);
    font-size: var(--fs-h4);
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}
/* justify.js justifies long paragraphs; this centred line reads better without it. */
.ct-steps__note.is-justified-center {
    text-align: center;
}
.ct-step {
    position: relative;
    text-align: center;
}
.ct-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 42px;
    right: -32px;
    width: 52px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 10' fill='none' stroke='%23c98f6e' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M1 5h49M45 1l5 4-5 4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ct-step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    margin-bottom: 18px;
    border-radius: 50%;
}
.ct-step__icon svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ct-step__icon--sage { background: #d9dbcd; color: #4d5a35; }
.ct-step__icon--blush { background: #f6dccd; color: #9a4a2a; }
.ct-step__icon--sky { background: #d2dfe5; color: #335f71; }
.ct-step__icon--sand { background: #e5d4c2; color: #7b4e2b; }
.ct-step h3 {
    margin: 0 0 8px;
    color: var(--ct-heading);
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}
.ct-step p {
    margin: 0;
    color: var(--ct-text);
    font-size: var(--fs-body);
    line-height: 1.5;
}

/* ---- Academic (text left, image bleeding to the right edge) ---- */
.ct-academic {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding: 40px 0;
    background: #e2eff5;
}
.ct-academic__content {
    width: 100%;
    max-width: 640px;
    justify-self: end;
    padding: 30px 60px 30px 24px;
}
.ct-academic__content p {
    margin: 0 0 16px;
    color: var(--ct-text);
    font-size: var(--fs-body);
    line-height: 1.65;
}
.ct-academic__figure img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 6px 0 0 6px;
}

/* ---- Vaidyas ---- */
.ct-vaidyas {
    padding: 64px 0 72px;
    background: #fbf7ee;
}
.ct-vaidyas .ct-title--lg {
    margin-bottom: 30px;
}
.ct-vaidyas__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.ct-vaidya {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 22px;
    border-radius: 4px;
}
.ct-vaidya--sand { background: #f3ece2; }
.ct-vaidya--sky { background: #e5ecf4; }
.ct-vaidya__photo {
    flex: 0 0 auto;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 3px;
}
.ct-vaidya__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 6px;
}
.ct-vaidya h3 {
    margin: 0 0 6px;
    color: var(--ct-heading);
    font-family: var(--font-secondary);
    font-size: var(--fs-h3);
    font-weight: 600;
}
.ct-vaidya__role {
    margin-bottom: 16px;
    color: var(--ct-brown);
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}
.ct-vaidya p {
    margin: 0 0 18px;
    color: var(--ct-text);
    font-size: var(--fs-body);
    line-height: 1.6;
}
.ct-vaidya--sky .ct-vaidya__role { color: var(--ct-slate); }
.ct-vaidya--sky .ct-btn { background: var(--ct-slate); }
.ct-vaidya--sky .ct-btn:hover { background: var(--ct-slate-dark); }

/* ---- Therapists (image bleeding to the left edge, text right) ---- */
.ct-therapists {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding: 0 0 50px;
    background: #fff;
}
.ct-therapists__figure img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    max-height: 520px;
    object-fit: cover;
    border-radius: 0 6px 6px 0;
}
.ct-therapists__content {
    max-width: 640px;
    padding: 40px 24px 0 56px;
}
.ct-therapists__content p {
    margin: 0 0 14px;
    color: var(--ct-text);
    font-size: var(--fs-body);
    line-height: 1.6;
}
.ct-qualities {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}
.ct-quality {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
    text-align: center;
}
.ct-quality + .ct-quality {
    border-left: 1px solid #e3ddd3;
}
.ct-quality__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    border-radius: 50%;
}
.ct-quality__icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ct-quality__icon--sage { background: #dfe5d2; color: #4d6236; }
.ct-quality__icon--sky { background: #d2dde1; color: #335f71; }
.ct-quality__icon--blush { background: #f5dbce; color: #9a4a2a; }
.ct-quality__icon--rose { background: #eed8d6; color: #8a3b3b; }
.ct-quality strong {
    margin-bottom: 4px;
    color: var(--ct-heading);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.ct-quality small {
    color: var(--ct-text);
    font-size: var(--fs-small);
    line-height: 1.45;
}

/* ---- Therapy team grid ---- */
.ct-kicker--center {
    justify-content: center;
}
.ct-kicker--center::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--ct-gold);
}
.ct-team {
    padding: 64px 0 76px;
    background: #fbf7ee;
}
.ct-team__head {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}
.ct-team__head p {
    margin: 0;
    color: var(--ct-text);
    font-size: var(--fs-body);
    line-height: 1.6;
}
.ct-team__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 20px;
    max-width: 920px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.ct-member {
    padding: 0 0 14px;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 6px 22px rgb(60 35 15 / 7%);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.ct-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgb(60 35 15 / 12%);
}
.ct-member__photo {
    display: block;
    aspect-ratio: 1 / 1;
    margin-bottom: 12px;
    overflow: hidden;
    background: #eef0ea;
}
.ct-member__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.ct-member:hover .ct-member__photo img {
    transform: scale(1.04);
}
.ct-member h3 {
    margin: 0 0 6px;
    padding: 0 12px;
    color: var(--ct-heading);
    font-family: var(--font-secondary);
    font-size: var(--fs-lead);
    font-weight: 600;
}
.ct-member__role {
    display: block;
    padding: 0 12px;
    color: var(--ct-brown);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

/* ---- Responsive ---- */
@media (max-width: 1199px) {
    .ct-vaidya__photo { height: 260px; object-position: top; }
    .ct-qualities { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
    .ct-quality:nth-child(3) { border-left: 0; }
}
@media (max-width: 991px) {
    .ct-intro__row { grid-template-columns: minmax(0, 1fr); }
    .ct-intro__badge { padding: 0 0 28px; border-right: 0; border-bottom: 1px solid #d3bda8; }
    .ct-intro__text { padding: 28px 0 0; text-align: center; }
    .ct-steps__row { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .ct-step::after { display: none; }
    .ct-academic,
    .ct-therapists { grid-template-columns: minmax(0, 1fr); }
    .ct-academic__content { justify-self: stretch; max-width: none; padding: 20px 24px 30px; }
    .ct-academic__figure { padding: 0 24px; }
    .ct-academic__figure img,
    .ct-therapists__figure img { border-radius: 6px; min-height: 0; max-height: 380px; }
    .ct-therapists__figure { padding: 0 24px; }
    .ct-therapists__content { max-width: none; padding: 32px 24px 0; }
}
@media (max-width: 991px) {
    .ct-team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .ct-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
    .ct-vaidyas__grid { grid-template-columns: minmax(0, 1fr); }
    .ct-qualities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .ct-steps__row { grid-template-columns: minmax(0, 1fr); }
    .ct-vaidya__photo { height: 300px; }
}
/* Profile pop-ups: assets/css/vaidya-profiles.css (shared). */

/* ==========================================================================
   Meet Our Vaidyas - refined cards: centred row, one consistent card style,
   photo on top with a soft frame, gold accent line, details with icons and a
   full-width button.
   ========================================================================== */
.ct-vaidyas__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
    justify-content: center;
    gap: 32px;
}
.ct-vaidya,
.ct-vaidya--sand,
.ct-vaidya--sky {
    position: relative;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: #fffdf8;
    border: 1px solid #eadfcd;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgb(60 45 25 / 8%);
    transition: transform .35s ease, box-shadow .35s ease;
}
.ct-vaidya:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 46px rgb(60 45 25 / 15%);
}
.ct-vaidya__photo {
    height: 300px;
    border-radius: 0;
    object-position: center 22%;
    transition: transform .8s ease;
}
.ct-vaidya:hover .ct-vaidya__photo {
    transform: scale(1.04);
}
.ct-vaidya__body {
    position: relative;
    z-index: 1;
    align-items: center;
    padding: 24px 26px 28px;
    text-align: center;
    background: #fffdf8;
    border-top: 3px solid var(--color-light-primary);
}
.ct-vaidya h3 {
    margin: 0 0 6px;
    font-size: var(--fs-h3);
    line-height: 1.15;
}
.ct-vaidya__role,
.ct-vaidya--sky .ct-vaidya__role {
    margin-bottom: 18px;
    color: #8d562e;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 2px;
}
.ct-vaidya__meta {
    display: grid;
    gap: 10px;
    width: 100%;
    margin: 0 0 22px;
    padding: 16px 0;
    list-style: none;
    border-top: 1px solid #efe5d4;
    border-bottom: 1px solid #efe5d4;
}
.ct-vaidya__meta li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--ct-text);
    font-size: var(--fs-small);
    line-height: 1.4;
}
.ct-vaidya__meta svg {
    flex: none;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--color-light-primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ct-vaidya .ct-btn,
.ct-vaidya--sky .ct-btn {
    justify-content: center;
    width: 100%;
    background: var(--color-primary);
}
.ct-vaidya .ct-btn:hover,
.ct-vaidya--sky .ct-btn:hover {
    background: var(--color-light-primary);
}
@media (max-width: 575px) {
    .ct-vaidyas__grid { grid-template-columns: minmax(0, 1fr); }
    .ct-vaidya__photo { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
    .ct-vaidya,
    .ct-vaidya__photo { transition: none; }
    .ct-vaidya:hover,
    .ct-vaidya:hover .ct-vaidya__photo { transform: none; }
}
/* heading centred over the centred cards */
.ct-vaidyas .ct-kicker,
.ct-vaidyas .ct-title--lg {
    display: block;
    text-align: center;
}
.ct-vaidyas .ct-title--lg {
    margin-bottom: 40px;
}

/* ==========================================================================
   Meet Our Therapy Team - same card style as the Vaidya cards: cream card,
   rounded with soft shadow, photo edge to edge, gold line under the photo,
   centred name and role, lift on hover.
   ========================================================================== */
.ct-team__grid {
    gap: 28px;
}
.ct-member {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 20px;
    overflow: hidden;
    text-align: center;
    background: #fffdf8;
    border: 1px solid #eadfcd;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgb(60 45 25 / 8%);
    transition: transform .35s ease, box-shadow .35s ease;
}
.ct-member:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 46px rgb(60 45 25 / 15%);
}
.ct-member__photo {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    border-bottom: 3px solid var(--color-light-primary);
}
.ct-member__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
    transition: transform .8s ease;
}
.ct-member:hover .ct-member__photo img {
    transform: scale(1.05);
}
.ct-member h3 {
    margin: 0 14px 6px;
    font-size: var(--fs-h4);
    line-height: 1.2;
}
.ct-member__role {
    margin: 0 14px;
    padding-top: 8px;
    color: #8d562e;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    line-height: 1.5;
    text-transform: uppercase;
    border-top: 1px solid #efe5d4;
}
@media (prefers-reduced-motion: reduce) {
    .ct-member,
    .ct-member__photo img { transition: none; }
    .ct-member:hover,
    .ct-member:hover .ct-member__photo img { transform: none; }
}
