/* Mobility & Vehicle Solutions page: product intro + product cards.
   Loaded after style.css (the shared base stylesheet). */

/* =========================================
   PRODUCTS INTRO / HERO
========================================= */

.products-section {
    position: relative;
    width: 100%;
    min-height: 100vh;

    padding: 28px 16px 40px;

    background: #05080f;

    overflow: hidden;
}


/* Subtle grid pattern like screenshot */

.products-section::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(76, 101, 139, 0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(76, 101, 139, 0.055) 1px,
            transparent 1px
        );

    background-size: 34px 34px;

    opacity: 0.45;
}


/* Keep content above grid */

.products-intro,
.products-grid {
    position: relative;
    z-index: 1;
}


/* =========================================
   SECTION LABEL
========================================= */

.products-intro {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding-top: 0;
}


/* OUR DEVICES pill */

.section-label {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 5px 10px;

    border-radius: 20px;

    border: 1px solid
        rgba(22, 196, 242, 0.22);

    background:
        rgba(18, 152, 207, 0.10);

    color: #19c4ee;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.8px;

    margin-bottom: 12px;
}


/* Small blue dot */

.section-label span {

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #19c4ee;

    box-shadow:
        0 0 7px
        rgba(25, 196, 238, 0.8);
}


/* =========================================
   MAIN HEADING
========================================= */

.products-intro h1 {

    margin: 0;

    max-width: 900px;

    color: #f1f5fb;
    width: 100%;

    font-size: clamp(
        42px,
        5vw,
        72px
    );

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -2px;
    color: #ffffff;
}

.heading-line {
    display: block;
    white-space: nowrap;
}

.subheading-line {
    display: block;
}


/* =========================================
   INTRO DESCRIPTION
========================================= */

.products-intro p {

    max-width: 680px;

    margin-top: 17px;

    color: #8c98ad;

    font-size: 13px;

    line-height: 1.7;

    font-weight: 400;
}


/* =========================================
   PRODUCT GRID
========================================= */

.products-grid {

    width: 100%;

    max-width: 1250px;

    margin: 180px auto 0;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}
/* =========================================
   TABLET
========================================= */

@media (min-width: 768px) {

    .products-section {
        padding:
            38px 30px
            50px;
    }

    .products-intro h1 {
        font-size: 44px;
    }

    .products-intro p {
        font-size: 14px;
    }

    .products-grid {
        margin-top: 150px;
        gap: 25px;
    }
}


/* =========================================
   DESKTOP
========================================= */

