/* Main Sections of the Index Page */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6.25rem var(--spacing-lg) var(--spacing-xl); /* Increased padding-top to push content below fixed header */
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero-content {
    text-align: center;
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions { /* New: container for hero buttons */
    display: flex;
    justify-content: center;
    gap: var(--spacing-md); /* Space between buttons */
    margin-top: var(--spacing-xl); /* Space from subtitle */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

/* Products Section */
.products {
    padding: 5rem var(--spacing-lg);
    background: var(--background-light);
}

.products-stats-overview {
    margin-top: var(--spacing-2xl); /* Spacing from the product grid */
    display: grid;
    grid-template-columns: 1fr; /* Default for mobile */
    gap: var(--spacing-lg);
    max-width: 1000px; /* Max width to center the grid */
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-md); /* Add some padding for smaller screens */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    max-width: 1200px;
    margin: 0 auto;
}

.product-card-image {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.product-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Industries Section */
.industries {
    padding: 5rem var(--spacing-lg);
    background: var(--background-dark);
}

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

.industry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.industry-card-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.industry-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.industry-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}

.industry-specs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: auto;
}

.industry-specs li {
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding-left: 1rem;
    position: relative;
}

.industry-specs li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* About Section (on index.html) */
.about {
    padding: 5rem var(--spacing-lg);
    background: var(--background-dark);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    overflow-x: hidden; /* Fix: Add overflow-x: hidden to prevent horizontal scroll from animating elements */
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.stat {
    text-align: center;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Contact Section (on index.html) */
.contact {
    padding: 5rem var(--spacing-lg);
    background: var(--background-light);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    margin-bottom: var(--spacing-2xl);
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center; /* Center items horizontally */
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    width: 100%; /* Take full width to allow centering */
    max-width: 300px; /* Limit width, matching whatsapp-cta */
}

/* Consolidated CTA Section (used on index, about, product-detail) */
.cta-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile-first: stack buttons vertically */
    gap: 1rem;
    justify-content: center;
    align-items: center; /* Center items horizontally in column layout */
}

/* Responsive adjustments for products-stats-overview */
@media (min-width: 768px) {
    .products-stats-overview {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for tablet/desktop */
        gap: var(--spacing-2xl);
    }

    .cta-buttons {
        flex-direction: row; /* Desktop: display buttons in a row */
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-stats-overview {
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    /* Apply specific mobile button sizing to both types of buttons within cta-buttons */
    .cta-buttons .whatsapp-cta,
    .cta-buttons .secondary-cta {
        width: 100%;
        max-width: 300px; /* Max width for consistency */
        margin: 0 auto; /* Center individual buttons */
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 2rem 1rem; /* Adjust padding for ultra-small */
    }

    .cta-section h2 {
        font-size: 1.75rem; /* Adjust font size for ultra-small */
    }

    .cta-section p {
        font-size: 0.875rem; /* Adjust font size for ultra-small */
    }
}