/* Shared brand typography and header. This file intentionally contains no motion rules. */
@font-face {
    font-family: "Outfit";
    src: url("../assets/fonts/Outfit-Variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --font-display: "Outfit", "Segoe UI", sans-serif;
    --font-body: "Outfit", "Segoe UI", sans-serif;
    --nav-height: 88px;
}

html,
body,
button,
input,
select,
textarea {
    font-family: var(--font-body);
}

body[class^="page-"] :is(h1, h2, h3, h4) {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.16;
}

body[class^="page-"] .eyebrow {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.1em;
}

body :is(
    .system-map-heading,
    .system-map-node,
    .system-map-core,
    .system-map-footer,
    .feature-orbit,
    .process-list,
    .browser-interface,
    .mobile-interface,
    .route-interface,
    .automation-flow-node,
    .automation-flow-hub,
    .automation-flow-caption,
    .about-team-orbit,
    .about-orbit-member,
    .creative-support-image figcaption
) {
    font-family: var(--font-body);
}

/* Shared small-tile treatment used for service filters, tags and badges. */
body :is(
    .home-service-pills a,
    .services-intro-paths a,
    .closing-guidance-options span,
    .website-service-badge,
    .plan-marker,
    .ppc-service-tags li,
    .ppc-service-badge,
    .creative-service-tags li,
    .about-team-section .team-tags li
) {
    box-shadow: 3px 3px 0 rgba(66, 105, 76, 0.1);
}

body :is(.home-service-pills a, .services-intro-paths a):is(:hover, :focus-visible) {
    box-shadow: 5px 5px 0 rgba(66, 105, 76, 0.16);
}

html[data-theme="dark"] body :is(
    .home-service-pills a,
    .services-intro-paths a,
    .closing-guidance-options span,
    .website-service-badge,
    .plan-marker,
    .ppc-service-tags li,
    .ppc-service-badge,
    .creative-service-tags li,
    .about-team-section .team-tags li
) {
    box-shadow: 3px 3px 0 rgba(173, 201, 176, 0.09);
}

/* Identical navigation shell on the homepage and every subpage. */
html[data-theme] .site-header {
    --surface: #ffffff;
    --surface-muted: #f1f5ee;
    --primary: #42694c;
    --primary-strong: #284b35;
    --primary-soft: #e5efdf;
    --accent: #42694c;
    --accent-soft: #dcead6;
    --ink: #26392d;
    --ink-soft: #435749;
    --line: #ccd9c9;
    min-height: 89px;
    color: var(--ink);
    color-scheme: light;
    background: #ffffff;
    border-bottom: 1px solid #e0e7dc;
    box-shadow: none;
    backdrop-filter: none;
}

html[data-theme] .site-header .nav-shell {
    width: min(var(--section), calc(100% - 40px));
    max-width: none;
    min-height: 88px;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 14px;
}

html[data-theme] .site-header .brand {
    width: 290px;
    min-width: 0;
    min-height: 44px;
    gap: 0;
}

html[data-theme] .site-header .brand-logo {
    display: block;
    width: 290px;
    max-width: 100%;
    height: auto;
    background: #ffffff;
}

html[data-theme] .site-header .brand-logo--mark {
    display: none;
}

html[data-theme] .site-header .primary-nav {
    background-color: #ffffff;
}

html[data-theme] .site-header .primary-nav a {
    padding-inline: 10px;
    color: #435749;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
}

html[data-theme] .site-header .primary-nav a:is(:hover, :focus-visible, .is-active) {
    color: #284b35;
    background: #e5efdf;
}

html[data-theme] .site-header .site-cta.site-cta {
    min-width: 154px;
    min-height: 44px;
    padding: 5px 6px 5px 13px;
    color: #ffffff;
    background: #42694c;
    border-color: #42694c;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(40, 75, 53, 0.1);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
}

html[data-theme] .site-header .site-cta.site-cta:is(:hover, :focus-visible) {
    color: #ffffff;
    background: #284b35;
    border-color: #284b35;
    box-shadow: 0 12px 28px rgba(40, 75, 53, 0.16);
}

html[data-theme] .site-header .site-cta.site-cta > i {
    width: 31px;
    color: #284b35;
    background: #e5efdf;
    border-color: transparent;
    box-shadow: none;
    font-size: 0.78rem;
}

html[data-theme] .site-header :is(.nav-toggle, .language-switch, .theme-toggle) {
    color: #42694c;
    background: #ffffff;
    border-color: #ccd9c9;
    box-shadow: none;
}

html[data-theme] .site-header .language-button.is-active {
    background: #e5efdf;
    border-color: #ccd9c9;
    box-shadow: none;
}

html[data-theme] .site-header .theme-toggle-thumb {
    background: #42694c;
    box-shadow: 0 7px 16px rgba(40, 75, 53, 0.2);
}

html[data-theme] .site-header .theme-toggle:is(:hover, :focus-visible) {
    border-color: #7caaa0;
    box-shadow: 0 10px 24px rgba(40, 75, 53, 0.12);
}

html[data-theme] .site-header .nav-toggle span:not(.sr-only) {
    background: #284b35;
}

body :is(.site-cta.site-cta, .button, .consent-action) {
    font-family: var(--font-body);
}

body .site-cta.site-cta {
    font-weight: 500;
}

/* Match every content CTA to the homepage interaction pattern. */
html[data-theme] body main .site-cta.site-cta {
    color: #ffffff;
    background: #42694c;
    border-color: #42694c;
    box-shadow: 0 5px 16px rgba(40, 75, 53, 0.1);
}

html[data-theme] body main .site-cta.site-cta:is(:hover, :focus-visible) {
    color: #ffffff;
    background: #284b35;
    border-color: #284b35;
    box-shadow: 0 12px 36px rgba(40, 75, 53, 0.06);
    transform: translateY(-2px);
}

html[data-theme] body main .site-cta.site-cta > i,
html[data-theme] body main .site-cta.site-cta:is(:hover, :focus-visible) > i {
    color: #284b35;
    background: #e5efdf;
    border-color: transparent;
    box-shadow: none;
}

html[data-theme] body main .site-cta.site-cta--secondary {
    color: #284b35;
    background: #ffffff;
    border-color: #ccd9c9;
    box-shadow: none;
}

html[data-theme] body main .site-cta.site-cta--secondary:is(:hover, :focus-visible) {
    color: #284b35;
    background: #e5efdf;
    border-color: #42694c;
    box-shadow: 0 12px 36px rgba(40, 75, 53, 0.06);
}

/* Selective pointer depth for a small number of key text surfaces. */
:is(
    .home-hero-copy,
    .home-process-copy,
    .services-automation-copy,
    .website-service-offer,
    .ppc-service-details,
    .creative-support-copy,
    .about-identity-copy-inner,
    .team-card-body,
    .page-contact .page-hero,
    .contact-form-heading
) {
    position: relative;
    isolation: isolate;
}

/* Paired image-and-copy motion keeps major editorial sections consistent.
   The individual translate property composes with reveal, scroll-depth and tilt transforms. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    [data-pointer-pair-layer] {
        translate: var(--pointer-pair-x, 0px) var(--pointer-pair-y, 0px);
        transition: translate 420ms cubic-bezier(.22, 1, .36, 1);
        will-change: translate;
    }

    [data-pointer-pair].is-pointer-pair-active [data-pointer-pair-layer] {
        transition-duration: 120ms;
        transition-timing-function: ease-out;
    }
}

:is(.website-service-offer, .ppc-service-details, .team-card-body) {
    overflow: hidden;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    [data-premium-surface] {
        --premium-rotate-x: 0deg;
        --premium-rotate-y: 0deg;
        --premium-shift-x: 0px;
        --premium-shift-y: 0px;
        backface-visibility: hidden;
        transform-style: preserve-3d;
        transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms ease;
        will-change: transform;
    }

    [data-premium-surface].is-premium-active {
        transform: perspective(1200px) translate3d(var(--premium-shift-x), var(--premium-shift-y), 0) rotateX(var(--premium-rotate-x)) rotateY(var(--premium-rotate-y));
        transition-duration: 90ms, 280ms;
    }

}

@media (min-width: 1121px) and (max-width: 1240px) {
    html[data-theme] .site-header .brand,
    html[data-theme] .site-header .brand-logo {
        width: 250px;
    }

    html[data-theme] .site-header .nav-shell {
        gap: 10px;
    }

    html[data-theme] .site-header .primary-nav a {
        padding-inline: 7px;
        font-size: 0.85rem;
    }
}

@media (max-width: 1120px) {
    html[data-theme] .site-header .nav-shell {
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        gap: 10px;
    }

    html[data-theme] .site-header .brand,
    html[data-theme] .site-header .brand-logo {
        width: min(250px, 32vw);
    }
}

@media (max-width: 760px) {
    html[data-theme] .site-header .nav-shell {
        width: min(100% - 28px, var(--section));
    }

    html[data-theme] .site-header .brand,
    html[data-theme] .site-header .brand-logo {
        width: min(222px, 46vw);
    }
}

@media (max-width: 580px) {
    :root {
        --nav-height: 74px;
    }

    html[data-theme] .site-header {
        min-height: 74px;
    }

    html[data-theme] .site-header .nav-shell {
        width: min(100% - 20px, var(--section));
        min-height: 74px;
        grid-template-columns: 52px minmax(0, 1fr) auto auto auto;
        grid-template-rows: 64px;
        gap: 6px;
        padding-block: 5px;
    }

    html[data-theme] .site-header .brand {
        width: 52px;
        min-height: 48px;
        grid-column: 1;
        grid-row: 1;
    }

    html[data-theme] .site-header .brand-logo--full {
        display: none;
    }

    html[data-theme] .site-header .brand-logo--mark {
        width: 52px;
        height: 46px;
        display: block;
        object-fit: contain;
        background: transparent;
    }

    html[data-theme] .site-header .nav-toggle {
        width: 46px;
        height: 46px;
        grid-column: 5;
        grid-row: 1;
    }

    html[data-theme] .site-header .language-switch {
        min-height: 44px;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    html[data-theme] .site-header .theme-toggle {
        width: 52px;
        min-width: 52px;
        grid-column: 4;
        grid-row: 1;
    }

    html[data-theme] .site-header .primary-nav {
        top: calc(100% + 2px);
    }
}

/* Keep the original footer mark crisp on the dark brand surface. */
html[data-theme] .site-footer .footer-brand {
    width: min(100%, 306px);
}

html[data-theme] .site-footer .footer-brand-logo-wrap {
    display: block;
    width: 100%;
    background: transparent;
}

html[data-theme] .site-footer .footer-brand-logo {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0) saturate(100%) invert(91%) sepia(12%) saturate(348%) hue-rotate(61deg) brightness(99%) contrast(90%);
}

