
/* ======================================== */
/* PACIFIC CABINET HARDWARE                 */
/* GJP ESSENTIAL CATALOG DEMONSTRATION      */
/* ======================================== */

:root {
    --charcoal: #202729;
    --charcoal-dark: #151B1D;
    --brass: #B99A62;
    --brass-dark: #896D3E;
    --cream: #F7F6F2;
    --white: #FFFFFF;
    --text: #293235;
    --muted: #697477;
    --border: #DFE2E1;
    --max-width: 1320px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--brass-dark);
    outline-offset: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}


/* ======================================== */
/* DEMO BANNER                              */
/* ======================================== */

.demo-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 28px;
    background: #101C2B;
    color: #F8F7F3;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

.demo-banner span {
    color: #C8A978;
    font-weight: 700;
}

.demo-banner a:hover {
    text-decoration: underline;
}


/* ======================================== */
/* NAVIGATION                               */
/* ======================================== */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-container {
    max-width: var(--max-width);
    margin: auto;
    min-height: 90px;
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    background: var(--charcoal);
    color: var(--brass);
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    font-family: Georgia, serif;
    font-size: 2rem;
}

.brand-name {
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 1.25rem;
    line-height: 1.2;
}

.brand-name small {
    display: block;
    font-size: 0.56rem;
    letter-spacing: 1.8px;
}

.navigation {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.navigation a {
    font-size: 0.9rem;
    font-weight: 600;
}

.navigation a:hover {
    color: var(--brass-dark);
}

.quote-button {
    border: 1px solid var(--charcoal);
    background: transparent;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 600;
}

#quote-count {
    display: inline-block;
    background: var(--charcoal);
    color: white;
    min-width: 24px;
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: 6px;
    text-align: center;
}


/* ======================================== */
/* HERO                                     */
/* ======================================== */

.hero {
    background:
        linear-gradient(
            90deg,
            rgba(21, 27, 29, 0.98),
            rgba(21, 27, 29, 0.78)
        ),
        url("images/hero.jpg") center / cover;

    color: white;
    padding: 110px 28px;
}

.hero-container {
    max-width: var(--max-width);
    margin: auto;
}

.eyebrow {
    color: var(--brass-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 18px;
}

.hero .eyebrow,
.about-section .eyebrow {
    color: var(--brass);
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.08;
    letter-spacing: -2px;
    max-width: 740px;
}

.hero h1 span {
    display: block;
    color: var(--brass);
}

.hero-description {
    max-width: 580px;
    margin: 26px 0 32px;
    color: #CBD0D0;
    font-size: 1.08rem;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.2s ease;
}

.button-primary {
    background: var(--brass);
    color: var(--charcoal-dark);
}

.button-primary:hover {
    background: #D2B57E;
}


/* ======================================== */
/* BUSINESS HIGHLIGHTS                      */
/* ======================================== */

.business-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    padding: 28px;
    border-bottom: 1px solid var(--border);
}

.business-highlights div {
    text-align: center;
    padding: 12px;
}

.business-highlights div + div {
    border-left: 1px solid var(--border);
}

.business-highlights strong {
    display: block;
    font-size: 1.5rem;
    color: var(--charcoal);
}

.business-highlights span {
    color: var(--muted);
    font-size: 0.85rem;
}


/* ======================================== */
/* CATALOG SECTION                          */
/* ======================================== */

.catalog-section {
    padding: 85px 28px;
}

.catalog-container {
    max-width: var(--max-width);
    margin: auto;
}

.section-intro {
    margin-bottom: 32px;
}

.section-intro h2,
.about-section h2,
.contact-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 15px;
}

.section-intro > p:last-child {
    color: var(--muted);
}

.search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.search-container input {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 4px;
}

.search-container button {
    padding: 10px 20px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 4px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 30px;
}


/* ======================================== */
/* FILTER SIDEBAR                           */
/* ======================================== */

