/* =========================================================
   BREADCRUMB — ORGANIZATION MAP

   1. Shared hero breadcrumb visuals (products reference)
   2. Page-specific positioning only
   3. Product-detail breadcrumb bar
   4. Responsive typography and mobile overrides

   All breadcrumb styling lives in this file only.
========================================================= */

/* ==================================
   SHARED HERO BREADCRUMB — BASE
   Visual style matches products.php
=================================== */

:is(
    .products-breadcrumb,
    .about-hero-section .hero-breadcrumb,
    .service-hero .hero-breadcrumb,
    .contact-breadcrumb
) {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
}

:is(
    .products-breadcrumb,
    .about-hero-section .hero-breadcrumb,
    .service-hero .hero-breadcrumb,
    .contact-breadcrumb
) a,
:is(
    .products-breadcrumb,
    .about-hero-section .hero-breadcrumb,
    .service-hero .hero-breadcrumb,
    .contact-breadcrumb
) span {
    color: inherit;
    text-decoration: none;
}

:is(
    .products-breadcrumb,
    .about-hero-section .hero-breadcrumb,
    .service-hero .hero-breadcrumb,
    .contact-breadcrumb
) a {
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.25s ease;
}

:is(
    .products-breadcrumb,
    .about-hero-section .hero-breadcrumb,
    .service-hero .hero-breadcrumb,
    .contact-breadcrumb
) a:hover {
    color: var(--aei-red, #e30613);
}

:is(
    .products-breadcrumb,
    .about-hero-section .hero-breadcrumb,
    .service-hero .hero-breadcrumb,
    .contact-breadcrumb
) i {
    flex: 0 0 12px;
    width: 12px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1;
    text-align: center;
}

.desktop-about-breadcrumb {
    display: none;
}

/* ==================================
   PAGE-SPECIFIC POSITIONING ONLY
=================================== */

.products-breadcrumb {
    position: absolute;
    top: 36px;
    left: 18px;
    z-index: 10;
}

.contact-breadcrumb {
    position: absolute;
    top: 48px;
    left: 0;
    z-index: 10;
}

.about-hero-section .hero-breadcrumb {
    position: absolute;
    top: 55px;
    left: 50%;
    z-index: 20;
    width: min(1250px, calc(100% - 60px));
    transform: translateX(-50%);
}

.service-hero .hero-breadcrumb {
    position: absolute;
    top: 55px;
    left: 50%;
    z-index: 20;
    width: 100%;
    max-width: 1320px;
    padding: 0 30px;
    transform: translateX(-50%);
}

/* ==================================
   PRODUCT DETAIL BREADCRUMB BAR
=================================== */

.pd-breadcrumb {
    padding: 18px 0;
    border-bottom: 1px solid var(--pd-line);
    background: #fff;
}

.pd-breadcrumb .pd-container {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: #7b8799;
}

.pd-breadcrumb a {
    color: #475569;
    text-decoration: none;
    transition: color 0.25s ease;
}

.pd-breadcrumb a:hover {
    color: var(--pd-red);
}

.pd-breadcrumb i {
    flex: 0 0 12px;
    width: 12px;
    font-size: 12px;
    line-height: 1;
    text-align: center;
}

/* ==================================
   HERO SMALL DESKTOP
=================================== */

@media screen and (max-width: 1199px) {
    .products-breadcrumb {
        top: 36px;
        left: 12px;
    }
}

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

@media screen and (max-width: 991px) {
    :is(
        .products-breadcrumb,
        .about-hero-section .hero-breadcrumb,
        .service-hero .hero-breadcrumb,
        .contact-breadcrumb
    ) {
        font-size: 14px;
    }

    .products-breadcrumb {
        top: 34px;
        left: 10px;
    }

    .contact-breadcrumb {
        top: 48px;
    }

    .about-hero-section .hero-breadcrumb {
        top: 42px;
        width: calc(100% - 50px);
    }

    .service-hero .hero-breadcrumb {
        top: 42px;
        padding: 0 24px;
    }

    .pd-breadcrumb {
        padding: 16px 0;
    }

    .pd-breadcrumb .pd-container {
        font-size: 14px;
    }
}

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

@media screen and (max-width: 767px) {
    :is(
        .products-breadcrumb,
        .about-hero-section .hero-breadcrumb,
        .service-hero .hero-breadcrumb,
        .contact-breadcrumb
    ) {
        gap: 10px;
        font-size: 13px;
    }

    :is(
        .products-breadcrumb,
        .about-hero-section .hero-breadcrumb,
        .service-hero .hero-breadcrumb,
        .contact-breadcrumb
    ) i {
        flex-basis: 10px;
        width: 10px;
        font-size: 9px;
    }

    .products-breadcrumb {
        top: 26px;
        left: 2px;
    }

    .contact-breadcrumb {
        top: 26px;
        gap: 10px;
        font-size: 13px;
    }

    .about-hero-section .hero-breadcrumb {
        top: 25px;
        width: calc(100% - 30px);
        gap: 10px;
        font-size: 13px;
    }

    .service-hero .hero-breadcrumb {
        top: 28px;
        gap: 10px;
        padding: 0 16px;
        font-size: 13px;
    }

    .pd-breadcrumb {
        padding: 13px 0;
    }

    .pd-breadcrumb .pd-container {
        gap: 10px;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
    }

    .pd-breadcrumb i {
        flex-basis: 10px;
        width: 10px;
        font-size: 9px;
    }
}

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

@media screen and (max-width: 480px) {
    :is(
        .products-breadcrumb,
        .about-hero-section .hero-breadcrumb,
        .service-hero .hero-breadcrumb,
        .contact-breadcrumb
    ) {
        display: flex !important;
        align-items: center !important;
        z-index: 20 !important;
        gap: 5px !important;
        font-size: 7px !important;
        line-height: 1 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    :is(
        .products-breadcrumb,
        .about-hero-section .hero-breadcrumb,
        .service-hero .hero-breadcrumb,
        .contact-breadcrumb
    ) a,
    :is(
        .products-breadcrumb,
        .about-hero-section .hero-breadcrumb,
        .service-hero .hero-breadcrumb,
        .contact-breadcrumb
    ) span {
        color: inherit !important;
        font-size: inherit !important;
        font-weight: 400 !important;
        line-height: 1 !important;
        text-decoration: none !important;
    }

    :is(
        .products-breadcrumb,
        .about-hero-section .hero-breadcrumb,
        .service-hero .hero-breadcrumb,
        .contact-breadcrumb
    ) i {
        flex: 0 0 6px !important;
        width: 6px !important;
        font-size: 6px !important;
        line-height: 1 !important;
        text-align: center !important;
    }

    .products-breadcrumb {
        top: 115px !important;
        left: 2px !important;
    }

    .contact-breadcrumb {
        top: 65px !important;
        left: 2px !important;
    }

    .about-hero-section .hero-breadcrumb {
        top: 25px !important;
        left: 50% !important;
        width: calc(100% - 30px) !important;
        transform: translateX(-50%) !important;
    }

    .service-hero .hero-breadcrumb {
        top: 25px !important;
        left: 12px !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
        transform: none !important;
    }

    .pd-breadcrumb {
        width: calc(100% - 48px) !important;
        margin-right: auto !important;
        margin-left: auto !important;
        padding: 9px 0 !important;
    }

    .pd-breadcrumb .pd-container {
        width: calc(100% - 18px) !important;
        gap: 5px !important;
        margin-right: auto !important;
        margin-left: auto !important;
        font-size: 9px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .pd-breadcrumb i {
        flex: 0 0 7px !important;
        width: 7px !important;
        font-size: 7px !important;
        line-height: 1 !important;
    }
}

/* ==================================
   HERO BREADCRUMBS — DESKTOP
   Exact About-page alignment.
=================================== */

@media screen and (min-width: 992px) {
    .products-hero-content > .products-breadcrumb,
    .contact-hero-content > .contact-breadcrumb {
        display: none;
    }

    .about-hero-section .hero-breadcrumb,
    .service-hero .hero-breadcrumb,
    .desktop-about-breadcrumb {
        top: 55px;
        left: 50%;
        width: min(1250px, calc(100% - 60px));
        max-width: none;
        padding: 0;
        transform: translateX(-50%);
    }

    .desktop-about-breadcrumb {
        position: absolute;
        z-index: 20;
        display: flex;
        align-items: center;
        gap: 14px;
        margin: 0;
        color: rgba(255, 255, 255, 0.78);
        font-size: 14px;
        font-weight: 400;
        line-height: 1.2;
        background: transparent;
        border: 0;
    }

    .desktop-about-breadcrumb a,
    .desktop-about-breadcrumb span {
        color: inherit;
        text-decoration: none;
    }

    .desktop-about-breadcrumb a {
        transition: color 0.25s ease;
    }

    .desktop-about-breadcrumb a:hover {
        color: var(--aei-red, #e30613);
    }

    .desktop-about-breadcrumb i {
        flex: 0 0 12px;
        width: 12px;
        color: rgba(255, 255, 255, 0.62);
        font-size: 12px;
        line-height: 1;
        text-align: center;
    }
}
