<!-- Link this file in index.html: <link rel="stylesheet" href="products-3.css"> -->

/* ========================================
   PRODUCTS SECTION - Phase 3
   Product & Service Showcase
   ======================================== */

/* Products Section Container */
.products-section {
    padding: var(--space-3xl) 0;
    background-color: var(--color-bg);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.section-header p {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Products Grid Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Product Card */
.product-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                border-color var(--transition-base);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

/* Product Image Container */
.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background-color: var(--color-border-light);
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Product Image */
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Best Seller Corner Ribbon */
.best-seller-ribbon {
    position: absolute;
    top: 12px;
    right: -35px;
    background: var(--color-accent);
    color: white;
    padding: 6px 40px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Ribbon tail */
.best-seller-ribbon::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 10px solid var(--color-accent-dark);
}

/* Product Content */
.product-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Product Title */
.product-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.2;
}

/* Product Description */
.product-description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-md) 0;
}

/* Product Features List */
.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Feature List Items */
.product-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
}

/* Feature Checkmark SVG */
.product-features svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
}

/* Request Quote Button */
.btn-request-quote {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    background-color: var(--color-accent);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-base);
}

.btn-request-quote:hover {
    background-color: var(--color-accent-dark);
    color: white;
    text-decoration: none;
}

.btn-request-quote:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet: Force 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: Force 1 column */
@media (max-width: 767px) {
    .products-section {
        padding: var(--space-2xl) 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .product-content {
        padding: var(--space-md);
    }

    .product-title {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }
}

/* Desktop optimizations */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   SERVICES SECTION - Phase 3: Product & Service Showcase
   ======================================== */

/* Services Section Container */
.services-section {
    background-color: var(--color-bg);
    padding: var(--space-3xl) 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Service Card */
.service-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                border-color var(--transition-base);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

/* Service Icon Wrapper */
.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 107, 53, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    transition: background-color var(--transition-base);
}

.service-icon-wrapper svg {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
}

/* Service Title */
.service-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--space-md) 0;
    text-align: center;
}

/* Service Description */
.service-description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-lg) 0;
    text-align: center;
    max-width: 400px;
}

/* Service Tags Container */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-top: auto;
}

/* Service Tag Pills */
.service-tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    background-color: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Services Section Responsive */
@media (min-width: 768px) and (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .services-section {
        padding: var(--space-2xl) 0;
    }

    .service-card {
        padding: var(--space-lg);
    }
}

/* Desktop optimizations for services */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   INDUSTRIES SECTION - Phase 3: Product & Service Showcase
   ======================================== */

/* Industries Section Container */
.industries-section {
    background-color: var(--color-bg);
    padding: var(--space-3xl) 0;
}

/* Industries Grid Layout */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-xl);
    max-width: 1280px;
    margin: var(--space-2xl) auto 0;
    padding: 0 var(--space-md);
}

/* Industry Item */
.industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg);
}

/* Industry Icon Wrapper */
.industry-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 107, 53, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    transition: background-color var(--transition-base),
                transform var(--transition-base);
}

/* Industry Icon SVG */
.industry-icon-wrapper svg {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    transition: color var(--transition-base);
}

/* Industry Icon Wrapper Hover */
.industry-item:hover .industry-icon-wrapper {
    background-color: var(--color-accent);
    transform: scale(1.1);
}

/* Industry Icon SVG Hover */
.industry-item:hover .industry-icon-wrapper svg {
    color: white;
}

/* Industry Label */
.industry-label {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
}

/* Industries Section Responsive */
@media (min-width: 768px) and (max-width: 1023px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .industries-section {
        padding: var(--space-2xl) 0;
    }
}

/* Desktop optimizations for industries */
@media (min-width: 1024px) {
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
