/* Silver Ivy Mobile Header 2.5.0
 * Stable mobile-first shell. No delayed logo swapping, no position-mode jumps,
 * and no infinite effects on the first viewport.
 */

#simh-mobile-root,
#simh-mobile-root * {
    box-sizing: border-box;
}

#simh-mobile-root {
    display: none;
    position: relative;
    width: 100%;
    z-index: 1000000;
    isolation: isolate;
    overflow: clip;
    color: var(--simh-text, #fff);
    background: #020817;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

#simh-mobile-root svg {
    display: block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
}

#simh-mobile-root a,
#simh-mobile-root button {
    -webkit-tap-highlight-color: transparent;
}

#simh-mobile-root a:focus-visible,
#simh-mobile-root button:focus-visible {
    outline: 3px solid rgba(114, 190, 255, .9);
    outline-offset: 3px;
}

/* Header stays fixed from the first frame. Switching absolute to fixed while
 * scrolling caused visible jumps and GPU flashes on phones. */
.simh-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000003;
    min-height: calc(92px + env(safe-area-inset-top));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 0%, rgba(35, 126, 255, .24), transparent 33%),
        linear-gradient(180deg, rgba(5, 16, 42, .99), rgba(2, 9, 26, .98));
    border: 0;
    border-bottom: 1px solid rgba(132, 195, 255, .24);
    border-radius: 0 0 24px 24px;
    box-shadow:
        0 16px 38px rgba(0, 0, 0, .34),
        0 0 34px rgba(20, 118, 255, .12),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    transform: translate3d(0, 0, 0);
    transition: background-color .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.admin-bar .simh-header {
    top: 46px;
}

body.simh-scrolled .simh-header,
body.simh-menu-open .simh-header {
    background:
        radial-gradient(circle at 92% 0%, rgba(35, 126, 255, .28), transparent 34%),
        linear-gradient(180deg, rgba(4, 13, 35, 1), rgba(1, 7, 21, 1));
    border-bottom-color: rgba(148, 207, 255, .34);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, .42),
        0 0 28px rgba(20, 118, 255, .16),
        inset 0 1px 0 rgba(255, 255, 255, .07);
}

.simh-brand,
.simh-drawer-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff !important;
    text-decoration: none !important;
}

.simh-brand {
    flex: 1 1 auto;
    min-height: 64px;
    max-width: calc(100% - 68px);
    overflow: hidden;
}

.simh-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(270px, calc(100vw - 118px));
    max-height: 68px;
    object-fit: contain;
    object-position: left center;
    filter:
        drop-shadow(0 2px 10px rgba(0, 0, 0, .34))
        drop-shadow(0 0 14px rgba(20, 118, 255, .12));
}

.simh-logo-fallback {
    display: none;
    min-width: 0;
    color: #fff;
    font-size: clamp(18px, 5.8vw, 29px);
    font-weight: 950;
    line-height: .9;
    letter-spacing: .055em;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .48);
}

#simh-mobile-root.simh-logo-failed .simh-logo {
    display: none !important;
}

#simh-mobile-root.simh-logo-failed .simh-logo-fallback {
    display: block;
}

.simh-mark {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    color: #fff;
    font-size: 39px;
    border: 1px solid rgba(132, 195, 255, .24);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(31, 111, 235, .42), rgba(4, 23, 66, .82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 22px rgba(0, 0, 0, .2);
}

.simh-brand-text {
    min-width: 0;
    color: #fff;
    font-size: clamp(18px, 5.6vw, 28px);
    font-weight: 950;
    line-height: .92;
    letter-spacing: .055em;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.simh-header-actions {
    width: 58px;
    flex: 0 0 58px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.simh-account {
    display: none !important;
}

.simh-icon-button {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    margin: 0;
    padding: 0;
    color: #fff !important;
    background:
        radial-gradient(circle at 32% 0%, rgba(255, 255, 255, .18), transparent 35%),
        linear-gradient(180deg, rgba(35, 121, 255, .72), rgba(5, 27, 77, .96));
    border: 1px solid rgba(131, 199, 255, .48);
    border-radius: 18px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .13),
        0 10px 24px rgba(0, 0, 0, .28),
        0 0 22px rgba(20, 118, 255, .18);
    cursor: pointer;
    text-decoration: none !important;
    transition: transform .14s ease, border-color .14s ease, background-color .14s ease;
}

.simh-icon-button:active {
    transform: translateY(1px) scale(.98);
}

.simh-icon-button svg {
    font-size: 25px;
}

.simh-burger {
    width: 24px;
    display: grid;
    gap: 5px;
}

.simh-burger span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, .2);
}

