:root {
    --bs-bespoke-navy: #171b23;
    --bs-bespoke-cream: #f3efe6;
    --bs-bespoke-white: #fffdf8;
    --bs-bespoke-teal: #799ea4;
    --bs-bespoke-amber: #f5a524;
}

body .bs-bespoke-page,
body .bs-bespoke-page * {
    box-sizing: border-box;
}

body .bs-bespoke-page {
    position: relative;
    width: min(1180px, 100%) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: hidden;
    background: var(--bs-bespoke-white);
    color: var(--bs-bespoke-navy);
    box-shadow: 0 0 34px rgba(23, 27, 35, 0.12);
}

body .bs-bespoke-page :where(h1, h2, h3, h4) {
    margin-top: 0;
    color: var(--bs-bespoke-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.12;
}

body .bs-bespoke-page h1 { font-size: clamp(38px, 4.4vw, 62px); }
body .bs-bespoke-page h2 { font-size: clamp(30px, 3vw, 44px); }
body .bs-bespoke-page h3 { font-size: clamp(22px, 2vw, 30px); }
body .bs-bespoke-page h4 { font-size: 18px; }

body .bs-bespoke-page p {
    font-size: 16px;
    line-height: 1.65;
}

body .bs-bespoke-page figure,
body .bs-bespoke-page .wp-block-image {
    margin: 0;
}

body .bs-bespoke-page img {
    display: block;
    width: 100%;
    height: auto;
}

body .bs-bespoke-page > * { margin-block-start: 0; }

/*
 * Kadence can add an extra .wp-block-group__inner-container inside Group
 * blocks. The wrapper must not become a second grid: display: contents makes
 * the real blocks participate in the one intended grid on their parent.
 */
body .bs-bespoke-page .bs-bespoke-hero > .wp-block-group__inner-container,
body .bs-bespoke-page .bs-three-grid > .wp-block-group__inner-container,
body .bs-bespoke-page .bs-materials-section > .wp-block-group__inner-container,
body .bs-bespoke-page .bs-sketch-grid > .wp-block-group__inner-container,
body .bs-bespoke-page .bs-case-section > .wp-block-group__inner-container,
body .bs-bespoke-page .bs-process-grid > .wp-block-group__inner-container,
body .bs-bespoke-page .bs-process-step > .wp-block-group__inner-container,
body .bs-bespoke-page .bs-enquiry-section > .wp-block-group__inner-container,
body .bs-bespoke-page .bs-field-grid > .wp-block-group__inner-container {
    display: contents !important;
}

body .bs-bespoke-page .bs-bespoke-section {
    margin: 0 !important;
    padding: 64px 70px;
}

body .bs-bespoke-page .bs-eyebrow,
body .bs-bespoke-page .bs-small-caps {
    color: var(--bs-bespoke-teal);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
}

body .bs-bespoke-page .bs-amber-button .wp-block-button__link {
    border-radius: 0;
    background: var(--bs-bespoke-amber);
    color: #171b23;
    padding: 15px 27px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

body .bs-bespoke-page .bs-bespoke-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 540px;
    width: 100% !important;
    max-width: none !important;
    height: 540px;
    min-height: 540px;
    margin: 0 !important;
    overflow: hidden;
    isolation: isolate;
}

body .bs-bespoke-page .bs-bespoke-hero-image {
    grid-area: 1 / 1;
    z-index: 0;
    width: 100%;
    height: 100%;
}

body .bs-bespoke-page .bs-bespoke-hero-image img {
    width: 100%;
    height: 540px;
    object-fit: cover;
    object-position: center;
}

body .bs-bespoke-page .bs-bespoke-hero-panel {
    grid-area: 1 / 1;
    z-index: 2;
    align-self: center;
    justify-self: end;
    width: min(430px, calc(100% - 80px));
    max-width: 430px !important;
    margin: 40px;
    padding: 34px 36px 32px;
    background: rgba(255, 253, 248, 0.97);
    box-shadow: 0 16px 34px rgba(23, 27, 35, 0.2);
}

body .bs-bespoke-page .bs-bespoke-hero-panel > *,
body .bs-bespoke-page .bs-bespoke-hero-panel > .wp-block-group__inner-container > * {
    margin-block-start: 14px;
}
body .bs-bespoke-page .bs-bespoke-hero-panel .bs-eyebrow { margin-top: 0; }

body .bs-bespoke-page .bs-bespoke-hero-panel h1 {
    margin-bottom: 0;
    font-size: 36px !important;
    line-height: 1.14;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
}

body .bs-bespoke-page .bs-bespoke-hero-panel p:not(.bs-eyebrow) {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.55;
}

body .bs-bespoke-page .bs-ornament::before,
body .bs-bespoke-page .bs-ornament-left::before {
    content: "—  ◇  —";
    display: block;
    margin: 0 auto 15px;
    color: var(--bs-bespoke-teal);
    font: 15px/1 Georgia, serif;
    letter-spacing: 0.2em;
}

body .bs-bespoke-page .bs-ornament-left::before { margin-left: 0; }

body .bs-bespoke-page .bs-three-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 34px 0 0 !important;
}

