/*
Theme Name: Sunmaintain Theme
Theme URI: https://sunmaintain.local/
Author: Sunmaintain
Description: Block theme for the Sunmaintain storefront.
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 7.4
Version: 0.1.0
Text Domain: sunmaintain
*/

/* ── Self-hosted variable fonts ── */

@font-face {
    font-family: "Cinzel";
    src: url("assets/fonts/cinzel-variable.ttf") format("truetype-variations");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant";
    src: url("assets/fonts/cormorant-variable.ttf") format("truetype-variations");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --sunmaintain-ink: #052b66;
    --sunmaintain-ink-soft: #2f5f91;
    --sunmaintain-brand: #083d8f;
    --sunmaintain-brand-mid: #0f5fb8;
    --sunmaintain-brand-soft: #8fd0e3;
    --sunmaintain-surface: #f4f9fd;
    --sunmaintain-surface-strong: #dff1fa;
    --sunmaintain-border: rgba(8, 61, 143, 0.15);
    --sunmaintain-shadow: 0 18px 42px rgba(5, 43, 102, 0.1);
    --sunmaintain-site-max: 1380px;
    --sunmaintain-home-max: 1440px;
    --sunmaintain-radius: 8px;
    --sunmaintain-gutter: clamp(16px, 2.4vw, 42px);
    --sunmaintain-font-heading: "Cinzel", Georgia, "Times New Roman", serif;
    --sunmaintain-font-body: "Cormorant", Georgia, "Times New Roman", serif;
    --sunmaintain-font-mono: "SF Mono", "Fira Code", "Consolas", monospace;
    --sm-font-heading: "Cinzel", Georgia, "Times New Roman", serif;
    --sm-font-body: "Cormorant", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
    font-synthesis: none;
}

body {
    background: #ffffff;
}

body.home {
    overflow-x: hidden;
}

@supports (overflow: clip) {
    body.home {
        overflow-x: clip;
    }
}

.wp-site-blocks {
    min-height: 100vh;
}

.wp-site-blocks > main {
    padding-bottom: clamp(3rem, 5vw, 5.5rem);
}

header.wp-block-template-part,
footer.wp-block-template-part {
    position: relative;
    z-index: 1;
}

.sunmaintain-site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--sunmaintain-border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 16px rgba(5, 43, 102, 0.08);
    backdrop-filter: blur(14px);
}

.sunmaintain-site-header__row {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.75rem);
    width: min(100%, var(--sunmaintain-site-max));
    margin: 0 auto;
}

.sunmaintain-site-header__brand {
    min-width: 0;
}

.sunmaintain-site-logo {
    margin: 0;
    position: relative;
    width: 220px !important;
    max-width: 46vw;
    height: 52px;
    overflow: hidden;
}

.sunmaintain-site-logo img {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 220px !important;
    max-width: none;
    max-height: none;
    height: auto;
    object-fit: contain;
    transform: translateY(-50%);
}

.sunmaintain-site-header__nav {
    min-width: 0;
}

.sunmaintain-site-header__nav .wp-block-navigation__container {
    gap: clamp(0.85rem, 1.7vw, 1.45rem);
}

.sunmaintain-site-header__nav .wp-block-navigation-item__content {
    color: var(--sunmaintain-ink);
    font-size: 0.95rem;
    font-weight: 400;
}

.sunmaintain-site-header__nav .wp-block-navigation-item__content:hover {
    color: var(--sunmaintain-brand);
}

.sunmaintain-site-header__actions {
    gap: 0.65rem;
    flex-wrap: nowrap;
}

.sunmaintain-site-header__actions .wp-element-button,
.sunmaintain-site-footer .wp-element-button {
    min-height: 2.75rem;
    padding: 0.75rem 1.15rem;
    border-radius: 999px;
    text-transform: none;
}

.sunmaintain-site-header .wp-block-button.is-style-outline .wp-block-button__link {
    border-color: var(--sunmaintain-brand);
    color: var(--sunmaintain-brand);
}

.sunmaintain-site-footer {
    border-top: 1px solid var(--sunmaintain-border);
    background: #ffffff;
}

.sunmaintain-site-footer .wp-block-columns {
    gap: clamp(1.5rem, 3vw, 3rem);
    width: min(100%, var(--sunmaintain-site-max));
    margin: 0 auto;
}

.sunmaintain-site-footer__copy,
.sunmaintain-site-footer__legal {
    margin: 0;
    color: var(--sunmaintain-ink-soft);
    line-height: 1.55;
}

.sunmaintain-site-footer__list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding-left: 0;
    color: var(--sunmaintain-ink-soft);
    list-style: none;
}

.sunmaintain-site-footer__list a {
    color: var(--sunmaintain-ink-soft);
    text-decoration: none;
}

