/* CSS Variables for LEE Design System */
:root {
    --thrive-primary: #F05023; /* Vibrant Orange */
    --thrive-primary-dark: #D9441A;
    --thrive-secondary: #0A2640; /* Dark Navy Blue */
    --thrive-bg: #F4F6F8; /* Soft sophisticated gray/blue tint */
    --thrive-text: #111111;
    --thrive-text-light: #4A4A4A;
    --thrive-white: #ffffff;
    --thrive-border: #E0E4E8;
    --thrive-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --thrive-radius: 0px; /* Sharp corners based on LEE brand */
    --thrive-shadow-sm: 0 4px 15px rgba(10, 38, 64, 0.05);
    --thrive-shadow-lg: 0 20px 40px rgba(10, 38, 64, 0.1);
}

/* Base Container - Full Width Reset */
.thrive-landing-container {
    font-family: var(--thrive-font);
    color: var(--thrive-text);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: var(--thrive-bg);
    overflow-x: hidden;
    position: relative;
    padding-bottom: 100px;
}

/* Stunning Hero Banner */
.thrive-hero {
    position: relative;
    width: 100%;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px 160px;
    background-image: url('hero_banner.png');
    background-size: cover;
    background-position: center;
    background-color: var(--thrive-secondary);
}

/* Dark Gradient Overlay for readability */
.thrive-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 38, 64, 0.85) 0%, rgba(10, 38, 64, 0.95) 100%);
    z-index: 1;
}

/* Content inside Hero */
.thrive-hero > * {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.thrive-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--thrive-white);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.thrive-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--thrive-primary);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.thrive-hero-desc {
    font-size: 1.3rem;
    color: var(--thrive-white);
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Main Inner Wrapper to constrain content width */
.thrive-inner {
    max-width: 1200px;
    margin: -80px auto 0; /* Pull content up over the banner */
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Hub Grid Selection */
.thrive-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.thrive-hub-card {
    background: var(--thrive-white);
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-top: 4px solid var(--thrive-primary);
    box-shadow: var(--thrive-shadow-lg);
}

.thrive-hub-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(10, 38, 64, 0.15);
    border-top-color: var(--thrive-secondary);
}

.thrive-hub-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.thrive-hub-card h3 {
    font-size: 1.4rem;
    color: var(--thrive-secondary);
    margin-bottom: 15px;
    font-weight: 800;
}

.thrive-hub-card p {
    font-size: 1.1rem;
    color: var(--thrive-text-light);
    line-height: 1.6;
}

/* Dynamic Views */
.thrive-dynamic-view {
    background: var(--thrive-white);
    padding: 50px;
    box-shadow: var(--thrive-shadow-lg);
    border-top: 4px solid var(--thrive-secondary);
}

.thrive-back-to-hub {
    margin-bottom: 40px;
}

.thrive-panel-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--thrive-secondary);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--thrive-bg);
    padding-bottom: 15px;
}

/* Buttons */
.thrive-cta {
    display: inline-flex;
    align-items: center;
    background-color: var(--thrive-primary);
    color: var(--thrive-white) !important;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: var(--thrive-radius);
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 2px solid var(--thrive-primary);
    cursor: pointer;
}

.thrive-cta::after {
    content: " >";
    margin-left: 10px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.thrive-cta:hover {
    background-color: var(--thrive-primary-dark);
    border-color: var(--thrive-primary-dark);
    transform: translateY(-2px);
}

.thrive-cta:hover::after {
    transform: translateX(4px);
}

.thrive-cta-secondary {
    background-color: var(--thrive-white) !important;
    color: var(--thrive-secondary) !important;
    border: 2px solid var(--thrive-secondary);
}

.thrive-cta-secondary::after {
    display: none;
}

.thrive-cta-secondary:hover {
    background-color: var(--thrive-secondary) !important;
    color: var(--thrive-white) !important;
}

/* Search Bar */
.thrive-search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    background: var(--thrive-bg);
    padding: 20px;
}

.thrive-search-bar input {
    flex-grow: 1;
    padding: 18px 25px;
    font-size: 1.25rem;
    border: 2px solid var(--thrive-border);
    border-radius: var(--thrive-radius);
    outline: none;
    transition: border-color 0.2s ease;
}

.thrive-search-bar input:focus {
    border-color: var(--thrive-primary);
}

/* Questionnaire Styles */
.thrive-questionnaire {
    max-width: 800px;
    margin: 0 auto;
}

