/*
Theme Name: Source Jaipur
Description: Custom WordPress theme for Source Jaipur.
Version: 1.14.1
Text Domain: source-jaipur
*/

@font-face {
    font-family: "Bodoni Moda";
    src: url("assets/bodoni-moda.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: Lato;
    src: url("assets/lato-regular.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: Lato;
    src: url("assets/lato-bold.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 700;
}

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

body {
    margin: 0;
    font-family: Lato, system-ui, sans-serif;
    font-size: .875rem;
    line-height: 1.5;
    color: #252320;
    background: #f8f5ef;
}

.sj-page-content {
    width: min(100% - 3rem, 72rem);
    margin: 2rem auto;
}

.sj-page-content a {
    color: inherit;
}

.sj-skip {
    position: fixed;
    inset-block-start: var(--wp-admin--admin-bar--height, 0px);
    inset-inline-start: 1rem;
    z-index: 100000;
    padding: .65rem 1rem;
    color: #252320;
    background: #f4ead9;
    transform: translateY(-200%);
}

.sj-skip:focus {
    transform: none;
}

.sj-landing {
    --ivory: #f4ead9;
    --charcoal: #252320;
    --gutter: clamp(1.5rem, 4.5vw, 6rem);
    --header-top: clamp(1.5rem, 4vw, 2.3rem);
    --header-space: calc(var(--header-top) + clamp(2.9rem, 4.8vw, 5rem));
    position: relative;
}

.sj-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: center;
    min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
    padding: var(--header-space) var(--gutter);
    overflow-wrap: anywhere;
    color: var(--ivory);
    background: #464442;
}

.sj-hero-image,
.sj-hero-video,
.sj-hero::before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sj-hero-image {
    z-index: -2;
    object-fit: cover;
    object-position: left center;
}

.sj-hero-video {
    z-index: -2;
    object-fit: cover;
    object-position: 58% center;
    opacity: 0;
}

.sj-hero-video-visible .sj-hero-video {
    opacity: 1;
}

.sj-hero::before {
    z-index: -1;
    content: "";
    background: linear-gradient(90deg, rgb(16 14 13 / 28%) 0%, rgb(16 14 13 / 18%) 39%, transparent 67%);
}

.sj-hero-video-visible.sj-hero::before {
    background: linear-gradient(90deg, rgb(16 14 13 / 62%), rgb(16 14 13 / 44%) 42%, rgb(16 14 13 / 7%)),
        linear-gradient(180deg, rgb(16 14 13 / 48%), transparent 38%);
}

@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
    .sj-hero-video {
        object-position: 69% center;
    }

    .sj-hero-video-visible.sj-hero::before {
        background: linear-gradient(180deg, rgb(16 14 13 / 52%), rgb(16 14 13 / 54%) 55%, rgb(16 14 13 / 12%));
    }
}

.sj-hero-header {
    position: absolute;
    z-index: 1;
    inset: 0 var(--gutter) auto;
    color: var(--ivory);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: var(--header-top);
}

.sj-hero-logo {
    display: block;
    flex: 0 1 clamp(9rem, 15vw, 15.625rem);
    max-width: clamp(9rem, 15vw, 15.625rem);
}

.sj-hero-logo-image {
    display: block;
    width: 100%;
    height: auto;
}

.sj-hero-logo-default {
    filter: brightness(0) saturate(100%) invert(94%) sepia(16%) saturate(230%) hue-rotate(336deg) brightness(101%);
}

.sj-hero-logo-sticky,
.sj-hero-header-fixed .sj-hero-logo-overlay {
    display: none;
}

.sj-hero-header-fixed {
    position: fixed;
    z-index: 20;
    inset: var(--wp-admin--admin-bar--height, 0px) 0 auto;
    min-height: var(--sj-fixed-header-height, 4.5rem);
    align-items: center;
    flex-wrap: nowrap;
    padding: var(--sj-fixed-header-padding) var(--gutter);
    color: #252320;
    background: #fcfbf9;
    box-shadow: 0 .25rem 1rem rgb(37 35 32 / 9%);
}

.sj-hero-header-fixed .sj-hero-logo {
    flex-basis: clamp(9rem, 12.5vw, 11rem);
    max-width: clamp(9rem, 12.5vw, 11rem);
}

.sj-hero-header-fixed .sj-hero-logo-sticky {
    display: block;
    max-height: 3.35rem;
    object-fit: contain;
    object-position: left center;
}

.sj-hero-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .25rem clamp(1.25rem, 3.45vw, 3.6rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.sj-hero-nav a,
.sj-hero-action {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
}

.sj-hero-nav a {
    font-size: clamp(.875rem, .98vw, 1rem);
}

.sj-hero-nav a:hover,
.sj-hero-action-secondary:hover {
    text-decoration: underline;
    text-underline-offset: .28em;
}

.sj-hero :focus-visible,
.sj-hero-header :focus-visible {
    outline: 2px solid var(--ivory);
    outline-offset: 5px;
}

.sj-hero-header-fixed :focus-visible {
    outline-color: #00556f;
}

.sj-menu-toggle {
    display: none;
}

.sj-hero-copy {
    width: min(44vw, 46rem);
}

.sj-hero-copy h1 {
    margin: 0;
    font-family: "Bodoni Moda", Georgia, serif;
    font-size: clamp(2.05rem, 3.5vw, 4.25rem);
    line-height: 1.01;
    font-weight: 400;
    font-optical-sizing: none;
    font-variation-settings: "opsz" 9;
    letter-spacing: -.042em;
    white-space: pre-line;
}

.sj-hero-copy p {
    width: min(100%, 36rem);
    margin: clamp(1.2rem, 2.35vw, 2.35rem) 0 0;
    font-size: clamp(.875rem, 1.05vw, 1.125rem);
    line-height: 1.33;
    white-space: pre-line;
}

.sj-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem clamp(1.1rem, 1.7vw, 1.8rem);
}

.sj-hero-actions:not(:empty) {
    margin-top: clamp(1.25rem, 2.6vw, 2.8rem);
}

.sj-hero-action {
    gap: .45em;
    font-size: clamp(.875rem, .96vw, .975rem);
    line-height: 1.25;
}

.sj-hero-action-primary {
    justify-content: center;
    padding: .75em 1.35em;
    border-radius: 100vw;
    color: var(--charcoal);
    background: var(--ivory);
    font-weight: 700;
    text-align: center;
    transition: background-color 160ms ease;
}

.sj-hero-action-primary:hover {
    background: #fff9ef;
}

@media (max-width: 1000px) and (min-width: 761px) {
    .sj-hero-copy {
        width: min(53vw, 40rem);
    }

    .sj-hero::before {
        background: linear-gradient(90deg, rgb(16 14 13 / 45%), rgb(16 14 13 / 30%) 45%, transparent 78%);
    }
}

@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
    .sj-hero-image {
        object-position: 62% bottom;
    }

    .sj-hero::before {
        background: linear-gradient(180deg, rgb(16 14 13 / 32%), rgb(16 14 13 / 48%) 38%, transparent 70%);
    }

    .sj-hero-copy {
        width: min(75vw, 36rem);
    }
}

