/* Products page: extra styles only.
   Navbar, footer, buttons and animations come from style.css */

html { scroll-padding-top: 100px; }

/* ---------- Image spaces ---------- */
.media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.media.wide { aspect-ratio: 21 / 9; margin-bottom: 20px; }
.media > *, .hero-media > * { width: 100%; height: 100%; }
.media img, .hero-media img { display: block; object-fit: cover; border-radius: var(--radius); transition: transform 0.6s; }
.media:hover img { transform: scale(1.05); }


/* Products hero background */
.products-hero {
    position: relative;
    isolation: isolate;
    min-height: 88vh;
    padding: 100px 0 55px;
    overflow: hidden;
    background: #081d2f;
}

/* Background video */
.products-hero .hero-video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    filter: brightness(0.90) saturate(0.75);
    pointer-events: none;
}

/* Navy overlay blends the video into the website */
.products-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(8, 29, 47, 0.98) 0%,
        rgba(8, 29, 47, 0.92) 25%,
        rgba(8, 29, 47, 0.78) 40%,
        rgba(8, 29, 47, 0.65) 55%
    );
}

/* ================================================
   HERO CONTENT
================================================ */

.products-hero-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: calc(88vh - 155px);
    gap: 75px;
}

/* Text stays on the left */
.products-hero .hero-text {
    max-width: 650px;
    width: 100%;
}

/* Description width */
.products-hero .hero-description {
    max-width: 540px;
}

/* ================================================
   CATEGORY CARDS
================================================ */

.products-hero .categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin-top: auto;
}

.products-hero .cat {
    position: relative;
    padding: 22px 24px;

    background: rgba(8, 29, 47, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);

    color: #fff;
    text-decoration: none;

    font: 600 15px/1.35 "Montserrat", sans-serif;

    transition:
        background 0.3s,
        color 0.3s,
        transform 0.3s;
}