.catalog-sidebar {
    align-self: start;
    background: white;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.filter-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.filter-heading button {
    background: none;
    border: none;
    font-size: 0.78rem;
    color: var(--brass-dark);
    text-decoration: underline;
}

.filter-group {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 20px;
}

.filter-group h4 {
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.84rem;
    cursor: pointer;
}

.filter-option input {
    accent-color: var(--brass-dark);
}


/* ======================================== */
/* PRODUCT RESULTS                          */
/* ======================================== */

.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--muted);
}

.results-toolbar select {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    min-width: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 8px 25px #00000010;
}

.product-image {
    aspect-ratio: 4 / 3;
    background: #EFEEEA;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-image svg {
    width: 90%;
    height: 90%;
}

.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-sku {
    font-size: 0.68rem;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 7px;
}

.product-info h3 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.product-finish {
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: auto;
}

.product-actions button {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: white;
    color: var(--charcoal);
    font-size: 0.8rem;
    font-weight: 600;
}

.product-actions button:last-child {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: white;
}

.product-actions button:hover {
    border-color: var(--brass);
}

.empty-state {
    text-align: center;
    padding: 65px 20px;
    background: white;
}

.empty-state p {
    margin: 15px 0 25px;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 32px;
}

.pagination button {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: white;
}

.pagination button[aria-current="page"] {
    background: var(--charcoal);
    color: white;
}

.pagination button:disabled {
    opacity: 0.45;
    cursor: default;
}


/* ======================================== */
/* ABOUT AND CONTACT                        */
/* ======================================== */

.about-section {
    background: var(--charcoal);
    color: white;
    padding: 85px 28px;
}

.contact-section {
    padding: 85px 28px;
    background: #ECE9E0;
}

.about-container,
.contact-container {
    max-width: 780px;
    margin: auto;
    text-align: center;
}

.about-container > p:not(.eyebrow) {
    color: #CBD0D0;
}

.about-container .button,
.contact-container .button {
    margin-top: 26px;
}


/* ======================================== */
/* DIALOGS                                  */
/* ======================================== */

dialog {
    position: fixed;
    margin: auto;
    padding: 32px;
    border: 0;
    border-radius: 8px;
    width: min(92%, 780px);
    max-height: 90vh;
    overflow: auto;
    color: var(--text);
    background: white;
}

dialog::backdrop {
    background: #00000099;
}

.modal-close {
    display: block;
    margin-left: auto;
    margin-bottom: 15px;
    font-size: 1.8rem;
    line-height: 1;
    border: 0;
    background: none;
    color: var(--charcoal);
}

.modal-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.85rem;
}

.spec-table td,
.spec-table th {
    padding: 10px 6px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.quote-item {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.quote-item button {
    background: none;
    border: none;
    text-decoration: underline;
    color: var(--muted);
}

.quote-item input {
    width: 70px;
    padding: 5px;
    border: 1px solid var(--border);
}

#quote-form {
    display: grid;
    gap: 10px;
    margin-top: 25px;
}

#quote-form input,
#quote-form textarea {
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 4px;
    width: 100%;
}

#quote-form label {
    font-size: 0.85rem;
    font-weight: 600;
}

#quote-confirmation {
    padding: 20px;
    margin-top: 20px;
    background: var(--cream);
}


/* ======================================== */
/* FOOTER                                   */
/* ======================================== */

.site-footer {
    background: var(--charcoal-dark);
    color: #C5CBCB;
    padding: 45px 28px 20px;
}

.footer-container {
    max-width: var(--max-width);
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-container h3 {
    color: white;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 30px auto 0;
    border-top: 1px solid #FFFFFF20;
    padding-top: 20px;
    font-size: 0.75rem;
}

.footer-bottom a {
    color: var(--brass);
}


/* ======================================== */
/* RESPONSIVE DESIGN                        */
/* ======================================== */

@media (max-width: 1000px) {

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 750px) {

    .header-container {
        justify-content: center;
    }

    .navigation {
        justify-content: center;
        gap: 18px;
    }

    .demo-banner {
        justify-content: center;
        text-align: center;
    }

    .hero {
        padding: 75px 20px;
    }

    .catalog-section {
        padding: 55px 20px;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .business-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .business-highlights div + div {
        border-left: none;
    }

    .modal-product-layout {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 440px) {

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

    dialog {
        padding: 20px;
    }

}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }

}
