:root {
    --simerly-ink: #0e243f;
    --simerly-blue: #159dd9;
    --simerly-green: #7ac043;
    --simerly-navy: #142b4a;
    --simerly-white: #ffffff;
    --simerly-black: #050505;
    --simerly-soft: #f7fafc;
    --simerly-text: #0e243f;
    --simerly-header-height: 138px;
    --simerly-header-offset: 0px;
    --simerly-max: 1500px;
}

* {
    box-sizing: border-box;
}

body.simerly-site {
    margin: -128px 0 0 0;
    color: var(--simerly-text);
    background: var(--simerly-white);
    font-family: Arial, Helvetica, sans-serif;
}

.simerly-container {
    width: min(var(--simerly-max), calc(100% - 8vw));
    margin-inline: auto;
}

/* Header */

.simerly-header {
    position: fixed;
    inset: var(--simerly-header-offset) 0 auto 0;
    z-index: 50;
    min-height: var(--simerly-header-height);
    color: var(--simerly-black);
    border-radius: 0;
    background: transparent;
    isolation: isolate;
}

.simerly-header__blur {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    border: 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.82);
    background: rgba(255, 255, 255, 0.68);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    backdrop-filter: blur(22px) saturate(145%);
    box-shadow: none;
}

.simerly-header__blur::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--simerly-header-bg-image, none);
    background-position: center;
    background-size: cover;
    opacity: 0.18;
    pointer-events: none;
    filter: blur(2px);
}

.simerly-header__brand-row,
.simerly-header__nav-row {
    position: relative;
    z-index: 1;
}

.simerly-header__brand-row {
    min-height: 104px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 17px 8px 13px;
}

.simerly-header__logo {
    display: inline-flex;
    align-items: flex-start;
    color: inherit;
    text-decoration: none;
}

.simerly-header__logo img {
    display: block;
    width: auto;
    max-width: min(360px, 56vw);
    max-height: 82px;
    object-fit: contain;
}

.simerly-wordmark {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    color: #1a2d4c;
}

.simerly-wordmark__mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 50px;
    border: 3px solid #1a2d4c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.08em;
    box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #1a2d4c;
}

.simerly-wordmark__copy {
    display: grid;
    line-height: 1;
}

.simerly-wordmark__name {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3.85rem);
    letter-spacing: 0.14em;
    line-height: 0.88;
    text-transform: uppercase;
}

.simerly-wordmark__sub {
    display: block;
    margin-top: 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(0.78rem, 1.35vw, 1.22rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.simerly-header__right {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 9px;
}

.simerly-header__partner-logo {
    display: block;
    width: auto;
    max-width: 116px;
    max-height: 42px;
    object-fit: contain;
}

.simerly-header__partner-text {
    min-width: 96px;
    color: #178dd1;
    text-align: left;
    line-height: 1.02;
    transform: skew(-8deg);
}

.simerly-header__partner-text strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.78rem;
    font-style: italic;
    letter-spacing: 0.05em;
}

.simerly-header__partner-text span {
    display: block;
    margin-top: 3px;
    font-size: 0.43rem;
    letter-spacing: 0.02em;
    transform: skew(8deg);
}

.simerly-header__burger {
    display: none;
    width: 34px;
    height: 30px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.simerly-header__burger span {
    display: block;
    height: 5px;
    background: #555;
    margin: 4px 0;
    border-radius: 1px;
}

.simerly-header__nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding: 0 17px 9px 17px;
    gap: 20px;
}

.simerly-header__nav {
    display: flex;
    align-items: center;
}

.simerly-header__nav a {
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    line-height: 1;
    white-space: nowrap;
}

.simerly-header__nav--primary {
    flex-wrap: wrap;
    row-gap: 9px;
}

.simerly-header__nav--primary a + a::before {
    content: "|";
    display: inline-block;
    margin: 0 9px 0 11px;
    color: #000;
    font-weight: 700;
    letter-spacing: 0;
}

.simerly-header__nav--utility {
    margin-left: auto;
}

.simerly-mobile-menu {
    display: none;
}

.simerly-mobile-menu.is-open {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 16px;
    padding: 22px 18px 28px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
    box-shadow: 0 18px 26px rgba(0, 0, 0, 0.13);
    border-radius: 0 0 20px 20px;
}

.simerly-mobile-menu a {
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.22em;
}

/* Main spacing under fixed header */

.simerly-main {
    padding-top: var(--simerly-header-height);
    min-height: 100vh;
}

/* Product bands matching the supplied Simerly reference */

.simerly-product-band {
    --product-band-bg: var(--simerly-green);
    --product-band-text: #fff;
    display: grid;
    place-items: center;
    min-height: clamp(170px, 16vw, 230px);
    padding: clamp(18px, 2.2vw, 30px) 16px;
    background: var(--product-band-bg);
    color: var(--product-band-text);
    text-align: center;
}

.simerly-product-band--green {
    --product-band-bg: var(--simerly-green);
}

.simerly-product-band--blue {
    --product-band-bg: var(--simerly-blue);
}

.simerly-product-band--navy {
    --product-band-bg: var(--simerly-navy);
}

.simerly-product-band--white {
    --product-band-bg: #fff;
    --product-band-text: #111;
}

.simerly-product-band__inner {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.simerly-product-band h1 {
    margin: 0;
    color: inherit;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 5.6vw, 5.35rem);
    font-weight: 400;
    letter-spacing: 0.22em;
    line-height: 1.02;
    text-transform: uppercase;
}

.simerly-product-band p {
    margin: 0 0 34px;
    color: inherit;
    font-size: clamp(0.82rem, 1.15vw, 1.08rem);
    font-weight: 700;
    letter-spacing: 0.42em;
    text-transform: uppercase;
}

.simerly-product-band__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 7px 14px 6px;
    border-radius: 4px;
    background: #060606;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    line-height: 1;
}

