/* ================================================
   AllWayShalom - Homepage Styles
   ================================================ */

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #4A2C2A 50%, var(--brand-medium) 100%);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
    padding: 80px 0 120px;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-white);
}

.hero-title .text-accent {
    color: var(--accent-green);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-white);
}

.hero-actions .btn-outline:hover {
    background: var(--text-white);
    border-color: var(--text-white);
    color: var(--brand-dark);
}

/* Hero Illustration */
.hero-image {
    position: relative;
    z-index: 1;
}

.hero-illustration {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
    animation: float 6s ease-in-out infinite;
}

.floating-card .floating-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-green-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
}

.floating-card span {
    font-weight: 600;
    font-size: 0.9375rem;
}

.floating-card.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 45%;
    right: 5%;
    animation-delay: 2s;
}

.floating-card.card-3 {
    bottom: 15%;
    left: 25%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* ==================== CATEGORIES SECTION ==================== */
.categories {
    padding: 80px 0;
    background: var(--bg-cream);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-card:hover .category-icon {
    background: var(--accent-green);
    color: var(--text-white);
}

.category-icon {
    width: 72px;
    height: 72px;
    background: var(--accent-green-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--brand-dark);
}

.category-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--accent-green);
    font-size: 0.9375rem;
}

.category-card:hover .category-link {
    gap: 10px;
}

/* ==================== HOW IT WORKS SECTION ==================== */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-white);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}

.step-card {
    flex: 1;
    max-width: 240px;
    text-align: center;
    padding: 24px;
    position: relative;
}

.step-number {
    position: absolute;
    top: 0;
    right: 20px;
    font-size: 4rem;
    font-weight: 700;
    color: var(--bg-beige);
    line-height: 1;
    z-index: 0;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-green-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--brand-dark);
}

.step-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 60px;
    color: var(--border-color);
}

/* ==================== STATS SECTION ==================== */
.stats {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-medium) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    text-align: center;
    padding: 24px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ==================== FEATURED EDUCATORS SECTION ==================== */
.featured-educators {
    padding: 80px 0;
    background: var(--bg-cream);
}

.educators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.educator-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.educator-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.educator-image {
    height: 160px;
    overflow: hidden;
    background: var(--bg-lightbeige);
}

.educator-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.educator-card:hover .educator-image img {
    transform: scale(1.05);
}

.educator-content {
    padding: 24px;
    text-align: center;
    position: relative;
}

.educator-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 4px solid var(--bg-white);
    margin: -56px auto 16px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.educator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.educator-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--brand-dark);
}

.educator-role {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.educator-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.section-footer {
    text-align: center;
}

/* ==================== CTA SECTION ==================== */
.cta {
    padding: 80px 0;
    background: var(--bg-beige);
}

.cta-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 540px;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-decoration {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    opacity: 0.5;
}

.cta-decoration svg {
    width: 100%;
    height: 100%;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .step-connector {
        display: none;
    }

    .step-card {
        flex: 0 0 calc(50% - 16px);
        max-width: none;
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .educators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 100px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-card {
        flex-direction: row;
        text-align: left;
        padding: 20px;
        gap: 16px;
    }

    .category-icon {
        margin-bottom: 0;
        width: 56px;
        height: 56px;
        flex-shrink: 0;
    }

    .category-card > div {
        flex: 1;
    }

    .step-card {
        flex: 0 0 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .educators-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .cta-decoration {
        display: none;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }
}

@media (max-width: 544px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