@media (min-width: 1100px) {

    .products-section {
        padding:
            45px 40px
            60px;
    }

    .products-intro {
        max-width: 1250px;
    }

    .products-intro h1 {
        font-size: 58px;
    }

    .products-intro p {
        font-size: 15px;
        max-width: 700px;
    }

    .products-grid {
        margin-top: 90px;
        gap: 28px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .products-section {
        padding:
            27px 16px
            35px;
    }

    .products-intro h1 {

        font-size: 36px;

        line-height: 1.12;

        letter-spacing: -1px;
    }

    .products-intro h1 .heading-line {
        white-space: normal;
    }

    .products-intro p {

        font-size: 11px;

        line-height: 1.7;

        max-width: 500px;

        margin-top: 16px;
    }

    .products-grid {

        margin-top: 90px;

        gap: 22px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .products-intro h1 {

        font-size: 31px;

        letter-spacing: -0.8px;
    }

    .products-intro p {

        font-size: 10px;
    }

    .section-label {

        font-size: 8px;

        padding:
            5px 9px;
    }

    .products-grid {

        margin-top: 85px;
    }
}


.dm-reveal {
    opacity: 0;
    transform: translateY(55px);
    transition: opacity 1.3s ease, transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.dm-reveal.dm-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .dm-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================================
   PRODUCTS SECTION
========================================= */

.products-section {

    width: 100%;

    padding:
        17px 16px
        25px;
}


/* =========================================
   PRODUCT GRID
========================================= */

.products-grid {

    width: 100%;

    max-width: 1250px;

    margin: 180px auto 0;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================
   PRODUCT CARD
========================================= */

.product-card {

    position: relative;

    background:
        #121b2d;

    border:
        1px solid
        rgba(83, 109, 150, 0.17);

    border-radius: 16px;

    overflow: hidden;

    min-width: 0;

    display: flex;

    flex-direction: column;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.product-card:hover,
.product-card:focus-within {

    transform: translateY(-2px);

    border-color:
        rgba(20, 192, 239, 0.35);

    background:
        #17263d;

    box-shadow:
        0 10px 24px
        rgba(0, 0, 0, 0.2);
}

.product-image-area:hover,
.product-image-area:focus-within {

    background:
        linear-gradient(
            180deg,
            rgba(20, 192, 239, 0.12),
            rgba(20, 192, 239, 0.04)
        );

    border: 1px solid
        rgba(20, 192, 239, 0.9);

    border-radius: 14px;

    box-shadow:
        0 0 0 2px
        rgba(20, 192, 239, 0.18),
        0 8px 18px
        rgba(20, 192, 239, 0.12);
}

.product-image-area:hover img,
.product-image-area:focus-within img {

    transform: scale(1.02);

    filter: saturate(1.15) brightness(1.05);
}


/* =========================================
   IMAGE AREA
========================================= */

.product-image-area {

    height: 153px;

    padding: 16px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        #18243a;
}


/* Product image */

.product-image-area img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    background: white;

    display: block;
}


/* =========================================
   BADGES
========================================= */

.badge {

    position: absolute;

    top: 8px;
    left: 8px;

    z-index: 5;

    padding:
        4px 8px;

    border-radius: 8px;

    font-size: 9px;

    font-weight: 600;

    white-space: nowrap;
}

.badge.green {

    color: #39d59c;

    background:
        rgba(39, 201, 145, 0.14);

    border:
        1px solid
        rgba(39, 201, 145, 0.18);
}

.badge.blue {

    color: #50a7ff;

    background:
        rgba(42, 119, 220, 0.18);

    border:
        1px solid
        rgba(42, 119, 220, 0.25);
}

.badge.yellow {

    color: #e5cf55;

    background:
        rgba(219, 190, 49, 0.15);

    border:
        1px solid
        rgba(219, 190, 49, 0.2);
}


/* =========================================
   CARD CONTENT
========================================= */

.product-content {

    padding:
        16px;

    display: flex;

    flex-direction: column;

    flex: 1;
}


/* Product title */

.product-content h2 {

    font-size: 16px;

    line-height: 1.2;

    margin-bottom: 9px;

    color: #f0f3f8;

    font-weight: 700;
}


/* Description */

.product-content p {

    color: #8e9ab0;

    font-size: 11px;

    line-height: 1.65;

    min-height: 54px;

    margin-bottom: 8px;
}


/* =========================================
   FEATURES
========================================= */

.product-content ul {

    list-style: none;

    margin: 0 0 12px;

    padding: 0;
}

.product-content li {

    color: #9ba7ba;

    font-size: 10px;

    line-height: 1.55;

    margin-bottom: 5px;

    display: flex;

    align-items: flex-start;

    gap: 6px;
}

.product-content li::before {

    content: "✓";

    color: #24d49c;

    font-weight: bold;

    flex-shrink: 0;
}


/* =========================================
   VIEW DETAILS
========================================= */

.details {

    margin-top: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #16c4f2;

    text-decoration: none;

    font-size: 10px;

    font-weight: 600;

    padding-top: 4px;
}

.details span {

    font-size: 19px;

    line-height: 10px;

    transition:
        transform 0.2s ease;
}

.details:hover span {

    transform:
        translateX(4px);
}


/* =========================================
   WHATSAPP
========================================= */


/* =========================================
   TABLET
========================================= */

@media (min-width: 768px) {


    .products-section {

        padding:
            25px 30px
            40px;
    }

    .products-grid {

        gap: 25px;
        margin-top: 150px;
    }

    .product-image-area {

        height: 190px;

        padding: 20px;
    }

    .product-content {

        padding: 19px;
    }

    .product-content h2 {

        font-size: 19px;
    }

    .product-content p {

        font-size: 13px;
    }

    .product-content li {

        font-size: 12px;
    }

    .details {

        font-size: 12px;
    }
}


/* =========================================
   DESKTOP
========================================= */

@media (min-width: 1100px) {


    .navigation {

        max-width: 850px;

        margin-left: auto;
    }

    .navigation a {

        font-size: 13px;

        padding:
            10px 12px;
    }

    .products-section {

        padding:
            35px 40px
            50px;
    }

    .products-grid {

        gap: 28px;
        margin-top: 90px;
    }

    .product-image-area {

        height: 220px;
    }

    .product-content {

        padding: 22px;
    }

    .product-content h2 {

        font-size: 21px;
    }

    .product-content p {

        font-size: 14px;

        min-height: 68px;
    }

    .product-content li {

        font-size: 13px;

        margin-bottom: 7px;
    }

    .details {

        font-size: 13px;
    }
}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 380px) {

    .header-container {

        padding:
            0 14px;

        gap: 5px;
    }

    .logo-text {

        font-size: 13px;
        letter-spacing: 0.04em;
    }


    .logo-text strong {

        letter-spacing: 0.04em;
    }

    .navigation {

        gap: 1px;
    }

    .navigation a {

        font-size: 8px;

        padding:
            7px 3px;
    }


    .products-section {

        padding:
            10px 8px
            20px;
    }

    .products-grid {

        gap: 10px;
    }

    .product-image-area {

        height: 105px;

        padding: 8px;
    }

    .product-content {

        padding: 10px;
    }

    .product-content h2 {

        font-size: 12px;

        margin-bottom: 6px;
    }

    .product-content p {

        font-size: 8px;

        line-height: 1.55;

        min-height: 50px;
    }

    .product-content li {

        font-size: 7.5px;

        gap: 3px;

        margin-bottom: 4px;
    }

    .details {

        font-size: 8px;
    }

    .details span {

        font-size: 14px;
    }

    .badge {

        font-size: 6px;

        padding:
            3px 5px;

        top: 5px;
        left: 5px;
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 90px;
    }
}

@media (max-width: 400px) {
    .products-grid {
        margin-top: 85px;
    }
}
.mobile-dropdown-toggle,
.mobile-simple-link { position: relative; }

.mobile-dropdown-toggle::after,
.mobile-simple-link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #e91d2b;
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .2s ease;
}

.mobile-dropdown-toggle:hover::after,
.mobile-dropdown-toggle:focus-visible::after,
.mobile-nav-item.open > .mobile-dropdown-toggle::after,
.mobile-nav-item.is-active > .mobile-dropdown-toggle::after,
.mobile-simple-link:hover::after,
.mobile-simple-link:focus-visible::after,
.mobile-simple-link.is-active::after { transform: scaleX(1); }

/* =========================================
   UNDO HOMEPAGE PRODUCT-SLIDER RULES
   style.css styles the homepage slider with the same class names
   (.product-card / .product-content); cancel the parts these cards don't use.
========================================= */
.product-card {
    flex: none;
    width: auto;
    max-width: none;
    height: auto;
}
.product-card:hover img { transform: none; filter: none; }
.product-card .product-image-area:hover img,
.product-card .product-image-area:focus-within img {
    transform: scale(1.02);
    filter: saturate(1.15) brightness(1.05);
}
.product-content {
    position: static;
    z-index: auto;
}
.product-content::before { content: none; }
:where(.product-content) a.details { color: #16c4f2; font-size: 10px; font-weight: 600; }
@media (min-width: 768px) { :where(.product-content) a.details { font-size: 12px; } }
@media (min-width: 1100px) { :where(.product-content) a.details { font-size: 13px; } }
@media (max-width: 380px) { :where(.product-content) a.details { font-size: 8px; } }
:where(.product-content) a.details span { margin-left: 0; }
@media (max-width: 380px) { :where(.product-content) a.details span { font-size: 14px; } }

/* breathing space between the last row of product cards and the section below
   (the "Let's Build Your Success Story" band) - both themes */
/* (the section is the <main> element, whose padding is forced to 0 elsewhere,
   so the space goes on the bottom of the grid) */
.products-section:has(.products-intro) .products-grid { padding-bottom: 64px; }
@media (max-width: 600px) {
    .products-section:has(.products-intro) .products-grid { padding-bottom: 44px; }
}
