:root {
    --bexie-navy-dark: #102a46;
    --bexie-navy: #1b3b63;
    --bexie-turquoise: #3198a4;
    --bexie-turquoise-light: #ddf1f2;
    --bexie-ink: #17222b;
    --bexie-grey: #66736e;
    --bexie-surface: #f7faf9;
    --bexie-white: #ffffff;
    --bexie-border: rgba(27, 59, 99, 0.14);
    --bexie-radius: 18px;
    --bexie-container: 1240px;
    --bexie-shadow: 0 20px 60px rgba(16, 42, 70, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--bexie-ink);
    background: var(--bexie-white);
    font-family:
        Manrope,
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-container {
    width: min(calc(100% - 40px), var(--bexie-container));
    margin-inline: auto;
}

.narrow-container {
    max-width: 850px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 99999;
    width: auto;
    height: auto;
    padding: 12px 18px;
    clip: auto;
    background: var(--bexie-white);
    color: var(--bexie-navy);
    box-shadow: var(--bexie-shadow);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--bexie-border);
    backdrop-filter: blur(18px);
}

.admin-bar .site-header {
    top: 32px;
}

.header-inner {
    display: flex;
    min-height: 88px;
    align-items: center;
    gap: 32px;
}

.site-branding {
    flex: 0 0 auto;
}

.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 66px;
}

.text-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--bexie-navy);
    text-decoration: none;
}

.text-logo-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--bexie-turquoise);
    color: var(--bexie-white);
    font-size: 24px;
    font-weight: 800;
}

.text-logo-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.text-logo-copy strong {
    font-size: 17px;
    letter-spacing: 0.035em;
}

.text-logo-copy small {
    margin-top: 5px;
    color: var(--bexie-turquoise);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.primary-navigation {
    margin-left: auto;
}

.site-menu,
.footer-menu {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.site-menu a {
    position: relative;
    color: var(--bexie-navy-dark);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.site-menu a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--bexie-turquoise);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.site-menu a:hover::after,
.site-menu .current-menu-item > a::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.language-switcher .trp-language-switcher {
    width: auto;
    height: auto;
}

.language-switcher .trp-ls-shortcode-current-language,
.language-switcher .trp-ls-shortcode-language {
    border-color: var(--bexie-border);
    border-radius: 12px;
    background: var(--bexie-white);
}

.header-contact {
    display: inline-flex;
    min-height: 46px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--bexie-navy);
    color: var(--bexie-white);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition:
        background 180ms ease,
        transform 180ms ease;
}

.header-contact:hover {
    background: var(--bexie-turquoise);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    margin-left: auto;
    padding: 11px;
    border: 1px solid var(--bexie-border);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.menu-toggle > span:not(.screen-reader-text) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--bexie-navy);
}

.elementor-content {
    min-height: 60vh;
}

.standard-page {
    min-height: 60vh;
    padding: 100px 0;
}

.page-title {
    margin: 0 0 40px;
    color: var(--bexie-navy-dark);
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.post-summary {
    padding: 34px 0;
    border-bottom: 1px solid var(--bexie-border);
}

.site-footer {
    padding: 80px 0 26px;
    background: var(--bexie-navy-dark);
    color: var(--bexie-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr;
    gap: 70px;
    padding-bottom: 64px;
}

.text-logo-light {
    color: var(--bexie-white);
}

.footer-brand p {
    max-width: 430px;
    color: rgba(255, 255, 255, 0.65);
}

.site-footer h2 {
    margin: 0 0 24px;
    color: var(--bexie-white);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.68);
}

.footer-menu {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
}

.footer-menu a {
    text-decoration: none;
}

.footer-menu a:hover,
.site-footer a:hover {
    color: var(--bexie-white);
}

.footer-bottom {
    display: flex;
    padding-top: 24px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 1050px) {
    .header-inner {
        min-height: 76px;
    }

    .menu-toggle {
        display: block;
    }

    .primary-navigation {
        position: fixed;
        top: 77px;
        right: 0;
        bottom: 0;
        left: 0;
        display: none;
        padding: 40px 20px;
        background: var(--bexie-white);
    }

    .admin-bar .primary-navigation {
        top: 109px;
    }

    .primary-navigation.is-open {
        display: block;
    }

    .site-menu {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .site-menu a {
        display: block;
        padding: 17px 0;
        border-bottom: 1px solid var(--bexie-border);
        font-size: 22px;
    }

    .site-menu a::after {
        display: none;
    }

    .header-actions {
        margin-left: 0;
    }

    .header-contact {
        display: none;
    }
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }

    .admin-bar .primary-navigation {
        top: 123px;
    }
}

@media (max-width: 700px) {
    .site-container {
        width: min(calc(100% - 28px), var(--bexie-container));
    }

    .custom-logo {
        max-width: 155px;
        max-height: 52px;
    }

    .language-switcher {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