body .bs-bespoke-page .bs-three-grid > .wp-block-group,
body .bs-bespoke-page .bs-three-grid > .wp-block-column,
body .bs-bespoke-page .bs-three-grid > .wp-block-group__inner-container > .wp-block-group,
body .bs-bespoke-page .bs-three-grid > .wp-block-group__inner-container > .wp-block-column {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    grid-column: auto !important;
    min-width: 0 !important;
    float: none !important;
}

body .bs-bespoke-page .bs-use-card img {
    width: 100%;
    height: 205px;
    object-fit: cover;
}

body .bs-bespoke-page .bs-use-card h3 { margin: 18px 0 5px; }
body .bs-bespoke-page .bs-use-card p { margin: 0; font-size: 14px; }

body .bs-bespoke-page .bs-use-section { padding-top: 54px !important; }

body .bs-bespoke-page .bs-choice-section { padding-top: 24px; }

body .bs-bespoke-page .bs-choice-card {
    min-height: 330px;
    padding: 34px 25px 28px;
    border: 1px solid #e2ddd2;
    background: var(--bs-bespoke-cream);
}

body .bs-bespoke-page .bs-choice-card-featured {
    border: 2px solid var(--bs-bespoke-teal);
    background: #fbf8f0;
}

body .bs-bespoke-page .bs-choice-icon {
    width: 94px;
    margin: 0 auto 12px;
}

body .bs-bespoke-page .bs-choice-card h3 {
    margin: 0 0 4px;
    font-size: 21px;
    letter-spacing: 0.08em;
}

body .bs-bespoke-page .bs-choice-sub {
    min-height: 52px;
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.3;
}

body .bs-bespoke-page .bs-choice-card > p:last-child { font-size: 14px; }

body .bs-bespoke-page .bs-materials-section {
    display: grid !important;
    grid-template-columns: 0.72fr 1.8fr !important;
    gap: 44px !important;
    align-items: center;
    padding-top: 30px;
}

body .bs-bespoke-page .bs-materials-image img {
    width: 100%;
    box-shadow: 0 8px 18px rgba(23, 27, 35, 0.08);
}

body .bs-bespoke-page .bs-sketch-section { padding-top: 30px; }

body .bs-bespoke-page .bs-sketch-grid {
    display: grid !important;
    grid-template-columns: 2fr 0.8fr !important;
    gap: 48px !important;
    width: 100% !important;
    max-width: none !important;
    align-items: center;
    margin: 30px 0 0 !important;
}

body .bs-bespoke-page .bs-image-overlap {
    position: relative;
    min-height: 310px;
    overflow: visible;
}

body .bs-bespoke-page .bs-sketch-image {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 43%;
    transform: rotate(-2deg);
    box-shadow: 0 9px 20px rgba(23, 27, 35, 0.18);
}

body .bs-bespoke-page .bs-finished-image {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 70%;
    transform: rotate(1.5deg);
    border: 7px solid #fff;
    box-shadow: 0 12px 24px rgba(23, 27, 35, 0.2);
}