@media (max-width: 760px) {
    .sj-landing {
        --header-top: 1.35rem;
        --header-space: calc(var(--header-top) + 48px);
    }

    .sj-landing:has(.sj-menu-toggle[hidden]) {
        --header-space: calc(var(--header-top) + 136px);
    }

    .sj-hero-image {
        object-position: 64% bottom;
    }

    .sj-hero::before {
        background: linear-gradient(180deg, rgb(16 14 13 / 45%) 0%, rgb(16 14 13 / 68%) 50%, rgb(16 14 13 / 8%) 79%);
    }

    .sj-hero-header {
        align-items: center;
        flex-wrap: wrap;
    }

    .sj-menu-toggle:not([hidden]) {
        display: block;
        min-width: 44px;
        min-height: 44px;
        padding: .45rem .85rem;
        color: inherit;
        background: transparent;
        border: 1px solid currentColor;
        border-radius: 100vw;
        font: inherit;
        cursor: pointer;
    }

    .sj-menu-toggle:not([hidden]) + .sj-hero-nav {
        position: absolute;
        inset-block-start: calc(100% + .75rem);
        inset-inline: 0;
        padding: .75rem 1.1rem;
        border-radius: .625rem;
        background: #282624;
        box-shadow: 0 .7rem 1.8rem rgb(0 0 0 / 21%);
    }

    .sj-menu-toggle[aria-expanded="false"]:not([hidden]) + .sj-hero-nav {
        display: none;
    }

    .sj-hero-header-fixed .sj-menu-toggle:not([hidden]) + .sj-hero-nav {
        inset-block-start: calc(100% + .45rem);
        inset-inline: var(--gutter);
        max-height: calc(100dvh - var(--sj-fixed-header-height) - var(--wp-admin--admin-bar--height, 0px) - 1rem);
        overflow-y: auto;
        background: #fcfbf9;
        border: 1px solid #e3dbd0;
    }

    .sj-hero-nav ul {
        justify-content: flex-start;
    }

    .sj-menu-toggle:not([hidden]) + .sj-hero-nav ul {
        display: block;
    }

    .sj-hero-copy {
        width: min(100%, 32rem);
    }

    .sj-hero-copy h1 {
        font-size: clamp(1.6rem, 7vw, 3.2rem);
    }

    .sj-hero-copy p {
        font-size: clamp(.71875rem, 3.08vw, .9rem);
        letter-spacing: -.018em;
    }
}

