﻿/* ============================================================
   Products Page – Hypertext Card Buttons, Solid CTA
   ============================================================ */

/* ---------- Brandbook font ---------- */

:root {
    --landing-max-width: 1170px;
    --landing-gap-s: 1.5rem;
    --landing-gap-m: 3rem;
    --landing-section-padding: 3rem;
    --landing-btn-radius: 5px;
    --color-white: #fff;
    --color-black: #000;
    --color-primary: #222;
    --color-muted: #666;
    --color-accent: #FF0033;
    --color-bg-light: #F2F2F2;
    --color-border: #e0e0e0;
}

body {
    overflow-y: scroll;
}

/* ---------- Layout ---------- */
.products-container {
    font-family: 'Wix Madefor Display', monospace, sans-serif;
    max-width: var(--landing-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.products-section {
    padding: var(--landing-section-padding) 0;
    background-color: var(--color-bg-light);
}

.products-page-header {
    background-color: var(--color-bg-light);
    text-align: center;
    padding: var(--landing-section-padding) 0;
}

/* ---------- Typography ---------- */
.products-heading-xl {
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    color: var(--color-primary);
}

.products-text-body {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-primary);
    max-width: 70ch;
    margin: 0 auto;
}

.products-section-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.products-heading-lg {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--color-primary);
}

/* ---------- Product Grid ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--landing-gap-s);
    margin-top: var(--landing-gap-m);
}

/* ---------- Product Card (equal height) ---------- */
.product-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

    .product-card:hover {
        border-color: var(--color-primary);
        box-shadow: 0 12px 28px rgba(0,0,0,0.08);
        transform: translateY(-3px);
    }

/* Black top */
.product-card-top {
    background: var(--color-black);
    padding: 2rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    box-sizing: border-box;
}

.product-logo {
    max-height: 55px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
}

/* White body */
.product-card-body {
    padding: 1.75rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-primary);
    letter-spacing: -0.3px;
}

.product-sell {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--color-muted);
    margin: 0;
    flex: 1;
}

/* ---------- Hypertext “Daugiau Informacijos” button ---------- */
.product-link-btn {
    display: inline-block;
    align-self: flex-start;
    background: none;
    border: none;
    padding: 0.4rem 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-accent);
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease;
    margin-top: auto;
    letter-spacing: 0.3px;
}

    .product-link-btn:hover {
        opacity: 0.8;
        color: #cc0029;
    }

/* ---------- Expandable Details (big card) ---------- */
.product-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease, margin 0.3s ease;
    background: #fff;
    border-radius: 0.75rem;
    margin-top: 0;
    padding: 0 2rem;
    border: 1px solid transparent;
    box-shadow: none;
}

    .product-details.show {
        max-height: 800px;
        opacity: 1;
        margin-top: var(--landing-gap-s);
        padding: 2.5rem 2.5rem;
        border: 1px solid #eaeaea;
        box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    }

.product-details-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: var(--color-primary);
}

.product-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.product-benefits-list li {
    position: relative;
    padding-left: 1.5rem; /* room for the bullet */
    padding-top: 0;
    padding-bottom: 0.25rem;
    color: var(--color-primary);
    line-height: 1.3;
    list-style: none; /* remove any default bullets */
}

.product-benefits-list li::before {
    content: "•";
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.55rem;
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1;
    transform: translateY(-0.20rem);
}


/* Case study accent box */
.product-case-study {
    background: #fafafa;
    padding: 1.75rem 2rem;
    border-radius: 0.5rem;
    border-left: 5px solid var(--color-accent);
}

.product-case-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
    color: var(--color-primary);
}

.product-case-study p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

/* ---------- Bottom CTA (now same as old card button) ---------- */
.products-cta {
    background-color: var(--color-bg-light);
    text-align: center;
    padding: calc(var(--landing-section-padding) * 0.8) 0;
}

.products-btn {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    border-radius: var(--landing-btn-radius);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    background-color: var(--color-accent);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    letter-spacing: 0.3px;
}

    .products-btn:hover {
        background-color: #cc0029;
        border-color: #cc0029;
    }

.products-cta-text {
    font-size: 1rem;
    color: var(--color-muted);
    margin: 0 0 1.5rem;
}
/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .product-card-top {
        min-height: 110px;
        padding: 1.5rem 1rem;
    }

    .product-logo {
        max-height: 45px;
    }

    .product-details.show {
        padding: 1.5rem;
    }
}
