/* ==========================================================================
   CAMSCO — Homepage (front-page.php)
   Homepage-specific overrides for hero + stats bar layout.
   Base hero/stats styles are in global.css.
   ========================================================================== */

/* Homepage hero: taller + extra bottom padding for pinned stats bar */
.hero { min-height: 600px; }
.hero-content { padding-bottom: 128px; }

/* Homepage: pin stats bar to bottom of hero */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: rgba(0,27,54,.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0;
}
.hero-stats .container {
    padding-top: 18px;
    padding-bottom: 18px;
}

/* ===== PRODUCT CATEGORIES SECTION ===== */
.section-categories {
    padding: 80px 0;
    background: var(--lighter-bg);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.category-card-img {
    height: 160px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.category-card:hover .category-card-img img { transform: scale(1.04); }

.category-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.category-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--body);
    margin-bottom: 6px;
    line-height: 1.3;
}
.category-card-body > p {
    font-size: .875rem;
    color: var(--muted);
    flex: 1;
    margin: 0;
}
.category-card-count {
    display: inline-block;
    background: var(--lighter-bg);
    color: var(--primary);
    font-size: .72rem;
    font-weight: 600;
    font-family: var(--font-heading);
    padding: 3px 10px;
    border-radius: 999px;
    margin-top: 12px;
    align-self: flex-start;
    border: 1px solid var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .hero-content { padding: 60px 0 100px; }
    .hero h1 { font-size: 1.75rem; }
    .hero-stats .container { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .hero-stat { min-width: 120px; }
    .category-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}
