/* ========================================
   CSS Variables - Color Palette - Resilience Theme (VIBRANT)
   ======================================== */
:root {
    /* Primary Colors - Bold Teal-Green (Strength & Growth) */
    --primary-dark: #2C5654;
    --primary: #3D7C78;
    --primary-light: #4A9B94;
    --primary-lighter: #6BB5AE;
    
    /* Secondary Colors - Bold Lavender (Calm & Recovery) */
    --secondary-dark: #6B5B85;
    --secondary: #8B6BAF;
    --secondary-light: #A584C9;
    --secondary-lighter: #C5A8E3;
    
    /* Accent Colors - Nature & Growth */
    --accent-sage: #6B8B5F;
    --accent-mauve: #9B7FA8;
    --accent-cream: #F5F0E8;
    --accent-lavender-mist: #E5DCF5;
    
    /* Neutrals */
    --text-dark: #2C3E37;
    --text-medium: #5A6B63;
    --text-light: #8A9B93;
    --bg-light: #FAFAF8;
    --bg-white: #FFFFFF;
    --border-light: #E5E5E0;
    
    /* Semantic Colors */
    --success: #6B9080;
    --warning: #C4956F;
    --error: #A76F6F;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-dark);
}

/* ========================================
   Layout & Container
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto var(--spacing-sm);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

.cta-link {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px;
}

.cta-link::after {
    display: none;
}

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

.portal-link {
    color: var(--secondary-dark) !important;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 30%, var(--secondary) 70%, var(--secondary-light) 100%);
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    color: white;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--accent-cream);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--secondary-lighter);
    font-weight: 500;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.badge i {
    font-size: 1.25rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: white;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 124, 120, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-dark);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.text-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.text-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ========================================
   Welcome Section
   ======================================== */
.welcome-section {
    background: linear-gradient(135deg, var(--accent-lavender-mist) 0%, var(--accent-cream) 100%);
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.welcome-text h2 {
    color: var(--primary-dark);
}

.launch-notice {
    background: var(--accent-cream);
    border-left: 4px solid var(--secondary);
    padding: 1.25rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 4px;
}

.launch-notice i {
    color: var(--secondary);
    font-size: 1.5rem;
}

.welcome-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.welcome-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(45,95,93,0.95), transparent);
    color: white;
    padding: 2rem;
}

.image-caption h3 {
    color: white;
    margin-bottom: 0.25rem;
}

.image-caption p {
    color: var(--accent-cream);
    margin-bottom: 0.75rem;
}

.image-caption .text-link {
    color: var(--secondary-lighter);
}

/* ========================================
   Specializations Section
   ======================================== */
.specializations-section {
    background: white;
}

.specializations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.specialization-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.specialization-card.highlight {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(139, 107, 175, 0.3);
}

.specialization-card.highlight h3,
.specialization-card.highlight p {
    color: white;
}

.specialization-card.highlight .spec-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.specialization-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--primary-light);
}

.spec-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-lighter);
    color: var(--primary-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.specialization-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

/* ========================================
   Services Section
   ======================================== */
.services-overview {
    background: var(--accent-cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 15px rgba(61, 124, 120, 0.3);
}

.service-duration {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.service-modalities {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.service-modalities h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.modality-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tag {
    background: var(--secondary-lighter);
    color: var(--secondary-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(139, 107, 175, 0.2);
}

.service-format {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.format-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.format-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.format-item h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.cta-center {
    text-align: center;
}

/* ========================================
   Why Choose Section
   ======================================== */
.why-choose-section {
    background: white;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.why-item {
    position: relative;
    padding-left: 4rem;
}

.why-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.why-item h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

/* ========================================
   CTA Sections
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 50%, var(--primary) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--accent-cream);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    font-style: italic;
}

.clinicians-cta {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-sage) 100%);
    padding: var(--spacing-lg) 0;
}

.cta-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.cta-block {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.cta-block i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.cta-block h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.cta-block .btn {
    margin-top: 1.5rem;
}

.cta-block .btn-secondary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-sm);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.footer-logo h3 {
    color: white;
    font-size: 1.1rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: white;
    opacity: 0.9;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: white;
    opacity: 0.85;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-section .contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-section .contact-info i {
    color: var(--secondary-light);
    margin-top: 0.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    text-align: center;
    color: white;
}

.footer-bottom p {
    color: white;
    margin: 0.5rem 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    opacity: 0.85;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
}

.crisis-text {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: white;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 968px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .welcome-content {
        grid-template-columns: 1fr;
    }
    
    .service-format {
        grid-template-columns: 1fr;
    }
    
    .cta-dual {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero {
        padding: 5rem 0 4rem;
    }
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .why-item {
        padding-left: 0;
        padding-top: 4rem;
    }
    
    .why-number {
        left: 50%;
        transform: translateX(-50%);
    }
}