/* =========================================================
   GPS PAINTS — PROTECTIVE COATINGS
   Header / hero structure intentionally follows the
   Industrial Enamels landing page.
   ========================================================= */

:root {
    --gps-blue: #06467f;
    --gps-blue-dark: #05345d;
    --gps-green: #17823b;
    --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;
}

/* ---------- 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/protective-coatings-bg.jpg");
    background-size: cover;
    background-position: center;
}

.header-bg {
    filter: saturate(.75);
}

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

.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-bg {
    background-position: center 45%;
    transform: scale(1.02);
}

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

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    text-shadow: 0 3px 10px rgba(0, 0, 0, .4);
}

.hero-brand {
    display: block;
    margin-bottom: 8px;
    font-size: clamp(18px, 2.2vw, 27px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: .08em;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 78px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: .02em;
}

.hero-content p {
    margin-top: 8px;
    font-size: clamp(20px, 2.7vw, 32px);
    line-height: 1;
    font-weight: 300;
}

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

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

.catalog-section {
    width: min(1450px, 100%);
    margin: 0 auto 58px;
}

.catalog-section:last-child {
    margin-bottom: 0;
}

.section-heading {
    min-height: 64px;
    padding: 14px 20px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: var(--gps-blue);
    color: #fff;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: .02em;
}

.section-subtitle {
    margin: -8px 0 22px;
    color: var(--muted);
    font-size: 15px;
}

.products-grid {
    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;
	cursor: pointer;
}

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

.product-heading {
    min-height: 74px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: var(--gps-blue-dark);
    font-size: 22px;
    line-height: 1.05;
    font-weight: 800;
}

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

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

.product-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a9198;
    background: #f0f2f4;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .08em;
}

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

.product-code {
    margin-bottom: 7px;
    color: var(--gps-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
}

.product-content h3 {
    font-size: 17px;
    line-height: 1.15;
    margin-bottom: 10px;
}

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

.product-button {
    align-self: center;
    margin-top: auto;
    min-width: 145px;
    padding: 13px 24px;
    border: 0;
    background: var(--gps-green);
    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 {
    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;
}

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

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

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

    .section-heading {
        font-size: 28px;
    }
}

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

    .hero {
        min-height: 250px;
    }

    .hero-brand {
        font-size: 17px;
    }

    .products-section {
        padding: 35px 15px 50px;
    }

    .catalog-section {
        margin-bottom: 44px;
    }

    .section-heading {
        min-height: 56px;
        padding: 12px 15px;
        font-size: 24px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-visual {
        aspect-ratio: 1.35 / 1;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .product-card,
    .product-button {
        transition: none;
    }
}

/* =========================================================
   PRODUCT DETAIL MODAL
   ========================================================= */

body.modal-open {
    overflow: hidden;
}

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.product-modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 29, .76);
    backdrop-filter: blur(4px);
}

.modal-window {
    position: relative;
    z-index: 2;
    width: min(1180px, 100%);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #092238;
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    box-shadow: 0 28px 80px rgba(0,0,0,.45);
    padding: 34px;
}

.modal-close {
    position: absolute;
    z-index: 20;
    top: 10px;
    right: 15px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.modal-top {
    display: grid;
    grid-template-columns: minmax(300px, .92fr) minmax(0, 1.35fr);
    gap: 30px;
    align-items: stretch;
}

.modal-product-visual {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: 7px;
    background: #edf0f2;
}

.modal-product-background,
.modal-product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.modal-product-background {
    background-size: cover;
    background-position: center;
    opacity: 1;
}

.modal-product-image {
    position: absolute;
    z-index: 2;
    right: 4%;
    bottom: 2%;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    padding: 0;
    object-fit: contain;
    filter: drop-shadow(0 18px 12px rgba(0,0,0,.3));
}

.modal-intro {
    padding: 12px 5px 0 0;
}

.modal-code {
    color: #b8c8d7;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 8px;
}

.modal-intro h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(29px, 4vw, 48px);
    line-height: .98;
    font-weight: 800;
}

.modal-intro > p {
    color: #e8edf1;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 24px;
}

.modal-summary-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #d8dfe5;
    background: #fff;
    color: #172536;
    border-radius: 4px;
    overflow: hidden;
}

.summary-cell {
    min-height: 72px;
    padding: 11px 12px;
    border-right: 1px solid #d8dfe5;
    text-align: center;
}

.summary-cell:nth-child(3n) { border-right: 0; }
.summary-cell:nth-child(n+4) { border-top: 1px solid #d8dfe5; }

.summary-label {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    background: #4f679c;
    margin: -11px -12px 9px;
    padding: 9px 5px;
    font-size: 13px;
    font-weight: 800;
}

.summary-value {
    font-size: 13px;
    line-height: 1.3;
}

.modal-middle {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 24px;
    margin-top: 28px;
    align-items: stretch;
}

.modal-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    background: #f4f6f7;
    color: #15283a;
    border-radius: 7px;
    overflow: hidden;
}

