/* Charcoal and emerald treatment for the existing CMS components. */
.public-theme {
    --site-ink: #202628;
    --site-muted: #505b5e;
    --site-border: #e0e6e5;
    --site-surface: #f3f6f5;
    --site-round: .45rem;
    --site-shadow: none;
    --theme-charcoal: #212629;
    --theme-charcoal-deep: #181d20;
    --theme-emerald: #116743;
    --theme-mint: #b5efcf;
}

.public-theme :is(h1, h2, h3, h4) {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    letter-spacing: -.035em;
}

/* Share the navigation palette across pages, with transparency over the homepage image. */
.public-theme .site-navbar {
    background: var(--theme-charcoal-deep);
    border-color: #ffffff28;
}
.public-theme .site-navbar-overlay { background: #181d20d9; }
.public-theme .site-navbar-overlay:is(.is-scrolled, :has(.site-navigation-panel:is(.showing, .show))) {
    background: var(--theme-charcoal-deep);
}
.public-theme .site-navbar :is(.navbar-brand, .nav-link, .menu-toggle, .navbar-toggler) { color: #f3f8f2; }
.public-theme .site-navbar .site-nav-items :is(.nav-link:hover, .menu-toggle:hover, .dropdown-toggle.show) {
    color: var(--theme-mint);
    background: #b5efcf14;
}
.public-theme .site-navbar :is(.nav-link[aria-current], .nav-item:has(.dropdown-item[aria-current]) > .nav-link) {
    color: var(--theme-mint);
    background: transparent;
    text-decoration: underline;
    text-decoration-color: var(--theme-mint);
    text-decoration-thickness: 1px;
    text-underline-offset: .3em;
}
.public-theme .site-navbar .navbar-toggler {
    border-color: #f3f8f275;
    min-block-size: 44px;
}
.public-theme .site-navbar .navbar-toggler-icon { filter: invert(1); }
.public-theme .site-navbar :focus-visible {
    outline: 2px solid var(--theme-mint);
    outline-offset: 2px;
    box-shadow: none;
}
.public-theme .site-navbar .brand-logo { background: #fff; border-radius: .4rem; }
.public-theme .site-navbar .brand-mark { background: var(--theme-emerald); border-radius: .4rem; }
.public-theme .site-nav-cta {
    --bs-btn-bg: var(--theme-emerald);
    --bs-btn-border-color: var(--theme-emerald);
    --bs-btn-hover-bg: #0e5739;
    --bs-btn-hover-border-color: #0e5739;
    --bs-btn-active-bg: #0e5739;
    --bs-btn-active-border-color: #0e5739;
    border-radius: .3rem;
}

.public-theme .site-navigation-panel { flex-grow: 1; }
@media (min-width: 992px) {
    .public-theme .site-navigation-panel > .offcanvas-header { display: none; }
    .public-theme .site-navigation-panel > .offcanvas-body { display: flex; padding: 0; overflow: visible; }
}

@media (max-width: 991.98px) {
    .public-theme .site-navigation-panel {
        --bs-offcanvas-width: min(100%, 23rem);
        --bs-offcanvas-color: #fff;
        --bs-offcanvas-bg: var(--theme-charcoal-deep);
    }
    .public-theme .site-navigation-panel > .offcanvas-header { border-block-end: 1px solid #ffffff28; }
    .public-theme .site-navigation-panel > .offcanvas-body { display: block; }
    .public-theme .site-navigation-panel .btn-close { filter: invert(1); }
    .public-theme .site-nav-cta { margin-block-start: 1.4rem; }
}

/* The same menu surfaces and link states apply over the hero and on interior pages. */
.public-theme .site-navbar .dropdown-menu {
    --bs-dropdown-bg: var(--theme-charcoal);
    --bs-dropdown-border-color: #ffffff28;
    --bs-dropdown-link-color: #f3f8f2;
    --bs-dropdown-link-hover-color: var(--theme-mint);
    --bs-dropdown-link-hover-bg: #b5efcf14;
    --bs-dropdown-link-active-color: var(--theme-mint);
    --bs-dropdown-link-active-bg: #b5efcf19;
    min-inline-size: 11rem;
    max-inline-size: min(20rem, calc(100vw - 2rem));
    padding: .35rem;
    border-radius: .45rem;
    box-shadow: 0 .55rem 1.35rem #10161838;
}
.public-theme .site-navbar .dropdown-item {
    display: block;
    flex: 1 1 auto;
    min-inline-size: 0;
    padding: .5rem .65rem;
    color: var(--bs-dropdown-link-color);
    border-radius: .3rem;
    font-size: .9rem;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}
.public-theme .site-navbar .dropdown-item:is(:hover, :focus-visible) {
    color: var(--bs-dropdown-link-hover-color);
    background: var(--bs-dropdown-link-hover-bg);
}
.public-theme .site-navbar .dropdown-item:is(.active, [aria-current]) {
    color: var(--bs-dropdown-link-active-color);
    background: var(--bs-dropdown-link-active-bg);
}
.public-theme .site-navbar .dropdown-menu .menu-toggle { color: var(--theme-mint); }
.public-theme .site-navbar .dropdown-menu :focus-visible {
    outline-color: var(--theme-mint);
    outline-offset: -2px;
}
@media (max-width: 991.98px) {
    .public-theme .site-navbar .dropdown-menu {
        min-inline-size: 0;
        max-inline-size: 100%;
        margin-block: .25rem .4rem;
        box-shadow: none;
    }
}

.public-theme :is(.home-hero, .home-hero-art, .home-hero-art.has-missing-image) { background: var(--theme-charcoal-deep); }
.public-theme .home-hero-art::after {
    background: linear-gradient(0deg, #181d20de, transparent 35%),
        linear-gradient(90deg, #131719f2, #171b1dd9 30%, #171b1d80 57%, #171b1d30 100%);
}
[dir="rtl"] .public-theme .home-hero-art::after {
    background: linear-gradient(0deg, #181d20de, transparent 35%),
        linear-gradient(270deg, #131719f2, #171b1dd9 30%, #171b1d80 57%, #171b1d30 100%);
}
.public-theme .home-hero h1 {
    font-size: clamp(2.55rem, 5vw, 4.55rem);
    font-weight: 550;
    line-height: 1.08;
}
.public-theme .home-hero-kicker { color: var(--theme-mint); border-color: #b5efcf70; }
.public-theme .home-hero-lead { color: #eef2f0; }
.public-theme .home-hero-action {
    color: #fff;
    background: #171b1d70;
    border-color: #ffffffb0;
    border-radius: .3rem;
}
.public-theme .home-hero-action:hover { color: #fff; background: var(--theme-emerald); border-color: var(--theme-emerald); }
.public-theme .home-hero-controls .btn { background: #181d20ad; border-color: #ffffff70; border-radius: .3rem; }
.public-theme .home-hero-controls .btn:hover { color: var(--theme-charcoal); background: #fff; }

@media (max-width: 767.98px) {
    .public-theme .home-hero h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
    .public-theme .home-hero .home-hero-art::after {
        background: linear-gradient(180deg, #181d2038 10%, #181d201a 30%, #181d20b0 54%, #181d20 96%);
    }
}

/* Editorial surfaces, compact section spacing and CMS-managed content. */
.public-theme .site-hero-inner { background: var(--site-surface); }
.public-theme .site-hero-inner h1 { font-weight: 650; }
.public-theme .site-section-heading { position: relative; padding-block-start: .9rem; }
.public-theme .site-section-heading::before,
.public-theme .site-hero-inner .site-hero-copy::before {
    content: '';
    display: block;
    inline-size: 2.4rem;
    block-size: 2px;
    background: var(--theme-emerald);
}
.public-theme .site-section-heading::before { position: absolute; inset-block-start: 0; inset-inline-start: 0; }
.public-theme .site-hero-inner .site-hero-copy::before { margin-block-end: .9rem; }
.public-theme .home-work { background: #fff; }
.public-theme .home-feature-art { border-radius: var(--site-round); }
.public-theme .content-card:hover { box-shadow: 0 8px 22px #171b1d0f; }
.public-theme .site-card-grid--pricing .featured { border-block-start: 4px solid var(--theme-emerald); background: #fff; }
.public-theme .site-band-process { color: #fff; background: var(--theme-charcoal); }
.public-theme .site-band-process .site-section-heading::before { background: var(--theme-mint); }
.public-theme .process-steps li { border-color: #ffffff35; background: #ffffff08; }
.public-theme .process-steps li::before { border-radius: .3rem; background: #ffffff13; color: var(--theme-mint); }
.public-theme .process-steps p { color: #e2ece7; }
.public-theme .site-card-grid--clients .content-card { background: #fff; border: 1px solid var(--site-border); }
.public-theme .site-card-grid--clients .card-copy { padding: 1rem; }
.public-theme :is(.site-footer, .site-contact-band) { background: var(--theme-charcoal-deep); }

@media (min-width: 760px) {
    .public-theme .site-card-grid--team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-theme .site-card-grid--team .content-card:has(.card-visual) {
        display: grid;
        grid-template-columns: 4.5rem minmax(0, 1fr);
        align-items: start;
        gap: .75rem;
        padding: 1.3rem;
    }
    .public-theme .site-card-grid--team .card-visual { border-radius: 50%; }
    .public-theme .site-card-grid--team .card-image { aspect-ratio: 1; }
    .public-theme .site-card-grid--team .content-card:has(.card-visual) .card-copy { padding: 0; }
}