body .bs-bespoke-page .bs-sketch-image img,
body .bs-bespoke-page .bs-finished-image img { height: 220px; object-fit: cover; }

body .bs-bespoke-page .bs-case-section {
    display: grid !important;
    grid-template-columns: 1.45fr 0.9fr !important;
    gap: 0;
    align-items: stretch;
    padding-top: 34px;
}

body .bs-bespoke-page .bs-case-images {
    position: relative;
    min-height: 355px;
}

body .bs-bespoke-page .bs-case-main img {
    height: 335px;
    object-fit: cover;
}

body .bs-bespoke-page .bs-case-small {
    position: absolute;
    z-index: 3;
    right: -42px;
    bottom: -8px;
    width: 48%;
    border: 7px solid #fff;
    box-shadow: 0 12px 24px rgba(23, 27, 35, 0.2);
}

body .bs-bespoke-page .bs-case-small img { height: 185px; object-fit: cover; }

body .bs-bespoke-page .bs-case-quote {
    align-self: center;
    min-height: 290px;
    padding: 44px 36px 34px 68px;
    background: var(--bs-bespoke-cream);
}

body .bs-bespoke-page .bs-quote-mark {
    height: 25px;
    margin: 0;
    color: var(--bs-bespoke-teal);
    font: 60px/0.8 Georgia, serif;
}

body .bs-bespoke-page .bs-process-section { padding-top: 24px; }

body .bs-bespoke-page .bs-process-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 30px 0 0 !important;
}

body .bs-bespoke-page .bs-materials-section > *,
body .bs-bespoke-page .bs-materials-section > .wp-block-group__inner-container > *,
body .bs-bespoke-page .bs-sketch-grid > *,
body .bs-bespoke-page .bs-sketch-grid > .wp-block-group__inner-container > *,
body .bs-bespoke-page .bs-case-section > *,
body .bs-bespoke-page .bs-case-section > .wp-block-group__inner-container > *,
body .bs-bespoke-page .bs-process-grid > *,
body .bs-bespoke-page .bs-process-grid > .wp-block-group__inner-container > * {
    grid-column: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-block-start: 0 !important;
    float: none !important;
}

body .bs-bespoke-page .bs-process-step {
    display: grid;
    grid-template-columns: 58px 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: 12px;
    align-items: start;
}

body .bs-bespoke-page .bs-process-step figure {
    grid-row: 1 / span 3;
    width: 55px;
}

body .bs-bespoke-page .bs-step-number {
    margin: 0;
    color: var(--bs-bespoke-teal);
    font-weight: 700;
}

body .bs-bespoke-page .bs-process-step h4,
body .bs-bespoke-page .bs-process-step p { margin: 0; }
body .bs-bespoke-page .bs-process-step p:last-child { font-size: 13px; }

body .bs-bespoke-page .bs-enquiry-section {
    position: relative;
    display: grid !important;
    grid-template-columns: 1fr 1.35fr !important;
    gap: 38px !important;
    align-items: center;
    margin: 0 38px 38px !important;
    padding: 35px 44px 30px 44px;
    overflow: hidden;
    border: 1px solid #e2ddd2;
    background: var(--bs-bespoke-cream);
}

body .bs-bespoke-page .bs-botanical-corner {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 88px;
}

body .bs-bespoke-page .bs-enquiry-copy h2,
body .bs-bespoke-page .bs-enquiry-copy p { margin: 0 0 8px; }

body .bs-bespoke-page .bs-field-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
}

body .bs-bespoke-page .bs-field {
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #d1ccc0;
    background: #fffdf9;
    color: #555;
    font-size: 12px;
    line-height: 1.2;
}

body .bs-bespoke-page .bs-enquiry-fields .wp-block-buttons { margin-top: 8px; }

body .bs-bespoke-page .bs-closing-cover {
    margin: 0 !important;
    padding: 40px 20px;
    width: 100% !important;
    max-width: none !important;
    min-height: 230px !important;
    overflow: hidden;
}

body .bs-bespoke-page .bs-closing-cover .wp-block-cover__image-background {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

body .bs-bespoke-page .bs-closing-cover .wp-block-cover__inner-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    position: relative;
    z-index: 2;
}

