/* =========================================================
   GPS PAINTS — INDUSTRIAL ENAMELS
   ========================================================= */

:root {
    --steel-clad: #df8b32;
    --steel-clad-extreme: #858585;
    --rocket-industrial: #d9233b;
    --metalite: #667db5;

    --text: #252525;
    --muted: #626262;
    --light: #f5f5f5;
    --white: #ffffff;
    --dark: #70757a;
    --shadow: 0 8px 28px rgba(0, 0, 0, .14);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

/* ---------- Header ---------- */

.site-header {
    position: relative;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #697178;
}

.header-bg,
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../images/industrial-enamels-bg.jpg");
    background-size: cover;
    background-position: center;
}

.header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(55, 62, 68, .74);
}

.site-logo {
    position: relative;
    z-index: 2;
    width: min(320px, 72vw);
    height: auto;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 285px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 75, 145, .35);
}

.hero h1 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: .02em;
    text-align: center;
    text-shadow: 0 3px 10px rgba(0, 0, 0, .35);
}

/* ---------- Products ---------- */

.products-section {
    padding: 48px 24px 70px;
    background: #fff;
}

.products-grid {
    width: min(1450px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.product-heading {
    min-height: 78px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-size: 25px;
    line-height: 1;
    font-weight: 800;
}

.product-visual {
    position: relative;
    aspect-ratio: 1.28 / 1;
    overflow: visible;
    background: #eee;
}

.product-application {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-can {
    position: absolute;
    z-index: 5;
    right: 4%;
    bottom: -10%;
    width: 32%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 11px 9px rgba(0, 0, 0, .32));
    pointer-events: none;
}

.product-content {
    position: relative;
    z-index: 4;
    background: #fff;
    padding: 25px 22px 23px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    font-size: 17px;
    margin-bottom: 9px;
}

.product-finishes {
    padding-left: 19px;
    margin-bottom: 18px;
}

.product-finishes li {
    margin-bottom: 5px;
    font-size: 13.5px;
    line-height: 1.3;
}

.product-description {
    color: #444;
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 18px;
}

.product-available {
    margin-top: auto;
    padding-top: 8px;
    font-size: 13.5px;
    line-height: 1.4;
}

.product-button {
    align-self: center;
    margin-top: 22px;
    min-width: 145px;
    padding: 13px 24px;
    border: 0;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease;
}

.product-button:hover,
.product-detail-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

/* ---------- Footer ---------- */

.site-footer {
    background: #70757a;
    color: #fff;
    padding: 38px 25px;
}

.footer-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.footer-logo {
    width: 230px;
    max-width: 55vw;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    font-size: 14px;
    line-height: 1.4;
}

/* =========================================================
   MODAL
   ========================================================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(5px);
}

.modal-window {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .45);
    transform: translateY(18px) scale(.985);
    transition: transform .28s ease;
}

.modal.is-open .modal-window {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    z-index: 20;
    top: 12px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    background: rgba(0, 0, 0, .9);
}

/* Large application image with product can in front */

.modal-visual {
    position: relative;
    min-height: 500px;
    overflow: visible;
	z-index: 5;
    background: #ddd;
}

.modal-detail-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.modal-visual-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, .05) 0%,
        rgba(0, 0, 0, .02) 50%,
        rgba(0, 0, 0, .18) 100%
    );
    pointer-events: none;
}

.modal-can {
    position: absolute;
    z-index: 10;
    right: 7%;
    bottom: -7%;
    width: clamp(150px, 22%, 270px);
    height: auto;
    filter: drop-shadow(0 17px 12px rgba(0, 0, 0, .4));
    pointer-events: none;
}

.modal-visual-title {
    position: absolute;
    z-index: 5;
    left: 5%;
    bottom: 7%;
    color: #fff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, .55);
}

.modal-visual-title span {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .12em;
}

.modal-visual-title h2 {
    font-size: clamp(38px, 6vw, 72px);
    line-height: .95;
    font-weight: 900;
}
.modal-info {
    position: relative;
    z-index: 1;
}

/* Modal information */

.modal-info-header {
    padding: 16px 34px;
    color: #fff;
}

.modal-info-header h3 {
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.modal-info-body {
    padding: 30px 34px 36px;
}

.info-block {
    margin-bottom: 24px;
}

.info-block h4 {
    margin-bottom: 9px;
    font-size: 17px;
}

.info-block p {
    color: #3f3f3f;
    font-size: 15px;
    line-height: 1.5;
}

.info-block ul {
    padding-left: 20px;
}

.info-block li {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.35;
}

.available-block {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 14px;
}

.info-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
}

.modal-action {
    text-align: center;
    padding-top: 5px;
}

.product-detail-button {
    display: inline-block;
    min-width: 175px;
    padding: 14px 28px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    transition: transform .2s ease, filter .2s ease;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modal-visual {
        min-height: 430px;
    }

    .modal-detail-image {
        min-height: 430px;
    }
}

@media (max-width: 700px) {
    .site-header {
        height: 110px;
    }

    .hero {
        min-height: 205px;
    }

    .hero h1 {
        font-size: clamp(34px, 11vw, 58px);
    }

    .products-section {
        padding: 32px 14px 50px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .product-heading {
        min-height: 68px;
        font-size: 22px;
    }

    .product-can {
        width: 29%;
        right: 5%;
        bottom: -9%;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact {
        text-align: center;
    }

    .modal {
        padding: 8px;
    }

    .modal-window {
        max-height: 96vh;
    }

    .modal-visual {
        min-height: 290px;
    }

    .modal-detail-image {
        min-height: 290px;
    }

    .modal-can {
        width: 31%;
        right: 5%;
        bottom: -6%;
    }

    .modal-visual-title {
        left: 5%;
        bottom: 8%;
        max-width: 65%;
    }

    .modal-visual-title h2 {
        font-size: clamp(30px, 9vw, 50px);
    }

    .modal-info-header {
        padding: 13px 22px;
    }

    .modal-info-body {
        padding: 24px 22px 30px;
    }

    .info-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