@media (max-width: 580px) {
    html[data-theme] .site-footer .footer-brand {
        width: min(100%, 286px);
    }
}

/* Calm, evenly weighted footer. */
html[data-theme] .site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 16%, rgba(173, 201, 176, .12), transparent 30%),
        linear-gradient(145deg, #173a25, #102f1e 76%);
}

html[data-theme] .site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
    pointer-events: none;
}

html[data-theme] .footer-grid {
    grid-template-columns: minmax(300px, 1.12fr) minmax(190px, .58fr) minmax(270px, .74fr);
    align-items: start;
    gap: clamp(46px, 6vw, 94px);
    padding: 52px 0 42px;
}

html[data-theme] .footer-brand-block {
    align-content: start;
    gap: 18px;
    padding: 0;
    border: 0;
}

html[data-theme] .footer-brand-block > p {
    max-width: 420px;
    color: rgba(232, 240, 231, .78);
    font-size: .96rem;
    line-height: 1.6;
}

html[data-theme] :is(.footer-links, .footer-contact) {
    align-content: start;
    gap: 12px;
    padding: 8px 0 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

html[data-theme] :is(.footer-links, .footer-contact) > span {
    margin-bottom: 6px;
    color: #adc9b0;
    letter-spacing: .09em;
}

html[data-theme] .footer-links a {
    width: fit-content;
    position: relative;
    color: rgba(247, 250, 245, .84);
    transition: color 220ms ease, transform 220ms ease;
}

html[data-theme] .footer-links a:is(:hover, :focus-visible) {
    color: #ffffff;
    transform: translateX(4px);
}

html[data-theme] .footer-email {
    color: rgba(247, 250, 245, .86);
    overflow-wrap: anywhere;
}

html[data-theme] .footer-phone {
    min-height: 0;
    width: fit-content;
    display: inline-grid;
    gap: 3px;
    margin-top: 4px;
    padding: 0 0 5px;
    color: rgba(247, 250, 245, .94);
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(173, 201, 176, .42);
    border-radius: 0;
    box-shadow: none;
    transition: color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

html[data-theme] .footer-phone small {
    color: rgba(173, 201, 176, .76);
    font-size: .64rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

html[data-theme] .footer-phone strong {
    color: inherit;
    font-size: 1rem;
    font-weight: 680;
    letter-spacing: .01em;
}

html[data-theme] .footer-phone:is(:hover, :focus-visible) {
    color: #ffffff;
    background: transparent;
    border-color: #adc9b0;
    box-shadow: none;
    transform: translateX(3px);
}

html[data-theme] .footer-bottom {
    align-items: center;
    padding: 20px 0 30px;
    border-top-color: rgba(173, 201, 176, .2);
}

html[data-theme] .footer-bottom small,
html[data-theme] .footer-utility-links :is(a, button) {
    color: rgba(232, 240, 231, .72);
}

@media (max-width: 900px) {
    html[data-theme] .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    html[data-theme] .footer-brand-block {
        grid-column: 1 / -1;
        padding-right: 0;
        padding-bottom: 26px;
        border-right: 0;
        border-bottom: 1px solid rgba(173, 201, 176, .18);
    }
}

@media (max-width: 580px) {
    html[data-theme] .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        padding: 42px 0 28px;
    }

    html[data-theme] .footer-brand-block {
        grid-column: auto;
    }

    html[data-theme] :is(.footer-links, .footer-contact) { padding-top: 6px; }

    html[data-theme] .footer-bottom {
        align-items: flex-start;
        padding-bottom: 26px;
    }

    html[data-theme] .footer-utility-links {
        justify-content: flex-start;
    }
}

/* Shared scroll rhythm across editorial subpages. */
html.motion-ready .reveal-item {
    opacity: 0;
    transition:
        opacity 500ms ease-out var(--reveal-delay, 0ms),
        transform 580ms cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms);
}

html.motion-ready .reveal-left {
    transform: translate3d(-22px, 0, 0);
}

html.motion-ready .reveal-right {
    transform: translate3d(22px, 0, 0);
}

html.motion-ready .reveal-up {
    transform: translate3d(0, 24px, 0);
}

html.motion-ready .reveal-scale {
    transform: translate3d(0, 14px, 0) scale(.985);
}

html.motion-ready .reveal-item.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: no-preference) {
    html.motion-ready .page-services .monthly-plan-card:is(:hover, :focus-within) {
        transform: translate3d(0, -8px, 0) scale(1.012);
    }
}

