/* =========================================================
   KITCHEN & STONE PARTNERS PAGE
   ========================================================= */

.ksp-hero,
.ksp-intro-section,
.ksp-featured-section,
.ksp-cta-section {
    scroll-margin-top: 82px;
}

.ksp-hero,
.ksp-intro-section,
.ksp-featured-section,
.ksp-cta-section {
    padding-left: clamp(24px, 4vw, 72px);
    padding-right: clamp(24px, 4vw, 72px);
}

/* =========================================================
   HERO
========================================================= */

.ksp-hero {
    height: calc(100vh - 82px);

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;

    padding: 0;

    border-bottom: 1px solid var(--blue-line);
    background: var(--white);
}

.ksp-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 48px clamp(20px, 5vw, 60px);
}

.ksp-hero-copy h1 {
    max-width: 760px;

    color: var(--blue-deep);

    font-size: clamp(34px, 4vw, 48px);
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.ksp-hero-sub {
    max-width: 620px;

    margin-top: 24px;

    color: var(--blue-ink);

    font-size: 17px;
    line-height: 1.72;
}

.ksp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 30px;
}

.ksp-hero-media {
    width: 100%;
    min-width: 0;
    height: calc(100vh - 82px);

    overflow: hidden;
}

.ksp-hero-media img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

.ksp-hero-actions,
.ksp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 30px;
}

.ksp-primary-btn,
.ksp-secondary-btn {
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 24px;

    border: 1px solid var(--blue-deep);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.ksp-primary-btn {
    background: var(--blue-deep);
    color: var(--white);
}

.ksp-primary-btn:hover {
    background: var(--blue-ink);
    border-color: var(--blue-ink);
}

.ksp-secondary-btn {
    background: transparent;
    color: var(--blue-deep);
}

.ksp-secondary-btn:hover {
    background: var(--blue-deep);
    color: var(--white);
}

/* =========================================================
   TRUSTED PARTNERS MARQUEE
========================================================= */

.trusted-partners {
    width: 100%;
    overflow: hidden;

    padding: 50px 0 30px;

    background: var(--blue-pale);
    border-top: 1px solid var(--blue-line);
    border-bottom: 1px solid var(--blue-line);
}

.trusted-partners-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    padding: 0 clamp(20px, 4vw, 60px);
    margin-bottom: 42px;
}

.trusted-partners-head h2 {
    color: var(--blue-deep);

    font-size: clamp(26px, 3vw, 34px);
    line-height: 1;
}

.trusted-partners-link {
    flex-shrink: 0;

    padding-bottom: 3px;

    border-bottom: 1px solid var(--blue-deep);

    color: var(--blue-deep);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.trusted-partners-link:hover {
    color: var(--blue-ink);
    border-color: var(--blue-ink);
}


/* Marquee window */

.trusted-partners-marquee {
    width: 100%;
    overflow: hidden;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 7%,
        black 93%,
        transparent
    );

    mask-image: linear-gradient(
        to right,
        transparent,
        black 7%,
        black 93%,
        transparent
    );
}


/* Moving row */

.trusted-partners-track {
    width: max-content;

    display: flex;
    align-items: center;
    gap: 10px;

    animation: trustedPartnersScroll 28s linear infinite;
}

.trusted-partners-marquee:hover .trusted-partners-track {
    animation-play-state: paused;
}


/* Logo cards */

.trusted-partner-card {
    width: clamp(230px, 21vw, 320px);
    height: 180px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 22px;
}

.trusted-partner-card img {
    width: 95%;
    max-width: 300px;
    max-height: 105px;

    display: block;
    object-fit: contain;

    transition:
        filter 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}

.trusted-partner-card:hover img {
    filter: none;
    opacity: 1;
    transform: scale(1.05);
}


/* Seamless movement */

@keyframes trustedPartnersScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 11px));
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 720px) {
    .trusted-partners {
        padding: 65px 0 72px;
    }

    .trusted-partners-head {
        align-items: flex-start;
        flex-direction: column;

        margin-bottom: 32px;
    }

    .trusted-partner-card {
        width: 190px;
        height: 125px;

        padding: 22px;
    }

    .trusted-partner-card img {
        max-width: 125px;
        max-height: 58px;
    }

    .trusted-partners-track {
        gap: 16px;

        animation-duration: 22s;
    }

    @keyframes trustedPartnersScroll {
        from {
            transform: translateX(0);
        }

        to {
            transform: translateX(calc(-50% - 8px));
        }
    }
}


