/* ==========================================================================
   1. GLOBAL KIOSK CANVAS RESET & TYPOGRAPHY
   ========================================================================== */

/* nunito-sans-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/nunito-sans-regular.woff2') format('woff2');
}

/* nunito-sans-800 - latin */
@font-face {
    font-display: swap;
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/nunito-sans-800.woff2') format('woff2');
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
}

strong,
b {
    font-weight: 800;
}

/* Base structural layout container defaults */
.kiosk-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Strip default image shadows safely across the application */
img,
button,
a {
    box-shadow: none !important;
}

/* ==========================================================================
   2. REUSABLE SHARED COMPONENT UI LAYER
   ========================================================================== */

/* Universal Kiosk Heading Image Controller */
.page-heading {
    pointer-events: none;
    height: 120px;
}

/* Universal Flat Bottom Control Bar Layout Container */
.nav-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 20px;
    z-index: 10;
    align-items: center;
}

.control-btn {
    width: 76px;
    height: 76px;
    transition: transform 0.1s ease;
    cursor: pointer;
}

.control-btn:active {
    transform: scale(0.90);
}

/* Active touch states for interactive grid and list items */
.video-card-btn,
.product-btn,
.equipment-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    border: none;
    background: transparent;
    transition: transform 0.1s ease;
    width: 100%;
    padding: 0;
}

.product-btn {
    margin-bottom: 25px;
    /* Tightened offset for 60% scaled products */
}

/* Eliminates the post-click/post-modal blue focus outline ring completely */
.video-card-btn:focus,
.product-btn:focus,
.equipment-btn:focus,
.video-card-btn:active,
.product-btn:active,
.equipment-btn:active {
    outline: none !important;
    border: none !important;
}

/* ==========================================================================
   3. SCREEN OVERRIDES VIA SCOPED BODY TAGS
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. PAGE: HOME ATTRACT LOOP (index.html)
   -------------------------------------------------------------------------- */
.page-home {
    background-color: #1a3c45;
}

.page-home .kiosk-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.page-home .kiosk-overlay .logo {
    width: 350px;
    /* max-width: 30vw; */
    padding-top: 6px;
    padding-left: 10px;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 15px rgba(0, 0, 0, 0.4));
}

.page-home .kiosk-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.page-home .interactive-btn {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.page-home .interactive-btn:active {
    transform: scale(0.92);
}

.page-home .btn-touch {
    width: 76px;
    animation: pulse-glow 2.5s infinite;
}

.page-home .btn-menu {
    width: 90px;
}

/* Bootstrap Carousel Cover Crossfade Fixes */
.page-home .carousel,
.page-home .carousel-inner,
.page-home .carousel-item {
    width: 100%;
    height: 100%;
}

.page-home .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

.page-home .carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transition-duration: 1500ms;
    transition-timing-function: ease-in-out;
    transform: none !important;
}

.page-home .carousel-fade .carousel-item.active,
.page-home .carousel-fade .carousel-item-next.carousel-item-start,
.page-home .carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
    z-index: 1;
}

