/* ==========================================================================
   PrepareQuickly Homepage Stylesheet (ISO 25010 & WCAG 2.1 AA Compliant)
   ========================================================================== */

/* ─── Hero Section (PQ-AUD-005, PQ-AUD-010, PQ-AUD-014) ─── */
.hero {
    padding: 5rem 0 4.5rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero img {
    max-width: 100%;
    height: auto;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    transition: transform 0.3s ease;
}

.hero img:hover {
    transform: translateY(-4px);
}

@media (max-width: 767.98px) {
    .hero {
        padding: 3.5rem 0 3rem;
        text-align: center;
    }
    .hero .lead {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ─── Verifiable Trust Strip (PQ-AUD-007) ─── */
.trust-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--slate-200);
    padding: 1.25rem 0;
}

.trust-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--slate-700);
    transition: all 0.2s ease;
}

.trust-badge-pill:hover {
    background: #ffffff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* ─── Statistics Section (PQ-AUD-003, PQ-AUD-004, PQ-AUD-017) ─── */
.stats {
    background: #ffffff;
    padding: 3rem 0;
    border-bottom: 1px solid var(--slate-200);
}

.stat-metric-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 1.25rem;
    padding: 1.5rem 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

/* ─── Feature Cards (PQ-AUD-006, PQ-AUD-011, PQ-AUD-018) ─── */
.features-section {
    padding: 5rem 0;
}

@media (max-width: 767.98px) {
    .features-section {
        padding: 3rem 0;
    }
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.feature-card .feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--slate-700) !important; /* WCAG 2.1 AA 5:1 contrast */
    line-height: 1.55;
    margin-bottom: 0;
}

/* ─── Course / Academic Pathway Cards (PQ-AUD-009, PQ-AUD-019) ─── */
.pathways-section {
    padding: 5rem 0;
    background: var(--slate-50);
}

@media (max-width: 767.98px) {
    .pathways-section {
        padding: 3rem 0;
    }
}

.course-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    overflow: hidden;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.course-card .card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.course-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--slate-900);
}

.course-card p {
    font-size: 0.88rem;
    color: var(--slate-700) !important;
    line-height: 1.5;
}

/* ─── Final CTA Section (PQ-AUD-021) ─── */
.final-cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    text-align: center;
}

@media (max-width: 767.98px) {
    .final-cta-section {
        padding: 3.5rem 0;
    }
}
