
:root {
    --cream: #FFF8EF;
    --teal: #168C91;
    --coral: #E85D4A;
    --yellow: #F2C14E;
    --brown: #55382F;
    --tan: #C99A6B;
    --ink: #332F2D;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Trebuchet MS", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.top-strip {
    background: var(--teal);
    color: var(--white);
    text-align: center;
    padding: 9px 16px;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

/* Main navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    padding: 12px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid #eadfd3;
    box-shadow: 0 3px 12px rgba(85, 56, 47, 0.05);
}

.brand {
    text-decoration: none;
    color: var(--brown);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: bold;
    line-height: 1.1;
}

.brand span {
    color: var(--coral);
}

nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
}

nav a:hover {
    color: var(--coral);
}

/* Hero section */
.hero {
    padding: 76px 7%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.eyebrow {
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    font-weight: bold;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.15;
}

h1 {
    color: var(--brown);
    font-size: clamp(2.8rem, 6vw, 5rem);
    margin: 14px 0 22px;
}

.hero p {
    font-size: 1.15rem;
    max-width: 570px;
}

.buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.button {
    display: inline-block;
    padding: 13px 23px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.15s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--coral);
    color: var(--white);
}

.button-secondary {
    border: 2px solid var(--teal);
    color: var(--teal);
}

/* Winston spotlight: clean, bold, and contained in the right column */
.hero-art {
    position: relative;
    isolation: isolate;
    min-width: 0;
    width: 100%;
    min-height: 460px;
    padding: 30px 24px 0;
    overflow: hidden;
    border-radius: 24px;
    background: var(--teal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

/* Cream spotlight behind Winston */
.hero-art::before {
    content: none;
    position: absolute;
    z-index: -1;
    width: min(78%, 340px);
    aspect-ratio: 1;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--cream);
}

/* Remove the previous decorative rings */
.hero-art::after {
    content: none;
}

/* Winston's existing logo */
.hero-art img {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 300px;
    max-height: 290px;
    height: auto;
    object-fit: contain;
    margin-top: 16px;
}

/* Cream caption area */
.hero-art strong {
    display: block;
    position: relative;
    z-index: 1;
    width: calc(100% + 48px);
    margin-top: auto;
    padding: 20px 12px 0;
    background: var(--cream);
    color: var(--brown);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    line-height: 1.2;
}

/* Quote continues the cream caption area */
.hero-art small {
    display: block;
    position: relative;
    z-index: 1;
    width: calc(100% + 48px);
    padding: 7px 16px 24px;
    background: var(--cream);
    color: var(--brown);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Tablet */
@media (max-width: 800px) {
    .hero-art {
        min-height: 420px;
        padding: 24px 20px 0;
    }

    .hero-art::before {
        width: min(76%, 300px);
        top: 24px;
    }

    .hero-art img {
        max-width: 270px;
        max-height: 255px;
        margin-top: 12px;
    }

    .hero-art strong {
        width: calc(100% + 40px);
        font-size: 1.65rem;
        padding-top: 18px;
    }

    .hero-art small {
        width: calc(100% + 40px);
        padding-bottom: 20px;
    }
}

/* Phone */
@media (max-width: 520px) {
    .hero-art {
        min-height: 360px;
        padding: 20px 16px 0;
        border-radius: 18px;
    }

    .hero-art::before {
        width: min(75%, 245px);
        top: 20px;
    }

    .hero-art img {
        max-width: 220px;
        max-height: 210px;
        margin-top: 10px;
    }

    .hero-art strong {
        width: calc(100% + 32px);
        font-size: 1.5rem;
        padding: 16px 10px 0;
    }

    .hero-art small {
        width: calc(100% + 32px);
        padding: 7px 12px 18px;
        font-size: 0.9rem;
    }
}

/* Intro section and tagline */
.intro {
    background: var(--white);
    padding: 64px 7%;
    text-align: center;
}

.brand-signature {
    display: block;
    width: min(100%, 380px);
    height: auto;
    margin: 0 auto 28px;
}

.tagline {
    color: var(--coral);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: bold;
    margin: 0 auto 24px;
}

.intro h2,
.featured h2 {
    color: var(--brown);
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 18px;
}

.intro p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.08rem;
}

/* Featured products */
.featured {
    padding: 70px 7%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 36px;
}

.section-heading p {
    margin-top: 8px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(85, 56, 47, 0.07);
}

.card-art {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    color: var(--brown);
}

.card-art.teal {
    background: #c8e7e2;
}

.card-art.yellow {
    background: #f8e6a9;
}

.card-art.pink {
    background: #f5d0d5;
}

.card-copy {
    padding: 22px;
}

.card-copy h3 {
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.card-copy p {
    margin: 0 0 16px;
}

.text-link {
    color: var(--teal);
    font-weight: bold;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* mahjong mat gallery */
.mats-gallery .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mat-card {
    display: block;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(85, 56, 47, 0.1);
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.mat-card > img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 260px;
    padding: 12px;
    object-fit: contain;
}

.mat-card-copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 16px;
}

.mat-card-link {
    color: var(--teal);
    font-weight: bold;
    white-space: nowrap;
}

/* Enlarged mat details dialog */
.mat-dialog {
    width: min(900px, 92vw);
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    border: none;
    border-radius: 14px;
    background: var(--cream);
}

.mat-dialog::backdrop {
    background: rgba(51, 47, 45, 0.75);
}

.mat-dialog-close {
    display: block;
    margin-left: auto;
    border: none;
    background: none;
    font-size: 2rem;
    cursor: pointer;
}

.mat-dialog-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.mat-dialog-image-wrap {
    min-width: 0;
}

.mat-dialog-image-wrap img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
}

/* Custom orders banner */
.custom-banner {
    margin: 0 7% 70px;
    padding: 46px;
    background: var(--teal);
    color: var(--white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.custom-banner h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    margin: 0 0 10px;
}

.custom-banner p {
    margin: 0;
    max-width: 650px;
}

.custom-banner .button {
    background: var(--yellow);
    color: var(--brown);
    white-space: nowrap;
}

/* Footer */
footer {
    background: var(--brown);
    color: var(--cream);
    padding: 30px 7%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

footer a {
    color: var(--cream);
}

/* Tablet layout */
@media (max-width: 800px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 48px;
        gap: 35px;
    }


    .cards {
        grid-template-columns: 1fr;
    }

    .mats-gallery .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    header {
        padding: 8px 5%;
        gap: 8px;
    }

    nav {
        justify-content: center;
        gap: 4px 16px;
        line-height: 1.2;
    }

    .custom-banner {
        padding: 30px;
    }
}

/* Narrow phone layout */
@media (max-width: 520px) {
    .mats-gallery .cards {
        grid-template-columns: 1fr;
    }

    .mat-card > img {
        height: 280px;
    }

    .mat-dialog-content {
        grid-template-columns: 1fr;
    }
}

.mat-dialog-info {
    background-color: #FFFFFF;
    color: #332F2D;
    padding: 28px;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.mat-dialog-info h2 {
    color: var(--brown);
    margin: 12px 0 16px;
}

.mat-dialog-info p {
    color: var(--ink);
}

.mat-dialog-info .eyebrow {
    margin-top:15px;
    color: var(--teal);
}

.winston-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 24px;
}

.winston-feature-image {
    flex: 0 1 340px;
}

.winston-feature-image img {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 12px;
}

.winston-feature-copy {
    flex: 1;
    max-width: 460px;
}

.winston-feature-copy h2 {
    margin-top: 8px;
}

@media (max-width: 700px) {
    .winston-feature {
        flex-direction: column;
        gap: 24px;
        padding: 40px 20px;
    } 

    .winston-feature-image {
        flex-basis: auto;
        width: 100%;
        max-width: 300px;
    }

    .winston-feature-copy {
        text-align: center;
    }
}

/* Mat specifications */
.mat-specs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 28px;
    max-width: 1000px;
    margin: 28px auto 0;
    padding: 20px 24px;
    background: var(--teal);
    color: var(--white);
    border-radius: 12px;
    font-size: 0.95rem;
}

.mat-specs strong {
    margin-right: 5px;
}

/* Stack specs on narrow screens */
@media (max-width: 520px) {
    .mat-specs {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 18px 20px;
    }
}

/* ========================================
   CINEMATIC MAT SHOWCASE
======================================== */

.mat-showcase {
    padding: 64px 0 58px;
    overflow: hidden;
}

.mat-showcase-heading {
    text-align: center;
    padding: 0 20px;
    margin-bottom: 30px;
}

.mat-showcase-eyebrow {
    color: #b97858;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 9px;
}

.mat-showcase-heading h2 {
    margin: 0;
}

.mat-showcase-stage {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 28px 0 22px;
    background:
        radial-gradient(ellipse at center, rgba(48, 103, 99, 0.38), transparent 68%),
        #172b2b;
}

.mat-showcase-viewport {
    width: 100%;
    overflow: hidden;
}

.mat-showcase-track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    transition: transform 450ms cubic-bezier(0.22, 0.75, 0.25, 1);
    will-change: transform;
}

.mat-showcase-slide {
    flex: 0 0 72%;
    max-width: 760px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    opacity: 0.48;
    transform: scale(0.88);
    transition:
        opacity 450ms ease,
        transform 450ms ease;
}

.mat-showcase-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.mat-showcase-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 0.78;
    padding: 14px;
    overflow: hidden;
    border-radius: 14px;
    background: #f5f0e6;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.mat-showcase-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mat-showcase-name {
    display: block;
    padding-top: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-align: center;
    color: #fff;
}

