
.um-pr,
.um-pr * {
    box-sizing: border-box;
}

.um-pr {
    --um-pr-cream: #fbf8f2;
    --um-pr-paper: #fffdf9;
    --um-pr-ink: #242424;
    --um-pr-text: #55534f;
    --um-pr-gold: #c89245;
    --um-pr-gold-soft: #e1bb7d;
    --um-pr-line: rgba(175, 132, 72, .24);
    width: 100%;
    background: transparent;
    padding: clamp(64px, 6vw, 104px) 24px clamp(72px, 6vw, 112px);
    color: var(--um-pr-ink);
}

.um-pr__inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.um-pr__header {
    max-width: 980px;
    margin: 0 auto clamp(36px, 3vw, 52px);
    text-align: center;
}

.um-pr__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 14px;
}

.um-pr__eyebrow span {
    display: block;
    width: clamp(58px, 8vw, 118px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--um-pr-gold));
}

.um-pr__eyebrow span:last-child {
    background: linear-gradient(90deg, var(--um-pr-gold), transparent);
}

.um-pr__eyebrow p {
    margin: 0;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: .22em;
    font-weight: 700;
    color: #a8732d;
}

.um-pr__header h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 4vw, 68px);
    line-height: .98;
    letter-spacing: -.035em;
    font-weight: 700;
    color: #1d1d1d;
}

.um-pr__intro {
    max-width: 870px;
    margin: 18px auto 0;
    font-size: clamp(16px, 1.25vw, 20px);
    line-height: 1.6;
    color: #55585c;
}

.um-pr__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 1.6vw, 28px);
    align-items: stretch;
}

.um-pr__card {
    position: relative;
    min-width: 0;
    isolation: isolate;
    border: 1px solid rgba(196, 139, 62, .82);
    border-radius: 14px;
    background: var(--um-pr-paper);
    box-shadow:
        0 14px 30px rgba(66, 49, 30, .08),
        0 3px 8px rgba(66, 49, 30, .04);
    overflow: hidden;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.um-pr__card:hover {
    transform: translateY(-4px);
    border-color: var(--um-pr-gold);
    box-shadow:
        0 20px 38px rgba(66, 49, 30, .12),
        0 4px 12px rgba(66, 49, 30, .05);
}

.um-pr__media {
    position: relative;
    aspect-ratio: 1.55 / 1;
    overflow: hidden;
    background: #eee8df;
}

.um-pr__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2,.65,.3,1);
}

.um-pr__card:hover .um-pr__image {
    transform: scale(1.035);
}

.um-pr__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: #8a8378;
    background: linear-gradient(135deg, #eee7dc, #f7f2ea);
}

.um-pr__panel {
    position: relative;
    z-index: 2;
    margin-top: -30px;
    width: calc(100% - 18px);
    margin-left: auto;
    margin-right: auto;
    min-height: 246px;
    padding: 26px 26px 22px;
    background: rgba(255, 253, 249, .985);
    border: 1px solid rgba(196, 139, 62, .18);
    border-radius: 12px 12px 10px 10px;
    box-shadow: 0 -8px 24px rgba(39, 29, 19, .06);
}

.um-pr__panel::before,
.um-pr__panel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 18px;
    height: 18px;
    border-top: 1px solid rgba(196, 139, 62, .45);
}

.um-pr__panel::before {
    left: 0;
    border-left: 1px solid rgba(196, 139, 62, .45);
    border-radius: 10px 0 0 0;
}

.um-pr__panel::after {
    right: 0;
    border-right: 1px solid rgba(196, 139, 62, .45);
    border-radius: 0 10px 0 0;
}

.um-pr__panel h3 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 1.65vw, 30px);
    line-height: 1.12;
    letter-spacing: -.02em;
    color: #212121;
}

.um-pr__links {
    display: block;
    border-top: 1px solid var(--um-pr-line);
}

.um-pr__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    padding: 10px 0;
    border-bottom: 1px solid var(--um-pr-line);
    color: #4e4f52;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.35;
    transition: color .18s ease, padding-left .18s ease;
}

.um-pr__links a:hover,
.um-pr__links a:focus-visible {
    color: #8f5e1c;
    padding-left: 4px;
}

.um-pr__links a:focus-visible {
    outline: 2px solid var(--um-pr-gold);
    outline-offset: 3px;
    border-radius: 3px;
}

.um-pr__arrow {
    flex: 0 0 auto;
    color: #c58525;
    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 1;
    font-weight: 300;
    transform: translateY(-1px);
    transition: transform .18s ease;
}

.um-pr__links a:hover .um-pr__arrow {
    transform: translate(3px, -1px);
}