body .bs-bespoke-page .bs-closing-cover h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 3.5vw, 46px);
    line-height: 1.12;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

body .bs-bespoke-page .bs-closing-cover .bs-small-caps {
    margin: 14px 0 0;
    color: #fff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
    body .bs-bespoke-page .bs-bespoke-section { padding: 52px 38px; }
    body .bs-bespoke-page .bs-case-section { grid-template-columns: 1fr !important; }
    body .bs-bespoke-page .bs-case-quote { padding-left: 38px; }
    body .bs-bespoke-page .bs-process-grid { grid-template-columns: 1fr 1fr !important; }
    body .bs-bespoke-page .bs-enquiry-section { grid-template-columns: 1fr !important; margin: 0 24px 24px !important; }
}

@media (max-width: 767px) {
    body .bs-bespoke-page .bs-bespoke-section { padding: 44px 24px; }
    body .bs-bespoke-page h1 { font-size: 38px; }
    body .bs-bespoke-page h2 { font-size: 31px; }
    body .bs-bespoke-page .bs-bespoke-hero {
        grid-template-rows: 650px;
        height: 650px;
        min-height: 650px;
    }
    body .bs-bespoke-page .bs-bespoke-hero-image img { height: 650px; }
    body .bs-bespoke-page .bs-bespoke-hero-panel {
        align-self: end;
        justify-self: center;
        width: calc(100% - 40px);
        margin: 20px;
        padding: 35px 24px 32px;
    }
    body .bs-bespoke-page .bs-bespoke-hero-panel h1 { font-size: 34px !important; }
    body .bs-bespoke-page .bs-three-grid,
    body .bs-bespoke-page .bs-materials-section,
    body .bs-bespoke-page .bs-sketch-grid,
    body .bs-bespoke-page .bs-process-grid,
    body .bs-bespoke-page .bs-field-grid { grid-template-columns: 1fr !important; }
    body .bs-bespoke-page .bs-choice-card { min-height: 0; }
    body .bs-bespoke-page .bs-materials-section { gap: 24px; }
    body .bs-bespoke-page .bs-image-overlap { min-height: 300px; }
    body .bs-bespoke-page .bs-sketch-copy { margin-top: 20px; }
    body .bs-bespoke-page .bs-case-small { right: -4px; width: 60%; }
    body .bs-bespoke-page .bs-case-quote { padding: 38px 24px; }
    body .bs-bespoke-page .bs-enquiry-section {
        margin: 0 16px 16px !important;
        padding: 38px 22px 30px 22px;
    }
}

/* Working enquiry form (shortcode: black_sheep_bespoke_form) */
body .bs-bespoke-page .bs-enquiry-form { margin: 0; }
body .bs-bespoke-page .bs-enquiry-form input.bs-field {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
    font-family: inherit;
    color: #171b23;
}
body .bs-bespoke-page .bs-enquiry-form input.bs-field::placeholder { color: #555; opacity: 1; }
body .bs-bespoke-page .bs-enquiry-form input.bs-field:focus { outline: 2px solid var(--bs-bespoke-teal); outline-offset: 1px; }
body .bs-bespoke-page .bs-enquiry-submit {
    display: block;
    width: 100%;
    margin-top: 8px;
    border: 0;
    border-radius: 0;
    background: var(--bs-bespoke-amber);
    color: #171b23;
    padding: 15px 27px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.2;
    cursor: pointer;
}
body .bs-bespoke-page .bs-enquiry-submit:hover,
body .bs-bespoke-page .bs-enquiry-submit:focus { background: #e0941a; color: #171b23; }
body .bs-bespoke-page .bs-enquiry-note { margin: 8px 0 0; font-size: 11px; line-height: 1.4; color: #555; }
body .bs-bespoke-page .bs-enquiry-message { margin: 0 0 10px; padding: 9px 11px; border-left: 3px solid var(--bs-bespoke-teal); background: #fffdf9; font-size: 13px; }
body .bs-bespoke-page .bs-sr,
body .bs-bespoke-page .bs-enquiry-hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
