/* ===================================================
   Hi-Vac Industrial – Kiosk Stylesheet
   Target: 2160 × 3840 px  (portrait, fixed)
   =================================================== */

/* ----- Reset & Kiosk Hardening ----- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow: hidden;
    touch-action: manipulation;       /* eliminates 300 ms tap delay */
    -webkit-text-size-adjust: 100%;
}

/* Touch-optimised interactive elements */
a, button, input, select, label,
.nav-button, .back-button, .nav-options,
.product-button, .product, .dot, .pause-play,
.manifold-card, .multi-dropdown-toggle,
.multi-dropdown-menu label, .submit-button,
.image-modal-close, .form-select {
    touch-action: manipulation;
}

/* ----- Body ----- */
body {
    width: 2160px;
    height: 3840px;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    color: #54585a;
    background: #000;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: default;
    user-select: none;                 /* prevent text selection      */
    -webkit-user-select: none;
}

/* Lava-lamp blobs – layered on <body> */
body::before,
body::after {
    content: '';
    position: absolute;
    filter: blur(200px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    will-change: transform, border-radius;
    mix-blend-mode: screen;
}

body::before {
    width: 1100px;
    height: 1100px;
    background: #f5a81f;
    top: 5%;
    left: -5%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: lavaA 35s ease-in-out infinite alternate;
}

body::after {
    width: 900px;
    height: 900px;
    background: #0057b8;
    bottom: 5%;
    right: -5%;
    border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
    animation: lavaB 40s ease-in-out infinite alternate;
}

/* ----- Navigation ----- */
nav {
    height: 200px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 150px;
    background-color: #f5a81f;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    z-index: 10;
}

.nav-button,
.back-button,
.nav-options {
    font-size: 48px;
    padding: 20px 80px;
    min-height: 88px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
}

.nav-button,
.nav-options {
    border: none;
    color: #fff;
    background-color: #000;
}

.back-button {
    border: 6px solid #000;
    color: #fff;
    background: #000;
    padding: 14px 80px;
}

.nav-button:hover,
.nav-button:active,
.back-button:hover,
.back-button:active,
.nav-options:hover,
.nav-options:active {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.home-page .nav-start,
.home-page .nav-back {
    pointer-events: none;
    opacity: 0.35;
    filter: saturate(0);
    cursor: default;
}

.options-page .nav-options {
    pointer-events: none;
    opacity: 0.35;
    filter: saturate(0);
    cursor: default;
}

.contact-page .nav-contact {
    pointer-events: none;
    opacity: 0.35;
    filter: saturate(0);
    cursor: default;
}

/* ----- Main Content ----- */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    padding: 20px 40px;
    overflow: hidden;
    position: relative;
}

/* Extra lava blobs inside <main> */
main::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: #f5a81f;
    border-radius: 50% 60% 40% 70% / 55% 45% 65% 35%;
    filter: blur(220px);
    opacity: 0.12;
    top: 40%;
    right: -10%;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: lavaC 30s ease-in-out infinite alternate;
}

main::after {
    content: '';
    position: absolute;
    width: 650px;
    height: 650px;
    background: #0057b8;
    border-radius: 70% 30% 50% 50% / 40% 60% 40% 60%;
    filter: blur(200px);
    opacity: 0.1;
    top: 15%;
    left: -8%;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: lavaD 25s ease-in-out infinite alternate;
}

/* ----- Product Grid ----- */
.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    flex: 1;
    min-height: 0;                     /* allow grid to shrink inside flex */
}

.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    padding: 10px;
    min-height: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.product:hover,
.product:active {
    transform: scale(1.02);
}

/* Image Wrapper */
.image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    min-height: 0;                     /* critical: allow shrink in flex */
    transition: transform 0.3s ease, filter 0.3s ease;
    will-change: transform, filter;
}

.product:hover .image-wrapper,
.product:active .image-wrapper {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.product img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: filter 0.3s ease, transform 0.3s ease;
    will-change: transform, filter;
}

