.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    min-width: var(--button-height-small);
    min-height: var(--button-height-medium);
    max-width: 100%;
    padding: var(--space-12) var(--space-24);
    border: 1px solid transparent;
    border-radius: var(--radius-12);
    background: transparent;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: var(--weight-semibold);
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: background-color var(--duration-base),
        border-color var(--duration-base), color var(--duration-base);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-text-on-accent);
}

.btn-secondary {
    border-color: var(--border-default);
    background: var(--color-canvas-secondary);
}

.btn-tertiary {
    padding-inline: var(--space-8);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.btn-large {
    min-height: var(--button-height-large);
    padding-inline: var(--space-32);
}

.btn-small {
    min-height: var(--button-height-small);
    padding: var(--space-8) var(--space-16);
}

.btn-icon {
    min-width: var(--button-height-small);
    min-height: var(--button-height-small);
    padding: var(--space-8);
    aspect-ratio: 1;
}

.btn:focus-visible {
    outline: var(--focus-width) solid var(--color-accent);
    outline-offset: var(--space-4);
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary:enabled:hover,
    a.btn-primary[href]:hover {
        background: var(--color-accent-hover);
    }

    .btn-secondary:enabled:hover,
    a.btn-secondary[href]:hover {
        border-color: var(--border-strong);
        background: var(--color-surface-02);
    }

    .btn-tertiary:enabled:hover,
    a.btn-tertiary[href]:hover {
        color: var(--color-accent-hover);
    }
}

.btn-primary:enabled:active,
a.btn-primary[href]:active {
    background: var(--color-accent-pressed);
}

.btn:disabled {
    border-color: var(--border-default);
    background: var(--color-surface-01);
    color: var(--color-text-disabled);
    cursor: not-allowed;
}

.section-label {
    margin-bottom: var(--space-16);
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: var(--text-label);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
}

.section-label-accent {
    color: var(--color-accent);
}

.panel {
    padding: var(--panel-padding);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-20);
    background: var(--color-surface-01);
}

.panel > :last-child {
    margin-bottom: 0;
}

:root {
    /* Bottom-edge reservations can be composed here as more shared UI is added.
       Each producer owns its contribution; consumers only read the shared offset. */
    --floating-ui-bottom-offset: var(--configurator-bottom-offset, 0px);
}

.back-to-top {
    --back-to-top-base-bottom: max(var(--page-padding), env(safe-area-inset-bottom));
    position: fixed;
    right: max(var(--page-padding), env(safe-area-inset-right));
    bottom: calc(var(--back-to-top-base-bottom) + var(--floating-ui-bottom-offset));
    /* Above the cursor (1), below compact summary (3), navigation (100) and top-layer UI. */
    z-index: 2;
    display: grid;
    place-items: center;
    width: var(--button-height-small);
    height: var(--button-height-small);
    padding: var(--space-8);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-12);
    background: var(--color-surface-01);
    color: var(--color-text-secondary);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(var(--space-8));
    transition: opacity var(--duration-fast), transform var(--duration-fast),
        visibility 0s var(--duration-fast), background-color var(--duration-fast), border-color var(--duration-fast);
}

.back-to-top[hidden] {
    display: none;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
}

.back-to-top svg {
    width: var(--space-20);
    height: var(--space-20);
    transition: transform var(--duration-fast);
}

.back-to-top:focus-visible {
    outline: var(--focus-width) solid var(--color-accent);
    outline-offset: var(--space-4);
}

.site-menu-open .back-to-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
}

@media (min-width: 1024px) {
    .back-to-top {
        width: var(--button-height-medium);
        height: var(--button-height-medium);
    }
}