html.motion-ready :is(.team-card-media, .ppc-service-image, .creative-support-image) img {
    opacity: .01;
}

html.motion-ready :is(.team-card-media, .ppc-service-image, .creative-support-image).is-media-ready img {
    opacity: 1;
}

.page-about .team-card-media img {
    transition:
        opacity 420ms ease-out,
        transform 760ms cubic-bezier(.2, .75, .25, 1),
        filter 520ms ease;
}

.page-services :is(.ppc-service-image, .creative-support-image) img {
    transition:
        opacity 420ms ease-out,
        transform 700ms cubic-bezier(.2, .75, .25, 1),
        filter 420ms ease;
}

/* Scroll depth is deliberately limited to imagery, so text remains steady and
   the page keeps a calm reading rhythm. */
[data-scroll-media] {
    --media-scroll-y: 0px;
}

.page-home .home-process-media[data-scroll-media] img {
    transform: translate3d(0, var(--media-scroll-y), 0) scale(1.055);
    transition: transform 180ms linear, filter 420ms ease;
    will-change: transform;
}

.page-services .ppc-service-image[data-scroll-media] img {
    transform: translate3d(
        var(--layer-x, 0px),
        calc(var(--layer-y, 0px) + var(--media-scroll-y)),
        0
    ) scale(1.015);
    will-change: transform;
}