@media (max-width: 1180px) {
    .um-pr__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
    }

    .um-pr__media {
        aspect-ratio: 1.8 / 1;
    }

    .um-pr__panel {
        min-height: 0;
    }
}

@media (max-width: 700px) {
    .um-pr {
        padding: 56px 16px 68px;
    }

    .um-pr__header {
        margin-bottom: 32px;
    }

    .um-pr__eyebrow {
        gap: 13px;
    }

    .um-pr__eyebrow span {
        width: 42px;
    }

    .um-pr__eyebrow p {
        font-size: 10px;
        letter-spacing: .18em;
    }

    .um-pr__header h2 {
        font-size: clamp(38px, 11vw, 52px);
        line-height: 1.02;
    }

    .um-pr__intro {
        font-size: 15px;
        line-height: 1.55;
        margin-top: 14px;
    }

    .um-pr__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .um-pr__media {
        aspect-ratio: 1.58 / 1;
    }

    .um-pr__panel {
        margin-top: -26px;
        width: calc(100% - 16px);
        padding: 23px 22px 18px;
    }

    .um-pr__panel h3 {
        font-size: 26px;
    }

    .um-pr__links a {
        min-height: 46px;
        font-size: 15px;
    }
}


/* Elementor editor guardrails -------------------------------------------------
   Keep the section comfortable to edit inside Elementor's narrower preview
   canvas without changing the live frontend layout. */
body.elementor-editor-active .um-pr,
body.elementor-editor-preview .um-pr,
.elementor-edit-area .um-pr {
    padding: 38px 16px 46px;
}

body.elementor-editor-active .um-pr__inner,
body.elementor-editor-preview .um-pr__inner,
.elementor-edit-area .um-pr__inner {
    width: 100%;
    max-width: 100%;
}

body.elementor-editor-active .um-pr__header,
body.elementor-editor-preview .um-pr__header,
.elementor-edit-area .um-pr__header {
    max-width: 760px;
    margin-bottom: 28px;
}

body.elementor-editor-active .um-pr__header h2,
body.elementor-editor-preview .um-pr__header h2,
.elementor-edit-area .um-pr__header h2 {
    font-size: clamp(34px, 4vw, 48px);
}

body.elementor-editor-active .um-pr__intro,
body.elementor-editor-preview .um-pr__intro,
.elementor-edit-area .um-pr__intro {
    font-size: 15px;
}

body.elementor-editor-active .um-pr__grid,
body.elementor-editor-preview .um-pr__grid,
.elementor-edit-area .um-pr__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

body.elementor-editor-active .um-pr__media,
body.elementor-editor-preview .um-pr__media,
.elementor-edit-area .um-pr__media {
    aspect-ratio: 1.75 / 1;
}

body.elementor-editor-active .um-pr__panel,
body.elementor-editor-preview .um-pr__panel,
.elementor-edit-area .um-pr__panel {
    min-height: 0;
    margin-top: -22px;
    padding: 20px 20px 16px;
}

body.elementor-editor-active .um-pr__panel h3,
body.elementor-editor-preview .um-pr__panel h3,
.elementor-edit-area .um-pr__panel h3 {
    font-size: 23px;
}

body.elementor-editor-active .um-pr__links a,
body.elementor-editor-preview .um-pr__links a,
.elementor-edit-area .um-pr__links a {
    min-height: 42px;
    font-size: 14px;
}

@media (max-width: 760px) {
    body.elementor-editor-active .um-pr__grid,
    body.elementor-editor-preview .um-pr__grid,
    .elementor-edit-area .um-pr__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .um-pr__card,
    .um-pr__image,
    .um-pr__links a,
    .um-pr__arrow {
        transition: none !important;
    }
}


/* Elementor editor canvas:
   Elementor's preview iframe is much narrower than the real browser viewport.
   Force a compact 2-column preview so the shortcode remains workable while editing. */
.um-pr--elementor-editor,
body.elementor-editor-active .um-pr,
body.elementor-editor-preview .um-pr {
    padding: 28px 14px 34px !important;
}

.um-pr--elementor-editor .um-pr__inner,
body.elementor-editor-active .um-pr .um-pr__inner,
body.elementor-editor-preview .um-pr .um-pr__inner {
    width: 100% !important;
    max-width: 100% !important;
}

.um-pr--elementor-editor .um-pr__header,
body.elementor-editor-active .um-pr .um-pr__header,
body.elementor-editor-preview .um-pr .um-pr__header {
    max-width: 720px !important;
    margin-bottom: 24px !important;
}

.um-pr--elementor-editor .um-pr__eyebrow,
body.elementor-editor-active .um-pr .um-pr__eyebrow,
body.elementor-editor-preview .um-pr .um-pr__eyebrow {
    margin-bottom: 8px !important;
}