@media (hover: hover) and (pointer: fine) {
    .back-to-top:hover {
        border-color: var(--border-accent);
        background: var(--color-surface-02);
    }

    .back-to-top:hover svg {
        transform: translateY(-2px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top,
    .back-to-top svg,
    .back-to-top:hover svg {
        transform: none;
        transition: none;
    }
}

.copy-email__row {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.copy-email__button {
    display: inline-flex;
    flex: 0 0 var(--space-32);
    align-items: center;
    justify-content: center;
    width: var(--space-32);
    height: var(--space-32);
    padding: 0;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-8);
    background: transparent;
    color: var(--color-text-secondary);
}

.copy-email__button[hidden],
.copy-email__check,
.copy-email__button.is-copied .copy-email__icon {
    display: none;
}

.copy-email__button svg {
    width: 15px;
    height: 15px;
}

.copy-email__button:hover,
.copy-email__button:focus-visible {
    border-color: var(--border-strong);
    background: var(--color-surface-01);
    color: var(--color-text-primary);
}

.copy-email__button.is-copied {
    color: var(--color-accent);
}

.copy-email__button.is-copied .copy-email__check {
    display: block;
}

.copy-email__status {
    margin: 0;
    font-size: var(--text-label);
    color: var(--color-text-secondary);
}

.copy-email__status:not(:empty) {
    margin-top: var(--space-8);
}

.copy-email__fallback {
    position: fixed;
    inset: 0 auto auto 0;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
    font-size: var(--text-body);
}

.site-footer {
    border-top: 1px solid var(--border-strong);
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--color-accent) 3%, transparent),
        transparent var(--space-48)), var(--color-canvas-secondary);
    color: var(--color-text-secondary);
}

.site-footer .section-label {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    color: var(--color-text-primary);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    line-height: 1.5;
}

.site-footer .section-label::before {
    content: "";
    flex: 0 0 var(--space-20);
    height: 2px;
    background: var(--color-accent);
}

.site-footer__grid {
    display: grid;
    gap: var(--space-48);
    padding-block: var(--space-48);
}

.site-footer__grid > * {
    min-width: 0;
}

.site-footer__identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-24);
}

.site-footer__brand {
    display: inline-flex;
}

.site-footer__brand img {
    width: auto;
    height: var(--space-96);
}

.site-footer__tagline {
    margin: 0;
    color: var(--color-text-primary);
    font-family: var(--font-display);
    font-size: var(--text-lead);
    font-weight: var(--weight-semibold);
    line-height: 1.5;
    letter-spacing: var(--tracking-heading);
    text-wrap: balance;
}

.site-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__links a {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-width: var(--button-height-small);
    min-height: var(--button-height-small);
    padding-block: var(--space-8);
    color: color-mix(in srgb, var(--color-text-secondary) 75%, var(--color-text-primary));
    line-height: 1.5;
    text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* Global informational cookie settings; no consent controls or persistent state. */
.cookie-settings-trigger {
    max-width: 100%;
    min-height: var(--button-height-small);
    padding: var(--space-8) 0;
    border: 0;
    background: transparent;
    color: color-mix(in srgb, var(--color-text-secondary) 75%, var(--color-text-primary));
    line-height: 1.5;
    text-align: start;
}

.cookie-settings-trigger:hover,
.cookie-settings-trigger:focus-visible {
    color: var(--color-accent-hover);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

:root.cookie-settings-open {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.cookie-settings {
    width: min(40rem, calc(100% - var(--space-40)));
    max-width: none;
    max-height: calc(100svh - var(--space-40));
    margin: auto;
    padding: var(--space-24);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-20);
    background: var(--color-surface-01);
    color: var(--color-text-primary);
}

.cookie-settings::backdrop {
    background: color-mix(in srgb, var(--color-canvas) 80%, transparent);
}

.cookie-settings__header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
    background: var(--color-surface-01);
}

.cookie-settings__title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: var(--text-h3);
}

.cookie-settings__close {
    display: inline-flex;
    flex: 0 0 var(--button-height-small);
    align-items: center;
    justify-content: center;
    width: var(--button-height-small);
    height: var(--button-height-small);
    padding: 0;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-12);
    background: transparent;
    color: var(--color-text-secondary);
    font-size: var(--text-h3);
    line-height: 1;
}