.thrive-question-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--thrive-secondary);
    margin-bottom: 30px;
}

.thrive-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.thrive-option {
    display: flex;
    align-items: center;
    padding: 25px;
    border: 2px solid var(--thrive-border);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--thrive-white);
}

.thrive-option:hover {
    border-color: var(--thrive-primary);
    background: #FFF8F5; /* Very subtle orange tint */
}

.thrive-option input[type="radio"] {
    margin-right: 20px;
    transform: scale(1.4);
    accent-color: var(--thrive-primary);
}

.thrive-option-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--thrive-secondary);
}

.thrive-option:has(input[type="radio"]:checked) {
    border-color: var(--thrive-primary);
    background: #FFF8F5;
}

/* Coach Grid */
.thrive-coach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.thrive-result-card {
    background: var(--thrive-white);
    border: 1px solid var(--thrive-border);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    text-align: left;
}

.thrive-result-card:hover {
    box-shadow: var(--thrive-shadow-lg);
    border-color: var(--thrive-secondary);
}

.thrive-result-img-placeholder {
    height: 220px;
    background-color: var(--thrive-secondary);
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Adding subtle gradients or images to the placeholders dynamically in CSS */
.thrive-result-card:nth-child(even) .thrive-result-img-placeholder {
    background: linear-gradient(135deg, var(--thrive-secondary), #1A406D);
}
.thrive-result-card:nth-child(odd) .thrive-result-img-placeholder {
    background: linear-gradient(135deg, var(--thrive-primary), var(--thrive-primary-dark));
}

.thrive-result-body {
    padding: 40px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.thrive-result-tag {
    align-self: flex-start;
    background: #55B5D9;
    color: var(--thrive-white);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 6px 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.thrive-result-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--thrive-secondary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.thrive-coach-name {
    font-size: 1.1rem;
    color: var(--thrive-primary);
    font-weight: 700;
    margin-bottom: 15px;
}

.thrive-result-desc {
    font-size: 1.15rem;
    color: var(--thrive-text-light);
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

/* FAQ Section */
.thrive-faq-item {
    background: var(--thrive-white);
    border: 1px solid #E5E7EB;
    border-radius: var(--thrive-radius);
    margin-bottom: 15px;
    box-shadow: var(--thrive-shadow-sm);
    overflow: hidden;
}

.thrive-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: var(--thrive-white);
    transition: background 0.3s ease;
}

.thrive-faq-question:hover {
    background: #F9FAFB;
}

.thrive-faq-question h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--thrive-secondary);
}

.thrive-faq-icon {
    color: var(--thrive-primary);
    transition: transform 0.3s ease;
}

.thrive-faq-item.active .thrive-faq-icon {
    transform: rotate(180deg);
}

.thrive-faq-answer {
    display: none;
    padding: 0 25px 25px;
    color: var(--thrive-text-light);
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Sticky Bar */
.thrive-sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--thrive-white);
    box-shadow: var(--thrive-shadow-md);
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 3px solid var(--thrive-primary);
}

.thrive-sticky-bar.visible {
    transform: translateY(0);
}

.thrive-sticky-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thrive-sticky-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--thrive-secondary);
}

/* Loader Animation */
.thrive-loader-ui {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.thrive-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(240, 80, 35, 0.2);
    border-top-color: var(--thrive-primary);
    border-radius: 50%;
    animation: thrive-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes thrive-spin {
    to { transform: rotate(360deg); }
}

.thrive-loader-ui p {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--thrive-secondary);
    animation: thrive-pulse 1.5s ease-in-out infinite;
}

@keyframes thrive-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 900px) {
    .thrive-sticky-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .thrive-title {
        font-size: 2.5rem;
    }
    .thrive-hub-grid {
        grid-template-columns: 1fr;
    }
    .thrive-inner {
        margin-top: -30px;
    }
    .thrive-dynamic-view {
        padding: 30px 20px;
    }
    .thrive-search-bar {
        flex-direction: column;
    }
    .thrive-final-cta {
        padding: 60px 20px !important;
    }
    .thrive-final-cta h2 {
        font-size: 2rem !important;
    }
    .thrive-final-cta p {
        font-size: 1.2rem !important;
        margin-bottom: 30px !important;
    }
    .thrive-hero-desc {
        font-size: 1.1rem;
    }
    .thrive-subtitle {
        font-size: 0.95rem;
    }
}