.um-pr--elementor-editor .um-pr__eyebrow span,
body.elementor-editor-active .um-pr .um-pr__eyebrow span,
body.elementor-editor-preview .um-pr .um-pr__eyebrow span {
    width: 42px !important;
}

.um-pr--elementor-editor .um-pr__eyebrow p,
body.elementor-editor-active .um-pr .um-pr__eyebrow p,
body.elementor-editor-preview .um-pr .um-pr__eyebrow p {
    font-size: 10px !important;
}

.um-pr--elementor-editor .um-pr__header h2,
body.elementor-editor-active .um-pr .um-pr__header h2,
body.elementor-editor-preview .um-pr .um-pr__header h2 {
    font-size: 36px !important;
    line-height: 1.05 !important;
}

.um-pr--elementor-editor .um-pr__intro,
body.elementor-editor-active .um-pr .um-pr__intro,
body.elementor-editor-preview .um-pr .um-pr__intro {
    font-size: 14px !important;
    margin-top: 10px !important;
}

.um-pr--elementor-editor .um-pr__grid,
body.elementor-editor-active .um-pr .um-pr__grid,
body.elementor-editor-preview .um-pr .um-pr__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.um-pr--elementor-editor .um-pr__media,
body.elementor-editor-active .um-pr .um-pr__media,
body.elementor-editor-preview .um-pr .um-pr__media {
    aspect-ratio: 1.7 / 1 !important;
    max-height: 220px !important;
}

.um-pr--elementor-editor .um-pr__panel,
body.elementor-editor-active .um-pr .um-pr__panel,
body.elementor-editor-preview .um-pr .um-pr__panel {
    margin-top: -20px !important;
    width: calc(100% - 12px) !important;
    min-height: 0 !important;
    padding: 18px 18px 14px !important;
}

.um-pr--elementor-editor .um-pr__panel h3,
body.elementor-editor-active .um-pr .um-pr__panel h3,
body.elementor-editor-preview .um-pr .um-pr__panel h3 {
    font-size: 22px !important;
    margin-bottom: 9px !important;
}

.um-pr--elementor-editor .um-pr__links a,
body.elementor-editor-active .um-pr .um-pr__links a,
body.elementor-editor-preview .um-pr .um-pr__links a {
    min-height: 38px !important;
    padding: 7px 0 !important;
    font-size: 12px !important;
}

.um-pr--elementor-editor .um-pr__arrow,
body.elementor-editor-active .um-pr .um-pr__arrow,
body.elementor-editor-preview .um-pr .um-pr__arrow {
    font-size: 22px !important;
}

/* Elementor editor side panel can leave only ~700-900px for the iframe.
   Keep two columns there instead of falling into the public one-column mobile layout. */
@media (max-width: 900px) {
    .um-pr--elementor-editor .um-pr__grid,
    body.elementor-editor-active .um-pr .um-pr__grid,
    body.elementor-editor-preview .um-pr .um-pr__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .um-pr--elementor-editor .um-pr__grid,
    body.elementor-editor-active .um-pr .um-pr__grid,
    body.elementor-editor-preview .um-pr .um-pr__grid {
        grid-template-columns: 1fr !important;
    }
}


/* v1.0.5 — align section heading treatment with Ultimate Millwork's
   Cabinet Collections section. Outer section stays transparent. */
.um-pr {
    background: transparent !important;
}

.um-pr__header {
    max-width: 1120px;
    margin: 0 auto 38px;
}

.um-pr__eyebrow {
    gap: 26px;
    margin-bottom: 20px;
}

.um-pr__eyebrow span {
    width: 142px;
    background: #d4a25c;
    opacity: .78;
}

.um-pr__eyebrow span:last-child {
    background: #d4a25c;
}

.um-pr__eyebrow p {
    font-size: 13px;
    line-height: 1;
    letter-spacing: .28em;
    font-weight: 700;
    color: #8d713c;
}

.um-pr__header h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 4.15vw, 68px);
    line-height: 1.04;
    letter-spacing: -.035em;
    font-weight: 400;
    color: #292d2f;
}

.um-pr__intro {
    max-width: 1000px;
    margin: 12px auto 0;
    font-size: clamp(17px, 1.22vw, 20px);
    line-height: 1.45;
    font-weight: 400;
    color: #74777a;
}

/* Keep the premium cream only where it belongs: the overlapping card body. */
.um-pr__panel {
    background: rgba(255, 253, 249, .99);
}

@media (max-width: 700px) {
    .um-pr__header {
        margin-bottom: 30px;
    }

    .um-pr__eyebrow {
        gap: 12px;
        margin-bottom: 14px;
    }

    .um-pr__eyebrow span {
        width: 44px;
    }

    .um-pr__eyebrow p {
        font-size: 10px;
        letter-spacing: .20em;
    }

    .um-pr__header h2 {
        font-size: clamp(38px, 10.5vw, 50px);
        line-height: 1.04;
        font-weight: 400;
    }

    .um-pr__intro {
        font-size: 15px;
        line-height: 1.5;
        margin-top: 10px;
    }
}