.cookie-settings__close:hover,
.cookie-settings__close:focus-visible {
    border-color: var(--border-strong);
    background: var(--color-surface-02);
    color: var(--color-text-primary);
}

.cookie-settings__intro,
.cookie-settings__category p {
    color: var(--color-text-secondary);
}

.cookie-settings__category {
    padding-block: var(--space-20);
    border-top: 1px solid var(--border-divider);
}

.cookie-settings__category h3 {
    margin-bottom: var(--space-8);
    font-size: var(--text-lead);
}

.cookie-settings__category p {
    margin-bottom: var(--space-8);
}

.cookie-settings__category .cookie-settings__state {
    margin-bottom: 0;
    font-weight: var(--weight-semibold);
}

.cookie-settings__category .cookie-settings__state--active {
    color: var(--color-accent);
}

.cookie-settings__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-16) var(--space-24);
    padding-top: var(--space-8);
}

.cookie-settings__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--button-height-small);
}

.cookie-settings__link:hover {
    color: var(--color-accent-hover);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-settings .btn {
        transition: none;
    }
}

.site-footer__details {
    display: grid;
    align-content: start;
    gap: var(--space-40);
}

.site-footer__company-name {
    margin-bottom: var(--space-8);
    color: var(--color-text-primary);
    font-weight: var(--weight-semibold);
}

.site-footer__address {
    font-style: normal;
}

.site-footer__company-id {
    margin: var(--space-12) 0 0;
}

.site-footer__contact {
    margin-top: var(--space-20);
}

.site-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    border-top: 1px solid var(--border-default);
    padding-block: var(--space-24);
    padding-inline-end: calc(var(--button-height-medium) + var(--space-24));
    color: var(--color-text-secondary);
    font-size: var(--text-label);
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__credit a {
    font-weight: var(--weight-semibold);
    text-decoration-color: var(--border-strong);
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
    color: var(--color-accent);
    text-decoration-color: currentColor;
}

@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--space-32);
        padding-block: var(--space-64);
    }

    .site-footer__brand img {
        height: var(--space-120);
    }

    .site-footer__bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.skip-link {
    position: fixed;
    top: var(--space-12);
    left: var(--page-padding);
    z-index: 101;
    max-width: calc(100% - 2 * var(--page-padding));
    padding: var(--space-12) var(--space-16);
    border-radius: var(--radius-8);
    background: var(--color-accent);
    color: var(--color-text-on-accent);
    font-weight: var(--weight-semibold);
    transform: translateY(calc(-100% - var(--space-24)));
}

.skip-link:focus-visible {
    transform: none;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    /* Keep shared navigation above page content and its own dropdown panels. */
    z-index: 100;
    border-bottom: 1px solid transparent;
    background: transparent;
    transition: background-color var(--duration-base), border-color var(--duration-base);
}

.site-header.is-scrolled {
    background: var(--color-canvas-secondary);
    background: color-mix(in srgb, var(--color-canvas-secondary) 90%, transparent);
    border-bottom-color: var(--border-default);
    -webkit-backdrop-filter: blur(var(--space-12));
    backdrop-filter: blur(var(--space-12));
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
    min-height: calc(var(--site-header-height) - 1px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-width: var(--button-height-small);
    min-height: var(--button-height-small);
}

.site-brand__logo {
    width: auto;
    height: var(--space-48);
}

.site-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--button-height-small);
    height: var(--button-height-small);
    flex-shrink: 0;
    padding: var(--space-8);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-12);
    background: transparent;
    color: var(--color-text-primary);
}

.site-header__toggle-lines,
.site-header__toggle-lines::after {
    display: block;
    width: var(--space-20);
    height: 2px;
    background: currentColor;
}