.sunmaintain-site-footer__list a:hover {
    color: var(--sunmaintain-brand);
}

.sunmaintain-home-draft-shell {
    padding-top: 0;
    padding-right: 0;
    padding-bottom: clamp(3rem, 5vw, 5rem);
    padding-left: 0;
}

.sunmaintain-home-draft-shell > .wp-block-post-content,
.sunmaintain-home-draft-shell > .entry-content {
    --sunmaintain-home-content-gap: clamp(2.2rem, 4.2vw, 3.4rem);
    display: grid;
    gap: var(--sunmaintain-home-content-gap);
    width: 100%;
    max-width: none;
}

.sunmaintain-home-draft-shell > .wp-block-post-content > .alignwide,
.sunmaintain-home-draft-shell > .entry-content > .alignwide {
    position: relative;
    left: auto;
    width: min(calc(100vw - (var(--sunmaintain-gutter) * 2)), var(--sunmaintain-site-max));
    max-width: min(calc(100vw - (var(--sunmaintain-gutter) * 2)), var(--sunmaintain-site-max));
    margin-right: auto;
    margin-left: auto;
    transform: none;
}

.sunmaintain-home-draft-shell > .wp-block-post-content > .wp-block-sunmaintain-hero-carousel.alignfull,
.sunmaintain-home-draft-shell > .entry-content > .wp-block-sunmaintain-hero-carousel.alignfull {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-right: auto;
    margin-left: auto;
    transform: translateX(-50%);
}

.sunmaintain-home-draft-shell > .wp-block-post-content > .wp-block-sunmaintain-top-promo-bar.alignfull,
.sunmaintain-home-draft-shell > .entry-content > .wp-block-sunmaintain-top-promo-bar.alignfull,
.sunmaintain-home-draft-shell > .wp-block-post-content > .wp-block-sunmaintain-site-header.alignfull,
.sunmaintain-home-draft-shell > .entry-content > .wp-block-sunmaintain-site-header.alignfull {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-right: auto;
    margin-left: auto;
    transform: translateX(-50%);
}

.sunmaintain-blog-index,
.single-post .sunmaintain-single-post,
.page-id-659 .sunmaintain-site-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.sunmaintain-blog-index > .alignwide,
.single-post .sunmaintain-single-post > .alignwide,
.page-id-659 .sunmaintain-about-page,
.page-id-659 .sunmaintain-about-overview {
    box-sizing: border-box;
    width: min(calc(100vw - (var(--sunmaintain-gutter) * 2)), var(--sunmaintain-site-max));
    max-width: min(calc(100vw - (var(--sunmaintain-gutter) * 2)), var(--sunmaintain-site-max));
    margin-right: auto;
    margin-left: auto;
}