@media (max-width: 600px) {
    .sj-hero-header-fixed {
        inset-block-start: 0;
    }
}

@media (min-width: 761px) and (max-height: 540px) and (orientation: landscape) {
    .sj-hero-image {
        object-position: left top;
    }

    .sj-hero::before {
        background: linear-gradient(90deg, rgb(16 14 13 / 55%) 0%, rgb(16 14 13 / 50%) 48%, transparent 79%);
    }

    .sj-hero-copy h1 {
        font-size: clamp(1.6rem, 3.3vw, 2.25rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sj-hero-action-primary {
        transition: none;
    }
}

html {
    scroll-behavior: smooth;
}

html:has(.sj-hero-header) {
    --sj-fixed-header-padding: clamp(.9rem, 1.2vw, 1.1rem);
    --sj-fixed-header-height: calc(3.35rem + 2 * var(--sj-fixed-header-padding));
    scroll-padding-top: var(--sj-fixed-header-height);
}

.sj-section {
    scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + .5rem);
    padding: clamp(4.25rem, 8.5vw, 8rem) 0;
    overflow-wrap: anywhere;
}

.sj-container {
    width: min(100% - clamp(3rem, 9vw, 12rem), 93rem);
    margin-inline: auto;
}

.sj-logo-strip {
    --logo-gap: clamp(.75rem, 1.35vw, 1.5rem);
    position: relative;
    padding-block: .25rem 1rem;
    background: #fcfbf9;
}

.sj-logo-window {
    container-type: inline-size;
    overflow: hidden;
}

.sj-logo-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--logo-gap);
    margin: 0;
    padding: 1rem var(--logo-gap);
    list-style: none;
}

.sj-logo-list[aria-hidden="true"] {
    display: none;
}

.sj-logo-list li {
    display: grid;
    place-items: center;
    flex: 0 0 clamp(8rem, 13.5vw, 16rem);
    height: clamp(4.25rem, 5.4vw, 6.25rem);
    padding: .75rem 1rem;
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 .4rem 1.35rem rgb(37 35 32 / 5%);
}

.sj-logo-list img {
    width: 100%;
    height: 100%;
    max-width: 10.5rem;
    max-height: 3.25rem;
    object-fit: contain;
    filter: grayscale(1);
}

