/* Homepage-only container width */
.home-container {
    max-width: 80%;
    width: 80%;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .home-container {
        max-width: 95%;
        width: 95%;
    }
}

/* Force black text inside colored category cards on the homepage */
.category-card[data-color] {
    color: #000000;
}
/* Ensure a default background if --category-color is missing */
.category-card {
    background: var(--category-color, #f1f5f9);
}
.category-card[data-color] .category-title,
.category-card[data-color] .category-description {
    color: #000000;
}

/* Icon circle with transparent background, black icon, and black outline */
.category-card .category-icon {
    border: 10px solid #000000;
    box-sizing: content-box;
    background: transparent;
    color: #000000;
}
/* Override potential main.css white icon color on colored cards */
.category-card[data-color] .category-icon {
    background: transparent !important;
    color: #000000 !important;
}
.category-card .category-icon i {
    color: inherit;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: var(--radius-lg);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.categories-section {
    margin-bottom: 4rem;
}

.categories-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-section {
    background: transparent;
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: var(--radius-lg);
}

.features-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Desktop: keep hero compact at 100px, show only the title */
.hero {
    height: 100px;
    padding: 0;
    display: flex;
    align-items: center;
}
.hero-content {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-description,
.hero-stats {
    display: none;
}
.hero-content h1 {
    margin: 0;
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    line-height: 1.2;
    width: 100%;
    text-align: center;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--category-color, #ffffff);
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #000000;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    border: 10px solid #000000;
    box-sizing: content-box;
}

/* iPhone Safari: mimic category box behavior */
@supports (-webkit-touch-callout: none) {
    .feature-card {
        background: linear-gradient(135deg, #f8fafc, #eef2ff) !important;
        border-color: transparent !important;
        color: #111827 !important;
    }
    .feature-icon {
        background: rgba(255, 255, 255, 0.85) !important;
        color: #111827 !important;
        border-color: #111827 !important;
    }
    .feature-card h3, .feature-card p { color: #111827 !important; }
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: #0f172a;
    font-weight: 700;
}

.feature-card p {
    color: #334155;
    line-height: 1.7;
}

.cta-section {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0;
    text-align: center;
    border-radius: var(--radius-lg);
    margin-top: 4rem;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
}

/* Icon styles (using Unicode symbols for simplicity) */
.icon-star::before { content: "★"; }
.icon-shield::before { content: "🛡"; }
.icon-trending-up::before { content: "📈"; }
.icon-users::before { content: "👥"; }
.icon-refresh::before { content: "🔄"; }
.icon-car::before { content: "🚗"; }
.icon-sparkles::before { content: "✨"; }
.icon-heart::before { content: "❤️"; }
.icon-laptop::before { content: "💻"; }
.icon-home::before { content: "🏠"; }
.icon-utensils::before { content: "🍴"; }
.icon-shirt::before { content: "👕"; }
.icon-dumbbell::before { content: "🏋️"; }
.icon-plane::before { content: "✈️"; }
.icon-book::before { content: "📚"; }
.icon-dollar-sign::before { content: "💲"; }
.icon-film::before { content: "🎬"; }
.icon-paw-print::before { content: "🐾"; }
.icon-baby::before { content: "👶"; }
.icon-wrench::before { content: "🔧"; }
.icon-book-open::before { content: "📖"; }
.icon-gamepad::before { content: "🎮"; }
.icon-music::before { content: "🎵"; }
.icon-camera::before { content: "📷"; }
.icon-mountain::before { content: "🏔️"; }
.icon-briefcase::before { content: "💼"; }
.icon-palette::before { content: "🎨"; }
.icon-gem::before { content: "💎"; }
.icon-clock::before { content: "🕐"; }
.icon-shoe-prints::before { content: "👟"; }
.icon-shopping-bag::before { content: "🛍️"; }
.icon-droplet::before { content: "💧"; }
.icon-scissors::before { content: "✂️"; }
.icon-lipstick::before { content: "💄"; }
.icon-spray-can::before { content: "🧴"; }
.icon-pills::before { content: "💊"; }
.icon-stethoscope::before { content: "🩺"; }
.icon-tooth::before { content: "🦷"; }
.icon-eye::before { content: "👁️"; }
.icon-volume-up::before { content: "🔊"; }
.icon-wheelchair::before { content: "♿"; }
.icon-shield::before { content: "🛡️"; }
.icon-broom::before { content: "🧹"; }
.icon-archive::before { content: "📦"; }
.icon-lightbulb::before { content: "💡"; }
.icon-couch::before { content: "🛋️"; }
.icon-refrigerator::before { content: "❄️"; }
.icon-tv::before { content: "📺"; }
.icon-tree::before { content: "🌳"; }
.icon-drill::before { content: "🔨"; }
.icon-hammer::before { content: "🔨"; }
.icon-hard-hat::before { content: "⛑️"; }

/* Desktop category grid: 4 columns */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    /* Make hero only 80px high and keep just the title */
    .hero {
        height: 80px;
        padding: 0;
        border-radius: 0;
        display: flex;
        align-items: center;
    }
    .hero-content {
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 1.25rem;
        margin: 0;
    }
    .hero-description,
    .hero-stats {
        display: none;
    }

    /* Categories: 2 columns on mobile */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .features-grid { grid-template-columns: 1fr; }
    /* Mobile feature card layout: icon left, text right; 20% less tall */
    .feature-card {
        padding: 0.8rem;
        display: grid;
        grid-template-columns: 35px 1fr;
        column-gap: 16px;
        align-items: center;
    }
    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        border-width: 7px;
        margin: 0;
        grid-column: 1;
        grid-row: 1 / span 2;
    }
    .feature-card h3 {
        font-size: 0.9rem;
        margin: 0 0 2px 0;
        grid-column: 2;
    }
    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.35;
        margin: 0;
        grid-column: 2;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}