.simh-page-offset {
    display: block;
    height: calc(92px + env(safe-area-inset-top));
    margin: 0;
    background: linear-gradient(180deg, #020817, #06132f);
}

body.admin-bar .simh-page-offset {
    height: calc(138px + env(safe-area-inset-top));
}

/* Drawer */
body.simh-menu-open {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
}

.simh-backdrop[hidden] {
    display: none !important;
}

.simh-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000004;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 5, 18, .78);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.simh-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000005;
    width: 100vw;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: calc(18px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
    color: #fff;
    background:
        radial-gradient(circle at 88% 7%, rgba(20, 118, 255, .24), transparent 28%),
        radial-gradient(circle at 12% 92%, rgba(20, 118, 255, .12), transparent 32%),
        linear-gradient(180deg, #030b22 0%, #010511 100%);
    border: 0;
    transform: translate3d(102%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .22s;
}

body.simh-menu-open .simh-drawer {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.simh-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 70px;
    padding-bottom: 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(134, 196, 255, .18);
}

.simh-drawer-brand {
    flex: 1 1 auto;
    max-width: calc(100% - 70px);
}

.simh-drawer .simh-logo {
    max-width: min(250px, calc(100vw - 126px));
    max-height: 62px;
}

.simh-close {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
}

.simh-menu {
    display: grid;
    gap: 9px;
}

.simh-menu-link {
    min-height: 62px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #eaf4ff !important;
    background: linear-gradient(180deg, rgba(12, 31, 72, .82), rgba(5, 16, 43, .78));
    border: 1px solid rgba(127, 188, 255, .16);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform .14s ease, border-color .14s ease, background-color .14s ease;
}

.simh-menu-link:active {
    transform: scale(.99);
}

.simh-menu-link.is-active {
    color: #fff !important;
    border-color: rgba(116, 190, 255, .54);
    background:
        radial-gradient(circle at 8% 50%, rgba(20, 118, 255, .24), transparent 28%),
        linear-gradient(180deg, rgba(22, 72, 157, .8), rgba(6, 27, 72, .9));
    box-shadow: 0 0 24px rgba(20, 118, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.simh-menu-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #badeff;
    background: rgba(30, 105, 226, .2);
    border: 1px solid rgba(124, 190, 255, .18);
    border-radius: 13px;
    font-size: 21px;
}

.simh-menu-arrow {
    display: inline-flex;
    justify-content: flex-end;
    color: #79baff;
    font-size: 20px;
}

.simh-cta,
.simh-whatsapp {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    padding: 13px 18px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    transition: transform .14s ease, filter .14s ease;
}

.simh-cta:active,
.simh-whatsapp:active {
    transform: translateY(1px) scale(.99);
}

.simh-cta {
    color: #fff !important;
    background: linear-gradient(180deg, #2386ff, #0756d8);
    border: 1px solid rgba(153, 211, 255, .64);
    box-shadow: 0 12px 28px rgba(3, 75, 190, .28), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.simh-whatsapp {
    color: #f1fff6 !important;
    background: linear-gradient(180deg, rgba(27, 166, 92, .95), rgba(8, 105, 56, .98));
    border: 1px solid rgba(112, 240, 173, .44);
    box-shadow: 0 12px 26px rgba(0, 67, 35, .24), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.simh-menu-footer {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(134, 196, 255, .16);
}

.simh-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.simh-social {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d8ecff !important;
    background: rgba(11, 32, 74, .8);
    border: 1px solid rgba(125, 189, 255, .18);
    border-radius: 14px;
    font-size: 20px;
    text-decoration: none !important;
}

.simh-tagline {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 15px;
    color: #a9c5e6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Hero */
.simh-hero {
    position: relative;
    z-index: 1;
    min-height: max(var(--simh-hero-min, 720px), 100svh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: calc(132px + env(safe-area-inset-top)) 20px 0;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(1, 5, 16, .28), rgba(1, 7, 22, .38)),
        var(--simh-hero-bg, none),
        radial-gradient(circle at 78% 16%, rgba(30, 125, 255, .34), transparent 31%),
        radial-gradient(circle at 14% 38%, rgba(20, 118, 255, .17), transparent 28%),
        linear-gradient(180deg, #020817 0%, #061737 55%, #020817 100%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    contain: layout style;
}

.simh-hero::before,
.simh-hero::after,
.simh-hero-sky {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.simh-hero::before {
    z-index: 0;
    opacity: .8;
    background-image:
        radial-gradient(circle at 13% 18%, rgba(255, 255, 255, .82) 0 1px, transparent 1.6px),
        radial-gradient(circle at 78% 11%, rgba(255, 255, 255, .68) 0 1px, transparent 1.5px),
        radial-gradient(circle at 65% 36%, rgba(151, 208, 255, .64) 0 1px, transparent 1.7px),
        radial-gradient(circle at 31% 49%, rgba(255, 255, 255, .54) 0 1px, transparent 1.4px),
        radial-gradient(circle at 88% 59%, rgba(126, 193, 255, .5) 0 1px, transparent 1.5px);
}

.simh-hero::after {
    z-index: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(1, 6, 20, .05) 48%, rgba(1, 6, 20, .78) 100%),
        radial-gradient(ellipse at 50% 100%, rgba(20, 118, 255, .14), transparent 58%);
}

.simh-hero-sky {
    z-index: 0;
    background:
        linear-gradient(128deg, transparent 30%, rgba(72, 159, 255, .06) 48%, transparent 66%),
        radial-gradient(ellipse at 52% 18%, rgba(107, 182, 255, .08), transparent 48%);
}

.simh-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 18px 0 34px;
    text-align: center;
}

.simh-badge {
    width: fit-content;
    max-width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 23px;
    padding: 8px 13px;
    color: #dcebff;
    background: rgba(6, 23, 57, .78);
    border: 1px solid rgba(135, 196, 255, .24);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 26px rgba(0, 0, 0, .18);
    font-size: clamp(11px, 3.2vw, 13px);
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: .025em;
}

.simh-badge svg {
    color: #70b8ff;
    font-size: 16px;
}

.simh-hero-title {
    max-width: 620px;
    margin: 0 auto;
    color: #fff;
    font-size: clamp(36px, 10.8vw, 61px);
    font-weight: 950;
    line-height: .98;
    letter-spacing: -.045em;
    text-wrap: balance;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .42);
}

.simh-hero-highlight {
    width: fit-content;
    max-width: 100%;
    margin: 14px auto 0;
    padding: 7px 12px 9px;
    color: #dff0ff;
    background: linear-gradient(180deg, rgba(25, 119, 255, .86), rgba(7, 70, 180, .9));
    border: 1px solid rgba(151, 211, 255, .5);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(4, 73, 184, .23), inset 0 1px 0 rgba(255, 255, 255, .18);
    font-size: clamp(19px, 5.7vw, 30px);
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.simh-hero-copy {
    max-width: 590px;
    margin: 25px auto 0;
    color: var(--simh-muted, #c3d2e8);
    font-size: clamp(15px, 4.2vw, 18px);
    font-weight: 520;
    line-height: 1.65;
    text-wrap: pretty;
}

.simh-hero-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-top: 29px;
}

.simh-hero-primary,
.simh-hero-secondary,
.simh-hero-whatsapp {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 16px;
    border-radius: 15px;
    font-size: clamp(15px, 4.1vw, 17px);
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    transition: transform .14s ease, filter .14s ease;
}

.simh-hero-primary:active,
.simh-hero-secondary:active,
.simh-hero-whatsapp:active {
    transform: translateY(1px) scale(.99);
}

.simh-hero-primary {
    color: #fff !important;
    background: linear-gradient(180deg, #2488ff, #0754d2);
    border: 1px solid rgba(157, 213, 255, .64);
    box-shadow: 0 14px 30px rgba(3, 73, 183, .28), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.simh-hero-secondary {
    color: #e9f5ff !important;
    background: linear-gradient(180deg, rgba(10, 36, 83, .92), rgba(4, 18, 48, .95));
    border: 1px solid rgba(129, 192, 255, .28);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.simh-hero-whatsapp {
    width: 100%;
    margin-top: 13px;
    color: #effff5 !important;
    background: linear-gradient(180deg, rgba(27, 166, 92, .95), rgba(8, 105, 56, .98));
    border: 1px solid rgba(112, 240, 173, .42);
    box-shadow: 0 12px 28px rgba(0, 67, 35, .24), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.simh-feature-row {
    position: relative;
    z-index: 2;
    width: calc(100% + 40px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: auto -20px 0;
    padding: 18px 10px calc(18px + env(safe-area-inset-bottom));
    background:
        linear-gradient(180deg, rgba(2, 11, 31, .3), rgba(2, 10, 28, .92)),
        radial-gradient(ellipse at center, rgba(20, 118, 255, .13), transparent 70%);
    border-top: 1px solid rgba(126, 189, 255, .16);
}

.simh-feature {
    min-width: 0;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 8px;
    padding: 0 8px;
    color: #cfe6ff;
    text-align: center;
}

.simh-feature + .simh-feature {
    border-left: 1px solid rgba(126, 189, 255, .12);
}

.simh-feature > span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #83c2ff;
    background: rgba(19, 85, 187, .18);
    border: 1px solid rgba(126, 189, 255, .16);
    border-radius: 12px;
    font-size: 19px;
}

.simh-feature small {
    display: block;
    color: #c4d9f1;
    font-size: clamp(10px, 2.8vw, 12px);
    font-weight: 800;
    line-height: 1.25;
}

/* Compact mark logos receive a stable text wordmark. The class is based only
 * on the dimensions of the server-selected logo and never on another page image. */
#simh-mobile-root.simh-compact-logo .simh-brand {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 11px;
}

#simh-mobile-root.simh-compact-logo .simh-brand::after {
    content: "SILVER IVY\A MEDIA";
    white-space: pre;
    display: block;
    color: #fff;
    font-size: clamp(21px, 7.2vw, 33px);
    font-weight: 950;
    line-height: .84;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .55), 0 0 16px rgba(20, 118, 255, .14);
}

#simh-mobile-root.simh-compact-logo .simh-header .simh-logo {
    width: 58px;
    max-width: 58px;
    max-height: 58px;
}

#simh-mobile-root.simh-compact-logo .simh-drawer-brand::after {
    content: "Silver Ivy Media";
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .025em;
}

#simh-mobile-root.simh-compact-logo .simh-drawer .simh-logo {
    width: 54px;
    max-width: 54px;
    max-height: 54px;
}

@media (max-width: 430px) {
    .simh-header {
        min-height: calc(88px + env(safe-area-inset-top));
        padding: calc(10px + env(safe-area-inset-top)) 13px 10px;
        border-radius: 0 0 22px 22px;
    }

    .simh-brand {
        min-height: 62px;
        max-width: calc(100% - 62px);
    }

    .simh-header-actions {
        width: 54px;
        flex-basis: 54px;
    }

    .simh-icon-button {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 17px;
    }

    .simh-logo {
        max-height: 62px;
        max-width: min(245px, calc(100vw - 108px));
    }

    .simh-page-offset {
        height: calc(88px + env(safe-area-inset-top));
    }

    body.admin-bar .simh-page-offset {
        height: calc(134px + env(safe-area-inset-top));
    }

    .simh-hero {
        padding-top: calc(122px + env(safe-area-inset-top));
        padding-left: 17px;
        padding-right: 17px;
    }

    .simh-hero-inner {
        padding-top: 13px;
    }

    .simh-feature-row {
        width: calc(100% + 34px);
        margin-left: -17px;
        margin-right: -17px;
    }

    #simh-mobile-root.simh-compact-logo .simh-brand {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    #simh-mobile-root.simh-compact-logo .simh-header .simh-logo {
        width: 54px;
        max-width: 54px;
        max-height: 54px;
    }
}

@media (max-width: 374px) {
    .simh-header {
        padding-left: 11px;
        padding-right: 11px;
    }

    .simh-hero {
        padding-left: 15px;
        padding-right: 15px;
    }

    .simh-hero-buttons {
        grid-template-columns: 1fr;
    }

    .simh-feature-row {
        width: calc(100% + 30px);
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 5px;
        padding-right: 5px;
    }

    #simh-mobile-root.simh-compact-logo .simh-brand::after {
        font-size: 20px;
        letter-spacing: .045em;
    }
}

@media (min-width: 560px) and (max-width: 782px) {
    .simh-header {
        padding-left: 24px;
        padding-right: 24px;
    }

    .simh-hero {
        padding-left: 34px;
        padding-right: 34px;
    }

    .simh-feature-row {
        width: calc(100% + 68px);
        margin-left: -34px;
        margin-right: -34px;
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .simh-header,
    .simh-icon-button,
    .simh-drawer,
    .simh-menu-link,
    .simh-cta,
    .simh-whatsapp,
    .simh-hero-primary,
    .simh-hero-secondary,
    .simh-hero-whatsapp {
        transition: none !important;
    }
}

/* =========================================================
   2.5.0 centered brand and typography refinement
   ========================================================= */
#simh-mobile-root {
    font-family: Inter, Aptos, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-variation-settings: "opsz" 32;
}

/* Use equal left and right control columns so the brand is mathematically
 * centered rather than merely centered in the space left by the menu. */
.simh-header {
    top: max(10px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    min-height: 124px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(104, 177, 255, .28);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 4%, rgba(37, 127, 255, .22), transparent 34%),
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .055), transparent 27%),
        linear-gradient(180deg, rgba(4, 15, 39, .995), rgba(2, 9, 26, .985));
    box-shadow:
        0 18px 44px rgba(0, 0, 0, .38),
        0 0 34px rgba(20, 118, 255, .13),
        inset 0 1px 0 rgba(255, 255, 255, .07);
}

body.admin-bar .simh-header {
    top: calc(56px + env(safe-area-inset-top));
}

.simh-brand {
    grid-column: 2;
    justify-self: center;
    width: 100%;
    min-height: 94px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    overflow: visible;
    text-align: center;
}

.simh-brand--image .simh-logo {
    width: auto;
    max-width: min(100%, 230px);
    max-height: 88px;
    object-position: center;
}

.simh-header-actions {
    grid-column: 3;
    justify-self: end;
    width: 56px;
    flex-basis: 56px;
    margin: 0;
}

.simh-toggle {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 18px;
}

/* Compact logo sources become the centered vertical lockup shown in the
 * approved design, rather than being placed beside a second wordmark. */
#simh-mobile-root.simh-compact-logo .simh-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

#simh-mobile-root.simh-compact-logo .simh-brand::after {
    content: none;
    display: none;
}