.mat-showcase-arrow {
    position: absolute;
    z-index: 2;
    top: 43%;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(17, 39, 39, 0.85);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease;
}

.mat-showcase-arrow:hover {
    background: #b97858;
    border-color: #b97858;
}

.mat-showcase-prev {
    left: 18px;
}

.mat-showcase-next {
    right: 18px;
}

.mat-showcase-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 23px;
}

.mat-showcase-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.mat-showcase-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c9c2b6;
    cursor: pointer;
    transition: width 180ms ease, background 180ms ease;
}

.mat-showcase-dot.is-active {
    width: 23px;
    border-radius: 8px;
    background: #b97858;
}

.mat-showcase-count {
    display: flex;
    gap: 5px;
    color: #888;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.mat-showcase-current {
    color: #263f3d;
    font-weight: 700;
}

.mat-showcase-count-divider {
    color: #aaa;
}

.mat-showcase-link {
    text-align: center;
    margin-top: 22px;
}

.mat-showcase-announcement {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mat-showcase-empty {
    text-align: center;
    padding: 30px 20px;
}

.mat-showcase button:focus-visible {
    outline: 3px solid #d99a70;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .mat-showcase {
        padding: 38px 0;
    }

    .mat-showcase-heading {
        margin-bottom: 20px;
    }

    .mat-showcase-stage {
        padding: 22px 0 18px;
    }

    .mat-showcase-track {
        gap: 12px;
    }

    .mat-showcase-slide {
        flex-basis: 82%;
    }

    .mat-showcase-image {
        padding: 8px;
        border-radius: 10px;
    }

    .mat-showcase-name {
        padding-top: 11px;
        font-size: 0.95rem;
    }

    .mat-showcase-arrow {
        top: 39%;
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
    }

    .mat-showcase-prev {
        left: 8px;
    }

    .mat-showcase-next {
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mat-showcase-track,
    .mat-showcase-slide,
    .mat-showcase-arrow,
    .mat-showcase-dot {
        transition: none;
    }
}