.page-services .creative-support-image[data-scroll-media] img {
    transform: translate3d(
        var(--layer-x, 0px),
        calc(var(--layer-y, 0px) + var(--media-scroll-y)),
        0
    ) scale(var(--creative-image-scale, 1.04));
    will-change: transform;
}

.page-about .about-team-photo[data-scroll-media] img {
    transform: translate3d(0, var(--media-scroll-y), 0) scale(1.065);
    will-change: transform;
}

.page-about .about-team-section .team-card-media[data-scroll-media] img {
    transform: translate3d(0, var(--media-scroll-y), 0) scale(1.07);
    will-change: transform;
}

html.motion-ready .page-about .about-team-section .team-card .team-card-media {
    opacity: 0;
    clip-path: inset(0 0 100% 0 round 20px);
    transform: translate3d(0, 18px, 0);
    transition:
        opacity 180ms ease-out calc(var(--reveal-delay, 0ms) + 40ms),
        clip-path 480ms cubic-bezier(.22, 1, .36, 1) calc(var(--reveal-delay, 0ms) + 40ms),
        transform 480ms cubic-bezier(.22, 1, .36, 1) calc(var(--reveal-delay, 0ms) + 40ms);
}

html.motion-ready .page-about .about-team-section .team-card.is-visible .team-card-media {
    opacity: 1;
    clip-path: inset(0 round 20px);
    transform: translate3d(0, 0, 0);
}

