/* ===== COUNTER ANIMATION ===== */
.counter-value {
    font-variant-numeric: tabular-nums;
}

/* ===== STATS ===== */
.stats-section {
    border-bottom: 1px solid #e2e8f0;
}

.stats-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.stats-card:hover {
    border-color: rgba(81, 4, 0, 0.2);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
}

/* ===== PRODUCT LINES ===== */
.product-lines-section {
    background: #ffffff;
}

.product-feature-card,
.product-line-card {
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.product-line-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.product-line-card__media {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

.product-line-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;        /* fill the square fully */
    object-position: center;
}

.product-line-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 1.35rem 1.5rem;
}
.aspect-product {
    aspect-ratio: 4 / 3;
}

.product-feature-card:hover,
.product-line-card:hover {
    transform: translateY(-4px);
}

.product-line-card:hover {
    border-color: rgba(81, 4, 0, 0.24);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
}

.product-feature-card > img,
.product-line-card img,
.featured-main-card img,
.featured-list-card img,
.product-card img,
.aspect-product img,
.aspect-card img,
.product-image-contain {
    object-fit: contain !important;
    object-position: center center;
}

.product-feature-card,
.product-line-card .bg-slate-100,
.featured-main-card .bg-slate-100,
.featured-list-card .bg-slate-100,
.product-card .bg-slate-100,
.product-card .bg-slate-50,
.aspect-product,
.aspect-card {
    background: #ffffff;
}

.product-lines-section .product-line-card__media img {
    object-fit: cover !important;   /* was: contain */
    object-position: center top;    /* show top of image if cropped */
}

@media (max-width: 767px) {
    .product-line-card {
        grid-template-columns: 1fr;
    }

    .product-line-card__media {
        aspect-ratio: 16 / 10;
    }

    .product-line-card__body {
        min-height: 0;
        padding: 1.35rem;
    }
}

/* ===== FEATURED PRODUCTS ===== */
.featured-products-section {
    background: #ffffff;
}

.featured-main-card,
.featured-list-card {
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.featured-main-card:hover,
.featured-list-card:hover {
    border-color: rgba(81, 4, 0, 0.22);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
    transform: translateY(-4px);
}

/* ===== SERVICES ===== */
.service-section {
    background: #ffffff;
}

.service-shell {
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

.service-row {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-row:hover {
    border-color: rgba(81, 4, 0, 0.22);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transform: translateX(4px);
}

/* ===== CLIENT LOGOS ===== */
.partner-section {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.partner-section::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(81, 4, 0, 0.24), transparent);
    content: "";
    pointer-events: none;
}

.partner-section > div {
    position: relative;
    z-index: 2;
}

.partner-card {
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.partner-card:hover {
    border-color: rgba(81, 4, 0, 0.22);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
    transform: translateY(-4px);
}

.partner-logo-card {
    display: grid;
    grid-template-rows: 7.5rem auto;
    min-height: 12.25rem;
}

.partner-logo-card__media {
    display: flex;
    height: 7.5rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 0.9rem;
}

.partner-logo-card__media img {
    width: auto;
    max-width: 82%;
    height: auto;
    max-height: 5.25rem;
    object-fit: contain;
}

.partner-logo-card__media span {
    display: inline-flex;
    width: 3.75rem;
    height: 3.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f8e9e7;
    color: var(--color-brand);
    font-size: 0.98rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(81, 4, 0, 0.14);
}

.partner-logo-card__body {
    padding: 0.95rem 1rem 1.05rem;
}

.partner-logo-card__body h3 {
    margin-top: 0.45rem;
    color: #101828;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

/* ===== CTA SECTION ===== */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
