/* ============================================================
   CMS Component Styles — applied to the public-facing site
   All colour / sizing values are driven by inline styles from
   the CMS editor; these rules handle layout, positioning and
   structural defaults only.
   ============================================================ */

/* ── Top Bar ─────────────────────────────────────────────── */

.cms-topbar {
    width: 100%;
    font-size: 0.825rem;
    z-index: 1030;
}

.cms-topbar-inner {
    margin: 0 auto;
    padding: 6px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.cms-topbar-message {
    flex: 1;
}

.cms-topbar-contact {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cms-topbar-link {
    text-decoration: none;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .cms-topbar-link:hover {
        opacity: 1;
        text-decoration: underline;
    }


/* ── Header ──────────────────────────────────────────────── */

.cms-header {
    width: 100%;
    display: flex;
    align-items: center;
    z-index: 1020;
    box-sizing: border-box;
}

.cms-header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.cms-header-sticky {
    position: sticky;
    top: 0;
}

.cms-header-shadow {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.cms-header-inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.cms-header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

    .cms-header-logo img {
        display: block;
        object-fit: contain;
    }

.cms-header-site-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.cms-header-nav {
    display: flex;
    align-items: center;
}

/* Style variants — structural overrides only */

.cms-header-modern .cms-header-inner {
}

.cms-header-classic .cms-header-inner {
}

.cms-header-minimal .cms-header-inner {
}


/* ── Primary Navigation Menu ─────────────────────────────── */

.cms-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cms-menu-item {
    position: relative;
}

.cms-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 4px;
    transition: background-color 0.15s, opacity 0.15s;
    color: inherit;
}

    .cms-menu-link:hover {
        opacity: 0.8;
        background-color: rgba(0, 0, 0, 0.06);
    }

/* Button-style menu item */

.cms-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 4px;
    border: 2px solid transparent;
    background-color: #769bc5;
    color: #fff !important;
    transition: filter 0.15s, opacity 0.15s;
    cursor: pointer;
    line-height: 1.4;
}

    .cms-menu-btn:hover {
        filter: brightness(0.88);
        opacity: 1;
        text-decoration: none;
        color: #fff !important;
    }

/* Image-style menu item */

.cms-menu-img-link {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.15s;
    line-height: 1;
}

    .cms-menu-img-link:hover {
        opacity: 0.8;
        text-decoration: none;
    }

.cms-menu-img {
    display: block;
    height: 36px;
    width: auto;
    object-fit: contain;
    /* SVGs need an explicit height to render — max-height alone is not enough */
}

/* Drop-down sub-menu */

.cms-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 4px 0 0;
    padding: 8px 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 1040;
}

.cms-menu-item:hover > .cms-submenu {
    display: block;
}

.cms-submenu-item {
    padding: 0;
}

.cms-submenu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #212529;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.15s;
}

    .cms-submenu-link:hover {
        background-color: #f8f9fa;
        color: #0d6efd;
    }

/* Footer menu — vertical list */

.cms-menu-footer .cms-menu-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.cms-menu-footer .cms-menu-link {
    padding: 4px 0;
    font-size: 0.875rem;
    opacity: 0.85;
    border-radius: 0;
    background: none;
}

    .cms-menu-footer .cms-menu-link:hover {
        opacity: 1;
        background: none;
        text-decoration: underline;
    }


/* ── Footer ──────────────────────────────────────────────── */

.cms-footer {
    width: 100%;
    box-sizing: border-box;
}

.cms-footer-inner {
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    gap: 40px;
    align-items: start;
}

/* Column grid variants */
.cms-footer-cols-1 { grid-template-columns: 1fr; }
.cms-footer-cols-2 { grid-template-columns: repeat(2, 1fr); }
.cms-footer-cols-3 { grid-template-columns: repeat(3, 1fr); }
.cms-footer-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .cms-footer-cols-2,
    .cms-footer-cols-3,
    .cms-footer-cols-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .cms-footer-cols-2,
    .cms-footer-cols-3,
    .cms-footer-cols-4 {
        grid-template-columns: 1fr;
    }
}

.cms-footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cms-footer-logo img {
    max-height: 48px;
    max-width: 140px;
    object-fit: contain;
    display: block;
    margin-bottom: 8px;
}

.cms-footer-company {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.cms-footer-about-text {
    font-size: 0.875rem;
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

.cms-footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.cms-footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.15s, opacity 0.15s;
}

    .cms-footer-social-link:hover {
        background: rgba(255, 255, 255, 0.25);
        color: inherit;
    }

.cms-footer-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.6;
    margin: 0 0 8px;
}

