/* Products Section - Minimal & Clean */
.products-section {
    padding: 4.5rem 10%; /* Increased Side Padding */
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.products-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem; /* Reduced from 4rem */
    align-items: flex-start;
    max-width: 1000px; /* Constricted focal width */
    margin: 0 auto; /* Center horizontal */
}

/* Left Column */
.products-header {
    flex: 0 0 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem; /* Vertical gap between title, desc, and buttons */
}

@media (min-width: 992px) {
    .products-header {
        flex: 0 0 35%;
        padding-right: 2rem;
    }
}

.products-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.1rem; /* Reduced from 2.8rem */
    font-weight: 700;
    color: #1b4332;
    /* Dark Green Theme */
    line-height: 1.1;
    margin-bottom: 0; /* Handled by header gap */
}

.products-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem; /* Reduced from 1rem */
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 0; /* Handled by header gap */
}

.btn-link-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #1b4332;
    text-decoration: none;
    border-bottom: 1px solid #1b4332;
    padding-bottom: 2px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.btn-link-arrow:hover {
    color: #40916c;
    border-bottom-color: #40916c;
}

.btn-link-arrow span {
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.btn-link-arrow:hover span {
    margin-left: 12px;
}

/* Right Column: Grid */
.products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    padding-top: 0.5rem;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Product Item Tile */
.product-item {
    background-color: #ffffff;
    padding: 1.1rem; /* Reduced from 1.5rem */
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Further reduced from 0.6rem for alignment */
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 165px; /* Uniform height for all 4 tiles */
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.product-icon {
    width: 36px; /* Reduced from 48px */
    height: 36px; /* Reduced from 48px */
    border-radius: 50%;
    background-color: #f0f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1b4332;
    font-size: 0.9rem; /* Reduced from 1.2rem */
    margin-bottom: 0.4rem;
}

.product-item h3,
.product-item-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem; /* Slightly larger for H3 presence */
    font-weight: 700;
    color: #1b4332;
    margin: 0;
}

.product-item p {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem; /* Reduced from 0.95rem */
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* Last Tile: Web Dev as a Service (Green Theme) */
.product-item:last-child {
    background-color: #1b4332;
    border-color: #1b4332;
}

.product-item:last-child h3,
.product-item:last-child .product-item-title {
    color: #ffffff;
}

.product-item:last-child p {
    color: rgba(255, 255, 255, 0.8);
}

.product-item:last-child .product-icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Button for the last tile */
.product-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 1.2rem; /* Restored slightly for legibility in header */
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    font-family: 'Outfit', sans-serif;
    background-color: #1b4332; /* Dark Green for light bg */
    color: #ffffff;
    border: 1px solid #1b4332;
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.15);
}

.product-btn:hover {
    background-color: #ffffff;
    color: #1b4332;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(27, 67, 50, 0.2);
}

/* Floating Plus Decoration */
.product-decoration {
    font-size: 2rem;
    color: #1b4332;
    position: absolute;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .products-container {
        gap: 2rem;
    }

    .products-title {
        font-size: 2.2rem;
    }
}

/* =========================================
   MOBILE LAYOUT OPTIMIZER (320px - 480px)
   ========================================= */
@media (max-width: 480px) {
    .products-container {
        gap: 32px !important;
        /* 32px standard section gap */
        display: flex !important;
        flex-direction: column !important;
    }

    .products-header {
        text-align: left !important;
        margin-bottom: 24px !important;
    }

    .products-title {
        font-size: 24px !important;
        /* Normalized H1 */
        line-height: 32px !important;
        margin-bottom: 12px !important;
    }

    .products-desc {
        font-size: 16px !important;
        line-height: 24px !important;
        margin-bottom: 24px !important;
    }

    .product-item {
        padding: 16px !important;
        /* Min padding */
        gap: 12px !important;
        /* Standard spacing */
    }

    .product-item h3,
    .product-item-title {
        font-size: 18px !important;
        /* H3 equivalent */
    }
}