/* =========================================================
   Unique Sewing Furniture
   Main stylesheet
   ========================================================= */

/* =========================================================
   Design tokens
   ========================================================= */

:root {
    --color-navy: #2e2563;
    --color-blue: #47789d;
    --color-ice: #a9d8ea;
    --color-crystal: #edf8fc;
    --color-blue-grey: #d6e1e7;
    --color-black: #111111;
    --color-white: #ffffff;

    --color-logo-blue: #17145f;

    --color-navy-rgb: 46 37 99;
    --color-blue-rgb: 71 120 157;
    --color-ice-rgb: 169 216 234;
    --color-crystal-rgb: 237 248 252;
    --color-blue-grey-rgb: 214 225 231;
    --color-black-rgb: 17 17 17;
    --color-white-rgb: 255 255 255;
    --color-logo-blue-rgb: 23 20 95;

    --content-width: 1200px;
}

/* =========================================================
   Base / reset
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-black);
    background: var(--color-white);
    font-family: Arial, Helvetica, sans-serif;
}

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

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

/* =========================================================
   Accessibility helpers
   ========================================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: -5rem;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    color: var(--color-navy);
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgb(var(--color-black-rgb) / 0.18);
}

.skip-link:focus {
    top: 1rem;
}

.primary-nav a:focus-visible,
.menu-toggle:focus-visible,
.brand-logo:focus-visible,
.contact-item:focus-visible {
    outline: 2px solid var(--color-ice);
    outline-offset: 3px;
}

/* =========================================================
   Site header
   ========================================================= */

.site-header {
    position: relative;
    z-index: 20;
    padding: 26px 20px 10px;

    background:
        radial-gradient(
            ellipse at 50% -25%,
            rgb(var(--color-ice-rgb) / 0.28) 0%,
            rgb(var(--color-blue-rgb) / 0.12) 30%,
            transparent 62%
        ),
        linear-gradient(
            118deg,
            var(--color-navy) 0%,
            color-mix(in srgb, var(--color-navy) 76%, var(--color-blue)) 52%,
            var(--color-navy) 100%
        );

    border-top: 3px solid var(--color-ice);

    box-shadow:
        inset 0 -1px 0 rgb(var(--color-white-rgb) / 0.12),
        0 10px 32px rgb(var(--color-navy-rgb) / 0.2);
}

.site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgb(var(--color-ice-rgb) / 0.75),
            transparent
        );

    box-shadow: 0 0 18px rgb(var(--color-ice-rgb) / 0.35);
    pointer-events: none;
}

/* =========================================================
   Header brand row
   ========================================================= */

.logo-row {
    width: min(100%, var(--content-width));
    min-height: 165px;
    margin: 0 auto 12px;

    display: grid;
    grid-template-columns:
        minmax(210px, 1fr)
        minmax(480px, 2.3fr)
        minmax(210px, 1fr);
    align-items: center;
    gap: 34px;
}

/* Physical logo */

.brand-logo {
    width: 190px;
    display: block;
    justify-self: start;

    filter:
        drop-shadow(0 14px 22px rgb(var(--color-black-rgb) / 0.23))
        drop-shadow(0 0 16px rgb(var(--color-ice-rgb) / 0.13));

    transition:
        transform 220ms cubic-bezier(.22, 1, .36, 1),
        filter 220ms ease;
}

.brand-logo img {
    width: 100%;
    height: auto;
}

.brand-logo:hover {
    transform: translateY(-3px) scale(1.02);

    filter:
        drop-shadow(0 18px 26px rgb(var(--color-black-rgb) / 0.27))
        drop-shadow(0 0 20px rgb(var(--color-ice-rgb) / 0.18));
}

/* Type logo */

.type-logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.type-logo::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 120px;
    transform: translate(-50%, -50%);

    background:
        radial-gradient(
            ellipse,
            rgb(var(--color-ice-rgb) / 0.12),
            transparent 70%
        );

    filter: blur(10px);
    pointer-events: none;
}

.type-logo-name {
    color: var(--color-logo-blue);
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(2.2rem, 3.1vw, 3.6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.025em;

    -webkit-text-stroke: 2px var(--color-white);
    paint-order: stroke fill;

    text-shadow:
        0 4px 8px rgb(var(--color-black-rgb) / 0.2),
        0 0 18px rgb(var(--color-ice-rgb) / 0.12);
}

.type-logo-tagline {
    position: relative;
    margin-top: 14px;
    padding: 7px 48px 9px;

    color: var(--color-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(0.9rem, 1.25vw, 1.15rem);
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.035em;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgb(var(--color-logo-blue-rgb) / 0.18) 16%,
            rgb(var(--color-logo-blue-rgb) / 0.34) 38%,
            rgb(var(--color-logo-blue-rgb) / 0.34) 62%,
            rgb(var(--color-logo-blue-rgb) / 0.18) 84%,
            transparent 100%
        );

    text-shadow: 0 2px 5px rgb(var(--color-black-rgb) / 0.35);
}

.type-logo-tagline::after {
    content: "";
    position: absolute;
    right: 18%;
    bottom: -1px;
    left: 18%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--color-ice),
            transparent
        );

    box-shadow: 0 0 9px rgb(var(--color-ice-rgb) / 0.5);
}

/* Contact card */