.simh-compact-wordmark {
    display: none;
}

#simh-mobile-root.simh-compact-logo .simh-header .simh-logo {
    width: 48px;
    max-width: 48px;
    max-height: 48px;
    margin: 0 auto;
}

#simh-mobile-root.simh-compact-logo .simh-compact-wordmark {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 13px rgba(0, 0, 0, .48), 0 0 17px rgba(20, 118, 255, .14);
}

#simh-mobile-root.simh-compact-logo .simh-compact-wordmark strong {
    display: block;
    font-size: clamp(20px, 6.3vw, 27px);
    font-weight: 780;
    line-height: 1;
    letter-spacing: .105em;
    white-space: nowrap;
}

#simh-mobile-root.simh-compact-logo .simh-compact-wordmark small {
    min-width: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    color: rgba(255, 255, 255, .9);
    font-size: 10px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: .42em;
    text-indent: .42em;
}

#simh-mobile-root.simh-compact-logo .simh-compact-wordmark small::before,
#simh-mobile-root.simh-compact-logo .simh-compact-wordmark small::after {
    content: "";
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, .58);
}

.simh-brand--fallback {
    flex-direction: column;
}

.simh-brand--fallback .simh-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.simh-brand--fallback .simh-brand-text {
    max-width: 220px;
    font-size: clamp(20px, 6vw, 27px);
    font-weight: 780;
    line-height: 1;
    letter-spacing: .075em;
    text-align: center;
}