@media (hover: hover) and (pointer: fine) {
    .page-about .about-team-photo[data-scroll-media]:hover img {
        transform: translate3d(0, var(--media-scroll-y), 0) scale(1.085);
    }

    .page-about .about-team-section .team-card:hover .team-card-media[data-scroll-media] img {
        transform: translate3d(0, var(--media-scroll-y), 0) scale(1.095);
    }
}

@media (prefers-reduced-motion: reduce) {
    html.motion-ready .reveal-item,
    html.motion-ready :is(.team-card-media, .ppc-service-image, .creative-support-image) img {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html.motion-ready .page-about .about-team-section .team-card .team-card-media {
        opacity: 1;
        clip-path: none;
        transform: none;
        transition: none;
    }
}

/* Keep the automation feature cards legible on the dark feature band. */
.page-automation .feature-band .values-grid > article {
    color: #f7faf5;
    background: rgba(255, 255, 255, .055);
    border-color: rgba(173, 201, 176, .24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.page-automation .feature-band .values-grid > article h3 {
    color: #ffffff;
}

.page-automation .feature-band .values-grid > article p {
    color: rgba(232, 240, 231, .78);
}

.page-automation .feature-band .value-label {
    color: #dce8d8;
    background: rgba(173, 201, 176, .12);
    border-color: rgba(173, 201, 176, .24);
}

/* Bring the older service subpages into the same green visual system. */
:is(.page-website, .page-automation, .page-areas) .feature-band {
    background:
        radial-gradient(circle at 86% 12%, rgba(173, 201, 176, .12), transparent 34%),
        linear-gradient(145deg, #234d32, #163a25 78%);
    border-color: rgba(173, 201, 176, .2);
}

:is(.page-website, .page-automation, .page-areas) .cta-band {
    background:
        radial-gradient(circle at 82% 18%, rgba(173, 201, 176, .13), transparent 32%),
        linear-gradient(140deg, #234d32, #102f1e 82%);
    border-color: rgba(173, 201, 176, .2);
}

:is(.page-website, .page-areas) .value-label {
    color: #315c3d;
    background: #e5efdf;
    border-color: #c7d8c4;
}

/* Shared multi-select used by the homepage and the dedicated contact page. */
html[data-theme] body .contact-form .form-compact-row {
    display: grid;
    grid-template-columns: minmax(0, 310px);
}

html[data-theme] body .contact-form .field--phone input {
    min-height: 48px;
}

html[data-theme] body .contact-form .field--service {
    min-width: 0;
    margin-top: 2px;
    padding: 0;
    border: 0;
}

html[data-theme] body .contact-form .field--service legend {
    padding: 0;
    color: var(--ink);
    font-size: .94rem;
    font-weight: 720;
}

html[data-theme] body .contact-form .service-choice-intro {
    margin: -2px 0 4px;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.45;
}

html[data-theme] body .contact-form .service-multiselect {
    position: relative;
    min-width: 0;
}

html[data-theme] body .contact-form .service-multiselect > summary {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 22px;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 15px;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    background: color-mix(in srgb, var(--surface-muted) 82%, var(--surface));
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: 0 8px 22px rgba(40, 75, 53, .045);
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

html[data-theme] body .contact-form .service-multiselect > summary::-webkit-details-marker {
    display: none;
}

html[data-theme] body .contact-form .service-multiselect > summary:hover,
html[data-theme] body .contact-form .service-multiselect > summary:focus-visible,
html[data-theme] body .contact-form .service-multiselect[open] > summary {
    border-color: color-mix(in srgb, var(--primary) 52%, var(--line));
    box-shadow: 0 0 0 4px rgba(173, 201, 176, .16), 0 12px 28px rgba(40, 75, 53, .08);
    outline: none;
}

html[data-theme] body .contact-form .service-select-summary {
    display: grid;
    gap: 2px;
    min-width: 0;
}

html[data-theme] body .contact-form .service-select-summary small {
    color: var(--muted);
    font-size: .66rem;
    font-weight: 720;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

html[data-theme] body .contact-form .service-select-summary strong {
    overflow: hidden;
    color: var(--ink);
    font-size: .94rem;
    font-weight: 650;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-theme] body .contact-form .service-select-count {
    min-width: 28px;
    min-height: 28px;
    display: inline-grid;
    place-items: center;
    color: var(--primary-strong);
    background: var(--primary-soft);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 780;
}

html[data-theme] body .contact-form .service-select-count[hidden] {
    display: none;
}

html[data-theme] body .contact-form .service-multiselect > summary > i {
    width: 10px;
    height: 10px;
    justify-self: center;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 180ms ease;
}

html[data-theme] body .contact-form .service-multiselect[open] > summary > i {
    transform: rotate(225deg) translate(-1px, -1px);
}

html[data-theme] body .contact-form .service-multiselect-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 40;
    max-height: min(530px, 64vh);
    overflow-y: auto;
    padding: 12px;
    color: var(--ink);
    background: color-mix(in srgb, var(--surface) 96%, var(--primary-soft));
    border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--line));
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(22, 58, 34, .2), 6px 6px 0 rgba(66, 105, 76, .08);
}

html[data-theme] body .contact-form:has(.service-multiselect[open]) {
    z-index: 45;
    overflow: visible;
}

html[data-theme] body .contact-form .service-choice-groups {
    display: grid;
    gap: 12px;
}

html[data-theme] body .contact-form .service-choice-group {
    overflow: hidden;
    background: color-mix(in srgb, var(--surface) 84%, var(--surface-muted));
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: none;
}

html[data-theme] body .contact-form .service-choice-group--packages {
    border-color: color-mix(in srgb, var(--primary) 28%, var(--line));
}

html[data-theme] body .contact-form .service-choice-group-heading {
    display: grid;
    gap: 3px;
    padding: 13px 15px 12px;
    background: color-mix(in srgb, var(--primary-soft) 66%, transparent);
    border-bottom: 1px solid var(--line);
}

html[data-theme] body .contact-form .service-choice-group--custom .service-choice-group-heading {
    background: color-mix(in srgb, var(--surface-muted) 76%, transparent);
}

html[data-theme] body .contact-form .offer-type-kicker {
    color: var(--ink-soft);
    font-size: .66rem;
    font-weight: 780;
    letter-spacing: .1em;
    line-height: 1.2;
    text-transform: uppercase;
}

html[data-theme] body .contact-form .service-choice-group-heading strong {
    color: var(--ink);
    font-size: .9rem;
    line-height: 1.3;
}

html[data-theme] body .contact-form .service-choice-group-heading small {
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.4;
}

html[data-theme] body .contact-form .service-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
}

html[data-theme] body .contact-form .service-choice-grid--custom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-theme] body .contact-form .field label.service-choice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    min-height: 54px;
    padding: 11px;
    color: var(--ink-soft);
    font-size: .78rem;
    font-weight: 650;
    line-height: 1.34;
    cursor: pointer;
    background: color-mix(in srgb, var(--surface-muted) 70%, transparent);
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
    border-radius: 11px;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

html[data-theme] body .contact-form .field label.service-choice:hover {
    border-color: color-mix(in srgb, var(--primary) 46%, var(--line));
    transform: translateY(-1px);
}

html[data-theme] body .contact-form .field label.service-choice:has(input:checked) {
    color: var(--ink);
    background: color-mix(in srgb, var(--primary-soft) 76%, var(--surface));
    border-color: color-mix(in srgb, var(--primary) 58%, var(--line));
    box-shadow: 0 6px 15px rgba(40, 75, 53, .08);
}

html[data-theme] body .contact-form .field label.service-choice:has(input:focus-visible) {
    outline: 3px solid rgba(173, 201, 176, .38);
    outline-offset: 2px;
}

html[data-theme] body .contact-form .field .service-choice input {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    min-height: 19px;
    margin: 0;
    padding: 0;
    accent-color: var(--primary);
    cursor: pointer;
    box-shadow: none;
}

html[data-theme] body .contact-form .service-choice span {
    min-width: 0;
}

html[data-theme] body .contact-form .select-help {
    margin: 3px 2px 0;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.42;
}

@media (max-width: 760px) {
    html[data-theme] body .contact-form .form-compact-row {
        grid-template-columns: minmax(0, 1fr);
    }

    html[data-theme] body .contact-form .service-multiselect-panel {
        position: relative;
        top: auto;
        max-height: 58vh;
        margin-top: 8px;
    }

    html[data-theme] body .contact-form .service-choice-grid,
    html[data-theme] body .contact-form .service-choice-grid--custom {
        grid-template-columns: minmax(0, 1fr);
    }

    html[data-theme] body .contact-form .field label.service-choice {
        min-height: 50px;
    }
}