.sj-logo-placeholder {
    color: #625c55;
    font-size: clamp(.9375rem, 1.2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sj-logo-list li:nth-child(2n) .sj-logo-placeholder {
    font-family: "Bodoni Moda", Georgia, serif;
    font-optical-sizing: none;
    font-variation-settings: "opsz" 9;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.sj-logo-toggle {
    display: block;
    margin-inline: auto clamp(1rem, 4vw, 4rem);
    padding: .25rem .5rem;
    border: 0;
    background: transparent;
    color: #625c55;
    font: inherit;
    font-size: .8rem;
    cursor: pointer;
}

.sj-logo-toggle[hidden] {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    .sj-logo-strip-animated .sj-logo-window {
        mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    }

    .sj-logo-strip-animated .sj-logo-track {
        display: flex;
        width: max-content;
        animation: sj-logo-scroll 32s linear infinite;
    }

    .sj-logo-strip-animated .sj-logo-list {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-around;
        min-width: 100cqw;
        padding-inline: calc(var(--logo-gap) / 2);
    }

    .sj-logo-strip-paused .sj-logo-track {
        animation-play-state: paused;
    }

    @keyframes sj-logo-scroll {
        to { transform: translateX(-50%); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .sj-logo-toggle {
        display: none;
    }
}

.sj-section h2,
.sj-section h3,
.sj-footer-name {
    font-family: "Bodoni Moda", Georgia, serif;
    font-weight: 400;
    font-optical-sizing: none;
    font-variation-settings: "opsz" 9;
    letter-spacing: -.035em;
}

.sj-section h2 {
    font-size: clamp(2.05rem, 3.75vw, 4.2rem);
    line-height: .99;
    margin: 0;
}

.sj-section h3 {
    line-height: 1.08;
}

.sj-section-heading p {
    max-width: 34rem;
    margin: 1.35rem 0 0;
    font-size: clamp(.875rem, 1.02vw, .975rem);
    line-height: 1.63;
}

.sj-products {
    background: #f8f5ef;
}

.sj-products .sj-section-heading {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: end;
    gap: 1rem 2rem;
    margin-bottom: clamp(2.25rem, 4.6vw, 4.75rem);
}

.sj-products .sj-section-heading p {
    justify-self: end;
    width: min(100%, 26rem);
    margin-top: 0;
    color: #554d45;
}

.sj-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3.75rem) clamp(.9rem, 1.8vw, 1.8rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.sj-product {
    min-width: 0;
}

.sj-product-image {
    aspect-ratio: 4 / 4.6;
    background: #e2d9cc;
    overflow: hidden;
}

.sj-product-image img,
.sj-about-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sj-product h3 {
    margin: .8rem 0 .4rem;
    font-size: clamp(1.025rem, 1.75vw, 1.6rem);
}

.sj-product p {
    max-width: 28ch;
    margin: 0;
    color: #594f45;
    font-size: .875rem;
    line-height: 1.52;
}

.sj-process {
    background: #292620;
    color: #f6eee1;
}

.sj-process-layout,
.sj-contact-layout,
.sj-about-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(2.25rem, 7vw, 8rem);
}

.sj-process .sj-section-heading p {
    color: #e5d7c4;
}

.sj-process-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
    border-top: 1px solid #807365;
}

.sj-process-list li {
    display: grid;
    grid-template-columns: 2.8rem minmax(0, 1fr);
    gap: .85rem;
    padding: 1.1rem 0 1.2rem;
    border-bottom: 1px solid #807365;
    counter-increment: step;
}

.sj-process-list li::before {
    content: counter(step, decimal-leading-zero);
    padding-top: .1em;
    color: #e5d7c4;
    font-variant-numeric: tabular-nums;
    font-size: .9rem;
}

.sj-process-list h3 {
    font-size: clamp(1.1rem, 1.7vw, 1.65rem);
    margin: 0 0 .5rem;
}

.sj-process-list p {
    max-width: 52ch;
    color: #e5d7c4;
    margin: 0;
}

.sj-counters {
    padding-block: clamp(3rem, 6vw, 6rem);
    background: #fcfbf9;
}

.sj-counters h2 {
    margin: 0 0 clamp(1.5rem, 3.4vw, 3rem);
    color: #62574c;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.35;
    text-transform: uppercase;
}

.sj-counter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.4rem, 3.5vw, 4rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.sj-counter-grid li {
    padding-top: 1rem;
    border-top: 1px solid #d9cfc3;
}

.sj-counter-value {
    display: inline-grid;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    font-variant-numeric: lining-nums tabular-nums;
    font-weight: 700;
    line-height: 1;
}

.sj-counter-value > span {
    grid-area: 1 / 1;
}

.sj-counter-reels {
    display: flex;
}

.sj-counter-digit {
    display: block;
    height: 1em;
    overflow: hidden;
}

.sj-counter-digit span {
    display: block;
}

.sj-counter-rolling .sj-counter-final {
    opacity: 0;
}

.sj-counter-grid h3 {
    margin: .65rem 0 .4rem;
    font-family: inherit;
    font-size: clamp(.9rem, 1.08vw, 1rem);
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.25;
}

.sj-counter-grid p {
    max-width: 32ch;
    margin: 0;
    color: #594f45;
    font-size: .875rem;
}

@media (max-width: 900px) {
    .sj-counter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .sj-counter-reels {
        display: none;
    }

    .sj-counter-rolling .sj-counter-final {
        opacity: 1;
    }
}

.sj-about {
    background: #eae2d7;
}

.sj-about-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
}

.sj-about-image {
    aspect-ratio: 5 / 4;
    background: #d8cdbd;
    overflow: hidden;
}

.sj-about-image img {
    object-position: center 30%;
}

.sj-strengths {
    background: #f4efe7;
}

.sj-strengths-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.6rem, 3.7vw, 3.2rem) clamp(1.3rem, 3.2vw, 3rem);
    margin: clamp(1.8rem, 3.5vw, 3.5rem) 0 0;
    padding: 0;
    list-style: none;
}