.simh-page-offset {
    height: calc(146px + env(safe-area-inset-top));
}

body.admin-bar .simh-page-offset {
    height: calc(192px + env(safe-area-inset-top));
}

/* Cleaner hero typography and calmer vertical rhythm. */
.simh-hero {
    padding-top: calc(166px + env(safe-area-inset-top));
}

.simh-hero-inner {
    max-width: 620px;
    padding-top: 12px;
    padding-bottom: 38px;
}

.simh-badge {
    min-height: 40px;
    margin-bottom: 28px;
    padding: 9px 15px;
    font-size: clamp(11px, 3.15vw, 13px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .04em;
}

.simh-hero-title {
    max-width: 570px;
    font-size: clamp(39px, 10.4vw, 59px);
    font-weight: 780;
    line-height: 1.045;
    letter-spacing: -.038em;
    text-wrap: balance;
}

.simh-hero-highlight {
    margin-top: 17px;
    padding: 9px 16px 10px;
    border-radius: 14px;
    font-size: clamp(18px, 5.2vw, 26px);
    font-weight: 760;
    line-height: 1.12;
    letter-spacing: -.018em;
}

.simh-hero-copy {
    max-width: 550px;
    margin-top: 28px;
    font-size: clamp(15px, 4.15vw, 18px);
    font-weight: 440;
    line-height: 1.68;
    letter-spacing: -.006em;
}

.simh-hero-buttons {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 31px;
}

.simh-hero-primary,
.simh-hero-secondary,
.simh-hero-whatsapp {
    min-height: 66px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 28px;
    align-items: center;
    justify-content: stretch;
    gap: 12px;
    padding: 9px 16px 9px 10px;
    border-radius: 17px;
    font-size: clamp(16px, 4.35vw, 19px);
    font-weight: 720;
    letter-spacing: -.012em;
}

.simh-button-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    background: rgba(0, 22, 65, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
    font-size: 23px;
}

.simh-button-label {
    min-width: 0;
    text-align: left;
}

.simh-button-arrow {
    display: inline-flex;
    justify-content: flex-end;
    font-size: 22px;
}

.simh-hero-whatsapp {
    margin-top: 1px;
}

.simh-feature-row {
    padding-top: 21px;
}

.simh-feature {
    gap: 10px;
    padding-left: 7px;
    padding-right: 7px;
}

.simh-feature > span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 21px;
}