.header-contact {
    width: 100%;
    max-width: 245px;
    justify-self: end;
    padding: 15px 17px;

    display: flex;
    flex-direction: column;
    gap: 11px;

    background:
        linear-gradient(
            145deg,
            rgb(var(--color-white-rgb) / 0.13),
            rgb(var(--color-ice-rgb) / 0.07)
        );

    border: 1px solid rgb(var(--color-white-rgb) / 0.22);
    border-radius: 17px;

    box-shadow:
        0 16px 34px rgb(var(--color-black-rgb) / 0.15),
        inset 0 1px 0 rgb(var(--color-white-rgb) / 0.2);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-item {
    min-width: 0;
    display: flex;
    flex-direction: column;

    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.contact-item + .contact-item {
    padding-top: 10px;
    border-top: 1px solid rgb(var(--color-white-rgb) / 0.15);
}

.contact-label {
    margin-bottom: 2px;
    color: var(--color-ice);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.contact-value {
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 650;
    text-shadow: 0 2px 4px rgb(var(--color-black-rgb) / 0.22);
}

.contact-email {
    overflow-wrap: anywhere;
    font-size: 0.72rem;
    user-select: text;
    -webkit-user-select: text;
}

.contact-item[href^="mailto:"] {
    cursor: pointer;
}

.contact-item[href^="mailto:"]:hover .contact-email {
    color: var(--color-ice);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================================
   Navigation
   ========================================================= */

.navigation-row {
    width: min(100%, var(--content-width));
    margin: 0 auto;

    display: flex;
    justify-content: center;
    align-items: center;
}

.primary-nav {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;

    background:
        linear-gradient(
            135deg,
            rgb(var(--color-crystal-rgb) / 0.86),
            rgb(var(--color-ice-rgb) / 0.76)
        );

    border: 1px solid rgb(var(--color-white-rgb) / 0.72);
    border-radius: 999px;

    box-shadow:
        0 24px 55px rgb(var(--color-navy-rgb) / 0.26),
        0 7px 16px rgb(var(--color-navy-rgb) / 0.18),
        0 0 24px rgb(var(--color-ice-rgb) / 0.16),
        inset 0 1px 0 rgb(var(--color-white-rgb) / 0.95),
        inset 0 -1px 0 rgb(var(--color-blue-rgb) / 0.16);

    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.primary-nav::before {
    content: "";
    position: absolute;
    top: 1px;
    right: 20px;
    left: 20px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgb(var(--color-white-rgb) / 0.9),
            transparent
        );

    pointer-events: none;
}

.primary-nav a {
    position: relative;
    z-index: 1;
    padding: 10px 21px;

    color: var(--color-navy);
    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 0.9rem;
    font-weight: 650;
    letter-spacing: 0.01em;

    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms cubic-bezier(.22, 1, .36, 1);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: var(--color-navy);

    background:
        linear-gradient(
            145deg,
            var(--color-white),
            rgb(var(--color-crystal-rgb) / 0.94)
        );

    border-color: rgb(var(--color-white-rgb) / 0.9);

    box-shadow:
        0 8px 18px rgb(var(--color-navy-rgb) / 0.15),
        0 2px 6px rgb(var(--color-navy-rgb) / 0.12),
        inset 0 1px 0 var(--color-white);

    transform: translateY(-2px);
}

.primary-nav a[aria-current="page"] {
    color: var(--color-white);

    background:
        linear-gradient(
            135deg,
            var(--color-navy),
            color-mix(in srgb, var(--color-navy) 62%, var(--color-blue))
        );

    border-color: rgb(var(--color-white-rgb) / 0.14);

    box-shadow:
        0 8px 18px rgb(var(--color-navy-rgb) / 0.22),
        inset 0 1px 0 rgb(var(--color-white-rgb) / 0.18),
        inset 0 -1px 0 rgb(var(--color-black-rgb) / 0.16);
}

.menu-toggle {
    display: none;
}

/* =========================================================
   Homepage introduction
   ========================================================= */

.home-intro {
    position: relative;
    isolation: isolate;
    min-height: 0;
    padding: clamp(45px, 5vw, 70px) clamp(30px, 4.5vw, 85px);

    display: grid;
    grid-template-columns:
        minmax(380px, 0.72fr)
        minmax(650px, 1.38fr);
    grid-template-areas: "copy image";
    align-items: center;
    gap: clamp(45px, 5vw, 80px);

    overflow: hidden;

    background:
        radial-gradient(
            circle at 27% 40%,
            rgb(var(--color-ice-rgb) / 0.21),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            var(--color-white),
            var(--color-crystal)
        );
}

.home-intro::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 15%;
    left: -90px;
    width: 310px;
    height: 310px;

    border: 1px solid rgb(var(--color-ice-rgb) / 0.28);
    border-radius: 50%;
    box-shadow: 0 0 80px rgb(var(--color-ice-rgb) / 0.1);
    pointer-events: none;
}

/* Intro copy */

.home-intro-copy {
    grid-area: copy;
    width: 100%;
    max-width: 530px;
    justify-self: start;
}

.intro-kicker {
    margin: 0 0 18px;
    color: var(--color-blue);
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.intro-kicker strong {
    color: var(--color-logo-blue);
    font-weight: 900;
}

.home-intro h1 {
    margin: 0;
    color: var(--color-black);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 2.85vw, 3.4rem);
    font-weight: 500;
    line-height: 1.09;
    letter-spacing: -0.025em;
}

.intro-note {
    position: relative;
    width: max-content;
    margin: 30px 0 0;
    padding: 9px 20px;

    color: var(--color-white);
    background:
        linear-gradient(
            135deg,
            var(--color-logo-blue),
            color-mix(in srgb, var(--color-logo-blue) 72%, var(--color-blue))
        );

    border: 1px solid rgb(var(--color-white-rgb) / 0.22);
    border-radius: 999px;

    box-shadow:
        0 9px 20px rgb(var(--color-logo-blue-rgb) / 0.18),
        inset 0 1px 0 rgb(var(--color-white-rgb) / 0.16);

    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Intro image */

.home-intro-image {
    grid-area: image;
    position: relative;
    width: 100%;
    max-width: 1050px;
    justify-self: end;
    padding: 9px;

    background:
        linear-gradient(
            145deg,
            rgb(var(--color-white-rgb) / 0.92),
            rgb(var(--color-crystal-rgb) / 0.68)
        );

    border: 1px solid rgb(var(--color-white-rgb) / 0.9);
    border-radius: 28px;

    box-shadow:
        0 28px 65px rgb(var(--color-navy-rgb) / 0.17),
        0 8px 20px rgb(var(--color-navy-rgb) / 0.12),
        inset 0 1px 0 var(--color-white);
}

.home-intro-image::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 22px;
    right: -18px;
    bottom: -18px;
    left: 22px;

    background:
        linear-gradient(
            145deg,
            rgb(var(--color-ice-rgb) / 0.46),
            rgb(var(--color-blue-rgb) / 0.15)
        );

    border-radius: 28px;
}

.home-intro-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1150px) {
    .home-intro {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "image";
        gap: 42px;
    }

    .home-intro-copy {
        max-width: 760px;
    }

    .home-intro-image {
        width: min(100%, 900px);
        justify-self: center;
    }
}

@media (max-width: 980px) {
    .logo-row {
        grid-template-columns:
            160px
            minmax(360px, 1fr)
            190px;
        gap: 20px;
    }

    .brand-logo {
        width: 150px;
    }

    .header-contact {
        padding: 12px 14px;
    }

    .contact-email {
        font-size: 0.66rem;
    }
}

@media (max-width: 800px) {
    .home-intro {
        padding: 50px 22px;
    }

    .home-intro h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .home-intro-image {
        padding: 6px;
        border-radius: 21px;
    }

    .home-intro-image img {
        border-radius: 15px;
    }
}

@media (max-width: 760px) {
    .site-header {
        padding: 20px 20px 10px;
    }

    .logo-row {
        min-height: auto;
        margin-bottom: 18px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .brand-logo {
        width: 145px;
        justify-self: center;
    }

    .type-logo {
        grid-row: 2;
    }

    .type-logo-name {
        font-size: clamp(1.8rem, 9vw, 2.6rem);
        -webkit-text-stroke: 1.5px var(--color-white);
    }

    .header-contact {
        width: min(100%, 340px);
        max-width: none;
        justify-self: center;
        flex-direction: row;
        justify-content: space-between;
        gap: 16px;
    }

    .contact-item {
        flex: 1;
    }

    .contact-item + .contact-item {
        padding-top: 0;
        padding-left: 16px;
        border-top: 0;
        border-left: 1px solid rgb(var(--color-white-rgb) / 0.15);
    }

    .navigation-row {
        position: relative;
        transform: translateY(23px);
    }

    .menu-toggle {
        width: 56px;
        height: 48px;
        padding: 13px;

        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;

        background:
            linear-gradient(
                145deg,
                rgb(var(--color-white-rgb) / 0.95),
                rgb(var(--color-ice-rgb) / 0.9)
            );

        border: 1px solid rgb(var(--color-white-rgb) / 0.8);
        border-radius: 999px;

        box-shadow:
            0 14px 28px rgb(var(--color-navy-rgb) / 0.28),
            inset 0 1px 0 var(--color-white);

        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        cursor: pointer;
    }

    .menu-toggle span:not(.sr-only) {
        width: 100%;
        height: 2px;
        background: var(--color-navy);
        border-radius: 999px;
    }

    .primary-nav {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        left: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 9px;

        background:
            linear-gradient(
                145deg,
                rgb(var(--color-crystal-rgb) / 0.96),
                rgb(var(--color-ice-rgb) / 0.9)
            );

        border-radius: 22px;

        box-shadow:
            0 24px 50px rgb(var(--color-navy-rgb) / 0.3),
            inset 0 1px 0 var(--color-white);

        backdrop-filter: blur(18px) saturate(125%);
        -webkit-backdrop-filter: blur(18px) saturate(125%);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav a {
        padding: 12px 16px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo,
    .primary-nav a,
    .contact-item {
        transition: none;
    }
}

/* =========================================================
   HOME PAGE — YOUTUBE VIDEOS
   ========================================================= */

.home-videos {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 40px 90px;
}


/* ---------- Section Heading ---------- */

.home-videos-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.home-videos-heading .section-kicker {
    margin: 0 0 10px;

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: var(--accent, #4d87ad);
}

.home-videos-heading h2 {
    margin: 0 0 14px;

    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.1;

    color: var(--text-primary, #1f2f3b);
}

.home-videos-heading > p:not(.section-kicker) {
    max-width: 650px;
    margin: 0 auto;

    font-size: 1.05rem;
    line-height: 1.7;

    color: var(--text-secondary, #61717c);
}

/* ---------- Video Grid ---------- */

.home-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}


/* ---------- Individual Video Card ---------- */

.home-video-card {
    position: relative;

    padding: 10px;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.8),
            rgba(225, 239, 247, 0.48)
        );

    box-shadow:
        0 15px 35px rgba(27, 57, 77, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.home-video-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 45px rgba(27, 57, 77, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}


/* ---------- Responsive YouTube Player ---------- */

.home-video-player {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    border-radius: 15px;
    overflow: hidden;

    background: #111;
}

.home-video-player iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}


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


/* Tablets */

@media (max-width: 1050px) {

    .home-videos {
        padding: 60px 30px 80px;
    }

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

    /*
       With exactly 3 videos, center the final card instead of
       leaving it awkwardly stuck on the left.
    */

    .home-video-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;

        width: calc(50% - 13px);
        justify-self: center;
    }
}


/* Phones */

@media (max-width: 700px) {

    .home-videos {
        padding: 50px 18px 65px;
    }

    .home-videos-heading {
        margin-bottom: 30px;
    }

    .home-videos-heading h2 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }

    .home-videos-heading p {
        font-size: 1rem;
    }

    .home-video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-video-card:last-child:nth-child(odd) {
        grid-column: auto;

        width: 100%;
    }

    .home-video-card {
        padding: 8px;
        border-radius: 18px;
    }

    .home-video-player {
        border-radius: 12px;
    }
}

/* =========================================================
   HOME PAGE — QUALITY / WHY UNIQUE
   ========================================================= */

.home-quality {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
    padding: 80px 40px 95px;
}

/* =========================================================
   WHY UNIQUE — SECTION BACKGROUND
   ========================================================= */

.home-quality {
    position: relative;

    width: 100%;
    max-width: none;

    margin: 0;
    padding: 90px 40px 105px;

    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0) 38%
        ),
        linear-gradient(
            180deg,
            #f7fbfe 0%,
            #edf6fc 45%,
            #e8f3fa 100%
        );

    border-top: 1px solid rgba(77, 135, 173, 0.08);
}


/* Keep the actual content from stretching across the universe */

.home-quality-heading {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.home-quality-grid {
    width: 100%;
    max-width: 1320px;

    margin-left: auto;
    margin-right: auto;
}

/* ---------- Intro / Heading ---------- */

.home-quality-heading {
    max-width: 900px;

    margin: 0 auto 45px;
    text-align: center;
}

.home-quality-heading .section-kicker {
    margin: 0 0 10px;

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: var(--accent, #4d87ad);
}

.home-quality-heading h2 {
    margin: 0 0 18px;

    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.1;
    font-weight: 650;

    color: var(--text-primary, #17345d);
}

.home-quality-heading > p:last-child {
    max-width: 780px;
    margin: 0 auto;

    font-size: 1.08rem;
    line-height: 1.75;

    color: var(--text-secondary, #596b78);
}


/* ---------- Feature Grid ---------- */

.home-quality-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* ---------- Feature Cards ---------- */

.home-quality-card {
    position: relative;

    min-height: 230px;

    padding: 30px 28px 32px;

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.88),
            rgba(223, 238, 248, 0.55)
        );

    box-shadow:
        0 15px 35px rgba(26, 56, 83, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.home-quality-card:hover {
    transform: translateY(-5px);

    border-color: rgba(76, 135, 173, 0.25);

    box-shadow:
        0 20px 45px rgba(26, 56, 83, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}


/* ---------- Number ---------- */

.home-quality-number {
    display: block;

    margin-bottom: 24px;

    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.15em;

    color: var(--accent, #4d87ad);

    opacity: 0.75;
}


/* ---------- Card Text ---------- */

.home-quality-card h3 {
    margin: 0 0 12px;

    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 700;

    color: var(--text-primary, #17345d);
}

.home-quality-card p {
    margin: 0;

    font-size: 1rem;
    line-height: 1.7;

    color: var(--text-secondary, #596b78);
}


/* ---------- Give Lifetime Warranty Extra Emphasis ---------- */

.home-quality-card:first-child {
    border-color: rgba(77, 135, 173, 0.28);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.96),
            rgba(211, 231, 245, 0.72)
        );

    box-shadow:
        0 18px 42px rgba(26, 56, 83, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.home-quality-card:first-child h3 {
    font-size: 1.6rem;
}


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

@media (max-width: 1000px) {

    .home-quality {
        padding: 70px 30px 85px;
    }

    .home-quality-grid {
        grid-template-columns: 1fr;
        max-width: 760px;
        margin: 0 auto;
    }

    .home-quality-card {
        min-height: auto;
    }
}


@media (max-width: 700px) {

    .home-quality {
        padding: 55px 18px 70px;
    }

    .home-quality-heading {
        margin-bottom: 32px;
    }

    .home-quality-heading h2 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }

    .home-quality-heading > p:last-child {
        font-size: 1rem;
        line-height: 1.65;
    }

    .home-quality-grid {
        gap: 18px;
    }

    .home-quality-card {
        padding: 25px 22px 27px;
        border-radius: 18px;
    }

    .home-quality-card h3 {
        font-size: 1.3rem;
    }

    .home-quality-card:first-child h3 {
        font-size: 1.4rem;
    }
}

/* =========================================================
   HOME PAGE — CONTACT FORM
   ========================================================= */

.home-contact {
    position: relative;
    width: 100%;
    padding: 100px 40px 110px;
    overflow: hidden;
    color: var(--color-white, #fff);
    background:
        radial-gradient(
            circle at 12% 18%,
            rgb(var(--color-blue-rgb, 71 120 157) / 0.46),
            transparent 34%
        ),
        radial-gradient(
            circle at 92% 82%,
            rgb(var(--color-ice-rgb, 169 216 234) / 0.22),
            transparent 30%
        ),
        linear-gradient(145deg, #17145f 0%, #183b5b 100%);
}

.home-contact::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgb(255 255 255 / 0.035) 1px, transparent 1px),
        linear-gradient(25deg, rgb(255 255 255 / 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.home-contact-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
    gap: clamp(50px, 6vw, 95px);
    align-items: center;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.home-contact-copy {
    max-width: 500px;
}

.home-contact-copy .section-kicker {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 14px;
    color: var(--color-ice, #a9d8ea);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-align: left;
    text-transform: uppercase;
}

.home-contact-copy h2 {
    margin: 0 0 20px;
    color: var(--color-white, #fff);
    font-size: clamp(2.35rem, 4vw, 4.2rem);
    font-weight: 650;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.home-contact-intro {
    margin: 0;
    color: rgb(255 255 255 / 0.76);
    font-size: 1.08rem;
    line-height: 1.75;
}

.home-contact-details {
    display: grid;
    gap: 14px;
    margin-top: 38px;
}

.home-contact-details a {
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: 12px 0;
    color: var(--color-white, #fff);
}

.home-contact-details span,
.home-contact-details strong {
    display: block;
}

.home-contact-details span {
    margin-bottom: 5px;
    color: var(--color-ice, #a9d8ea);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-contact-details strong {
    overflow-wrap: anywhere;
    font-size: 1.05rem;
    font-weight: 650;
}

.home-contact-details a:hover strong,
.home-contact-details a:focus-visible strong {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.home-contact-form-card {
    padding: clamp(26px, 4vw, 44px);
    color: #17345d;
    border: 1px solid rgb(255 255 255 / 0.68);
    border-radius: 28px;
    background: linear-gradient(145deg, rgb(255 255 255 / 0.96), rgb(237 248 252 / 0.91));
    box-shadow:
        0 30px 70px rgb(4 17 45 / 0.36),
        inset 0 1px 0 rgb(255 255 255 / 0.96);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.contact-form-alert {
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.96rem;
    line-height: 1.55;
}

.contact-form-alert strong {
    display: block;
}

.contact-form-alert.is-success {
    color: #174e37;
    border-color: rgb(38 125 84 / 0.22);
    background: #eaf8f0;
}

.contact-form-alert.is-error {
    color: #7d2727;
    border-color: rgb(165 58 58 / 0.22);
    background: #fff0f0;
}

.contact-form-alert a {
    font-weight: 700;
    text-decoration: underline;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
}

.contact-field {
    min-width: 0;
}

.contact-field-wide {
    grid-column: 1 / -1;
}

.contact-field label {
    display: block;
    margin: 0 0 8px;
    color: #17345d;
    font-size: 0.84rem;
    font-weight: 750;
    letter-spacing: 0.015em;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    color: #1f2f3b;
    font: inherit;
    line-height: 1.35;
    border: 1px solid rgb(71 120 157 / 0.23);
    border-radius: 11px;
    outline: none;
    background: rgb(255 255 255 / 0.78);
    box-shadow: inset 0 1px 2px rgb(24 59 91 / 0.045);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-field textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #7b8b97;
    opacity: 1;
}

.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
    border-color: rgb(71 120 157 / 0.42);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: #47789d;
    background: #fff;
    box-shadow: 0 0 0 4px rgb(71 120 157 / 0.13);
}

.contact-form-footer {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    margin-top: 26px;
}

.contact-form-footer p {
    max-width: 280px;
    margin: 0;
    color: #657784;
    font-size: 0.8rem;
    line-height: 1.5;
}

.contact-form-footer button {
    flex: 0 0 auto;
    min-height: 50px;
    padding: 13px 24px;
    color: #fff;
    font: inherit;
    font-weight: 750;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: linear-gradient(135deg, #302773, #47789d);
    box-shadow: 0 12px 24px rgb(23 20 95 / 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-footer button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgb(23 20 95 / 0.31);
}

.contact-form-footer button:focus-visible {
    outline: 3px solid rgb(71 120 157 / 0.35);
    outline-offset: 3px;
}

.contact-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1050px) {
    .home-contact {
        padding: 85px 30px 95px;
    }

    .home-contact-inner {
        grid-template-columns: 1fr;
        gap: 45px;
        max-width: 780px;
    }

    .home-contact-copy {
        max-width: 650px;
    }

    .home-contact-copy h2 {
        font-size: clamp(2.35rem, 7vw, 3.8rem);
    }

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

@media (max-width: 700px) {
    .home-contact {
        padding: 65px 18px 75px;
    }

    .home-contact-inner {
        gap: 34px;
    }

    .home-contact-copy h2 {
        font-size: clamp(2.05rem, 11vw, 3rem);
    }

    .home-contact-intro {
        font-size: 1rem;
        line-height: 1.65;
    }

    .home-contact-details {
        grid-template-columns: 1fr;
        gap: 2px;
        margin-top: 28px;
    }

    .home-contact-form-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-field-wide {
        grid-column: auto;
    }

    .contact-form-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .contact-form-footer p {
        max-width: none;
    }

    .contact-form-footer button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-field input,
    .contact-field select,
    .contact-field textarea,
    .contact-form-footer button {
        transition: none;
    }
}

/* =========================================================
   DEALER DIRECTORY
   Append this file to assets/css/style.css.
   ========================================================= */

.dealer-directory,
.dealer-state-page {
    color: #1f2f3b;
    background: #ffffff;
}

.dealer-directory .section-kicker,
.dealer-state-page .section-kicker {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 10px;
    color: var(--color-blue, #47789d);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


/* ---------- Landing hero ---------- */

.dealer-directory-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 60px;
    align-items: end;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 90px 40px 70px;
}

.dealer-directory-heading {
    max-width: 830px;
}

.dealer-directory-heading h1,
.dealer-state-hero h1 {
    margin: 0;
    color: #17345d;
    font-size: clamp(2.7rem, 5.5vw, 5rem);
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.dealer-directory-heading > p:last-child,
.dealer-state-hero > p:last-child {
    max-width: 740px;
    margin: 22px 0 0;
    color: #5b6d79;
    font-size: 1.1rem;
    line-height: 1.72;
}

.dealer-directory-summary {
    display: flex;
    gap: 32px;
    padding: 22px 26px;
    border: 1px solid rgb(71 120 157 / 0.16);
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #edf8fc);
    box-shadow: 0 14px 34px rgb(24 59 91 / 0.09);
}

.dealer-directory-summary div {
    min-width: 120px;
}

.dealer-directory-summary strong,
.dealer-directory-summary span {
    display: block;
}

.dealer-directory-summary strong {
    color: #17145f;
    font-size: 2rem;
    line-height: 1;
}

.dealer-directory-summary span {
    margin-top: 7px;
    color: #637581;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}


/* ---------- Map section ---------- */

.dealer-finder {
    width: 100%;
    padding: 80px 40px 90px;
    border-top: 1px solid rgb(71 120 157 / 0.08);
    background:
        radial-gradient(circle at 50% 0%, rgb(255 255 255 / 0.95), transparent 38%),
        linear-gradient(180deg, #f7fbfe 0%, #eaf4fa 100%);
}

.dealer-finder-toolbar {
    display: flex;
    gap: 42px;
    align-items: end;
    justify-content: space-between;
    width: 100%;
    max-width: 1260px;
    margin: 0 auto 38px;
}

.dealer-finder-toolbar h2 {
    margin: 0;
    color: #17345d;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
}

.dealer-state-search {
    flex: 0 1 460px;
}

.dealer-state-search > label {
    display: block;
    margin-bottom: 8px;
    color: #17345d;
    font-size: 0.8rem;
    font-weight: 750;
}

.dealer-state-search > div {
    display: flex;
    padding: 5px;
    border: 1px solid rgb(71 120 157 / 0.2);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.9);
    box-shadow: 0 10px 28px rgb(24 59 91 / 0.08);
}

.dealer-state-search input {
    width: 100%;
    min-width: 0;
    padding: 12px 17px;
    color: #1f2f3b;
    font: inherit;
    border: 0;
    outline: 0;
    background: transparent;
}

.dealer-state-search button {
    flex: 0 0 auto;
    padding: 12px 20px;
    color: #ffffff;
    font: inherit;
    font-weight: 750;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: linear-gradient(135deg, #302773, #47789d);
}

.dealer-state-search > div:focus-within {
    border-color: #47789d;
    box-shadow: 0 0 0 4px rgb(71 120 157 / 0.13);
}

.dealer-map-shell {
    position: relative;
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 22px;
    border: 1px solid rgb(255 255 255 / 0.85);
    border-radius: 30px;
    background: rgb(255 255 255 / 0.66);
    box-shadow:
        0 24px 60px rgb(24 59 91 / 0.13),
        inset 0 1px 0 #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dealer-map-scroll {
    overflow: auto;
    border-radius: 20px;
    outline: none;
    scrollbar-color: #a9d8ea #edf4f7;
    scrollbar-width: thin;
}

.dealer-map-scroll:focus-visible {
    box-shadow: 0 0 0 4px rgb(71 120 157 / 0.18);
}

.dealer-map {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.dealer-map-state {
    cursor: pointer;
    outline: none;
}

.dealer-map-state path {
    fill: #e3ebf0;
    stroke: #ffffff;
    stroke-width: 1.6;
    vector-effect: non-scaling-stroke;
    transition: fill 0.2s ease, filter 0.2s ease, stroke 0.2s ease;
}

.dealer-map-state.has-dealers path {
    fill: var(--color-ice, #a9d8ea);
}

.dealer-map-state text {
    fill: #71818b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 750;
    pointer-events: none;
    user-select: none;
}

.dealer-map-state.has-dealers text {
    fill: #17345d;
}

.dealer-map-state:hover path,
.dealer-map-state.is-focused path,
.dealer-map-state:focus-visible path {
    fill: #47789d;
    stroke: #17145f;
    stroke-width: 2.5;
    filter: drop-shadow(0 5px 8px rgb(24 59 91 / 0.25));
}

.dealer-map-state:hover text,
.dealer-map-state.is-focused text,
.dealer-map-state:focus-visible text {
    fill: #ffffff;
}

.dealer-map-pins {
    pointer-events: none;
}

.dealer-map-pin {
    opacity: 1;
    transform-box: fill-box;
    transform-origin: center;
    transition: opacity 0.2s ease;
}

.dealer-map-pin-halo {
    fill: #17145f;
    stroke: #ffffff;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.dealer-map-pin-center {
    fill: #ffffff;
}

.dealer-map.is-exploring .dealer-map-pin {
    opacity: 0.12;
}

.dealer-map.is-exploring .dealer-map-pin.is-focused {
    opacity: 1;
}

.dealer-map-tooltip {
    position: absolute;
    z-index: 4;
    min-width: 190px;
    padding: 12px 14px;
    color: #ffffff;
    border: 1px solid rgb(255 255 255 / 0.2);
    border-radius: 12px;
    pointer-events: none;
    background: rgb(23 20 95 / 0.95);
    box-shadow: 0 12px 28px rgb(24 59 91 / 0.25);
}

.dealer-map-tooltip[hidden] {
    display: none;
}

.dealer-map-tooltip strong,
.dealer-map-tooltip span {
    display: block;
}

.dealer-map-tooltip strong {
    margin-bottom: 3px;
    font-size: 1rem;
}

.dealer-map-tooltip span {
    color: rgb(255 255 255 / 0.72);
    font-size: 0.82rem;
}

.dealer-map-legend {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin: 24px auto 0;
    color: #5f717d;
    font-size: 0.84rem;
}

.dealer-map-legend span {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.dealer-map-legend i {
    width: 13px;
    height: 13px;
    border: 1px solid rgb(71 120 157 / 0.16);
    border-radius: 4px;
}

.dealer-map-legend i.has-dealers {
    background: #a9d8ea;
}

.dealer-map-legend i.has-no-dealers {
    background: #e3ebf0;
}


/* ---------- Landing contact strip ---------- */

.dealer-help {
    display: flex;
    gap: 48px;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 80px));
    margin: 80px auto;
    padding: 40px 44px;
    color: #ffffff;
    border-radius: 26px;
    background:
        radial-gradient(circle at 90% 20%, rgb(169 216 234 / 0.25), transparent 34%),
        linear-gradient(135deg, #17145f, #183b5b);
    box-shadow: 0 22px 48px rgb(24 59 91 / 0.2);
}

.dealer-help > div:first-child {
    max-width: 700px;
}

.dealer-help .section-kicker {
    color: #a9d8ea;
}

.dealer-help h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
}

.dealer-help p:last-child {
    margin: 14px 0 0;
    color: rgb(255 255 255 / 0.74);
    line-height: 1.7;
}

.dealer-help-actions {
    display: flex;
    gap: 12px;
    flex: 0 0 auto;
}

.dealer-help-actions a {
    padding: 13px 18px;
    font-weight: 750;
    border: 1px solid rgb(255 255 255 / 0.28);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.08);
}

.dealer-help-actions a:hover,
.dealer-help-actions a:focus-visible {
    color: #17145f;
    background: #ffffff;
}


/* =========================================================
   INDIVIDUAL STATE PAGE
   ========================================================= */

.dealer-state-hero {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 40px 50px;
}

.dealer-breadcrumb {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 46px;
    color: #687985;
    font-size: 0.86rem;
}

.dealer-breadcrumb a:hover,
.dealer-breadcrumb a:focus-visible {
    color: #17145f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dealer-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

.dealer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px;
    border: 1px solid rgb(71 120 157 / 0.16);
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff, #f4f9fc);
    box-shadow: 0 16px 36px rgb(24 59 91 / 0.09);
}

.dealer-card-logo {
    display: grid;
    place-items: center;
    width: 100%;
    height: 120px;
    margin-bottom: 24px;
    padding: 14px;
    border-radius: 14px;
    background: #ffffff;
}

.dealer-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dealer-card-content {
    flex: 1 1 auto;
}

.dealer-card-label {
    margin: 0 0 7px;
    color: #47789d;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dealer-card h2 {
    margin: 0;
    color: #17345d;
    font-size: 1.6rem;
    line-height: 1.2;
}

.dealer-card address {
    margin-top: 18px;
    color: #546773;
    font-style: normal;
    line-height: 1.65;
}

.dealer-card-contact {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.dealer-card-contact a {
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #17345d;
    font-weight: 650;
}

.dealer-card-contact a:hover,
.dealer-card-contact a:focus-visible {
    color: #47789d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dealer-directions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    align-self: flex-start;
    margin-top: 26px;
    padding: 11px 16px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 750;
    border-radius: 999px;
    background: linear-gradient(135deg, #302773, #47789d);
}

.dealer-state-empty {
    width: min(760px, calc(100% - 40px));
    margin: 40px auto 90px;
    padding: 46px;
    text-align: center;
    border: 1px solid rgb(71 120 157 / 0.16);
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff, #edf8fc);
    box-shadow: 0 18px 40px rgb(24 59 91 / 0.1);
}

.dealer-state-empty h1,
.dealer-state-empty h2 {
    margin: 0;
    color: #17345d;
    font-size: clamp(2rem, 5vw, 3rem);
}

.dealer-state-empty p {
    margin: 16px auto 0;
    color: #5c6f7b;
    line-height: 1.7;
}

.dealer-state-empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

.dealer-primary-action,
.dealer-secondary-action {
    display: inline-flex;
    justify-content: center;
    padding: 12px 19px;
    font-weight: 750;
    border-radius: 999px;
}

.dealer-primary-action {
    color: #ffffff;
    background: linear-gradient(135deg, #302773, #47789d);
}

.dealer-secondary-action {
    color: #17345d;
    border: 1px solid rgb(71 120 157 / 0.25);
    background: #ffffff;
}

.dealer-state-footer {
    width: min(1100px, calc(100% - 80px));
    margin: 0 auto;
    padding: 0 0 80px;
}

.dealer-state-footer a {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: #17345d;
    font-weight: 750;
}

.dealer-state-footer a:hover,
.dealer-state-footer a:focus-visible {
    color: #47789d;
}


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

@media (max-width: 1050px) {
    .dealer-directory-hero {
        grid-template-columns: 1fr;
        gap: 34px;
        align-items: start;
    }

    .dealer-directory-summary {
        width: fit-content;
    }

    .dealer-finder-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 26px;
    }

    .dealer-state-search {
        flex-basis: auto;
        max-width: 560px;
    }

    .dealer-help {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .dealer-directory-hero {
        padding: 64px 20px 48px;
    }

    .dealer-directory-heading h1,
    .dealer-state-hero h1 {
        font-size: clamp(2.45rem, 12vw, 3.6rem);
    }

    .dealer-directory-heading > p:last-child,
    .dealer-state-hero > p:last-child {
        font-size: 1rem;
    }

    .dealer-directory-summary {
        gap: 20px;
        width: 100%;
        padding: 19px;
    }

    .dealer-directory-summary div {
        min-width: 0;
    }

    .dealer-finder {
        padding: 58px 16px 68px;
    }

    .dealer-state-search > div {
        align-items: stretch;
        flex-direction: column;
        padding: 6px;
        border-radius: 16px;
    }

    .dealer-state-search input,
    .dealer-state-search button {
        min-height: 48px;
    }

    .dealer-state-search button {
        border-radius: 11px;
    }

    .dealer-map-shell {
        padding: 10px;
        border-radius: 20px;
    }

    .dealer-map-scroll {
        border-radius: 14px;
    }

    .dealer-map {
        width: 760px;
        max-width: none;
    }

    .dealer-map-legend {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding-left: 4px;
    }

    .dealer-help {
        width: calc(100% - 32px);
        margin: 58px auto;
        padding: 30px 24px;
        border-radius: 20px;
    }

    .dealer-help-actions,
    .dealer-state-empty-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .dealer-help-actions a,
    .dealer-state-empty-actions a {
        text-align: center;
    }

    .dealer-state-hero {
        padding: 50px 20px 38px;
    }

    .dealer-breadcrumb {
        margin-bottom: 34px;
    }

    .dealer-card-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 18px 60px;
    }

    .dealer-card {
        padding: 24px 21px;
        border-radius: 18px;
    }

    .dealer-state-empty {
        width: calc(100% - 36px);
        padding: 34px 22px;
    }

    .dealer-state-footer {
        width: calc(100% - 40px);
        padding-bottom: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dealer-map-state path,
    .dealer-map-pin {
        transition: none;
    }
}


html {
    scroll-behavior: smooth;
}

/* =========================================================
   SHE CAVES
   Append this file to assets/css/style.css.
   ========================================================= */

.she-caves-page {
    color: #1f2f3b;
    background: #ffffff;
}

.she-caves-page .section-kicker {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 10px;
    color: var(--color-blue, #47789d);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.she-caves-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 58px;
    align-items: end;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 90px 40px 78px;
}

.she-caves-heading {
    max-width: 850px;
}

.she-caves-heading h1 {
    margin: 0;
    color: #17345d;
    font-size: clamp(3rem, 6vw, 5.4rem);
    font-weight: 650;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.she-caves-heading > p:last-child {
    max-width: 760px;
    margin: 24px 0 0;
    color: #5b6d79;
    font-size: 1.1rem;
    line-height: 1.75;
}

.she-caves-summary {
    display: flex;
    gap: 28px;
    padding: 22px 25px;
    border: 1px solid rgba(71, 120, 157, 0.16);
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #edf8fc);
    box-shadow: 0 14px 34px rgba(24, 59, 91, 0.09);
}

.she-caves-summary div {
    min-width: 122px;
}

.she-caves-summary strong,
.she-caves-summary span {
    display: block;
}

.she-caves-summary strong {
    color: #17145f;
    font-size: 2rem;
    line-height: 1;
}

.she-caves-summary span {
    margin-top: 7px;
    color: #637581;
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.she-caves-collection {
    padding: 86px 40px 100px;
    border-top: 1px solid rgba(71, 120, 157, 0.08);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.96), transparent 30%),
        linear-gradient(180deg, #f7fbfe 0%, #eaf4fa 100%);
}

.she-caves-collection-heading {
    max-width: 900px;
    margin: 0 auto 48px;
    text-align: center;
}

.she-caves-collection-heading h2 {
    margin: 0;
    color: #17345d;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.she-caves-grid {
    --she-caves-grid-gap: 30px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--she-caves-grid-gap);
    position: relative;

    width: 100%;
    max-width: 1320px;
    margin: 0 auto;

    align-items: start;
}

.she-cave-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 18px 45px rgba(24, 59, 91, 0.11),
        inset 0 1px 0 #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    min-width: 0;
}

@media (min-width: 1001px) {
    .she-caves-grid.is-masonry-ready {
        display: block;
    }

    .she-caves-grid.is-masonry-ready .she-cave-card {
        position: absolute;
        top: 0;
        left: 0;

        width: calc(
            (100% - var(--she-caves-grid-gap)) / 2
        );
    }
}

.she-cave-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 24px 55px rgba(24, 59, 91, 0.16),
        inset 0 1px 0 #ffffff;
}

.she-cave-card button {
    padding: 0;
    border: 0;
    cursor: pointer;
    background: transparent;
}

.she-cave-collage {
    display: grid;
    height: 410px;
    gap: 4px;
    overflow: hidden;
    background: #dce8ee;
}

.she-cave-card.media-count-1 .she-cave-collage {
    grid-template-columns: 1fr;
}

.she-cave-card.media-count-2 .she-cave-collage {
    grid-template-columns: 1.18fr 0.82fr;
}

.she-cave-card.media-count-3 .she-cave-collage {
    grid-template-columns: 1.35fr 0.75fr;
    grid-template-rows: repeat(2, 1fr);
}

.she-cave-card.media-count-3 .she-cave-collage-item:first-child {
    grid-row: 1 / -1;
}

.she-cave-collage-item {
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.she-cave-collage-item img,
.she-cave-gallery-feature img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.she-cave-collage-item:hover img,
.she-cave-collage-item:focus-visible img,
.she-cave-gallery-feature:hover img,
.she-cave-gallery-feature:focus-visible img {
    transform: scale(1.025);
}

.she-cave-gallery {
    padding: 10px 10px 0;
    background: #e4eef3;
}

.she-cave-gallery-feature {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px;
    background: #d4e1e8;
}

.she-cave-gallery-count {
    position: absolute;
    right: 13px;
    bottom: 13px;
    padding: 7px 10px;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 750;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(23, 20, 95, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.she-cave-thumbnails {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 9px 1px 10px;
    scrollbar-color: #a9d8ea transparent;
    scrollbar-width: thin;
}

.she-cave-thumbnail {
    flex: 0 0 76px;
    height: 57px;
    overflow: hidden;
    border: 2px solid transparent !important;
    border-radius: 9px;
    opacity: 0.62;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.she-cave-thumbnail.is-active,
.she-cave-thumbnail:hover,
.she-cave-thumbnail:focus-visible {
    border-color: #47789d !important;
    opacity: 1;
}

.she-cave-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.she-cave-card-copy {
    padding: 26px 28px 30px;
}

.she-cave-card-meta {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #47789d;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.she-cave-card-meta span:last-child {
    color: #71818b;
    letter-spacing: 0.035em;
}

.she-cave-card h3 {
    margin: 0;
    color: #17345d;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.she-cave-card-copy > p {
    margin: 13px 0 0;
    color: #5b6d79;
    line-height: 1.68;
}

.she-cave-media-placeholder {
    display: grid;
    height: 310px;
    color: #6a7d89;
    font-weight: 700;
    place-items: center;
    background: linear-gradient(145deg, #edf6fa, #dcebf2);
}

.she-caves-empty {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 30px;
    text-align: center;
    border-radius: 24px;
    background: #ffffff;
}

.she-caves-cta {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 80px));
    margin: 86px auto;
    padding: 42px 46px;
    color: #ffffff;
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 20%, rgba(169, 216, 234, 0.25), transparent 34%),
        linear-gradient(135deg, #17145f, #183b5b);
    box-shadow: 0 24px 54px rgba(24, 59, 91, 0.22);
}

.she-caves-cta > div {
    max-width: 760px;
}

.she-caves-cta .section-kicker {
    color: #a9d8ea;
}

.she-caves-cta h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.she-caves-cta p:last-child {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.she-caves-cta > a {
    flex: 0 0 auto;
    padding: 14px 20px;
    color: #17145f;
    font-weight: 800;
    border-radius: 999px;
    background: #ffffff;
}

.she-cave-lightbox {
    width: min(1200px, calc(100% - 34px));
    max-width: none;
    max-height: calc(100vh - 34px);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 22px;
    background: transparent;
}

.she-cave-lightbox::backdrop {
    background: rgba(10, 18, 29, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.she-cave-lightbox-frame {
    position: relative;
    display: grid;
    max-height: calc(100vh - 34px);
    padding: 14px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    background: #111a24;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
}

.she-cave-lightbox img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 110px);
    object-fit: contain;
    border-radius: 13px;
}

.she-cave-lightbox p {
    margin: 10px 60px 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    text-align: center;
}

.she-cave-lightbox button {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #ffffff;
    font: inherit;
    font-size: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    place-items: center;
    background: rgba(23, 20, 95, 0.82);
}

.she-cave-lightbox-close {
    top: 22px;
    right: 22px;
}

.she-cave-lightbox-previous,
.she-cave-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.she-cave-lightbox-previous {
    left: 22px;
}

.she-cave-lightbox-next {
    right: 22px;
}

@media (max-width: 1000px) {
    .she-caves-hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .she-caves-summary {
        width: fit-content;
    }

    .she-caves-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    height: auto !important;
    }
}

@media (max-width: 700px) {
    .she-caves-hero {
        padding: 58px 18px 55px;
    }

    .she-caves-heading h1 {
        font-size: clamp(2.65rem, 13vw, 4rem);
    }

    .she-caves-heading > p:last-child {
        font-size: 1rem;
    }

    .she-caves-summary {
        width: 100%;
        gap: 14px;
    }

    .she-caves-summary div {
        min-width: 0;
    }

    .she-caves-collection {
        padding: 60px 14px 72px;
    }

    .she-caves-collection-heading {
        margin-bottom: 32px;
    }

    .she-caves-grid {
        gap: 20px;
    }

    .she-cave-card {
        border-radius: 20px;
    }

    .she-cave-collage {
        height: 290px;
    }

    .she-cave-gallery {
        padding: 7px 7px 0;
    }

    .she-cave-gallery-feature {
        border-radius: 14px;
    }

    .she-cave-card-copy {
        padding: 22px 20px 24px;
    }

    .she-caves-cta {
        display: block;
        width: calc(100% - 28px);
        margin: 55px auto;
        padding: 30px 24px;
        border-radius: 22px;
    }

    .she-caves-cta > a {
        display: inline-flex;
        margin-top: 22px;
    }

    .she-cave-lightbox-frame {
        padding: 7px;
    }

    .she-cave-lightbox button {
        width: 38px;
        height: 38px;
    }

    .she-cave-lightbox-close {
        top: 13px;
        right: 13px;
    }

    .she-cave-lightbox-previous {
        left: 13px;
    }

    .she-cave-lightbox-next {
        right: 13px;
    }
}

/* =========================================================
   DEALERS + SHE CAVES — IMAGE HEROES
   ========================================================= */

.dealer-directory-hero,
.she-caves-hero {
    position: relative;
    isolation: isolate;

    display: block;

    width: 100%;
    max-width: none;
    min-height: 400px;

    margin: 0;
    padding:
        90px
        max(40px, calc((100vw - 1320px) / 2))
        78px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 255, 255, 0.96),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #f8fcff 0%,
            #e9f4fa 58%,
            #dcecf6 100%
        );
}


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

.dealer-directory-heading,
.she-caves-heading {
    position: relative;
    z-index: 2;

    width: min(62%, 850px);
    max-width: 850px;
}

.dealer-directory-summary,
.she-caves-summary {
    position: relative;
    z-index: 2;

    width: fit-content;
    margin-top: 36px;

    background: rgba(255, 255, 255, 0.78);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


/* ---------- Right-Side Photograph ---------- */

.page-hero-image {
    position: absolute;
    z-index: 0;

    inset: 0 0 0 auto;

    width: 70%;
    height: 100%;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.12) 10%,
        rgba(0, 0, 0, 0.65) 28%,
        black 44%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.12) 10%,
        rgba(0, 0, 0, 0.65) 28%,
        black 44%
    );
}

.page-hero-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center right;
}


/*
   Additional wash behind the text.
   The mask removes the hard image edge; this protects readability.
*/

.dealer-directory-hero::after,
.she-caves-hero::after {
    content: "";

    position: absolute;
    z-index: 1;
    inset: 0;

    pointer-events: none;

    background: linear-gradient(
        90deg,
        #f8fcff 0%,
        rgba(248, 252, 255, 1) 24%,
        rgba(244, 250, 253, 0.94) 35%,
        rgba(238, 247, 252, 0.72) 48%,
        rgba(233, 244, 250, 0.24) 63%,
        transparent 80%
    );
}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 1000px) {

    .dealer-directory-hero,
    .she-caves-hero {
        min-height: 525px;
        padding-inline: 30px;
    }

    .dealer-directory-heading,
    .she-caves-heading {
        width: min(70%, 720px);
    }

    .page-hero-image {
        width: 65%;
    }

    .dealer-directory-hero::after,
    .she-caves-hero::after {
        background: linear-gradient(
            90deg,
            #f8fcff 0%,
            rgba(248, 252, 255, 1) 33%,
            rgba(241, 249, 253, 0.88) 50%,
            rgba(233, 244, 250, 0.28) 70%,
            transparent 88%
        );
    }
}


/* =========================================================
   PHONES
   ========================================================= */

@media (max-width: 700px) {

    .dealer-directory-hero,
    .she-caves-hero {
        min-height: 0;
        padding: 58px 18px 0;
    }

    .dealer-directory-heading,
    .she-caves-heading {
        width: 100%;
    }

    .dealer-directory-summary,
    .she-caves-summary {
        width: 100%;
        margin-top: 30px;
    }

    .page-hero-image {
        position: relative;

        width: calc(100% + 36px);
        height: 290px;

        margin: 40px -18px 0;

        -webkit-mask-image: none;
        mask-image: none;
    }

    .page-hero-image img {
        object-position: center;
    }

    .dealer-directory-hero::after,
    .she-caves-hero::after {
        display: none;
    }

    .page-hero-image::after {
        content: "";

        position: absolute;
        inset: 0;

        pointer-events: none;

        background: linear-gradient(
            180deg,
            #edf7fc 0%,
            rgba(237, 247, 252, 0.74) 8%,
            transparent 32%
        );
    }
}

/* Float dealer totals over the hero photograph */

@media (min-width: 701px) {

    .dealer-directory-summary {
        position: absolute;
        z-index: 3;

        right: max(30px, calc((100vw - 1320px) / 2));
        bottom: 48px;

        width: auto;
        margin: 0;

        background: rgba(255, 255, 255, 0.88);

        box-shadow:
            0 18px 45px rgba(24, 59, 91, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.95);

        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
}

/* =========================================================
   Homepage introduction gallery
   ========================================================= */

.home-gallery {
    overflow: hidden;
}

.home-gallery-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background: var(--color-blue-grey);
}

.home-intro-image .home-gallery-main {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    transition: opacity 160ms ease;
}

.home-gallery-main.is-changing {
    opacity: 0.35;
}

.home-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 50px;
    height: 50px;
    padding: 0;
    display: grid;
    place-items: center;
    color: var(--color-white);
    background: rgb(var(--color-logo-blue-rgb) / 0.82);
    border: 1px solid rgb(var(--color-white-rgb) / 0.62);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgb(var(--color-black-rgb) / 0.22);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 160ms ease, transform 160ms ease;
}

.home-gallery-arrow:hover,
.home-gallery-arrow:focus-visible {
    background: var(--color-logo-blue);
    transform: translateY(-50%) scale(1.06);
}

.home-gallery-arrow:focus-visible,
.home-gallery-thumbnail:focus-visible {
    outline: 3px solid var(--color-ice);
    outline-offset: 3px;
}

.home-gallery-arrow span {
    margin-top: -4px;
    font-size: 2.65rem;
    font-weight: 400;
    line-height: 1;
}

.home-gallery-arrow--previous {
    left: 16px;
}

.home-gallery-arrow--next {
    right: 16px;
}

.home-gallery-count {
    position: absolute;
    right: 16px;
    bottom: 14px;
    z-index: 2;
    margin: 0;
    padding: 7px 12px;
    color: var(--color-white);
    background: rgb(var(--color-logo-blue-rgb) / 0.88);
    border: 1px solid rgb(var(--color-white-rgb) / 0.35);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 7px 16px rgb(var(--color-black-rgb) / 0.18);
}

.home-gallery-toggle {
    position: absolute;
    bottom: 14px;
    left: 16px;
    z-index: 2;
    min-height: 36px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--color-white);
    background: rgb(var(--color-logo-blue-rgb) / 0.88);
    border: 1px solid rgb(var(--color-white-rgb) / 0.35);
    border-radius: 999px;
    box-shadow: 0 7px 16px rgb(var(--color-black-rgb) / 0.18);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.home-gallery-toggle:hover,
.home-gallery-toggle:focus-visible {
    background: var(--color-logo-blue);
}

.home-gallery-toggle:focus-visible {
    outline: 3px solid var(--color-ice);
    outline-offset: 3px;
}

.home-gallery-thumbnails {
    padding: 10px 2px 1px;
    display: flex;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.home-gallery-thumbnail {
    flex: 0 0 clamp(82px, 19%, 125px);
    min-width: 0;
    padding: 3px;
    overflow: hidden;
    background: var(--color-white);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    opacity: 0.7;
    scroll-snap-align: start;
    transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.home-gallery[data-gallery-count="1"] .home-gallery-arrow,
.home-gallery[data-gallery-count="1"] .home-gallery-toggle,
.home-gallery[data-gallery-count="1"] .home-gallery-count,
.home-gallery[data-gallery-count="1"] .home-gallery-thumbnails {
    display: none;
}

.home-gallery-thumbnail:hover,
.home-gallery-thumbnail.is-active {
    opacity: 1;
    transform: translateY(-2px);
}

.home-gallery-thumbnail.is-active {
    border-color: var(--color-blue);
}

.home-intro-image .home-gallery-thumbnail img {
    width: 100%;
    height: 74px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 7px;
}


/* =========================================================
   Responsive layout
   ========================================================= */

@media (max-width: 800px) {
    .home-gallery-stage {
        border-radius: 15px;
    }

    .home-intro-image .home-gallery-main {
        height: 100%;
        aspect-ratio: auto;
        border-radius: 0;
    }

    .home-gallery-arrow {
        width: 44px;
        height: 44px;
    }

    .home-gallery-arrow--previous {
        left: 10px;
    }

    .home-gallery-arrow--next {
        right: 10px;
    }

    .home-gallery-thumbnails {
        gap: 6px;
    }

    .home-intro-image .home-gallery-thumbnail img {
        height: clamp(48px, 15vw, 70px);
        aspect-ratio: auto;
        border-radius: 6px;
    }
}