.cms-footer-address {
    font-size: 0.875rem;
    opacity: 0.8;
    font-style: normal;
    line-height: 1.6;
}

.cms-footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.85;
}

    .cms-footer-contact-link:hover {
        opacity: 1;
        text-decoration: underline;
        color: inherit;
    }


/* ── Footer Bottom Bar ───────────────────────────────────── */

.cms-footer-bottom {
    width: 100%;
    font-size: 0.8rem;
    flex-shrink: 0; /* never shrink inside the sticky-footer flex column */
}

.cms-footer-bottom-inner {
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* Two-column layout */
.cms-footer-bottom-twocol {
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;          /* vertically center both columns */
    justify-content: space-between;
    gap: 24px;
    min-height: inherit;          /* respects Bottom_MinHeight on the outer div */
}

.cms-footer-bottom-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.cms-footer-bottom-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    text-align: right;
    flex-shrink: 0;
    max-width: 55%;
}

.cms-footer-copyright {
    opacity: 0.9;
    line-height: 1.4;
}

.cms-footer-navlinks {
    opacity: 0.8;
    line-height: 1.4;
}

/* ── BottomBar inline menu (pipe-separated) ──────────────── */

.cms-footer-navlinks-menu .cms-menu-BottomBar {
    margin: 0;
    padding: 0;
}

.cms-footer-navlinks-menu .cms-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.cms-footer-navlinks-menu .cms-menu-item {
    display: flex;
    align-items: center;
}

    .cms-footer-navlinks-menu .cms-menu-item + .cms-menu-item::before {
        content: "|";
        padding: 0 0.45em;
        opacity: 0.5;
    }

.cms-footer-navlinks-menu .cms-menu-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
}

    .cms-footer-navlinks-menu .cms-menu-link:hover {
        opacity: 1;
        text-decoration: underline;
    }

.cms-footer-privacy-links {
    display: flex;
    gap: 16px;
}

    .cms-footer-privacy-links a {
        text-decoration: none;
        opacity: 0.75;
    }

        .cms-footer-privacy-links a:hover {
            opacity: 1;
            text-decoration: underline;
        }

@media (max-width: 768px) {
    .cms-footer-bottom-twocol {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px;
    }

    .cms-footer-bottom-right {
        text-align: left;
        justify-content: flex-start;
        max-width: 100%;
    }

    .cms-footer-navlinks-menu .cms-menu-list {
        flex-wrap: wrap;
    }
}


/* ── Main page body ──────────────────────────────────────── */

/* Sticky footer: body and #app form a full-height flex column so the
   footer is always anchored to the bottom of the viewport, even on
   short-content pages. */
body, #app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.cms-main {
    flex: 1 0 auto;
}

/* ── CMS Sections ────────────────────────────────────────── */

.cms-section {
    position: relative;
}

/* ── Text Overlay Block ──────────────────────────────────── */

/* Allow the overlay's negative margin-top to visually break into the section above */
.cms-section:has(.cms-text-overlay) {
    overflow: visible;
}

/* Strip the column and row padding so the overlay fills edge-to-edge */
.row:has(> [class*="col-"] > .cms-text-overlay) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
}

[class*="col-"]:has(> .cms-text-overlay) {
    padding: 0 !important;
}

.cms-text-overlay {
    width: 100%;
    box-sizing: border-box;
}

.cms-text-overlay-heading {
    line-height: 1.15;
}

.cms-text-overlay-body p:last-child,
.cms-text-overlay-footer p:last-child {
    margin-bottom: 0;
}

/* ── Parallax ────────────────────────────────────────────── */

/* Strip all wrapping padding so the parallax block renders flush */
.cms-section:has(.cms-parallax-block) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.row:has(.cms-parallax-block) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

[class*="col-"]:has(.cms-parallax-block) {
    padding: 0 !important;
}

.cms-parallax-section {
    position: relative;
    overflow: hidden;
}

.cms-parallax-block {
    position: relative;
    overflow: hidden;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.cms-parallax-bg {
    position: absolute;
    inset: -30% 0;
    background-size: cover;
    background-position: center top;
    will-change: transform;
    pointer-events: none;
}

/* ── Video Block ─────────────────────────────────────────── */

.cms-video-block {
    position: relative;
    overflow: hidden;
}

.cms-video-block video {
    display: block;
    width: 100%;
}
