/**
 * assets/css/index.css
 * Homepage-specific sections. Builds on the design tokens and .btn
 * classes already defined in assets/css/style.css.
 */

.home-page * { box-sizing: border-box; }

.home-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 14px;
}

.home-section-heading { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.home-section-heading h2 { font-size: 32px; font-weight: 800; margin: 0; color: var(--primary); }

.home-section-cta { text-align: center; margin-top: 40px; }

/* Hero */
.home-hero {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.9)),
                url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 20px;
    text-align: center;
}
.home-hero .home-eyebrow { color: #ccc; }
.home-hero h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    max-width: 780px;
    margin: 0 auto 20px;
    letter-spacing: -0.5px;
}
.home-hero p {
    max-width: 580px;
    margin: 0 auto 34px;
    color: #ddd;
    font-size: 17px;
    line-height: 1.6;
}
.home-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.home-hero .btn-outline { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.3); }
.home-hero .btn-outline:hover { border-color: #fff; }

/* Services */
.home-services { padding: 90px 20px; }
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.home-service-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 30px;
    transition: all var(--transition);
}
.home-service-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 16px 34px rgba(0,0,0,0.08); }
.home-service-card i { font-size: 26px; color: var(--primary); margin-bottom: 18px; }
.home-service-card h3 { font-size: 19px; font-weight: 800; margin: 0 0 10px; }
.home-service-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* Latest posts */
.home-latest-posts { padding: 90px 20px; background: var(--surface); }
.home-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.home-post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.home-post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,0.08); }
.home-post-card img { width: 100%; height: 190px; object-fit: cover; }
.home-post-card-content { padding: 22px; }
.home-post-card-category {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--muted);
    margin-bottom: 10px;
}
.home-post-card h3 { font-size: 17px; font-weight: 800; margin: 0 0 10px; line-height: 1.4; color: var(--primary); }
.home-post-card-date { font-size: 13px; color: var(--muted); }

/* CTA */
.home-cta {
    background: var(--primary);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}
.home-cta h2 { font-size: 30px; font-weight: 800; margin: 0 0 14px; }
.home-cta p { color: #ccc; margin: 0 0 30px; }
.home-cta .btn-primary { background: #fff; color: var(--primary); }
.home-cta .btn-primary:hover { opacity: 0.9; }

@media (max-width: 900px) {
    .home-services-grid, .home-posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .home-hero h1 { font-size: 32px; }
    .home-services-grid, .home-posts-grid { grid-template-columns: 1fr; }
}