.products-hero .cat small {
    display: block;
    margin-bottom: 14px;
    color: var(--yellow);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.products-hero .cat b {
    position: absolute;
    right: 22px;
    top: 22px;
    transition: transform 0.3s;
}

.products-hero .cat:hover {
    background: var(--yellow);
    color: var(--navy);
    transform: translateY(-5px);
}

.products-hero .cat:hover small {
    color: var(--navy);
}

.products-hero .cat:hover b {
    transform: translateY(5px);
}

/* ================================================
   TABLET
================================================ */

@media (max-width: 992px) {
    .products-hero {
        padding: 85px 0 45px;
    }

    .products-hero-bg {
        background-size:
            cover,
            cover,
            auto 85%;
        opacity: 0.8;
    }

    .products-hero-content {
        gap: 60px;
    }

    .products-hero .categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ================================================
   MOBILE
================================================ */

@media (max-width: 600px) {
    .products-hero {
        min-height: auto;
        padding: 90px 0 40px;
    }

    .products-hero-bg {
        background-image:
            linear-gradient(
                180deg,
                rgba(8, 29, 47, 0.55) 0%,
                rgba(8, 29, 47, 0.88) 40%,
                #081d2f 80%
            ),
            url("../images/pp-products-hero.jfif");

        background-size:
            cover,
            auto 55%;

        background-position:
            center,
            right top;

        opacity: 0.7;
    }

    .products-hero-content {
        min-height: auto;
        gap: 55px;
    }

    .products-hero .hero-text {
        max-width: 100%;
    }

    .products-hero .categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .products-hero .cat {
        padding: 18px 14px;
        font-size: 12px;
    }

    .products-hero .cat b {
        right: 12px;
        top: 16px;
    }
}


/* ---------- Product blocks ---------- */
.section { scroll-margin-top: 100px; }
.product-block { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: stretch; }
.product-block.reverse .media { order: 2; }

/* The image is as tall as the text beside it: top and bottom line up */
.product-block .media { position: relative; aspect-ratio: auto; min-height: 420px; }
.product-block .media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-block .info > :first-child { margin-top: 0; }
.info h2 { font-size: clamp(32px, 3.6vw, 48px); }
.lead { margin-top: 18px; line-height: 1.8; opacity: 0.78; }
.info .button { margin-top: 36px; }
.info .tag { display: inline-block; margin-bottom: 18px; padding: 8px 18px; background: var(--yellow); color: var(--navy); border-radius: var(--radius); font: 700 12px "Montserrat", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.product-action { margin-top: 50px; }

.mini { margin: 32px 0 14px; font: 700 12px "Montserrat", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; }
.dark-section .mini { color: var(--yellow); opacity: 1; }
.section-heading .tag { display: inline-block; margin-top: 20px; padding: 8px 18px; background: var(--yellow); color: var(--navy); border-radius: var(--radius); font: 700 12px "Montserrat", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; opacity: 1; }
.section-heading .tag + p { margin-top: 18px; font-size: 18px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 11px 18px; border: 1.5px solid rgba(128, 128, 128, 0.5); border-radius: var(--radius); font: 600 13px "Montserrat", sans-serif; transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s; }
.chips span:hover { background: var(--yellow); color: var(--navy); border-color: var(--yellow); transform: translateY(-3px); }

/* ---------- BSP: backed-by logos ---------- */
/* Backed-by logos — evenly spaced */
.backers {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    column-gap: 32px;
    row-gap: 22px;
    align-items: start;
}
.backer { display: flex; flex-direction: column; gap: 10px; }

.backer-logos {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
}

.backer-logo {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(8, 29, 47, 0.14);
    transition: transform 0.3s, box-shadow 0.3s;
}

.backer-logo img {
    display: block;
    width: 74%;
    height: 74%;
    object-fit: contain;
}

.backer small { font: 600 12px "Montserrat", sans-serif; letter-spacing: 0.06em; opacity: 0.75; }

/* ---------- BSP details ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.spec { padding: 32px; background: var(--card); border-radius: var(--radius); transition: background 0.3s, color 0.3s, transform 0.3s; }
.spec:hover { background: var(--navy); color: var(--white); transform: translateY(-6px); }
.spec small { display: block; margin-bottom: 14px; color: var(--yellow-hover); font: 700 12px "Montserrat", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; }
.spec p { line-height: 1.7; opacity: 0.8; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { display: flex; align-items: center; gap: 18px; padding: 26px; background: var(--card); border-radius: var(--radius); transition: background 0.3s, color 0.3s, transform 0.3s; }
.step:hover { background: var(--navy); color: var(--white); transform: translateY(-6px); }
.step i { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: var(--yellow); color: var(--navy); border-radius: 50%; transition: transform 0.4s; }
.step:hover i { transform: rotate(360deg) scale(1.1); }
.step strong { display: block; font: 700 18px "Montserrat", sans-serif; }
.step span { display: block; margin-top: 4px; font-size: 14px; opacity: 0.7; }

/* ---------- Highlight + placeholder boxes ---------- */
.ip-card { margin-top: 32px; padding: 26px 28px; background: var(--yellow); color: var(--navy); border-radius: var(--radius); transition: background 0.3s, transform 0.3s; }
.ip-card:hover { background: var(--yellow-hover); transform: translateY(-4px); }
.ip-card small { font: 700 12px "Montserrat", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; }
.ip-card p { margin-top: 10px; font-size: 15px; line-height: 1.7; }

.todo { margin-top: 28px; padding: 22px 26px; border: 2px dashed rgba(128, 128, 128, 0.55); border-radius: var(--radius); font-size: 14px; opacity: 0.75; }
.todo i { margin-right: 8px; color: var(--yellow); }
.todo-wrap { margin-top: 10px; }

/* ---------- Animations + responsive ---------- */
@keyframes float { 50% { transform: translateY(-12px); } }

@media (max-width: 1000px) {
    .products-hero-content, .product-block { grid-template-columns: 1fr; gap: 40px; }
    .product-block.reverse .media { order: 0; }
    .product-block .media { min-height: 0; aspect-ratio: 4 / 3; }
    .categories { grid-template-columns: repeat(2, 1fr); }
    .spec-grid, .steps { grid-template-columns: 1fr; }
    .media.wide { aspect-ratio: 16 / 9; }
}

@media (max-width: 650px) {
    .categories { grid-template-columns: 1fr; }
    .spec, .ip-card { padding: 24px; }
}