.sj-strengths-grid li {
    padding-top: .9rem;
    border-top: 1px solid #d9cfc3;
}

.sj-strengths-grid .sj-strength-icon {
    display: inline-grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: .5rem;
    color: #59473b;
    background: #fcfbf9;
}

.sj-strengths-grid h3 {
    margin: .75rem 0 .4rem;
    font-family: inherit;
    font-size: clamp(.98rem, 1.2vw, 1.15rem);
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.25;
}

.sj-strengths-grid p {
    max-width: 35ch;
    margin: 0;
    color: #594f45;
}

@media (max-width: 1000px) {
    .sj-strengths-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
    .sj-strengths-grid { grid-template-columns: 1fr; }
}

.sj-faq {
    background: #fcfbf9;
}

.sj-faq .sj-section-heading {
    text-align: center;
}

.sj-faq .sj-section-heading h2 {
    font-size: clamp(1.85rem, 3.5vw, 3.6rem);
}

.sj-faq .sj-section-heading p {
    margin-inline: auto;
}

.sj-faq-list {
    display: grid;
    gap: .6rem;
    max-width: 67.5rem;
    margin: clamp(2rem, 4vw, 3.25rem) auto 0;
}

.sj-faq-list details {
    --faq-inset: clamp(1rem, 3vw, 2.5rem);
    background: #eeebe5;
    border-radius: .75rem;
}

.sj-faq-list summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: clamp(1rem, 2.3vw, 1.9rem) var(--faq-inset);
    font-size: clamp(.9rem, 1.08vw, 1rem);
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
}

.sj-faq-list summary::-webkit-details-marker {
    display: none;
}

.sj-faq-list summary:focus-visible {
    outline: 2px solid #6f513b;
    outline-offset: -3px;
    border-radius: .75rem;
}

.sj-faq-list summary span {
    display: grid;
    place-items: center;
    width: clamp(2rem, 3.2vw, 2.65rem);
    aspect-ratio: 1;
    background: #fcfbf9;
    border-radius: 50%;
    color: #6f513b;
    font-weight: 400;
}

.sj-faq-list details[open] summary span {
    transform: rotate(180deg);
}

.sj-faq-answer {
    max-width: 53rem;
    padding: 0 var(--faq-inset) clamp(1rem, 2.3vw, 1.9rem);
    color: #514b43;
    font-size: clamp(.875rem, .98vw, .975rem);
}

.sj-faq-answer p {
    margin: 0;
}

.sj-faq-answer p + p {
    margin-top: .8em;
}

.sj-contact {
    background: #f9f5ed;
}