.page-home .carousel-fade .active.carousel-item-start,
.page-home .carousel-fade .active.carousel-item-end {
    z-index: 0;
    opacity: 0;
    transition: opacity 1500ms ease-in-out;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

/* --------------------------------------------------------------------------
   B. PAGE: MAIN NAVIGATION (navigation/index.html)
   -------------------------------------------------------------------------- */
.page-navigation {
    background-color: #071110;
}

.page-navigation .kiosk-wrapper {
    background: url('../images/ui/nav-bg.jpg') no-repeat center center;
    background-size: cover;
    align-items: center;
    justify-content: center;
}

.page-navigation .nav-container {
    width: 90%;
    max-width: 1500px;
    display: flex;
    justify-content: center;
    gap: 80px;
    z-index: 5;
}

.page-navigation .category-card {
    display: block;
    width: 320px;
    height: 520px;
    text-decoration: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 0;
    overflow: hidden;
    opacity: 0;
    animation: scaleDownIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-navigation .category-card:active {
    transform: scale(0.95) !important;
}

.page-navigation .category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.page-navigation .card-products {
    animation-delay: 0.1s;
}

.page-navigation .card-equipment {
    animation-delay: 0.35s;
}

.page-navigation .card-videos {
    animation-delay: 0.6s;
}

.page-navigation .nav-controls {
    gap: 24px;
}

@keyframes scaleDownIn {
    from {
        opacity: 0;
        transform: scale(1.15) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --------------------------------------------------------------------------
   C. PAGES: DIRECTORIES & APPLICATION VIDEOS (products, equipment, videos)
   -------------------------------------------------------------------------- */
.page-products,
.page-equipment,
.page-videos {
    background: #071110 url('../images/ui/product-equipment-bg.jpg') no-repeat center center;
    background-size: cover;
}

/* Clean segregation of padding properties to fix header alignment bounds */
.page-products .kiosk-wrapper,
.page-equipment .kiosk-wrapper,
.page-videos .kiosk-wrapper {
    padding-top: 40px;
}

.page-products .page-heading {
    margin-bottom: 60px;
}

.page-equipment .page-heading {
    margin-bottom: 40px;
}

.page-videos .page-heading {
    margin-bottom: 30px;
}

/* Container framework constraints */
.page-products .products-container,
.page-equipment .equipment-container {
    width: 85%;
    max-width: 1200px;
}

.page-products .product-img {
    height: 114px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.page-products .product-label {
    height: 16px;
    width: auto;
    object-fit: contain;
}

.page-equipment .equipment-img {
    height: 210px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-equipment .equipment-label {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.page-videos .videos-container {
    width: 70%;
    max-width: 680px;
}

.page-videos .video-thumbnail {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   D. PAGE: SINGLE DETAILS SHEET (products-arbotect.html)
   -------------------------------------------------------------------------- */
.page-product-single {
    background: #071110 url('../images/ui/product-equipment-single-half-bg.jpg') no-repeat center center;
    background-size: cover;
}

.page-product-single .kiosk-wrapper {
    flex-direction: row;
    padding: 60px;
    justify-content: center;
}

.page-product-single .left-panel {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centered vertically on screen */
    padding-right: 60px;
}

.page-product-single .right-panel {
    width: 50%;
    height: 100%;
    padding-left: 60px;
}

.page-product-single .left-graphics-stack {
    width: 100%;
    max-width: 810px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-product-single .hero-carousel-container {
    width: 100%;
    border-radius: 0 !important;
    overflow: hidden;
}

.page-product-single .carousel-item {
    width: 100%;
    /* aspect-ratio: 810 / 524; */
}

.page-product-single .carousel-item img {
    width: 100%;
    height: 100%;
    /* object-fit: cover;
    border-radius: 0 !important; */
}

.page-product-single .treated-comparison-bar {
    width: 100%;
    margin-top: 0px;
}

.page-product-single.onmark .treated-comparison-bar img {
    display: none;
}

.page-product-single .treated-comparison-bar img {
    width: 100%;
    height: auto;
    display: block;
}

.page-product-single .carousel-nav-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.page-product-single .product-logo {
    /* max-width: 540px; */
    height: 34px; /* was auto; */
    margin-bottom: 30px;
}

.page-product-single .product-description {
    font-size: 18px;
    line-height: 1.6;
    color: #ffffff;
}

.page-product-single .product-bottle-img {
    max-height: 240px;
    width: auto;
    object-fit: contain;
}

.page-product-single .panel-nav-btn {
    width: 76px;
    height: 76px;
    transition: transform 0.1s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
}

.page-product-single .panel-nav-btn:active {
    transform: scale(0.90);
}

/* ==========================================================================
   4. MODAL & VIDEO RENDERING CANVAS
   ========================================================================== */
.modal-content {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative;
}

.modal-body {
    padding: 0 !important;
    position: relative;
}

video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.btn-close-custom {
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: 1055;
    background: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-family: Arial, sans-serif;
    font-weight: normal;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.btn-close-custom:active {
    transform: scale(0.9);
}