/* ==========================================================================
   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;
}

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

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

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

.carousel-ctrl-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

/* 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;
}

/* Eliminates 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;
    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;
}

/* --- Centered HTML Pullquote Card Layout --- */
.page-home .quote-card-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    align-items: center;     /* Vertical Centering */
    justify-content: center; /* Horizontal Centering */
    padding: 0 80px;
    pointer-events: none;
}

.page-home .quote-card {
    background-color: rgba(0, 0, 0, 0.60);
    border-left: 14px solid #ed5438;
    padding: 40px 50px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    color: #ffffff;
    width: 100%;
    max-width: 1100px;
    opacity: 0;
    backface-visibility: hidden;
}

.page-home .quote-text {
    font-size: 30px;
    line-height: 1.45;
    font-weight: 400;
    margin-bottom: 24px;
}

.page-home .quote-text .highlight {
    color: #d6e24a;
    font-weight: 800;
}

.page-home .quote-author {
    font-size: 22px;
    color: #E2E2E2;
    margin-bottom: 0;
}

.page-home .carousel-item.active .quote-card {
    animation: slideFadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

@keyframes slideFadeDown {
    0% {
        opacity: 0;
        transform: translateY(-40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@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-results {
    animation-delay: 0.1s;
}

.page-navigation .card-products {
    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 (results, products, videos)
   -------------------------------------------------------------------------- */
.page-results {
    background: #013819 url('../images/ui/results-bg.jpg') no-repeat center center;
    background-size: cover;
}

.page-products {
    background: #434345 url('../images/ui/product-bg-gray.jpg') no-repeat center center;
    background-size: cover;
}

.page-videos {
    background: #013819 url('../images/ui/videos-bg.jpg') no-repeat center center;
    background-size: cover;
}

/* Restored uniform top padding across all directory pages */
.page-results .kiosk-wrapper,
.page-products .kiosk-wrapper,
.page-videos .kiosk-wrapper {
    padding-top: 40px;
}

/* Restored uniform 120px heading height across all directory pages */
.page-products .page-heading,
.page-videos .page-heading {
    height: 120px;
    margin-bottom: 30px;
}

.page-products .products-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-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: #434345 url('../images/ui/product-single-half-bg-gray.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;
    padding-right: 60px;
}

.page-product-single .right-panel {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    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%;
}

.page-product-single .carousel-item img {
    width: 100%;
    height: 100%;
}

.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 {
    height: 34px;
    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);
}

/* --------------------------------------------------------------------------
   E. PAGE OVERRIDES: FULL-SCREEN RESULTS TEMPLATE (trimtect-florida.html)
   -------------------------------------------------------------------------- */
.page-results-single {
    background-color: #434345;
}

.page-results-single .carousel,
.page-results-single .carousel-inner,
.page-results-single .carousel-item {
    width: 100%;
    height: 100%;
}

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

/* --- Optimized Crossfade Transitions for Kiosk Hardware --- */
.page-results-single .carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 600ms ease-in-out;
    transform: none !important;
}

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

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

.page-results-single .sidebar-graphic-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.page-results-single .sidebar-graphic-overlay img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: right center;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

/* --------------------------------------------------------------------------
   F. PAGE OVERRIDES: REGIONAL RESULTS MAP (results/index.html)
   -------------------------------------------------------------------------- */
.page-results .kiosk-wrapper {
    padding-top: 40px;
    justify-content: flex-start;
    overflow: hidden;
}

.page-results .map-header {
    width: 100%;
    max-width: 1180px;
    margin-bottom: 40px;
    text-align: center;
    z-index: 5;
}

.page-results .map-header .page-heading {
    width: 80%;
    max-width: 1100px;
    height: auto;
    display: inline-block;
}

/* Kiosk Mode Container Bounds */
.page-results .map-container {
    position: relative;
    width: calc(80% - 90px);
    max-width: 1010px;
    aspect-ratio: 1262 / 759;
    margin: 0 auto;
}

.page-results .base-map-img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Region Interactive Circles */
.page-results .map-region {
    position: absolute;
    width: 13.5%;
    aspect-ratio: 1 / 1;
    display: block;
    z-index: 10;
    opacity: 0;
    animation: mapNodeFade 0.6s ease-out forwards;
}

.page-results .map-region img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.page-results .map-region:hover,
.page-results .map-region:focus {
    transform: none !important;
    filter: none !important;
    outline: none !important;
}

.page-results .map-region:active {
    opacity: 0.8;
}

/* Map Circle Percentage Positions */
.page-results .node-pacific-nw {
    animation-delay: 1.50s;
    top: 5%;
    left: 4%;
}

.page-results .node-west-coast {
    animation-delay: 1.25s;
    top: 38%;
    left: 3%;
}

.page-results .node-midwest {
    animation-delay: 0s;
    top: 15%;
    left: 45%;
}

.page-results .node-texas {
    animation-delay: 1.00s;
    top: 68%;
    left: 39%;
}

.page-results .node-mid-atlantic {
    animation-delay: 0.25s;
    top: 24%;
    left: 78%;
}

.page-results .node-southeast {
    animation-delay: 0.50s;
    top: 45%;
    left: 62%;
}

.page-results .node-florida {
    animation-delay: 0.75s;
    top: 70%;
    left: 75%;
}

@keyframes mapNodeFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   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);
}