.sj-address {
    display: grid;
    justify-items: start;
    gap: .35rem;
    margin-top: 2rem;
    font-style: normal;
    line-height: 1.6;
}

.sj-address p {
    margin: 0 0 .45rem;
}

.sj-address a,
.sj-footer a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: .22em;
}

.sj-enquiry {
    min-width: 0;
    scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 1rem);
}

.sj-product-field-label {
    display: flex;
    align-items: baseline;
    gap: .55rem;
    margin-bottom: .45rem;
    font-weight: 700;
}

.sj-product-field-label span {
    color: #62574c;
    font-size: .78rem;
    font-weight: 400;
}

.sj-product-picker {
    border: 1px solid #9c8d7c;
    border-radius: .65rem;
    background: #fcfbf9;
}

.sj-product-picker summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 48px;
    padding: .55rem .9rem;
    cursor: pointer;
    list-style: none;
}

.sj-product-picker summary::-webkit-details-marker { display: none; }
.sj-product-picker[open] summary > span:last-child { transform: rotate(180deg); }

.sj-product-picker-panel {
    padding: .75rem;
    border-top: 1px solid #e3dbd0;
}

.sj-product-search {
    width: 100%;
    padding: .65rem .75rem;
    border: 1px solid #c4b7a9;
    border-radius: .4rem;
    background: #fff;
    color: inherit;
    font: inherit;
    font-size: 1rem;
}

.sj-product-options {
    display: grid;
    max-height: min(16rem, 45vh);
    min-inline-size: 0;
    overflow-y: auto;
    margin: 0;
    padding: .35rem 0 0;
    border: 0;
}

.sj-product-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
    min-height: 46px;
    padding: .35rem .5rem;
    border-radius: .35rem;
    cursor: pointer;
}

