/* ================================================
   THERAPISTS PAGE - PREMIUM UI SYSTEM
   Client Care Continuity + Engagement Cycles
   ================================================ */

:root {
    --primary-accent: #6b18d8;
    --secondary-blue: #60a5fa;
    --accent-teal: #14b8a6;
    --accent-warm: #f59e0b;
    --dark-bg: #0f0f0f;
    --light-text: #e5e5e5;
    --border-subtle: rgba(107, 24, 216, 0.12);
    --border-medium: rgba(107, 24, 216, 0.2);
    --glass-bg: rgba(15, 15, 15, 0.6);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
    padding-top: clamp(140px, 16vh, 175px) !important;
    padding-bottom: clamp(3.5rem, 7vh, 5.5rem);
    position: relative;
    background: linear-gradient(135deg, rgba(107, 24, 216, 0.04) 0%, rgba(96, 165, 250, 0.02) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.sub-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.sub-hero-eyebrow .eyebrow-line {
    width: 24px;
    height: 2px;
    background: var(--primary-accent);
    border-radius: 1px;
}

.sub-hero-eyebrow .eyebrow-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-accent);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 24px;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #6b18d8 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sub-hero-description {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.6;
    color: rgba(229, 229, 229, 0.8);
    max-width: 700px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-actions a {
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    padding: 14px 28px;
    background: var(--primary-accent);
    color: white;
    border-radius: 8px;
    font-size: 15px;
}

.btn-primary:hover {
    background: rgba(107, 24, 216, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(107, 24, 216, 0.3);
}

.btn-secondary {
    padding: 14px 28px;
    background: transparent;
    color: white;
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    font-size: 15px;
}

.btn-secondary:hover {
    border-color: var(--primary-accent);
    background: rgba(107, 24, 216, 0.05);
}

/* SVG Icon size constraints */
.btn-primary svg,
.btn-secondary svg,
.btn-large svg,
.btn-nav-cta svg,
.btn-sm svg,
.mega-menu-action svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    margin-left: 0.5rem;
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(107, 24, 216, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-accent);
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: rgba(229, 229, 229, 0.7);
    line-height: 1.4;
}

/* ================================================
   CARE CONTINUITY FLOW SECTION
   ================================================ */
.care-flow-section {
    padding: clamp(3.5rem, 7vh, 5.5rem) 0;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vh, 4rem);
}

.section-header.center {
    text-align: center;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 12px;
}

