/* ================================================
   PRICING PAGE  -  css/pages/pricing.css
   Tunbridge Wellness Membership & Pricing
   ================================================ */

.pricing-main {
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

/* ========================
   BACK LINK
======================== */
.pricing-back-link,
.top-subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 1.75rem;
    transition: color var(--transition), transform var(--transition);
}

.pricing-back-link:hover,
.top-subnav-link:hover {
    color: var(--plum);
    transform: translateX(-3px);
}

/* ========================
   HERO SECTION
======================== */
.pricing-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.pricing-hero .eyebrow {
    margin-bottom: 0.75rem;
    color: var(--warm-dark);
}

.pricing-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.12;
    margin-bottom: 1.25rem;
    color: var(--forest);
}

.pricing-hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 auto;
}

/* ========================
   ROLE TOGGLE SWITCH
======================== */
.pricing-toggle-section {
    display: flex;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.pricing-toggle-container {
    background: rgba(108, 83, 109, 0.08);
    padding: 0.35rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    position: relative;
    border: 1px solid rgba(108, 83, 109, 0.12);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pricing-toggle-btn {
    border: none;
    background: transparent;
    padding: 0.75rem 1.65rem;
    border-radius: var(--radius-pill);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.pricing-toggle-btn:hover {
    color: var(--forest);
}

.pricing-toggle-btn[aria-selected="true"] {
    background: var(--white);
    color: var(--forest);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(45, 62, 51, 0.12);
}

.pricing-toggle-btn:focus-visible {
    outline: 2px solid var(--forest);
    outline-offset: 2px;
}

/* ========================
   PRICING PANELS & CARDS
======================== */
.pricing-panel {
    display: none;
    animation: fadeInTab 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pricing-panel.is-active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Practitioner Showcase Layout (Panel A) */
.practitioner-tier-wrapper {
    max-width: 680px;
    margin: 0 auto;
}

/* Venue 3-Column Grid (Panel B) */
.venues-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
    align-items: stretch;
    padding-top: 1rem;
}

/* Base Pricing Card */
.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.25rem 2.25rem;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid rgba(108, 83, 109, 0.12);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Featured / Most Popular Card */
.pricing-card--featured {
    border-color: var(--forest);
    background: linear-gradient(175deg, #FAF7FC 0%, var(--white) 100%);
    box-shadow: 0 12px 36px rgba(108, 83, 109, 0.12);
}

.pricing-card--practitioner {
    border-color: rgba(74, 123, 114, 0.35);
    background: linear-gradient(175deg, #F4F8F7 0%, var(--white) 65%);
    box-shadow: 0 14px 40px rgba(74, 123, 114, 0.12);
    padding: 3rem 2.75rem 2.75rem;
}

.pricing-card--seeker {
    border-color: rgba(74, 123, 114, 0.3);
    background: linear-gradient(175deg, #F7FAF9 0%, var(--white) 65%);
    box-shadow: 0 14px 40px rgba(74, 123, 114, 0.1);
    padding: 3rem 2.75rem 2.75rem;
}

/* Badges */
.pricing-card-badge {
    position: absolute;
    top: -0.85rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.95rem;
    border-radius: var(--radius-pill);
    background: var(--forest);
    color: var(--white);
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 600;
}

.pricing-card-badge--offer {
    background: var(--leaf);
}

.pricing-card-badge--popular {
    background: var(--forest);
}

/* Card Header & Content */
.pricing-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Venue Capacity Badge */
.venue-capacity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    background: rgba(108, 83, 109, 0.07);
    color: var(--forest);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.9rem;
    border: 1px solid rgba(108, 83, 109, 0.14);
}

.pricing-card--featured .venue-capacity-badge {
    background: rgba(108, 83, 109, 0.12);
    color: var(--forest);
    border-color: rgba(108, 83, 109, 0.22);
}

.venue-capacity-badge svg {
    flex-shrink: 0;
    opacity: 0.85;
}

/* Modality Pills ("Ideal For") */
.venue-ideal-wrapper {
    margin: 1rem 0 1.25rem;
}

.venue-ideal-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--warm-dark);
    margin-bottom: 0.5rem;
}

.venue-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.venue-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.65rem;
    border-radius: var(--radius-pill);
    background: rgba(74, 123, 114, 0.08);
    color: #38635B;
    font-size: 0.76rem;
    font-weight: 500;
    border: 1px solid rgba(74, 123, 114, 0.2);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pricing-card:hover .venue-pill {
    background: rgba(74, 123, 114, 0.14);
    border-color: rgba(74, 123, 114, 0.32);
    transform: translateY(-1px);
}

.venue-title-break {
    display: block;
}

/* Align Venue Grid Elements Across Cards */
.venues-pricing-grid .pricing-card-title {
    min-height: 4.1rem;
    line-height: 1.25;
}

.venues-pricing-grid .pricing-card-focus {
    min-height: 2.8rem;
}

.venues-pricing-grid .venue-ideal-wrapper {
    min-height: 5.4rem;
}

.pricing-card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.65rem;
    color: var(--forest);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.pricing-card--practitioner .pricing-card-title {
    font-size: 2rem;
}

.pricing-card-focus {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    min-height: 2.7rem;
}

.pricing-card--practitioner .pricing-card-focus {
    min-height: auto;
    font-size: 0.95rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-price-wrap {
    margin: 1.25rem 0 0.5rem;
}

.pricing-price-primary {
    font-family: 'DM Serif Display', serif;
    font-size: 2.4rem;
    color: var(--forest);
    line-height: 1;
}

.pricing-card--practitioner .pricing-price-primary {
    font-size: 3rem;
    color: #38635B;
}

.pricing-price-schedule {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.45rem;
    font-weight: 500;
}

.pricing-card--practitioner .pricing-price-schedule {
    font-size: 0.95rem;
    color: var(--text);
    margin-top: 0.6rem;
}

.pricing-divider {
    height: 1px;
    background: rgba(108, 83, 109, 0.1);
    margin: 1.5rem 0;
    width: 100%;
}

/* Features List */
.pricing-features {
    list-style: none;
    margin-bottom: 2.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.45;
}

.pricing-feat-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(108, 83, 109, 0.12);
    color: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.pricing-card--practitioner .pricing-feat-icon {
    background: rgba(74, 123, 114, 0.16);
    color: var(--leaf);
}

.pricing-card--featured .pricing-feat-icon {
    background: rgba(108, 83, 109, 0.15);
    color: var(--forest);
}

/* CTA Button */
.pricing-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.95rem 1.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
    text-align: center;
    box-sizing: border-box;
}

.pricing-cta-btn--primary {
    background: var(--forest);
    color: var(--white);
    border: 1px solid transparent;
}

.pricing-cta-btn--primary:hover {
    background: var(--forest-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.pricing-cta-btn--sage {
    background: #4A7B72;
    color: var(--white);
    border: 1px solid transparent;
}

.pricing-cta-btn--sage:hover {
    background: #3B665E;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 123, 114, 0.28);
    color: var(--white);
}

.pricing-cta-btn--ghost {
    background: rgba(108, 83, 109, 0.07);
    color: var(--forest);
    border: 1px solid rgba(108, 83, 109, 0.16);
}

.pricing-cta-btn--ghost:hover {
    background: var(--forest);
    color: var(--white);
    border-color: var(--forest);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ========================
   TRANSPARENCY PROMISE GRID
======================== */
.transparency-section {
    margin-top: 4.5rem;
}

.transparency-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.transparency-card {
    background: var(--white);
    border: 1px solid rgba(108, 83, 109, 0.1);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.transparency-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.transparency-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(74, 123, 114, 0.12);
    color: var(--leaf);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transparency-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
    color: var(--forest);
}

.transparency-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ========================
   FREQUENTLY ASKED QUESTIONS
======================== */
.pricing-faq-section {
    scroll-margin-top: calc(var(--header-height, 195px) + 2rem);
    margin-top: 5rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.pricing-faq-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.pricing-faq-header .eyebrow {
    color: var(--leaf);
    display: inline-block;
    margin-bottom: 0.5rem;
    transition: color var(--transition);
}

.pricing-faq-header h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.35rem);
    color: var(--forest);
    margin: 0;
    transition: opacity 0.2s ease;
}

.pricing-faq-subtitle {
    font-size: 0.96rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0.75rem auto 0;
    line-height: 1.55;
    transition: opacity 0.2s ease;
}

/* --- Synchronised Mini Role Switcher for FAQ --- */
.faq-role-switcher {
    display: inline-flex;
    background: rgba(108, 83, 109, 0.06);
    border: 1px solid rgba(108, 83, 109, 0.12);
    padding: 4px;
    border-radius: var(--radius-pill, 999px);
    margin: 1.6rem auto 0;
    gap: 4px;
    max-width: 100%;
}

.faq-role-btn {
    appearance: none;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill, 999px);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.faq-role-btn:hover {
    color: var(--forest);
    background: rgba(255, 255, 255, 0.6);
}

.faq-role-btn.is-active {
    background: var(--white);
    color: var(--forest);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(45, 62, 51, 0.08);
}

.faq-role-btn:focus-visible {
    outline: 2px solid var(--plum);
    outline-offset: 2px;
}

/* --- Audience Reassurance Callout Note --- */
.faq-audience-note {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #FAF8F5;
    border: 1px solid var(--sand);
    border-left: 3.5px solid var(--plum);
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    line-height: 1.5;
}

.faq-audience-note--seeker {
    border-left-color: var(--leaf);
    background: #F4F7F5;
}

.faq-audience-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.faq-audience-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: var(--text);
    text-align: left;
}

.faq-audience-text strong {
    color: var(--forest);
    font-weight: 600;
}

.faq-audience-text span {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.faq-switch-link {
    background: none;
    border: none;
    color: var(--plum);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-family: inherit;
    font-size: 0.84rem;
    padding: 0;
    margin-left: 0.25rem;
    display: inline;
    transition: color 0.2s ease;
}

.faq-switch-link:hover {
    color: var(--forest);
}

.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-accordion-list[hidden] {
    display: none !important;
}

.faq-accordion-list.is-active {
    animation: fadeInFaq 0.25s ease-out;
}

@keyframes fadeInFaq {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(108, 83, 109, 0.12);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
    overflow: hidden;
}

.faq-item:hover {
    border-color: rgba(108, 83, 109, 0.24);
}

.faq-item[open] {
    border-color: rgba(74, 123, 114, 0.38);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--forest);
    user-select: none;
    list-style: none;
    transition: background-color var(--transition), color var(--transition);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    display: none;
    content: "";
}

.faq-question:focus-visible {
    outline: 2px solid var(--leaf);
    outline-offset: -2px;
}

.faq-question:hover {
    background: rgba(108, 83, 109, 0.025);
    color: var(--plum);
}

.faq-item[open] .faq-question {
    border-bottom: 1px solid rgba(108, 83, 109, 0.08);
}

.faq-chevron {
    flex-shrink: 0;
    margin-left: 1rem;
    color: var(--text-muted);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), color var(--transition);
}

.faq-question:hover .faq-chevron {
    color: var(--plum);
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--leaf);
}

.faq-answer {
    padding: 1.25rem 1.5rem 1.35rem;
    background: rgba(248, 246, 242, 0.45);
}

.faq-answer p {
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

.faq-answer a {
    color: var(--forest);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
}

.faq-answer a:hover {
    color: var(--leaf);
}

/* ========================
   MUNICIPAL & COMMUNITY FOOTNOTE
======================== */
.community-footnote {
    margin-top: 3rem;
    background: linear-gradient(135deg, rgba(235, 243, 240, 0.75), rgba(244, 239, 230, 0.85));
    border: 1px dashed rgba(74, 123, 114, 0.35);
    border-radius: var(--radius-md);
    padding: 1.4rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.community-footnote-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(74, 123, 114, 0.16);
    color: var(--leaf);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.community-footnote-text {
    font-size: 0.92rem;
    color: var(--ink);
    line-height: 1.55;
}

.community-footnote-text a {
    color: var(--forest);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.community-footnote-text a:hover {
    color: var(--leaf);
}

/* ========================
   RESPONSIVE ADJUSTMENTS
======================== */
@media (max-width: 992px) {
    .venues-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .venues-pricing-grid .pricing-card:last-child {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .transparency-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .venues-pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .venues-pricing-grid .pricing-card:last-child {
        grid-column: span 1;
        max-width: none;
    }

    .venues-pricing-grid .pricing-card-title,
    .venues-pricing-grid .pricing-card-focus,
    .venues-pricing-grid .venue-ideal-wrapper {
        min-height: auto;
    }

    .pricing-card {
        padding: 2rem 1.5rem 1.75rem;
    }

    .pricing-card--practitioner,
    .pricing-card--seeker {
        padding: 2.25rem 1.5rem 2rem;
    }

    .pricing-toggle-container {
        width: 100%;
        max-width: 560px;
    }

    .pricing-toggle-btn {
        flex: 1;
        padding: 0.65rem 0.75rem;
        font-size: 0.82rem;
        justify-content: center;
        gap: 0.4rem;
    }

    .community-footnote {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .pricing-faq-section {
        scroll-margin-top: calc(var(--header-height, 140px) + 1.5rem);
        margin-top: 3.5rem;
    }

    .pricing-faq-header h2 {
        font-size: 1.75rem;
    }

    .pricing-faq-subtitle {
        font-size: 0.9rem;
    }

    .faq-role-switcher {
        width: 100%;
        display: flex;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .faq-role-switcher::-webkit-scrollbar {
        display: none;
    }

    .faq-role-btn {
        flex: 1 0 auto;
        padding: 0.45rem 0.85rem;
        font-size: 0.82rem;
        text-align: center;
    }

    .faq-audience-note {
        padding: 0.8rem 1rem;
        font-size: 0.84rem;
    }

    .faq-question {
        padding: 1.1rem 1.25rem;
        font-size: 0.98rem;
    }

    .faq-answer {
        padding: 1.1rem 1.25rem;
    }
}

@media (max-width: 520px) {
    .pricing-toggle-container {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 0.5rem;
        gap: 0.35rem;
        max-width: 360px;
    }

    .pricing-toggle-btn {
        width: 100%;
        border-radius: var(--radius-sm);
        padding: 0.7rem 1rem;
        font-size: 0.88rem;
    }
}

/* Header Afterdark switch pill - zero jump & subtle dusk orange glow */
#navbar .portal-switch-pill--afterdark,
.nav-links a.portal-switch-pill--afterdark,
a.portal-switch-pill--afterdark,
.portal-switch-pill--afterdark {
    transform: none !important;
    -webkit-transform: none !important;
}

#navbar .portal-switch-pill--afterdark:hover,
.nav-links a.portal-switch-pill--afterdark:hover,
a.portal-switch-pill--afterdark:hover,
.portal-switch-pill--afterdark:hover {
    background: #241628 !important;
    background-color: #241628 !important;
    border-color: rgba(212, 130, 89, 0.75) !important;
    color: #F2BA9D !important;
    box-shadow: 0 0 14px rgba(212, 130, 89, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    transform: none !important;
    -webkit-transform: none !important;
}

.portal-switch-pill--afterdark .portal-switch-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.portal-switch-pill--afterdark:hover .portal-switch-icon {
    transform: rotate(-15deg) scale(1.15) !important;
}

