/* ==========================================================
   products.css - "Our Products & Services" section
   (buttons use .hero-btn from hero.css, label from about.css)
   ========================================================== */
.products { position: relative; padding: 56px 0; background: var(--light-bg); overflow: hidden; }
/* Soft decorative glow behind the section, kept subtle so the cards stay the focus */
.products::before,
.products::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
}
.products::before { top: -120px; right: -100px; width: 320px; height: 320px; background: var(--primary-light); }
.products::after   { bottom: -140px; left: -120px; width: 280px; height: 280px; background: rgba(245, 180, 0, .12); }
.products .container { position: relative; z-index: 1; }

.products-head { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.products-head h2 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    line-height: 1.2;
    color: var(--primary-color);
}
.products-head p { margin: 0; color: var(--muted-color); }
.products-head .eyebrow { margin-bottom: 8px; color: var(--secondary-dark); }

.products-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }

.product-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
/* Accent bar across the top; brightens on hover instead of the old bottom border */
.product-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: .6;
    transition: opacity var(--transition);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 102, 51, .14);
    border-color: transparent;
}
.product-card:hover::before { opacity: 1; }

.product-count {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.product-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 8px 16px rgba(0, 102, 51, .25);
    transition: transform var(--transition);
}
.product-card:hover .product-icon { transform: rotate(-6deg) scale(1.06); }

.product-card h3 { margin: 0 0 6px; font-family: var(--font-heading); font-size: 1.25rem; color: var(--text-color); }
.product-card > p { margin: 0 0 16px; color: var(--muted-color); }

.product-card ul { margin: 0; padding: 0; list-style: none; }
.product-card li a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;              /* touch target */
    padding-left: 18px;
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition), padding-left var(--transition);
}
.product-card li a::before {
    content: "";
    position: absolute;
    left: 0;
    width: 7px; height: 7px;
    border-top: 2px solid var(--secondary-dark);
    border-right: 2px solid var(--secondary-dark);
    transform: rotate(45deg) scale(.8);
}
.product-card li a:hover { color: var(--primary-color); padding-left: 24px; }
.product-card li a:focus-visible { outline: 3px solid var(--secondary-color); outline-offset: 2px; border-radius: 4px; }

.products-cta { text-align: center; margin-top: 32px; }

@media (min-width: 640px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px)  { .products { padding: 80px 0; } }