.site-header__toggle-lines::after {
    content: "";
    transform: translateY(var(--space-8));
}

.site-header__toggle-lines {
    transform: translateY(calc(-1 * var(--space-4)));
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-lines {
    transform: rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-lines::after {
    transform: rotate(90deg);
}

.site-header__menu {
    position: fixed;
    inset: var(--site-header-height) 0 0;
    max-height: calc(100dvh - var(--site-header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--space-24) var(--page-padding);
    padding-bottom: max(var(--space-32), env(safe-area-inset-bottom));
    background: var(--color-canvas-secondary);
}

.site-nav__list,
.site-nav__services-panel {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__link,
.site-nav__fallback-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    width: 100%;
    min-height: var(--button-height-small);
    padding: var(--space-12) var(--space-8);
    border: 0;
    border-radius: var(--radius-8);
    background: transparent;
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-weight: var(--weight-medium);
    line-height: 1.4;
    text-align: start;
    text-decoration: none;
    transition: color var(--duration-base), background-color var(--duration-base);
}

.site-nav__link[aria-current="page"],
.site-nav__link.is-current,
.site-nav__link:focus-visible,
.site-nav__link[aria-expanded="true"] {
    color: var(--color-text-primary);
}

.site-nav__link[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: var(--space-8);
}

.site-nav__chevron {
    width: var(--space-8);
    height: var(--space-8);
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.site-nav__services-trigger[aria-expanded="true"] .site-nav__chevron {
    transform: rotate(225deg);
}

.site-nav__services-panel {
    padding: var(--space-8);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-16);
    background: var(--color-surface-02);
}

.site-header__cta {
    margin-top: var(--space-24);
    width: 100%;
}

.site-header.is-menu-open {
    background: var(--color-canvas-secondary);
    border-bottom-color: var(--border-default);
    /* Keep the fixed mobile panel anchored to the viewport, even after scrolling. */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.site-menu-open {
    overflow: hidden;
}

.site-header-offset {
    margin-top: var(--site-header-height);
}

.site-header.is-enhanced .site-nav__fallback-label,
.site-header [hidden] {
    display: none;
}

/* Keep every link available when JavaScript is unavailable. */
.site-header:not(.is-enhanced) {
    position: static;
}

.site-header:not(.is-enhanced) .site-header__inner {
    flex-wrap: wrap;
}

.site-header:not(.is-enhanced) .site-header__menu {
    position: static;
    width: 100%;
    max-height: none;
}

@media (min-width: 1024px) {
    .site-header__inner {
        gap: var(--space-24);
    }

    .site-brand__logo {
        height: calc(var(--space-64) - var(--space-4));
    }
}

@media (min-width: 1360px) {
    .site-header__toggle {
        display: none;
    }

    .site-header__menu {
        position: static;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 1;
        gap: var(--space-24);
        max-height: none;
        overflow: visible;
        padding: 0;
        background: transparent;
    }

    .site-nav {
        margin-inline: auto;
    }

    .site-nav__list {
        display: flex;
        align-items: center;
        gap: var(--space-8);
    }

    .site-nav__list > li > .site-nav__link {
        white-space: nowrap;
    }

    .site-nav__services {
        position: relative;
    }

    .site-header.is-enhanced .site-nav__services-panel {
        position: absolute;
        top: calc(100% + var(--space-8));
        left: 0;
        width: 320px;
        max-height: calc(100dvh - var(--anchor-scroll-offset));
        overflow-y: auto;
        padding: var(--space-12);
        background: var(--color-surface-elevated);
    }

    .site-header__cta {
        margin-top: 0;
        width: auto;
        flex-shrink: 0;
    }
}

@media (hover: hover) and (pointer: fine) {
    .site-nav__link:hover,
    .site-header__toggle:hover {
        color: var(--color-text-primary);
        background: var(--color-surface-01);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .site-header,
    .site-nav__link {
        transition: none;
    }
}