/* Existing Simerly blocks */

.simerly-hero-band {
    position: relative;
    height: var(--simerly-hero-band-height, clamp(150px, 20vw, 320px));
    overflow: hidden;
    background: #e5e7eb;
}

.simerly-hero-band__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.simerly-hero-band__empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eef2f7, #dbe4ef);
}

.simerly-hero-band__overlay {
    position: absolute;
    inset: 0;
    background: white;
}

.simerly-intro {
    background: white;
    padding: clamp(48px, 6.6vmax, 104px) 0;
}

.simerly-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    gap: clamp(32px, 7vw, 96px);
    align-items: center;
}

.simerly-intro h1 {
    margin: 0 0 28px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4.8vw, 5rem);
    line-height: 1.05;
    color: var(--simerly-ink);
}

.simerly-intro__body {
    max-width: 800px;
    color: var(--simerly-blue);
    font-size: clamp(1.25rem, 2vw, 1.95rem);
    line-height: 1.55;
    font-weight: 700;
}

.simerly-intro__body p {
    margin: 0;
}

.simerly-intro__image img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
}

.simerly-services {
    background: var(--simerly-navy);
    padding: clamp(48px, 6.6vmax, 104px) 0;
}

.simerly-services__heading {
    margin: 0 0 28px;
    color: white;
    font-family: var(--simerly-display);
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 400;
    line-height: 1.05;
    text-align: center;
}

.simerly-services__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.simerly-service-card {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 20px;
    padding: 10%;
    color: white;
    text-decoration: none;
    text-align: center;
}

.simerly-service-card__image {
    width: 100%;
    max-width: 190px;
    aspect-ratio: 1;
    border-radius: 999px;
    overflow: hidden;
    display: block;
    background: rgba(255, 255, 255, 0.15);
}

.simerly-service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.simerly-service-card__title {
    color: white;
    font-size: clamp(1.75rem, 2vw, 2.35rem);
    line-height: 1.1;
    font-weight: 700;
}

/* CMS page-builder sections */

.cms-section {
    padding: clamp(28px, 5vw, 72px) 0;
}

.cms-section.is-flush,
.cms-section--flush {
    padding: 0;
}

.cms-section.is-flush + .cms-section.is-flush,
.cms-section--flush + .cms-section--flush {
    border-top: 11px solid #fff;
}