/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .trusted-partners-track {
        animation: none;
    }

    .trusted-partners-marquee {
        overflow-x: auto;
    }
}

/* =========================================================
    SECTION HEADINGS
   ========================================================= */

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;

    margin-bottom: 34px;
}

.section-head h2 {
    color: var(--blue-deep);

    font-size: clamp(26px, 3vw, 34px);
    line-height: 1;
}

.section-head > p {
    max-width: 520px;

    color: var(--blue-ink);

    font-size: 15px;
    line-height: 1.7;
}

/* =========================================================
   INTRO
   ========================================================= */

.ksp-intro-section {
    padding-top: 92px;
    padding-bottom: 92px;

    background: var(--white);
}

.ksp-intro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ksp-intro-card {
    min-width: 0;

    padding: 28px;

    border: 1px solid var(--blue-line);
    background: #f9fdff;
}

.ksp-intro-card span {
    display: inline-block;

    margin-bottom: 20px;

    color: var(--blue-deep);

    font-family: var(--font-display);
    font-size: 40px;
    line-height: 1;
}

.ksp-intro-card h3 {
    color: var(--blue-ink);

    font-size: clamp(19px, 1.8vw, 23px);
    line-height: 1.08;
}

.ksp-intro-card p {
    margin-top: 16px;

    color: var(--blue-ink);

    font-size: 15px;
    line-height: 1.7;
}

/* =========================================================
   FEATURED COLLABORATIONS
   ========================================================= */

.ksp-featured-section {
    padding-top: 40px;
    padding-bottom: 40px;

    background: var(--white);
}

.ksp-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ksp-featured-card {
    overflow: hidden;
    border: 1px solid var(--blue-line);
    background: var(--white);
}

.ksp-featured-image {
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--blue-pale);
}

.ksp-featured-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

.ksp-featured-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 28px;

    background:
        linear-gradient(135deg, rgba(19, 117, 163, 0.94), rgba(7, 54, 85, 0.96)),
        var(--blue-deep);
    color: var(--white);
    text-align: center;
}

.ksp-featured-image--placeholder p {
    font-family: var(--font-display);
    font-size: clamp(19px, 1.8vw, 23px);
    line-height: 1;
}

.ksp-featured-image--placeholder span {
    display: block;

    margin-top: 10px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ksp-featured-content {
    padding: 24px 24px 28px;
}

.ksp-card-label {
    margin-bottom: 12px;

    color: var(--blue-deep);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ksp-featured-content h3 {
    color: var(--blue-ink);
    font-family: var(--font-mono);
    font-size: clamp(19px, 1.8vw, 23px);
    line-height: 1.08;
}

.ksp-featured-content p:last-child {
    margin-top: 14px;

    color: var(--blue-ink);

    font-size: 15px;
    line-height: 1.7;
}

/* =========================================================
   CTA
   ========================================================= */

.ksp-cta-section {
    padding-top: 40px;
    padding-bottom: 40px;

    background: var(--blue-pale);
}

.ksp-cta-panel {
    padding: 44px;

    border: 1px solid var(--blue-line);
    background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
    text-align: left;
}

.ksp-cta-panel h2 {
    max-width: 820px;

    color: var(--blue-deep);

    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.02;
}

.ksp-cta-panel > p {
    max-width: 760px;

    margin-top: 18px;

    color: var(--blue-ink);

    font-size: 16px;
    line-height: 1.72;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
    .ksp-hero {
        grid-template-columns: 1fr;
    }

    .ksp-hero-copy {
        padding-right: 0;
    }

    .ksp-hero-media {
        grid-template-columns: 1fr 1fr;
    }

    .ksp-hero-frame--large,
    .ksp-hero-frame--small {
        min-height: 360px;
        align-self: stretch;
    }

    .ksp-intro-grid,
    .ksp-featured-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .ksp-hero {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .ksp-hero-copy h1 {
        font-size: clamp(26px, 3vw, 34px);
    }

    .ksp-hero-media {
        grid-template-columns: 1fr;
    }

    .ksp-hero-frame--large,
    .ksp-hero-frame--small {
        min-height: 280px;
    }

    .ksp-intro-section,
    .ksp-featured-section,
    .ksp-cta-section {
        padding-top: 64px;
        padding-bottom: 72px;
    }

    .ksp-cta-panel {
        padding: 28px 20px;
    }
}