.page-id-659 .sunmaintain-site-shell {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.page-id-659 .entry-content.is-layout-constrained {
    width: 100%;
    max-width: 100%;
}

.page-id-659 .wp-block-post-title {
    display: none;
}

.sunmaintain-blog-index__hero,
.sunmaintain-about-overview__intro,
.sunmaintain-single-post__hero {
    display: grid;
    gap: clamp(0.75rem, 1.5vw, 1.2rem);
    margin-bottom: clamp(1.8rem, 3.2vw, 2.6rem);
}

.sunmaintain-blog-index__hero > :where(*) {
    max-width: 980px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.sunmaintain-blog-index__hero > .sunmaintain-blog-index__title {
    max-width: none !important;
}

.single-post .sunmaintain-single-post__hero > :where(*) {
    width: 100%;
    max-width: 980px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.single-post .sunmaintain-single-post__hero > .sunmaintain-single-post__title {
    max-width: 1180px !important;
}

.page-id-659 .sunmaintain-about-overview > :where(*),
.page-id-659 .sunmaintain-about-overview__intro > :where(*) {
    width: 100%;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.page-id-659 .sunmaintain-about-overview__copy {
    max-width: 1120px !important;
}

.page-id-659 .sunmaintain-about-overview__copy > :where(*) {
    width: 100%;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.sunmaintain-blog-index__eyebrow,
.sunmaintain-about-overview__eyebrow {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sunmaintain-ink-soft);
}

.sunmaintain-blog-index__title,
.sunmaintain-about-overview__title,
.sunmaintain-single-post__title {
    margin: 0;
    max-width: none;
    color: var(--sunmaintain-ink);
    font-family: var(--sunmaintain-font-heading);
    font-size: clamp(1.85rem, 2.7vw, 2.55rem);
    font-weight: 500;
    line-height: 1.08;
}

.sunmaintain-blog-index__intro,
.sunmaintain-about-overview__copy,
.sunmaintain-single-post__excerpt {
    margin: 0;
    max-width: 980px;
    color: var(--sunmaintain-ink-soft);
    font-size: clamp(1.05rem, 1.25vw, 1.18rem);
    line-height: 1.62;
}

.sunmaintain-blog-index .wp-block-query {
    margin-top: 0;
}

.sunmaintain-blog-index .wp-block-post-template {
    display: grid;
    gap: clamp(1rem, 2vw, 1.35rem);
    width: 100%;
    max-width: none !important;
    padding: 0;
    margin: 0 !important;
    list-style: none;
}

.sunmaintain-blog-index .wp-block-post-template > li {
    width: 100%;
    max-width: none !important;
}

.sunmaintain-blog-index__item {
    border: 1px solid var(--sunmaintain-border);
    border-radius: var(--sunmaintain-radius);
    background: #fff;
    box-shadow: var(--sunmaintain-shadow);
}

.sunmaintain-blog-index__item {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: clamp(1rem, 2.2vw, 1.6rem);
    align-items: stretch;
    padding: clamp(0.85rem, 1.6vw, 1.1rem);
    margin: 0;
    width: 100%;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.sunmaintain-blog-index__item > .wp-block-post-featured-image,
.sunmaintain-single-post__image {
    margin: 0;
    max-width: none !important;
}

.sunmaintain-blog-index__item .wp-block-post-featured-image a,
.sunmaintain-blog-index__item .wp-block-post-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.sunmaintain-blog-index__item .wp-block-post-featured-image img,
.sunmaintain-about-overview__image img {
    border-radius: calc(var(--sunmaintain-radius) - 1px);
    object-fit: cover;
}

.sunmaintain-blog-index__item .wp-block-post-featured-image img {
    min-height: 170px;
    aspect-ratio: 4 / 3;
}

.sunmaintain-blog-index__copy {
    display: grid;
    align-content: center;
    gap: 0.6rem;
    width: 100%;
    max-width: none !important;
}

.sunmaintain-blog-index__copy > :where(*) {
    max-width: none !important;
    margin: 0 !important;
}

.sunmaintain-blog-index__date {
    color: var(--sunmaintain-ink-soft);
    font-size: 0.85rem;
}

.sunmaintain-blog-index__item-title {
    margin: 0;
    font-family: var(--sunmaintain-font-heading);
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    line-height: 1.18;
}

.sunmaintain-blog-index__item-title a,
.sunmaintain-single-post__title a {
    color: var(--sunmaintain-ink);
    text-decoration: none;
}

.sunmaintain-blog-index__item-title a:hover {
    color: var(--sunmaintain-brand);
}

.sunmaintain-blog-index .wp-block-post-excerpt {
    margin-bottom: 0;
}

.sunmaintain-blog-index .wp-block-post-excerpt__excerpt,
.sunmaintain-single-post__excerpt .wp-block-post-excerpt__excerpt {
    margin: 0;
    color: var(--sunmaintain-ink-soft);
    font-size: clamp(1rem, 1.15vw, 1.08rem);
    line-height: 1.56;
}

.sunmaintain-blog-index .wp-block-post-excerpt__more-text {
    margin-top: 0.6rem;
}

.sunmaintain-blog-index .wp-block-post-excerpt__more-link {
    color: var(--sunmaintain-brand);
    font-size: 0.95rem;
    text-decoration: none;
}

.sunmaintain-blog-index .wp-block-query-pagination {
    margin-top: 1.25rem;
}

.sunmaintain-about-page,
.sunmaintain-about-overview {
    display: grid;
    gap: clamp(2rem, 4vw, 3.4rem);
    width: min(100%, var(--sunmaintain-site-max));
    max-width: var(--sunmaintain-site-max);
    margin-right: auto;
    margin-left: auto;
}

.sunmaintain-about-overview {
    align-content: start;
}

.sunmaintain-about-overview__intro > :where(*) {
    max-width: none !important;
}

.sunmaintain-about-overview__copy {
    display: grid;
    gap: 1rem;
    max-width: 1120px;
}

.sunmaintain-about-overview__copy p {
    margin: 0;
    color: var(--sunmaintain-ink-soft);
    font-size: clamp(1.08rem, 1.35vw, 1.22rem);
    line-height: 1.68;
    letter-spacing: 0;
    text-align: left;
    word-spacing: normal;
}

.sunmaintain-about-overview__image {
    overflow: hidden;
    border: 1px solid var(--sunmaintain-border);
    border-radius: var(--sunmaintain-radius);
    background: #fff;
    box-shadow: var(--sunmaintain-shadow);
    margin: 0;
    padding: clamp(0.75rem, 1.5vw, 1.1rem);
}

.sunmaintain-about-overview__image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 560px;
    min-height: 0;
    margin-right: auto;
    margin-left: auto;
    object-fit: contain;
}

.single-post .sunmaintain-single-post__hero {
    text-align: left;
}

.sunmaintain-single-post__date {
    margin: 0;
    color: var(--sunmaintain-ink-soft);
    font-size: 0.9rem;
}

.sunmaintain-single-post__image img {
    display: block;
    width: 100%;
    max-height: 560px;
    border-radius: var(--sunmaintain-radius);
    object-fit: cover;
}

.single-post .sunmaintain-single-post__content {
    width: min(calc(100vw - (var(--sunmaintain-gutter) * 2)), 1060px);
    max-width: min(calc(100vw - (var(--sunmaintain-gutter) * 2)), 1060px);
    margin-right: auto;
    margin-left: auto;
    color: var(--sunmaintain-ink);
    font-size: clamp(1.05rem, 1.2vw, 1.16rem);
    line-height: 1.72;
}

.single-post .sunmaintain-single-post__content > :where(*) {
    max-width: none !important;
}

@media (max-width: 781px) {
    .sunmaintain-blog-index__item {
        grid-template-columns: 1fr;
    }

    .sunmaintain-blog-index__item .wp-block-post-featured-image img {
        min-height: 0;
    }
}

.sunmaintain-home-draft-shell > .wp-block-post-content > .sunmaintain-home-service-strip.alignfull,
.sunmaintain-home-draft-shell > .entry-content > .sunmaintain-home-service-strip.alignfull {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-right: auto;
    margin-left: auto;
    transform: translateX(-50%);
}

.sunmaintain-home-draft-shell > .wp-block-post-content > .wp-block-sunmaintain-hero-carousel.alignfull:first-child,
.sunmaintain-home-draft-shell > .entry-content > .wp-block-sunmaintain-hero-carousel.alignfull:first-child {
    margin-top: 0;
}

.sunmaintain-home-draft-shell > .wp-block-post-content > .wp-block-sunmaintain-top-promo-bar.alignfull + .wp-block-sunmaintain-site-header.alignfull,
.sunmaintain-home-draft-shell > .entry-content > .wp-block-sunmaintain-top-promo-bar.alignfull + .wp-block-sunmaintain-site-header.alignfull,
.sunmaintain-home-draft-shell > .wp-block-post-content > .wp-block-sunmaintain-site-header.alignfull + .wp-block-sunmaintain-hero-carousel.alignfull,
.sunmaintain-home-draft-shell > .entry-content > .wp-block-sunmaintain-site-header.alignfull + .wp-block-sunmaintain-hero-carousel.alignfull,
.sunmaintain-home-draft-shell > .wp-block-post-content > .wp-block-sunmaintain-hero-carousel.alignfull + .wp-block-sunmaintain-doorbuster-strip.alignfull,
.sunmaintain-home-draft-shell > .entry-content > .wp-block-sunmaintain-hero-carousel.alignfull + .wp-block-sunmaintain-doorbuster-strip.alignfull {
    margin-top: calc(var(--sunmaintain-home-content-gap) * -1);
}

.sunmaintain-home-draft-shell > .wp-block-post-content > .wp-block-sunmaintain-hero-carousel.alignfull + .sunmaintain-home-service-strip.alignfull,
.sunmaintain-home-draft-shell > .entry-content > .wp-block-sunmaintain-hero-carousel.alignfull + .sunmaintain-home-service-strip.alignfull {
    margin-top: calc(var(--sunmaintain-home-content-gap) * -1);
}

.sunmaintain-home-draft-shell .sunmaintain-home-service-strip {
    padding: 1.4rem var(--sunmaintain-gutter);
    background: #f4d34b;
    color: #2f2b27;
}

.sunmaintain-home-draft-shell .sunmaintain-home-service-strip__columns {
    gap: 0;
    width: min(calc(100vw - (var(--sunmaintain-gutter) * 2)), var(--sunmaintain-home-max));
    margin-right: auto;
    margin-left: auto;
}

.sunmaintain-home-draft-shell .sunmaintain-home-service-strip .wp-block-column {
    padding: 0.35rem clamp(0.8rem, 2vw, 1.4rem);
    text-align: center;
}

.sunmaintain-home-draft-shell .sunmaintain-home-service-strip h3 {
    margin: 0 0 0.25rem;
    color: #2f2b27;
    font-family: var(--sm-font-body, "Cormorant", Georgia, serif);
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    font-weight: 400;
    letter-spacing: 0;
}

.sunmaintain-home-draft-shell .sunmaintain-home-service-strip p {
    margin: 0;
    color: #4b453f;
    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.35;
}

.sunmaintain-home-draft-shell .sunmaintain-sample-cta-band,
.sunmaintain-home-draft-shell .sunmaintain-image-text-split,
.sunmaintain-home-draft-shell .sunmaintain-visual-gallery-grid,
.sunmaintain-home-draft-shell .sunmaintain-trust-value-band,
.sunmaintain-home-draft-shell .sunmaintain-steps-icon-row,
.sunmaintain-home-draft-shell .sunmaintain-consultation-entry {
    width: min(calc(100vw - (var(--sunmaintain-gutter) * 2)), var(--sunmaintain-home-max));
    max-width: min(calc(100vw - (var(--sunmaintain-gutter) * 2)), var(--sunmaintain-home-max));
    margin-right: auto;
    margin-left: auto;
}

.sunmaintain-home-draft-shell .sunmaintain-sample-cta-band {
    overflow: hidden;
    border-radius: 8px;
    background: #cdecfb;
}

.sunmaintain-home-draft-shell .sunmaintain-sample-cta-band .wp-block-columns,
.sunmaintain-home-draft-shell .sunmaintain-image-text-split .wp-block-columns,
.sunmaintain-home-draft-shell .sunmaintain-visual-gallery-grid > *,
.sunmaintain-home-draft-shell .sunmaintain-trust-value-band > *,
.sunmaintain-home-draft-shell .sunmaintain-steps-icon-row > *,
.sunmaintain-home-draft-shell .sunmaintain-consultation-entry > * {
    gap: clamp(2rem, 5vw, 4rem);
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.sunmaintain-home-draft-shell .sunmaintain-sample-cta-band .wp-block-column:first-child {
    padding: clamp(2rem, 4vw, 3.2rem);
}

.sunmaintain-home-draft-shell .sunmaintain-sample-cta-band h2,
.sunmaintain-home-draft-shell .sunmaintain-image-text-split h2,
.sunmaintain-home-draft-shell .sunmaintain-visual-gallery-grid h2,
.sunmaintain-home-draft-shell .sunmaintain-trust-value-band h2,
.sunmaintain-home-draft-shell .sunmaintain-steps-icon-row h2,
.sunmaintain-home-draft-shell .sunmaintain-consultation-entry h2 {
    margin-top: 0;
    color: #2f2b27;
    font-family: var(--sm-font-heading, "Cinzel", Georgia, serif);
    font-size: clamp(2rem, 3.7vw, 2.85rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.sunmaintain-home-draft-shell .sunmaintain-sample-cta-band p,
.sunmaintain-home-draft-shell .sunmaintain-image-text-split p,
.sunmaintain-home-draft-shell .sunmaintain-consultation-entry p {
    max-width: 600px;
    color: #625b53;
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.58;
}

.sunmaintain-home-draft-shell .sunmaintain-sample-cta-band .wp-block-image,
.sunmaintain-home-draft-shell .sunmaintain-sample-cta-band .wp-block-image img {
    height: 100%;
}

.sunmaintain-home-draft-shell .sunmaintain-sample-cta-band img {
    display: block;
    width: 100%;
    min-height: 300px;
    object-fit: cover;
}

.sunmaintain-home-draft-shell .sunmaintain-image-text-split {
    padding: clamp(1.5rem, 3vw, 2.25rem) 0;
}

.sunmaintain-home-draft-shell .sunmaintain-image-text-split img {
    display: block;
    width: 100%;
    aspect-ratio: 1.25 / 1;
    border-radius: 8px;
    object-fit: cover;
}

.sunmaintain-home-draft-shell .sunmaintain-visual-gallery-grid h2 {
    margin-bottom: 1.35rem;
}

.sunmaintain-home-draft-shell .sunmaintain-visual-gallery-grid .wp-block-gallery {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 16px;
    flex-wrap: nowrap;
}

.sunmaintain-home-draft-shell .sunmaintain-visual-gallery-grid .wp-block-gallery.has-nested-images figure.wp-block-image {
    flex: 0 0 clamp(150px, 13vw, 176px);
    width: clamp(150px, 13vw, 176px) !important;
}

.sunmaintain-home-draft-shell .sunmaintain-visual-gallery-grid .wp-block-gallery.has-nested-images figure.wp-block-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    object-fit: cover;
}

.sunmaintain-home-draft-shell .sunmaintain-trust-value-band,
.sunmaintain-home-draft-shell .sunmaintain-steps-icon-row,
.sunmaintain-home-draft-shell .sunmaintain-consultation-entry {
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid #d7cfc3;
    border-radius: 8px;
    background: #fffdfa;
}

.sunmaintain-home-draft-shell .sunmaintain-steps-icon-row {
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.sunmaintain-home-draft-shell .sunmaintain-trust-value-band .wp-block-columns,
.sunmaintain-home-draft-shell .sunmaintain-steps-icon-row .wp-block-columns {
    gap: 18px;
    margin-bottom: 0;
}

.sunmaintain-home-draft-shell .sunmaintain-steps-icon-row .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sunmaintain-home-draft-shell .sunmaintain-trust-value-band .wp-block-column,
.sunmaintain-home-draft-shell .sunmaintain-steps-icon-row .wp-block-column {
    padding: 1.3rem;
    border: 1px solid #d7cfc3;
    border-radius: 8px;
    background: #ffffff;
}

.sunmaintain-home-draft-shell .sunmaintain-trust-value-band h3,
.sunmaintain-home-draft-shell .sunmaintain-steps-icon-row h3 {
    margin: 0 0 0.55rem;
    color: #083d8f;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0;
}

.sunmaintain-home-draft-shell .sunmaintain-trust-value-band p,
.sunmaintain-home-draft-shell .sunmaintain-steps-icon-row p {
    margin: 0;
    color: #625b53;
    line-height: 1.52;
}

.sunmaintain-home-draft-shell .sunmaintain-consultation-entry {
    margin-bottom: clamp(0.5rem, 2vw, 1.4rem);
    background: #052b66;
    color: #ffffff;
}

.sunmaintain-home-draft-shell .sunmaintain-consultation-entry .wp-block-columns {
    align-items: center;
}

.sunmaintain-home-draft-shell .sunmaintain-consultation-entry h2,
.sunmaintain-home-draft-shell .sunmaintain-consultation-entry p {
    color: #ffffff;
}

.sunmaintain-home-draft-shell .sunmaintain-consultation-entry .wp-block-buttons {
    justify-content: flex-end;
}

.sunmaintain-home-draft-shell .sunmaintain-consultation-entry .is-style-outline .wp-block-button__link {
    border-color: rgba(255, 255, 255, 0.75);
    color: #ffffff;
}

.sunmaintain-home-draft-shell .sunmaintain-sample-promo,
.sunmaintain-home-draft-shell .sunmaintain-editorial-section {
    overflow: hidden;
    border: 1px solid var(--sunmaintain-border);
    border-radius: var(--sunmaintain-radius);
    background: #ffffff;
    box-shadow: var(--sunmaintain-shadow);
}

.sunmaintain-home-draft-shell .sunmaintain-sample-promo {
    background: linear-gradient(110deg, var(--sunmaintain-brand) 0%, #0f5fb8 52%, var(--sunmaintain-brand-soft) 100%);
    color: #ffffff;
}

.sunmaintain-home-draft-shell .sunmaintain-sample-promo a:not(.wp-element-button),
.sunmaintain-home-draft-shell .sunmaintain-sample-promo h2,
.sunmaintain-home-draft-shell .sunmaintain-sample-promo p {
    color: #ffffff;
}

.sunmaintain-home-draft-shell .sunmaintain-sample-promo .wp-block-button__link {
    background: #ffffff;
    color: var(--sunmaintain-brand);
}

.sunmaintain-home-draft-shell .sunmaintain-sample-promo .wp-block-image,
.sunmaintain-home-draft-shell .sunmaintain-editorial-section .wp-block-image {
    height: 100%;
}

.sunmaintain-home-draft-shell .sunmaintain-sample-promo .wp-block-image img,
.sunmaintain-home-draft-shell .sunmaintain-editorial-section .wp-block-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.sunmaintain-home-draft-shell .sunmaintain-sample-promo h2,
.sunmaintain-home-draft-shell .sunmaintain-editorial-section h2 {
    margin-top: 0;
    color: inherit;
    font-family: var(--sm-font-body, "Cormorant", Georgia, serif);
    font-size: clamp(2rem, 4vw, 3.1rem);
    letter-spacing: 0;
}

.sunmaintain-home-draft-shell .sunmaintain-section-kicker {
    margin: 0 0 0.55rem;
    color: var(--sunmaintain-brand);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sunmaintain-home-draft-shell .sunmaintain-sample-promo .sunmaintain-section-kicker {
    color: #ffffff;
}

.sunmaintain-home-draft-shell .sunmaintain-trust-strip {
    width: min(100%, var(--sunmaintain-site-max));
    margin: 0 auto;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border: 1px solid var(--sunmaintain-border);
    border-radius: var(--sunmaintain-radius);
    background: #ffffff;
    box-shadow: var(--sunmaintain-shadow);
}

.sunmaintain-home-draft-shell .sunmaintain-trust-strip .wp-block-column {
    padding: 1rem;
    border-left: 4px solid var(--sunmaintain-brand-soft);
}

.sunmaintain-home-draft-shell .sunmaintain-trust-strip h4 {
    margin-top: 0;
    color: var(--sunmaintain-ink);
}

.sunmaintain-home-draft-shell .sunmaintain-trust-strip p {
    color: var(--sunmaintain-ink-soft);
}

.wp-element-button,
.wp-block-button__link {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease,
        color 180ms ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(5, 43, 102, 0.16);
}

@media (max-width: 960px) {
    .sunmaintain-site-header__row {
        grid-template-columns: minmax(142px, 1fr) auto;
    }

    .sunmaintain-site-header__nav {
        order: 3;
        width: 100%;
    }

    .sunmaintain-site-header__actions {
        justify-content: flex-end;
    }
}

@media (max-width: 781px) {
    .sunmaintain-site-header {
        position: relative;
    }

    .sunmaintain-site-header__row {
        display: flex;
        align-items: center;
        gap: 0.9rem;
    }

    .sunmaintain-site-header__brand {
        flex: 1 1 auto;
    }

    .sunmaintain-site-logo img {
        width: 185px !important;
    }

    .sunmaintain-site-logo {
        width: 185px;
        max-width: 52vw;
        height: 46px;
    }

    .sunmaintain-site-header__nav {
        order: 2;
        width: auto;
    }

    .sunmaintain-site-header__actions {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }

    .sunmaintain-home-draft-shell {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .sunmaintain-home-draft-shell > .wp-block-post-content,
    .sunmaintain-home-draft-shell > .entry-content {
        --sunmaintain-home-content-gap: clamp(1.9rem, 7vw, 2.6rem);
    }

    .sunmaintain-home-draft-shell > .wp-block-post-content > .wp-block-sunmaintain-hero-carousel.alignfull.sunmaintain-hero-carousel,
    .sunmaintain-home-draft-shell > .entry-content > .wp-block-sunmaintain-hero-carousel.alignfull.sunmaintain-hero-carousel,
    .sunmaintain-home-draft-shell > .wp-block-post-content > .sunmaintain-home-service-strip.alignfull,
    .sunmaintain-home-draft-shell > .entry-content > .sunmaintain-home-service-strip.alignfull {
        left: auto;
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        box-sizing: border-box;
        transform: none;
    }

    .sunmaintain-home-draft-shell .sunmaintain-home-service-strip {
        padding: 1.2rem 18px;
    }

    .sunmaintain-home-draft-shell .sunmaintain-home-service-strip__columns {
        width: 100%;
        max-width: 100%;
    }

    .sunmaintain-home-draft-shell .sunmaintain-home-service-strip .wp-block-column {
        padding: 0.8rem 0;
    }

    .sunmaintain-home-draft-shell .sunmaintain-sample-cta-band,
    .sunmaintain-home-draft-shell .sunmaintain-image-text-split,
    .sunmaintain-home-draft-shell .sunmaintain-visual-gallery-grid,
    .sunmaintain-home-draft-shell .sunmaintain-trust-value-band,
    .sunmaintain-home-draft-shell .sunmaintain-steps-icon-row,
    .sunmaintain-home-draft-shell .sunmaintain-consultation-entry {
        width: calc(100vw - 36px);
        max-width: calc(100vw - 36px);
    }

    .sunmaintain-home-draft-shell .sunmaintain-sample-cta-band .wp-block-column:first-child {
        padding: 1.6rem;
    }

    .sunmaintain-home-draft-shell .sunmaintain-steps-icon-row {
        padding: 1.25rem;
    }

    .sunmaintain-home-draft-shell .sunmaintain-steps-icon-row .wp-block-columns {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .sunmaintain-home-draft-shell .sunmaintain-steps-icon-row .wp-block-column {
        width: 100%;
        min-width: 0;
        padding: 1rem;
        text-align: left;
    }

    .sunmaintain-home-draft-shell .sunmaintain-steps-icon-row h3 {
        font-size: 1rem;
        line-height: 1.25;
    }

    .sunmaintain-home-draft-shell .sunmaintain-steps-icon-row p {
        font-size: 0.94rem;
    }

    .sunmaintain-home-draft-shell .sunmaintain-consultation-entry .wp-block-buttons {
        justify-content: flex-start;
    }

    .sunmaintain-home-draft-shell .sunmaintain-sample-promo .wp-block-image img,
    .sunmaintain-home-draft-shell .sunmaintain-editorial-section .wp-block-image img {
        min-height: 240px;
    }
}

/* === Customer Reviews Rail (matches product-card-showcase) === */
.sunmaintain-reviews-rail__section {
    width: min(calc(100vw - (var(--sunmaintain-gutter, 48px) * 2)), var(--sunmaintain-home-max, 1440px));
    max-width: min(calc(100vw - (var(--sunmaintain-gutter, 48px) * 2)), var(--sunmaintain-home-max, 1440px));
    margin: 0 auto;
    padding: 48px 0;
}

.sunmaintain-reviews-rail__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(1.15rem, 2vw, 1.65rem);
}

.sunmaintain-reviews-rail__title {
    margin: 0;
    color: #2f2b27;
    font-family: var(--sm-font-heading, "Cinzel", Georgia, serif);
    font-size: clamp(1.95rem, 3.1vw, 2.45rem);
    font-weight: 400;
    line-height: 1.08;
}

.sunmaintain-reviews-rail__track {
    display: flex;
    gap: 24px;
    align-items: stretch;
    max-width: 100%;
    overflow-x: auto;
    contain: layout paint;
    padding: 2px 0 18px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.sunmaintain-review-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.sunmaintain-review-card__text {
    margin: 0;
    color: #625b53;
    font-size: 0.88rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.sunmaintain-review-card__name {
    margin: 0.4rem 0 0;
    color: #2f2b27;
    font-size: 0.82rem;
    font-weight: 400;
}

@media (max-width: 781px) {
    .sunmaintain-reviews-rail__section {
        width: calc(100vw - 36px);
        max-width: calc(100vw - 36px);
    }

    .sunmaintain-reviews-rail__track {
        gap: 18px;
    }

    .sunmaintain-review-card {
        flex-basis: 260px;
    }
}

@media (max-width: 480px) {
    .sunmaintain-reviews-rail__track {
        gap: 14px;
    }

    .sunmaintain-review-card {
        flex-basis: 215px;
    }
}

/* === Homepage Module Standalone Styles === */

/* Our Story — image-text split */
.sunmaintain-our-story {
    padding: clamp(1.5rem, 3vw, 2.25rem) 0;
}

.sunmaintain-our-story .wp-block-columns {
    gap: clamp(2rem, 5vw, 4rem);
}

.sunmaintain-our-story img {
    display: block;
    width: 100%;
    aspect-ratio: 1.25 / 1;
    border-radius: 8px;
    object-fit: cover;
}

.sunmaintain-our-story h2 {
    margin-top: 0;
    color: #2f2b27;
    font-family: var(--sm-font-heading, "Cinzel", Georgia, serif);
    font-size: clamp(2rem, 3.7vw, 2.85rem);
    line-height: 1.08;
}

.sunmaintain-our-story p {
    max-width: 600px;
    color: #625b53;
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.58;
}

/* 4 Major Strengths — card grid */
.sunmaintain-strengths {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid #d7cfc3;
    border-radius: 8px;
    background: #fffdfa;
}

.sunmaintain-strengths > h2 {
    margin-top: 0;
    margin-bottom: 1.35rem;
    color: #2f2b27;
    font-family: var(--sm-font-heading, "Cinzel", Georgia, serif);
    font-size: clamp(2rem, 3.7vw, 2.85rem);
    line-height: 1.08;
}

.sunmaintain-strengths .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 0;
}

.sunmaintain-strengths .wp-block-column {
    padding: 1.3rem;
    border: 1px solid #d7cfc3;
    border-radius: 8px;
    background: #ffffff;
    margin-bottom: 0 !important;
}

.sunmaintain-strengths h3 {
    margin: 0 0 0.55rem;
    color: #083d8f;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0;
}

.sunmaintain-strengths p {
    margin: 0;
    color: #625b53;
    line-height: 1.52;
}

/* Video & Commercial — staggered split rows */
.sunmaintain-video-commercial {
    padding: clamp(1.5rem, 3vw, 2.25rem) 0;
}

.sunmaintain-video-commercial .sunmaintain-split-row {
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.sunmaintain-video-commercial .sunmaintain-split-row:last-child {
    margin-bottom: 0;
}

.sunmaintain-video-commercial h2 {
    margin-top: 0;
    color: #2f2b27;
    font-family: var(--sm-font-heading, "Cinzel", Georgia, serif);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    line-height: 1.12;
}

.sunmaintain-video-commercial p {
    max-width: 600px;
    color: #625b53;
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.58;
}

.sunmaintain-video-commercial img,
.sunmaintain-video-commercial video {
    display: block;
    width: 100%;
    aspect-ratio: 1.25 / 1;
    border-radius: 8px;
    object-fit: cover;
}

/* Service strip */
.sunmaintain-home-service-strip .wp-block-columns {
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.sunmaintain-home-service-strip h3 {
    margin: 0 0 0.4rem;
    color: #083d8f;
    font-size: 1.05rem;
    font-weight: 400;
}

.sunmaintain-home-service-strip p {
    margin: 0;
    color: #625b53;
    font-size: 0.92rem;
    line-height: 1.45;
}

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

    .sunmaintain-video-commercial .sunmaintain-split-row {
        flex-direction: column !important;
    }

    .sunmaintain-video-commercial .sunmaintain-split-row .wp-block-column {
        flex-basis: 100% !important;
    }

    .sunmaintain-video-commercial .sunmaintain-split-row.is-reversed {
        flex-direction: column !important;
    }
}

@media (max-width: 480px) {
    .sunmaintain-strengths .wp-block-columns {
        grid-template-columns: 1fr;
    }
}