.modal-feature {
    min-height: 155px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px;
    text-align: center;
}

.modal-feature + .modal-feature {
    border-left: 1px solid #d4dce3;
}

.feature-icon {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.feature-icon-placeholder {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #7b8791;
    color: #6b7884;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
}

.feature-title {
    display: block;
    margin-bottom: 7px;
    color: #315c91;
    font-size: 18px;
    line-height: 1.05;
    font-weight: 800;
}

.feature-text {
    display: block;
    color: #263747;
    font-size: 13px;
    line-height: 1.4;
}

.modal-detail-photo-wrap {
    position: relative;
    min-height: 250px;
    border-radius: 7px;
    overflow: hidden;
    background: #e7ebee;
}

.modal-detail-photo {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}

.detail-photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,.93);
    color: #315c91;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.modal-specs {
    margin-top: 26px;
    overflow-x: auto;
    border-radius: 5px;
}

.spec-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    color: #172536;
    font-size: 11px;
}

.spec-table th {
    padding: 10px 7px;
    border-right: 1px solid rgba(255,255,255,.7);
    background: #4f679c;
    color: #fff;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 800;
}

.spec-table td {
    padding: 10px 7px;
    border: 1px solid #d8dfe5;
    text-align: center;
    vertical-align: middle;
    line-height: 1.3;
}

.spec-table tbody tr:nth-child(2) td {
    background: #edf1f4;
}

.modal-special {
    display: none;
}

.modal-special.is-visible {
    display: block;
}

.special-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 28px;
    align-items: start;
}

.special-intro h2 {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(30px, 4vw, 50px);
    line-height: .98;
}

.special-description {
    color: #e8edf1;
    font-size: 15px;
    line-height: 1.55;
}

.special-info-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    color: #172536;
    font-size: 12px;
}

.special-info-table th {
    padding: 9px;
    background: #4f679c;
    color: #fff;
}

.special-info-table td {
    padding: 10px;
    border: 1px solid #d8dfe5;
    text-align: center;
}

.special-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 28px;
    background: #f4f6f7;
    color: #172536;
    border-radius: 7px;
    overflow: hidden;
}

.special-feature {
    min-height: 145px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.special-feature + .special-feature {
    border-left: 1px solid #d4dce3;
}

.special-feature strong {
    display: block;
    margin-bottom: 6px;
    color: #315c91;
    font-size: 18px;
}

.special-feature span {
    font-size: 13px;
    line-height: 1.4;
}

.special-additional {
    margin-top: 26px;
    padding: 20px;
    background: #f4f6f7;
    color: #172536;
    border-radius: 7px;
}

.special-additional h3 {
    margin-bottom: 13px;
    color: #315c91;
    font-size: 18px;
}

.additional-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.additional-table th {
    background: #4f679c;
    color: #fff;
    padding: 9px;
}

.additional-table td {
    padding: 9px;
    border: 1px solid #d8dfe5;
}

.modal-action {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.modal-product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 245px;
    padding: 15px 27px;
    background: #1685f7;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
    transition: transform .2s ease, filter .2s ease;
}

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

@media (max-width: 900px) {
    .modal-window { padding: 27px 22px; }
    .modal-top,
    .modal-middle,
    .special-intro { grid-template-columns: 1fr; }
    .modal-product-visual { min-height: 330px; }
}

@media (max-width: 620px) {
    .product-modal { padding: 10px; }
    .modal-window { max-height: calc(100vh - 20px); padding: 24px 14px 20px; border-radius: 8px; }
    .modal-close { top: 5px; right: 7px; }
    .modal-intro h2 { padding-right: 25px; }
    .modal-summary-table { grid-template-columns: 1fr 1fr 1fr; font-size: 10px; }
    .summary-cell { min-height: 65px; padding: 9px 5px; }
    .summary-label { margin: -9px -5px 7px; padding: 7px 2px; font-size: 10px; }
    .summary-value { font-size: 10px; }
    .modal-features,
    .special-features { grid-template-columns: 1fr; }
    .modal-feature + .modal-feature,
    .special-feature + .special-feature { border-left: 0; border-top: 1px solid #d4dce3; }
    .modal-feature { min-height: 125px; }
}

/* ---------- Product card image + render layering ---------- */
.product-application {
    object-fit: cover;
}

.product-can {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 50%;
    width: 58%;
    height: 90%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    filter: drop-shadow(0 15px 10px rgba(0,0,0,.35));
    pointer-events: none;
}

.modal-product-background {
    background-repeat: no-repeat;
}

.special-photo-wrap {
    position: relative;
    margin-top: 28px;
    min-height: 260px;
    border-radius: 7px;
    overflow: hidden;
    background: #e7ebee;
}

.special-photo {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

@media (max-width: 620px) {
    .product-can {
        width: 52%;
        height: 82%;
    }
}