.simh-feature small {
    font-size: clamp(10px, 2.75vw, 12px);
    font-weight: 700;
    line-height: 1.3;
}

/* The site theme was supplying a very heavy display face on mobile. Keep this
 * override conservative, but normalize page headings and body copy so the
 * interior pages match the refined header. */
@media (max-width: 782px) {
    body.simh-mobile-header-enabled :where(h1, h2, h3, h4, h5, h6, .elementor-heading-title) {
        font-family: Inter, Aptos, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
        font-weight: 760 !important;
        letter-spacing: -.035em !important;
        text-wrap: balance;
    }

    body.simh-mobile-header-enabled :where(p, li, button, input, textarea, select) {
        font-family: Inter, Aptos, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }
}

@media (max-width: 430px) {
    .simh-header {
        top: max(8px, env(safe-area-inset-top));
        left: 9px;
        right: 9px;
        min-height: 120px;
        grid-template-columns: 52px minmax(0, 1fr) 52px;
        padding: 12px;
        border-radius: 25px;
    }

    body.admin-bar .simh-header {
        top: calc(54px + env(safe-area-inset-top));
    }

    .simh-brand {
        min-height: 92px;
    }

    .simh-brand--image .simh-logo {
        max-width: min(100%, 218px);
        max-height: 84px;
    }

    .simh-header-actions {
        width: 52px;
        flex-basis: 52px;
    }

    .simh-toggle {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        border-radius: 17px;
    }

    #simh-mobile-root.simh-compact-logo .simh-header .simh-logo {
        width: 45px;
        max-width: 45px;
        max-height: 45px;
    }

    #simh-mobile-root.simh-compact-logo .simh-compact-wordmark strong {
        font-size: clamp(19px, 6.1vw, 24px);
        letter-spacing: .09em;
    }

    .simh-page-offset {
        height: calc(138px + env(safe-area-inset-top));
    }

    body.admin-bar .simh-page-offset {
        height: calc(184px + env(safe-area-inset-top));
    }

    .simh-hero {
        padding-top: calc(156px + env(safe-area-inset-top));
        padding-left: 18px;
        padding-right: 18px;
    }

    .simh-badge {
        margin-bottom: 24px;
    }

    .simh-hero-title {
        font-size: clamp(37px, 10.2vw, 49px);
    }

    .simh-hero-copy {
        margin-top: 25px;
    }
}

@media (max-width: 365px) {
    .simh-header {
        left: 7px;
        right: 7px;
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        padding-left: 9px;
        padding-right: 9px;
    }

    .simh-toggle {
        width: 47px;
        height: 47px;
        flex-basis: 47px;
    }

    .simh-brand--image .simh-logo {
        max-width: min(100%, 194px);
    }

    #simh-mobile-root.simh-compact-logo .simh-compact-wordmark strong {
        font-size: 18px;
        letter-spacing: .075em;
    }

    #simh-mobile-root.simh-compact-logo .simh-compact-wordmark small {
        min-width: 116px;
        font-size: 9px;
    }

    .simh-hero-primary,
    .simh-hero-secondary,
    .simh-hero-whatsapp {
        grid-template-columns: 42px minmax(0, 1fr) 24px;
        gap: 9px;
        padding-right: 12px;
    }

    .simh-button-icon {
        width: 40px;
        height: 40px;
    }
}
