/* ==========================================================================
   Landing Page Styles
   ========================================================================== */

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* --- Layout --- */
.landing-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-section--alt {
    background: linear-gradient(135deg, #f0fafa 0%, #f8fdfb 100%);
}

.landing-section--dark {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #f3f4f6;
}

/* --- Hero --- */
.hero {
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease-out 0.2s both;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #e2f3f3 0%, #d1fae5 100%);
    color: var(--bs-secondary, #3b8f8f);
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(142, 217, 217, 0.2);
}

.hero h1 {
    font-size: 3.8em;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #78c9c9 0%, var(--bs-secondary, #3b8f8f) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero .subtitle {
    font-size: 1.3em;
    color: #6b7280;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.7;
}

.landing-btn {
    padding: 0.75rem 2.25rem !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Stats Bar --- */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px 0;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bs-secondary, #3b8f8f);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 500;
}

/* --- Feature Cards Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.feature-card {
    padding: 35px;
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(142, 217, 217, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.15s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.25s; }
.feature-card:nth-child(5) { animation-delay: 0.3s; }
.feature-card:nth-child(6) { animation-delay: 0.35s; }
.feature-card:nth-child(7) { animation-delay: 0.4s; }
.feature-card:nth-child(8) { animation-delay: 0.45s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary, #7fbfbf) 0%, var(--bs-secondary, #3b8f8f) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(142, 217, 217, 0.15);
    border-color: var(--bs-primary, #7fbfbf);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary, #7fbfbf), var(--bs-secondary, #3b8f8f));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-icon ion-icon {
    color: white;
    font-size: 1.8rem;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(59, 143, 143, 0.3);
}

.feature-card h3 {
    color: #374151;
    margin-bottom: 15px;
    font-size: 1.25em;
    font-weight: 700;
}

.feature-card p {
    color: #6b7280;
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    animation: fadeIn 0.6s ease-out both;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #e2f3f3 0%, #d1fae5 100%);
    color: var(--bs-secondary, #3b8f8f);
    border-radius: 50px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(142, 217, 217, 0.2);
}

.section-header h2 {
    font-size: 2.5em;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 1.15em;
    color: #6b7280;
    line-height: 1.7;
}

.landing-section--dark .section-header h2 {
    color: #f3f4f6;
}

.landing-section--dark .section-header p {
    color: #9ca3af;
}

/* --- Directory CTA Cards --- */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.directory-card {
    padding: 40px;
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(142, 217, 217, 0.15);
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out both;
}

.directory-card:nth-child(1) { animation-delay: 0.1s; }
.directory-card:nth-child(2) { animation-delay: 0.2s; }

.directory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(142, 217, 217, 0.12);
}

.directory-card .directory-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2f3f3 0%, #d1fae5 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.directory-card .directory-icon ion-icon {
    font-size: 2.2rem;
    color: var(--bs-secondary, #3b8f8f);
}

.directory-card h3 {
    font-size: 1.4em;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.directory-card p {
    color: #6b7280;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* --- Pricing Section --- */
.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    border: 2px solid rgba(142, 217, 217, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--bs-primary, #7fbfbf) 0%, var(--bs-secondary, #3b8f8f) 100%);
}

.pricing-badge {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-radius: 50px;
    font-size: 0.8em;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-plan-name {
    font-size: 1.5em;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.pricing-amount {
    margin-bottom: 32px;
}

.pricing-amount .price {
    font-size: 3.5em;
    font-weight: 800;
    color: var(--bs-secondary, #3b8f8f);
    line-height: 1;
}

.pricing-amount .period {
    font-size: 1.1em;
    color: #9ca3af;
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    color: #4b5563;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li ion-icon {
    color: var(--bs-secondary, #3b8f8f);
    font-size: 1.2em;
    flex-shrink: 0;
}

/* --- Language Switcher --- */
.lang-switch-btn {
    font-size: 0.8rem !important;
    padding: 0.2rem 0.6rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    border-radius: 6px !important;
}

/* --- Public Directory Pages --- */
.directory-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.directory-page h1 {
    font-size: 2.2em;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
}

.directory-page .lead {
    color: #6b7280;
    margin-bottom: 30px;
}

.filter-bar {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-bar .form-control {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 10px 16px;
}

.filter-bar .form-control:focus {
    border-color: var(--bs-primary, #7fbfbf);
    box-shadow: 0 0 0 0.2rem rgba(127, 191, 191, 0.2);
}

.clinic-card, .staff-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.clinic-card:hover, .staff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--bs-primary, #7fbfbf);
}

.clinic-card .card-img-top {
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #e2f3f3 0%, #d1fae5 100%);
}

.clinic-card .card-body, .staff-card .card-body {
    padding: 20px;
}

.clinic-card .card-title, .staff-card .card-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.clinic-card .card-text {
    color: #6b7280;
    font-size: 0.9em;
    line-height: 1.5;
}

.staff-card .staff-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary, #7fbfbf), var(--bs-secondary, #3b8f8f));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.staff-card .clinic-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f0fafa;
    color: var(--bs-secondary, #3b8f8f);
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state ion-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* --- Pagination --- */
.pagination .page-link {
    color: var(--bs-secondary, #3b8f8f);
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #e5e7eb;
}

.pagination .page-item.active .page-link {
    background-color: var(--bs-secondary, #3b8f8f);
    border-color: var(--bs-secondary, #3b8f8f);
    color: white;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .landing-section {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2.5em;
        letter-spacing: -1px;
    }

    .hero .subtitle {
        font-size: 1.1em;
    }

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

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

    .stats-bar {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .pricing-amount .price {
        font-size: 2.8em;
    }

    .section-header h2 {
        font-size: 2em;
    }
}