.cms-section__inner {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.cms-section--full-width .cms-section__inner {
    width: 100%;
}

.cms-section--full-width .cms-columns {
    gap: 0;
}

.cms-section.is-flush .cms-section__inner,
.cms-section--flush .cms-section__inner {
    width: 100%;
}

.cms-columns {
    display: grid;
    gap: clamp(20px, 3vw, 42px);
    align-items: start;
}

.cms-section.is-flush .cms-columns,
.cms-section--flush .cms-columns {
    gap: 0;
}

.cms-columns--one {
    grid-template-columns: 1fr;
}

.cms-columns--two_equal {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.cms-columns--wide_left {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.cms-columns--wide_right {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.cms-columns--three_equal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cms-column > *:first-child {
    margin-top: 0;
}

.cms-column > *:last-child {
    margin-bottom: 0;
}

.cms-rich-text,
.simerly-content-section {
    width: min(860px, 100%);
}

.simerly-content-section h2 {
    margin: 0 0 18px;
    font-family: var(--simerly-display);
    font-size: clamp(2.5rem, 4.4vw, 4.85rem);
    font-weight: 400;
    line-height: 1.05;
}

.simerly-content-section__body {
    font-size: clamp(1.18rem, 1.6vw, 1.58rem);
    line-height: 1.6;
}

.simerly-content-section:has(.simerly-content-section__media) {
    width: min(1120px, 100%);
}

.simerly-content-section__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.simerly-content-section__media {
    margin: 0;
}

.simerly-content-section__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (min-width: 860px) {
    .simerly-content-section:has(.simerly-content-section__media) .simerly-content-section__grid {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
    }
}

.cms-image-block {
    margin: 0;
}

.cms-image-block img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.cms-image-block figcaption {
    margin-top: 8px;
    color: #5d6675;
    font-size: 0.9rem;
}

.simerly-cta-section {
    padding: clamp(34px, 5vw, 76px) 0;
    background: var(--simerly-navy);
    color: #fff;
}

.simerly-cta-section__inner {
    text-align: center;
}

.simerly-cta-section h2 {
    margin: 0 0 12px;
    font-size: clamp(2.4rem, 4.4vw, 4.6rem);
}

.simerly-cta-section p {
    margin: 0 auto 22px;
    max-width: 680px;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem);
    line-height: 1.55;
}

/* Theme page layout variants */

.simerly-main--landing .cms-section:first-child {
    padding-top: 0;
}

.simerly-main--narrow .cms-section__inner {
    width: min(820px, calc(100% - 32px));
}

.simerly-main--full-width .cms-section__inner {
    width: min(100%, calc(100% - 32px));
}

.layout-narrow .cms-rich-text,
.layout-narrow .simerly-content-section {
    width: 100%;
}

.sig-footer {
    padding: 32px 4vw;
    color: white;
    background: var(--simerly-ink);
}

.sig-footer-inner {
    width: min(var(--simerly-max), 100%);
    margin-inline: auto;
}

.sig-footer-custom > *:first-child {
    margin-top: 0;
}

.sig-footer-custom > *:last-child {
    margin-bottom: 0;
}

.sig-footer-custom a {
    color: white;
}

@media (max-width: 980px) {
    .simerly-header__brand-row {
        min-height: 96px;
    }

    .simerly-header__nav a {
        font-size: 0.6rem;
        letter-spacing: 0.28em;
    }

    .simerly-header__nav--primary a + a::before {
        margin-inline: 7px 8px;
    }

    .simerly-services__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    :root {
        --simerly-header-height: 104px;
        --simerly-header-offset: 0px;
    }

    .simerly-header__brand-row {
        min-height: 78px;
        align-items: center;
        padding: 10px 14px 7px;
    }

    .simerly-header__logo img {
        max-width: min(290px, 68vw);
        max-height: 58px;
    }

    .simerly-wordmark__mark {
        width: 48px;
        height: 42px;
        font-size: 22px;
    }

    .simerly-wordmark__name {
        font-size: clamp(1.6rem, 8vw, 2.35rem);
    }

    .simerly-wordmark__sub {
        font-size: clamp(0.58rem, 2.5vw, 0.82rem);
        margin-top: 6px;
    }

    .simerly-header__partner-logo,
    .simerly-header__partner-text {
        display: none;
    }

    .simerly-header__nav-row {
        display: none;
    }

    .simerly-header__burger {
        display: block;
        width: 36px;
    }

    .simerly-product-band {
        min-height: 150px;
    }

    .simerly-product-band h1 {
        font-size: clamp(2rem, 9vw, 3.2rem);
        letter-spacing: 0.12em;
    }

    .simerly-product-band p {
        margin-bottom: 24px;
        letter-spacing: 0.32em;
    }

    .simerly-container {
        width: min(100% - 12vw, var(--simerly-max));
    }

    .simerly-intro__grid {
        grid-template-columns: 1fr;
    }

    .simerly-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cms-columns--two_equal,
    .cms-columns--wide_left,
    .cms-columns--wide_right,
    .cms-columns--three_equal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .simerly-services__grid {
        grid-template-columns: 1fr;
    }
}

/* Plugin form blocks */
.cms-form-block {
    width: min(760px, calc(100% - 2rem));
    margin: 2rem auto;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.cms-form-block h2 {
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1.05;
}

.cms-form-block > p {
    font-size: clamp(1.08rem, 1.4vw, 1.35rem);
    line-height: 1.5;
}

.cms-form-block--plain {
    padding-inline: 0;
    background: transparent;
    box-shadow: none;
}

.cms-contact-form {
    display: grid;
    gap: 1.12rem;
}

.cms-form-block--two_column .cms-contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cms-form-block--two_column .cms-form-block__hp,
.cms-form-block--two_column .cms-form-block__message,
.cms-form-block--two_column .cms-contact-form button,
.cms-form-block--two_column .cms-contact-form label:has(textarea) {
    grid-column: 1 / -1;
}

.cms-form-block__hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cms-contact-form label {
    display: grid;
    gap: .35rem;
    font-size: 1.08rem;
    font-weight: 700;
}

.cms-contact-form input,
.cms-contact-form textarea {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: .75rem;
    padding: .75rem .85rem;
    font: inherit;
}

.cms-contact-form button {
    justify-self: start;
    border: 0;
    border-radius: 999px;
    padding: 1rem 1.45rem;
    background: #1d4ed8;
    color: #fff;
    font-weight: 800;
    font-size: 1.02rem;
    cursor: pointer;
}

.cms-form-block--button-green .cms-contact-form button {
    background: var(--simerly-green);
}

.cms-form-block--button-navy .cms-contact-form button {
    background: var(--simerly-navy);
}

.cms-form-block__message {
    margin: 0;
    font-weight: 700;
}

@media (max-width: 760px) {
    .cms-form-block--two_column .cms-contact-form {
        grid-template-columns: 1fr;
    }
}