.section-title span {
    background: linear-gradient(135deg, #6b18d8 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Care Flow Visualization */
.care-flow-visual {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.care-stage {
    position: relative;
    padding: 24px;
    background: linear-gradient(135deg, rgba(107, 24, 216, 0.08) 0%, rgba(96, 165, 250, 0.04) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.care-stage:hover {
    background: linear-gradient(135deg, rgba(107, 24, 216, 0.15) 0%, rgba(96, 165, 250, 0.08) 100%);
    border-color: var(--primary-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(107, 24, 216, 0.2);
}

.care-stage::after {
    content: '';
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: linear-gradient(to bottom, var(--primary-accent), transparent);
    opacity: 0.3;
}

.care-stage:last-child::after {
    display: none;
}

.stage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(107, 24, 216, 0.2);
    border: 2px solid var(--primary-accent);
    border-radius: 50%;
    font-weight: 700;
    color: var(--primary-accent);
    margin-bottom: 12px;
    font-size: 18px;
}

.stage-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* ================================================
   ENGAGEMENT WORKFLOW CYCLES
   ================================================ */
.engagement-cycles-section {
    padding: clamp(3.5rem, 7vh, 5.5rem) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.workflow-card {
    position: relative;
    padding: 32px;
    background: linear-gradient(135deg, rgba(107, 24, 216, 0.08) 0%, rgba(96, 165, 250, 0.04) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.workflow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-blue));
    opacity: 0.6;
}

.workflow-card:hover {
    background: linear-gradient(135deg, rgba(107, 24, 216, 0.15) 0%, rgba(96, 165, 250, 0.08) 100%);
    border-color: var(--primary-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(107, 24, 216, 0.2);
}

.workflow-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

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

.workflow-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: rgba(229, 229, 229, 0.8);
    padding-left: 8px;
    position: relative;
}

.workflow-step::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-accent);
    font-weight: 700;
    font-size: 14px;
}

.workflow-step-text {
    line-height: 1.5;
}

/* ================================================
   AUTOMATION CAPABILITY SECTION
   ================================================ */
.automation-capability-section {
    padding: clamp(3.5rem, 7vh, 5.5rem) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.capability-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: linear-gradient(135deg, rgba(107, 24, 216, 0.08) 0%, rgba(96, 165, 250, 0.04) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.capability-card:hover {
    background: linear-gradient(135deg, rgba(107, 24, 216, 0.15) 0%, rgba(96, 165, 250, 0.08) 100%);
    border-color: var(--primary-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(107, 24, 216, 0.2);
}

.capability-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    width: fit-content;
    height: 44px;
    padding: 0 12px;
    background: rgba(107, 24, 216, 0.2);
    border: 2px solid var(--primary-accent);
    border-radius: 10px;
    font-weight: 800;
    color: var(--primary-accent);
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.capability-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.capability-desc {
    font-size: 13.5px;
    color: rgba(229, 229, 229, 0.7);
    line-height: 1.6;
}

/* ================================================
   CTA SECTION
   ================================================ */
.ghl-cta-section {
    padding: clamp(3.5rem, 7vh, 5.5rem) 0;
    position: relative;
}

.cta-banner-glass {
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
    background: linear-gradient(135deg, rgba(107, 24, 216, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    text-align: center;
}

.cta-eyebrow {
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-accent);
    margin-bottom: 16px;
}

.cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cta-desc {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: rgba(229, 229, 229, 0.8);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-large {
    padding: 16px 40px !important;
    font-size: 16px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ================================================
   FOOTER PRE-CTA
   ================================================ */
.footer-pre-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background: linear-gradient(135deg, rgba(107, 24, 216, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: clamp(3rem, 6vh, 5rem);
}

.footer-pre-cta-content {
    flex: 1;
}

.footer-pre-cta-title {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.footer-pre-cta-desc {
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    color: rgba(229, 229, 229, 0.8);
    line-height: 1.6;
}

/* ================================================
   SITE FOOTER
   ================================================ */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.logo {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
}

.logo-dot {
    color: var(--primary-accent);
}

.footer-desc {
    font-size: 13px;
    color: rgba(229, 229, 229, 0.7);
    line-height: 1.6;
    margin-top: 12px;
}

.footer-links-group,
.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-label,
.footer-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-accent);
    margin-bottom: 4px;
}

.footer-links-group a,
.footer-links-col a {
    font-size: 14px;
    color: rgba(229, 229, 229, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-group a:hover,
.footer-links-col a:hover {
    color: var(--primary-accent);
}

.footer-links-group a.active {
    color: var(--primary-accent);
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.footer-copyright {
    font-size: 12px;
    color: rgba(229, 229, 229, 0.6);
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a {
    font-size: 12px;
    color: rgba(229, 229, 229, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--primary-accent);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {
    .care-flow-visual {
        grid-template-columns: repeat(3, 1fr);
    }

    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .footer-pre-cta {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-stats-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .care-flow-visual {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .care-stage::after {
        display: none;
    }

    .workflow-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .capability-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
}

@media (max-width: 480px) {
    .care-flow-visual {
        grid-template-columns: 1fr !important;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .care-stage,
    .workflow-card,
    .capability-card {
        padding: 20px;
    }

    .stage-name {
        font-size: 12px;
    }
}

body:not(.loading) .loading-hidden {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.4s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================
   STATE CONTEXT — THERAPY OPERATIONS
   ================================================ */
#state-context {
    background:
        radial-gradient(circle at 82% 14%, rgba(96, 165, 250, 0.08), transparent 34%),
        linear-gradient(135deg, rgba(107, 24, 216, 0.08), rgba(15, 15, 15, 0.98));
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

#state-context .section-header {
    max-width: 860px;
    margin: 0 auto 3rem;
    text-align: center;
}

#state-context .section-eyebrow {
    color: var(--primary-accent);
    letter-spacing: 0.14em;
}

#state-context .section-title {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    margin-bottom: 1.25rem;
}

#state-context .matrix-grid {
    display: grid;
    grid-template-columns: minmax(0, 820px);
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
}

#state-context .matrix-card {
    min-height: 0;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background: rgba(18, 18, 23, 0.94);
    border: 1px solid var(--border-medium);
    border-top: 3px solid var(--primary-accent);
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

#state-context .matrix-card:hover {
    background: rgba(24, 24, 34, 0.98);
    border-color: rgba(96, 165, 250, 0.35);
    border-top-color: var(--secondary-blue);
    transform: translateY(-4px);
}

#state-context .matrix-card-title {
    margin-bottom: 1.25rem;
    color: #ffffff;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    line-height: 1.3;
}

#state-context .matrix-card-desc {
    display: block;
    margin: 0;
    color: #cbd0da;
    font-size: clamp(0.98rem, 1.4vw, 1.06rem);
    line-height: 1.8;
}

#state-context .matrix-card-desc + .matrix-card-desc {
    margin-top: 1.35rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    #state-context {
        padding: 4.5rem 0;
    }

    #state-context .section-header {
        margin-bottom: 2rem;
    }

    #state-context .matrix-card {
        padding: 1.5rem 1.25rem;
    }
}