.product:hover img,
.product:active img {
    filter: drop-shadow(0 0 12px #000) brightness(1.05);
    transform: scale(1.05);
}

/* ----- Product Button (shared) ----- */
.product-button {
    font-size: 34px;
    text-align: center;
    width: auto;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    padding: 12px 80px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    backdrop-filter: blur(3.5px);
    -webkit-backdrop-filter: blur(3.5px);
    animation: pulse 2s infinite ease-in-out;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.product-button:hover,
.product-button:active {
    background-color: #f5a81f;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.bold {
    display: block;
    font-weight: bold;
    font-size: 1.2em;
}

/* ----- Supporting / Detail Pages ----- */
main.supporting {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.top-half {
    height: calc(50% - 100px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 2160px;
    padding: 20px 0 0;
    overflow: hidden;
}

.page-title {
    text-align: center;
    font-size: 80px;
    color: #fff;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    font-weight: bold;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.content-row {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

.info-panel {
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    border: 1px solid rgba(0, 87, 184, 0.2);
    border-radius: 30px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    padding: 40px;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    backdrop-filter: blur(3.5px);
    -webkit-backdrop-filter: blur(3.5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-panel:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.info-panel::-webkit-scrollbar {
    display: none;
}

.content-row .info-panel {
    width: 48%;
}

.content-row,
.centered-table-wrapper {
    padding: 0 100px;
}

/* ----- Spreadsheet / Table ----- */
.spreadsheet table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    table-layout: auto;
}

.spreadsheet th,
.spreadsheet td {
    border: none;
    padding: 10px 20px;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
    hyphens: auto;
}

.spreadsheet th {
    background-color: #f5a81f;
    color: #000;
    font-size: 34px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 10px 10px 0 0;
    position: sticky;
    top: 0;
}

.spreadsheet td {
    font-size: 28px;
    color: #54585a;
    background-color: #f8f8f8;
}

.spreadsheet tr:nth-child(even) td {
    background-color: #f0f0f0;
}

.spreadsheet tr:last-child td {
    border-radius: 0 0 10px 10px;
}

.spreadsheet th:first-child,
.spreadsheet td:first-child {
    width: 40%;
}

.spreadsheet th:last-child,
.spreadsheet td:last-child {
    width: 60%;
}

/* ----- Copy / Text Block ----- */
.copy {
    font-size: 35px;
    line-height: 1.8;
}

.copy h1 {
    font-size: 50px;
    color: #f5a81f;
    margin-bottom: 0;
    text-align: center;
    font-weight: bold;
}

.copy p {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: justify;
}

.copy h3 {
    font-size: 40px;
    color: #000;
    margin-bottom: 30px;
    font-weight: bold;
}

.copy ul {
    list-style: none;
    padding-left: 0;
}

.copy li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 1px;
    font-size: 32px;
}

.copy li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: #f5a81f;
    font-size: 40px;
    line-height: 1.5;
}

.copy li ul {
    margin-top: 10px;
    padding-left: 20px;
}

/* ----- Image Slider (bottom half) ----- */
.bottom-half {
    height: calc(50% - 100px);
    width: 100%;
    margin: 10px 0 0;
    position: relative;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slides img.active {
    opacity: 1;
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 10;
}

.dots {
    display: flex;
    gap: 42px;                        /* 10px visible + 2×16px to offset dot negative margins */
}

.dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 16px;
    box-sizing: content-box;          /* keeps visual size, expands touch target */
    margin: -16px;                    /* offset the padding so layout stays the same */
}

.dot.active {
    background-color: #fff;
}

.pause-play {
    margin-left: 40px;
    font-size: 60px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 16px;
    outline: none;
    min-width: 72px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 100%;
}

.request-button-container a {
    text-decoration: none;
}

/* ----- Options Page ----- */
.options-top .centered-table-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 0 40px;
}

.options-top .info-panel {
    width: 80%;
}

/* ----- Contact Page ----- */
main.contact {
    justify-content: flex-start;
    align-items: center;
    padding: 0;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1200px;
}

.qr-code {
    width: 600px;
    height: auto;
    margin-top: 100px;
}

.contact-info {
    font-size: 48px;
    color: #fff;
    margin-bottom: 80px;
    white-space: pre-line;
    line-height: 1.2;
}

.contact-form-card {
    width: 80%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
    max-width: 800px;
}

.form-group label {
    font-size: 40px;
    color: #fff;
    margin-bottom: 10px;
}

.form-group input {
    font-size: 36px;
    padding: 15px;
    width: 100%;
    border-radius: 10px;
    border: 2px solid #f5a81f;
    background-color: rgba(255, 255, 255, 0.85);
}

.form-select {
    font-size: 36px;
    padding: 15px;
    width: 100%;
    border-radius: 10px;
    border: 2px solid #f5a81f;
    background-color: rgba(255, 255, 255, 0.85);
    color: #333;
    cursor: pointer;
}

.form-select option {
    padding: 12px 15px;
    font-size: 34px;
}

/* Custom multi-select dropdown */
.multi-dropdown {
    position: relative;
    width: 100%;
}

.multi-dropdown-toggle {
    font-size: 36px;
    padding: 15px;
    width: 100%;
    border-radius: 10px;
    border: 2px solid #f5a81f;
    background-color: rgba(255, 255, 255, 0.85);
    color: #333;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.multi-dropdown-toggle::after {
    content: '\25BC';
    font-size: 28px;
    margin-left: 10px;
    color: #999;
    transition: transform 0.2s ease;
}

.multi-dropdown.open .multi-dropdown-toggle::after {
    transform: rotate(180deg);
}

.multi-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #f5a81f;
    border-top: none;
    border-radius: 0 0 10px 10px;
    z-index: 50;
}

.multi-dropdown.open .multi-dropdown-menu {
    display: block;
}

.multi-dropdown-menu label {
    display: flex;
    align-items: center;
    padding: 20px 24px;              /* larger touch target */
    font-size: 34px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.15s ease;
    user-select: none;
    min-height: 72px;                /* minimum touch target height */
}

.multi-dropdown-menu label:hover {
    background-color: rgba(245, 168, 31, 0.15);
}

.multi-dropdown-menu input[type="checkbox"] {
    width: 36px;
    height: 36px;
    margin-right: 16px;
    accent-color: #f5a81f;
    flex-shrink: 0;
}

.submit-button {
    font-size: 48px;
    padding: 20px 80px;
    border-radius: 50px;
    background-color: #f5a81f;
    color: #000;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-button:hover,
.submit-button:active {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* ----- Thank You Page ----- */
main.thank-you {
    justify-content: flex-start;
    align-items: center;
    padding: 0;
}

.thank-you-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding-top: 200px;
}

.thank-you-message {
    font-size: 80px;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    font-weight: bold;
}

.thank-you-submessage {
    font-size: 48px;
    color: #fff;
    margin-bottom: 80px;
}

/* ----- Footer ----- */
footer {
    height: 384px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5a81f;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    overflow: hidden;
}

footer .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

footer img {
    max-height: 80%;
    width: auto;
    animation: logoGlow 3s infinite alternate;
}

/* ----- Animations ----- */
@keyframes lavaA {
    0%   { transform: translate(0, 0) scale(1);       border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    20%  { transform: translate(400px, 600px) scale(1.1);  border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%; }
    40%  { transform: translate(800px, 200px) scale(0.9);  border-radius: 50% 50% 60% 40% / 40% 60% 40% 60%; }
    60%  { transform: translate(300px, 1200px) scale(1.15); border-radius: 70% 30% 40% 60% / 30% 70% 50% 50%; }
    80%  { transform: translate(900px, 800px) scale(0.85); border-radius: 35% 65% 55% 45% / 60% 40% 50% 50%; }
    100% { transform: translate(100px, 1600px) scale(1.05); border-radius: 55% 45% 35% 65% / 45% 55% 65% 35%; }
}

@keyframes lavaB {
    0%   { transform: translate(0, 0) scale(1);         border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%; }
    16%  { transform: translate(-600px, -800px) scale(1.12); border-radius: 55% 45% 40% 60% / 60% 40% 55% 45%; }
    33%  { transform: translate(-200px, -1400px) scale(0.88); border-radius: 65% 35% 50% 50% / 35% 65% 45% 55%; }
    50%  { transform: translate(-800px, -500px) scale(1.08); border-radius: 30% 70% 60% 40% / 50% 50% 40% 60%; }
    66%  { transform: translate(-400px, -1800px) scale(0.92); border-radius: 50% 50% 35% 65% / 65% 35% 55% 45%; }
    83%  { transform: translate(-900px, -1000px) scale(1.15); border-radius: 45% 55% 65% 35% / 40% 60% 50% 50%; }
    100% { transform: translate(-300px, -600px) scale(0.95); border-radius: 60% 40% 45% 55% / 55% 45% 60% 40%; }
}

@keyframes lavaC {
    0%   { transform: translate(0, 0) scale(1);         border-radius: 50% 60% 40% 70% / 55% 45% 65% 35%; }
    25%  { transform: translate(-500px, -400px) scale(1.1);  border-radius: 65% 35% 55% 45% / 40% 60% 50% 50%; }
    50%  { transform: translate(300px, -900px) scale(0.9);  border-radius: 40% 60% 70% 30% / 60% 40% 35% 65%; }
    75%  { transform: translate(-700px, 200px) scale(1.15); border-radius: 55% 45% 35% 65% / 45% 55% 60% 40%; }
    100% { transform: translate(200px, -500px) scale(0.95); border-radius: 70% 30% 50% 50% / 35% 65% 45% 55%; }
}

@keyframes lavaD {
    0%   { transform: translate(0, 0) scale(1);         border-radius: 70% 30% 50% 50% / 40% 60% 40% 60%; }
    33%  { transform: translate(600px, 500px) scale(1.12); border-radius: 45% 55% 60% 40% / 55% 45% 35% 65%; }
    66%  { transform: translate(200px, 1100px) scale(0.88); border-radius: 55% 45% 40% 60% / 65% 35% 55% 45%; }
    100% { transform: translate(700px, 300px) scale(1.05); border-radius: 35% 65% 55% 45% / 45% 55% 65% 35%; }
}

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes logoGlow {
    0%   { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

/* ----- Manifold Image Cards ----- */
.manifold-images {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.manifold-card {
    cursor: pointer;
    border: 3px solid rgba(0, 87, 184, 0.25);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.manifold-card:hover,
.manifold-card:active {
    border-color: #f5a81f;
    box-shadow: 0 8px 24px rgba(245, 168, 31, 0.25);
}

.manifold-card-label {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 30px;
    color: #54585a;
    background: rgba(245, 168, 31, 0.12);
    border-bottom: 2px solid rgba(0, 87, 184, 0.1);
    flex-shrink: 0;
}

.manifold-card-label svg {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    stroke: #f5a81f;
}

.manifold-card-thumb {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.manifold-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ----- Image Fullscreen Modal ----- */
.image-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
}

.image-modal-overlay.active {
    display: flex;
}

.image-modal-header {
    display: flex;
    align-items: center;
    width: 2080px;
    padding: 0 0 16px;
    color: #fff;
}

.image-modal-title {
    font-size: 56px;
    font-weight: 700;
    flex: 1;
    text-align: left;
}

.image-modal-close {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 80px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.image-modal-close:hover,
.image-modal-close:active {
    background: rgba(245, 168, 31, 0.4);
}

.image-modal-body {
    width: 2080px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.image-modal-body img {
    width: 100%;
    height: auto;
    max-height: 1700px;
    object-fit: contain;
    border-radius: 16px;
}
