/**
 * Home page — hero buttons, section tiles/cards (card-grid).
 * Load on index.php; requires site.css :root variables.
 */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.page-banner + .hero-actions {
    margin-top: -52px;
    padding: 0 20px 40px;
    position: relative;
    z-index: 2;
}

.site-main > .hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.site-main > .hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--white, #fff);
    color: var(--blue-dark, #0a4d8c);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.75);
}

.btn:hover {
    transform: translateY(-2px);
}

.section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 56px 20px;
}

.section-title {
    text-align: center;
    font-size: 1.85rem;
    color: var(--blue-dark, #0a4d8c);
    margin: 0 0 12px;
}

.section-lead {
    text-align: center;
    color: var(--text-muted, #5a6c7d);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.65;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    width: 100%;
}

.card-grid > .card,
.card-grid > article.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card {
    background: var(--white, #fff);
    border-radius: var(--radius, 12px);
    padding: 28px 24px;
    box-shadow: var(--shadow, 0 8px 28px rgba(6, 147, 227, 0.15));
    border-top: 4px solid var(--blue, #0693e3);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-4px);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--blue-pale, #ebf9ff);
    color: var(--blue, #0693e3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.card h3 {
    margin: 0 0 10px;
    color: var(--blue-dark, #0a4d8c);
    font-size: 1.15rem;
}

.card p {
    margin: 0 0 16px;
    color: var(--text-muted, #5a6c7d);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.card a {
    color: var(--blue, #0693e3);
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
}

.card a:hover {
    text-decoration: underline;
}

.page-banner__extra p {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 700px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}