.sj-product-option:hover,
.sj-product-option:has(:checked) { background: #eee7dd; }
.sj-product-option[hidden] { display: none; }
.sj-product-option input { accent-color: #68513d; }
.sj-product-option small { display: block; color: #62574c; }
.sj-product-empty { margin: .65rem .25rem 0; }

.sj-selected-products {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.sj-selected-products:not(:empty) { margin-top: .55rem; }

.sj-product-chip {
    padding: .35rem .65rem;
    border: 1px solid #d5c9ba;
    border-radius: 100vw;
    color: #45392f;
    background: #eee7dd;
    font: inherit;
    cursor: pointer;
}

.sj-enquiry-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
}

@media (min-width: 1100px) {
    .sj-enquiry-fields {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sj-form-field label {
    display: block;
    margin-bottom: .45rem;
    font-weight: 700;
}

.sj-form-field input,
.sj-form-field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: .7rem .85rem;
    border: 1px solid #9c8d7c;
    border-radius: 0;
    background: transparent;
    color: #252320;
    font: inherit;
    font-size: 1rem;
}

.sj-form-field textarea {
    resize: vertical;
}

.sj-form-wide {
    grid-column: 1 / -1;
}

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

.sj-send-button {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    min-height: 48px;
    margin-top: 1.3rem;
    padding: .7rem 1.3rem;
    border: 0;
    border-radius: 100vw;
    background: #292620;
    color: #fff9ef;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.sj-send-button:hover {
    background: #4a4036;
}

.sj-send-button:disabled {
    opacity: .65;
    cursor: wait;
}

.sj-form-status {
    margin: .75rem 0 0;
}

.sj-form-status:empty {
    margin: 0;
}

.sj-form-status[data-status="sent"] {
    color: #365039;
}

.sj-form-status:is([data-status="error"], [data-status="invalid"], [data-status="expired"], [data-status="wait"]) {
    color: #762d26;
}

.sj-section :focus-visible,
.sj-footer :focus-visible {
    outline: 2px solid #765a3e;
    outline-offset: 3px;
}

.sj-footer {
    background: #292620;
    padding: clamp(2.75rem, 5vw, 4.5rem) 0 1.5rem;
    color: #f4ead9;
    overflow-wrap: anywhere;
}

.sj-footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem 2rem;
    align-items: start;
}

.sj-footer-name {
    width: fit-content;
    font-size: clamp(1.5rem, 2.7vw, 2.45rem);
    line-height: 1.02;
    text-decoration: none;
}

.sj-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sj-footer li {
    margin-bottom: .45rem;
}

.sj-footer-copyright {
    margin: 2rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #75685b;
    font-size: .88rem;
}

@media (max-width: 1000px) {
    .sj-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .sj-products .sj-section-heading,
    .sj-process-layout,
    .sj-contact-layout,
    .sj-about-layout {
        grid-template-columns: 1fr;
    }

    .sj-products .sj-section-heading p {
        justify-self: start;
    }

    .sj-about-image {
        grid-row: 2;
    }

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

    .sj-footer-name {
        grid-column: 1 / -1;
    }
}

@media (max-width: 440px) {
    .sj-product-grid,
    .sj-enquiry-fields,
    .sj-footer-main {
        grid-template-columns: 1fr;
    }

    .sj-product-image {
        aspect-ratio: 5 / 5.3;
    }
}

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

.sj-category-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.sj-category-action {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: .85rem;
    font-size: .9rem;
    font-weight: 700;
}

.sj-category-link:hover .sj-category-action,
.sj-category-link:focus-visible .sj-category-action {
    text-decoration: underline;
    text-underline-offset: .22em;
}

.sj-collection {
    padding-block: clamp(3.5rem, 6.2vw, 6.25rem);
    background: #f8f5ef;
}

.sj-collection + .sj-collection {
    border-top: 1px solid #ded4c7;
}

.sj-collection:nth-of-type(even) {
    background: #f3ede4;
}

.sj-collection:focus {
    outline: none;
}

.sj-collection:focus-visible .sj-section-heading h2 {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

.sj-collection-header {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: .9rem 1.5rem;
    margin-bottom: clamp(1.6rem, 3.5vw, 3rem);
}

.sj-collection-header .sj-section-heading {
    flex: 1 1 16rem;
}

.sj-collection-header h2 {
    font-size: clamp(1.7rem, 3vw, 3.35rem);
}

.sj-collection-controls:not([hidden]) {
    display: flex;
    gap: .4rem;
}

.sj-collection-controls button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #827465;
    border-radius: 50%;
    background: transparent;
    color: #252320;
    font: inherit;
    font-size: 1.2rem;
    cursor: pointer;
}

.sj-collection-controls button:hover:not([aria-disabled="true"]) {
    background: #292620;
    color: #fff9ef;
}

.sj-collection-controls button[aria-disabled="true"] {
    opacity: .4;
    cursor: default;
}

.sj-collection-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: clamp(.8rem, 1.5vw, 1.65rem);
    margin: 0;
    padding: 0 0 .65rem;
    list-style: none;
}

.sj-collection-item {
    min-width: 0;
    scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 1rem);
}

.sj-collection-item:target h3 {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.sj-collection-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #ebe4da;
}

.sj-collection-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#collection-furniture .sj-collection-image {
    aspect-ratio: 4 / 3;
}

.sj-collection-item h3 {
    margin: .8rem 0 0;
    font-size: clamp(1rem, 1.35vw, 1.35rem);
}

.sj-product-enquiry {
    display: block;
    color: inherit;
    text-decoration: none;
}

.sj-product-enquiry-text {
    display: inline-block;
    margin-top: .4rem;
    color: #625044;
    text-underline-offset: .25em;
}

.sj-product-enquiry:hover .sj-product-enquiry-text,
.sj-product-enquiry:focus-visible .sj-product-enquiry-text { text-decoration: underline; }

@media (max-width: 1099px) {
    .sj-collection-row {
        grid-auto-columns: 30%;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: #a69785 transparent;
        scroll-snap-type: x proximity;
        scroll-behavior: smooth;
    }

    .sj-collection-item {
        scroll-snap-align: start;
    }
}

@media (max-width: 760px) {
    .sj-collection-row {
        grid-auto-columns: 45%;
    }
}

@media (max-width: 440px) {
    .sj-collection-row {
        grid-auto-columns: 62%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sj-collection-row {
        scroll-behavior: auto;
    }
}
