/* DESIGN TOKENS */

: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);
    --header-height: 150px;
    --hero-height: 285px;
    --header-logo-width: 320px;
    --footer-logo-width: 230px;
    --content-width: 1450px;
    --grid-columns: 4;
    --grid-gap: 22px;
    --header-overlay: rgba(55, 62, 68, .20);
    --hero-overlay: rgba(0, 75, 145, .35);
    --finish-flat: #b8a560;
    --finish-matte: #8faab3;
    --finish-eggshell: #728b73;
    --finish-satin: #b5aac0;
    --finish-semi-gloss: #bca386;
    --finish-label-text: #ffffff;
    --modal-altima: #185da4;
    --modal-regent: #b15538;
    --modal-silktone: #948a83;
}

/* RESET AND TYPOGRAPHY */

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

html {
    scroll-behavior: smooth;
}

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

body.modal-open {
    overflow: hidden;
}

button {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button: focus-visible, a:focus-visible, [role="button"]:focus-visible {
    outline: 3px solid #ddab35;
    outline-offset: 5px;
}

/* HEADER: ONE CONTINUOUS BACKGROUND */

.masthead {
    position: relative;
    background-position: center 52%;
    background-size: cover;
    background-repeat: no-repeat;
}

.site-header {
    position: relative;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-overlay, .hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.header-overlay {
    background: var(--header-overlay);
}

.brand-link {
    position: relative;
    z-index: 2;
    display: inline-block;
}

.site-logo {
    display: block;
    width: min(var(--header-logo-width), 72vw);
    height: auto;
}

/* HERO TITLE */

.hero {
    position: relative;
    min-height: var(--hero-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: var(--hero-overlay);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 35px 18px;
    color: #ffffff;
    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);
    font-weight: 700;
    letter-spacing: .08em;
}

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

.hero-subtitle {
    margin-top: 10px;
    font-size: clamp(20px, 2.7vw, 32px);
    line-height: 1.2;
}

/* PRODUCTS */

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

.catalog-section {
    width: min(var(--content-width), 100%);
    margin: 0 auto 58px;
    scroll-margin-top: 20px;
}

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

.section-heading {
    padding: 16px 20px;
    margin-bottom: 22px;
    background: var(--gps-blue);
    color: #ffffff;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: .02em;
}

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

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

.landing-interior {
    --grid-columns: 3;
}

.product-card {
    appearance: none;
    text-align: left;
    font: inherit;
    color: var(--text);
    background: #ffffff;
    border: 1px solid #e5e5e5;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-width: 0;
    cursor: pointer;
    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 {
    width: 100%;
    min-height: 78px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background: var(--product-color, var(--gps-blue-dark));
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
}

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

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

.product-description {
    display: block;
    color: #444444;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 22px;
}

.product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    align-self: center;
    margin-top: auto;
    min-width: 145px;
    padding: 13px 24px;
    border: 0;
    background: var(--gps-green);
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.product-button:hover {
    filter: brightness(1.08);
}

.landing-industrial .product-button {
    margin-top: 22px;
}

/* FINISH COLORS AND LABEL TEXT */

.finish-tags span {
    background: var(--finish-color, #edf1f4);
    color: var(--finish-label-text);
}

/* FOOTER */

.site-footer {
    background: #70757a;
    color: #ffffff;
    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 {
    display: block;
    width: var(--footer-logo-width);
    max-width: 65vw;
    height: auto;
}

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

.footer-contact a {
    color: inherit;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* SHARED MODAL BEHAVIOR AND SHELL */

.gps-dialog {
    position: fixed;
    inset: 0;
    z-index: 1000;
    margin: auto;
    padding: 0;
    width: min(1120px, calc(100% - 60px));
    max-height: calc(100dvh - 60px);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: var(--modal-bg, #092238);
    color: #ffffff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
}

.gps-dialog::backdrop {
    background: rgba(7, 18, 29, .76);
    backdrop-filter: blur(4px);
}

.gps-dialog .modal-window {
    width: 100%;
    max-height: none;
    overflow: visible;
    transform: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.gps-dialog .modal-close {
    position: absolute;
    z-index: 20;
    top: 8px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(7, 18, 29, .8);
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.interior-dialog {
    padding: 34px;
}

.industrial-dialog {
    background: #ffffff;
    color: var(--text);
}

.gps-dialog .modal-product-button, .gps-dialog .product-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 245px;
    padding: 15px 27px;
    border: 0;
    border-radius: 4px;
    background: #1685f7;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.gps-dialog .modal-product-button:disabled, .gps-dialog .product-detail-button:disabled {
    background: #465b6d;
    color: #d7e0e8;
    cursor: not-allowed;
}

.gps-dialog .modal-product-button[hidden], .gps-dialog .product-detail-button[hidden] {
    display: none;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    :root {
        --grid-columns: 2;
    }

}

@media (max-width: 900px) {
    .landing-interior .primers-grid {
        --grid-columns: 2;
    }

}

@media (max-width: 650px) {
    :root {
        --header-height: 115px;
        --hero-height: 250px;
        --grid-columns: 1;
    }

    .landing-interior,     .landing-interior .primers-grid {
        --grid-columns: 1;
    }

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

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

    .products-grid {
        --grid-gap: 24px;
    }

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

    .section-heading {
        padding: 15px;
        font-size: 24px;
    }

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

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

    .gps-dialog {
        width: calc(100% - 20px);
        max-height: calc(100dvh - 20px);
    }

    .interior-dialog {
        padding: 50px 16px 24px;
    }

}

/* REDUCED MOTION */

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

    *,     *::before,     *::after {
        transition: none !important;
    }

}