/* v1.0.7 — final header scale:
   make the live/preview header match the restrained Elementor workspace version. */
.um-pr__header {
    max-width: 1120px !important;
    margin: 0 auto 32px !important;
}

.um-pr__eyebrow {
    gap: 24px !important;
    margin-bottom: 12px !important;
}

.um-pr__eyebrow span {
    width: 52px !important;
    height: 1px !important;
    background: #d4a25c !important;
    opacity: .82 !important;
}

.um-pr__eyebrow p {
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    letter-spacing: .25em !important;
    font-weight: 700 !important;
    color: #8d713c !important;
}

.um-pr__header h2 {
    margin: 0 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(40px, 3vw, 52px) !important;
    line-height: 1.05 !important;
    letter-spacing: -.03em !important;
    font-weight: 400 !important;
    color: #292d2f !important;
}

.um-pr__intro {
    max-width: 1000px !important;
    margin: 12px auto 0 !important;
    font-size: clamp(15px, 1.05vw, 17px) !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    color: #74777a !important;
}

/* Elementor editor only — mirror the live four-card desktop composition. */
.um-pr--elementor-editor .um-pr__grid,
body.elementor-editor-active .um-pr .um-pr__grid,
body.elementor-editor-preview .um-pr .um-pr__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.um-pr--elementor-editor .um-pr__card,
body.elementor-editor-active .um-pr .um-pr__card,
body.elementor-editor-preview .um-pr .um-pr__card {
    min-width: 0 !important;
}

.um-pr--elementor-editor .um-pr__media,
body.elementor-editor-active .um-pr .um-pr__media,
body.elementor-editor-preview .um-pr .um-pr__media {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1.55 / 1 !important;
    max-height: none !important;
    overflow: hidden !important;
}

.um-pr--elementor-editor .um-pr__media .um-pr__image,
body.elementor-editor-active .um-pr .um-pr__media .um-pr__image,
body.elementor-editor-preview .um-pr .um-pr__media .um-pr__image {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.um-pr--elementor-editor .um-pr__panel,
body.elementor-editor-active .um-pr .um-pr__panel,
body.elementor-editor-preview .um-pr .um-pr__panel {
    margin-top: -16px !important;
    width: calc(100% - 8px) !important;
    min-height: 0 !important;
    padding: 14px 12px 11px !important;
}

.um-pr--elementor-editor .um-pr__panel h3,
body.elementor-editor-active .um-pr .um-pr__panel h3,
body.elementor-editor-preview .um-pr .um-pr__panel h3 {
    font-size: 18px !important;
    margin-bottom: 7px !important;
}

.um-pr--elementor-editor .um-pr__links a,
body.elementor-editor-active .um-pr .um-pr__links a,
body.elementor-editor-preview .um-pr .um-pr__links a {
    min-height: 32px !important;
    padding: 5px 0 !important;
    gap: 6px !important;
    font-size: 10px !important;
}

.um-pr--elementor-editor .um-pr__arrow,
body.elementor-editor-active .um-pr .um-pr__arrow,
body.elementor-editor-preview .um-pr .um-pr__arrow {
    font-size: 18px !important;
}

/* Override earlier editor breakpoint rules: keep four across in Elementor.
   Public responsive breakpoints are untouched. */
@media (max-width: 900px) {
    .um-pr--elementor-editor .um-pr__grid,
    body.elementor-editor-active .um-pr .um-pr__grid,
    body.elementor-editor-preview .um-pr .um-pr__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .um-pr--elementor-editor .um-pr__grid,
    body.elementor-editor-active .um-pr .um-pr__grid,
    body.elementor-editor-preview .um-pr .um-pr__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .um-pr__header {
        margin-bottom: 28px !important;
    }

    .um-pr__header h2 {
        font-size: clamp(34px, 9vw, 44px) !important;
    }

    .um-pr__intro {
        font-size: 15px !important;
    }
}


/* v1.0.8 — tighten only the outer section whitespace.
   Keep eyebrow → heading → intro → cards spacing unchanged. */
.um-pr {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
}

/* Elementor editor should use the same compact outer spacing. */
.um-pr--elementor-editor,
body.elementor-editor-active .um-pr,
body.elementor-editor-preview .um-pr {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
}

/* Preserve sensible outer spacing on phones without reintroducing the large gap. */
@media (max-width: 700px) {
    .um-pr {
        padding-top: 38px !important;
        padding-bottom: 42px !important;
    }
}
