/* =========================================================
   1. Article / homepage / header / footer
   ========================================================= */

.article__cover {
    display: none;
}

.homepage-static-content {
    order: -1;
}

@media (max-width: 1199.98px) {
    .header__logo img {
        max-height: 47px;
    }

    .header__middle .page-wrapper .header__logo img {
        height: 47px;
    }
}

@media (min-width: 1200px) {
    .header__logo img {
        max-height: 71px;
    }

    .header__middle .page-wrapper .header__logo img {
        height: 71px;
    }
}

.theme-lagoon .footer__tender-images,
.theme-lightguide .footer__tender-images {
    margin-top: 25px;
}

.footer__tender-images {
    text-align: center;
}

.footer__tender-text {
    font-weight: 500;
}

.footer__tender-images img {
    max-height: 141px;
    width: auto;
    max-width: calc(100% - 50px);
    margin: 25px;
}


/* =========================================================
   2. Service cards (.akt-*) - numbered cards with photo
      (used on the subpages)
   ========================================================= */

.akt-wrap {
    padding: 40px 0;
}

.akt-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
}

.akt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0 auto;
    counter-reset: aktBoxCounter;
}

/* Modifiers: akt-grid--3 for a 3-box row, akt-grid--6 for a 3x2 grid. */
.akt-grid.akt-grid--3,
.akt-grid.akt-grid--6 {
    grid-template-columns: repeat(3, 1fr);
}

.akt-box {
    position: relative;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    padding: 40px 20px 28px;
    margin-bottom: 1em !important;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.akt-box::before {
    counter-increment: aktBoxCounter;
    content: counter(aktBoxCounter, decimal-leading-zero);
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    line-height: 36px;
    background: #d3d3d3;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
}

.akt-box:hover {
    transform: translateY(-6px);
    border-color: #d5d5d5;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.akt-box-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.akt-box-text {
    font-size: 18px;
    line-height: 1.5;
    color: #666;
}

.akt-box-link {
    display: inline-block;
    margin-top: 16px;
    padding-bottom: 2px;
    border-bottom: 2px solid #181615;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #181615;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.akt-box-link:hover {
    opacity: 0.6;
}

/* Blurred photo behind the card, sharpens on hover */
.akt-wrap .akt-box {
    z-index: 0;
    display: flex;
    flex-direction: column;
}

.akt-wrap .akt-box::after {
    content: "";
    position: absolute;
    inset: -20px;
    clip-path: inset(20px round 10px);
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(3px);
    opacity: 0.35;
    transition: filter 0.4s ease, opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.akt-wrap .akt-box:hover::after {
    filter: blur(0);
    opacity: 0.9;
}

.akt-wrap .akt-box:nth-child(1)::after {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('/tenancy/assets/manager/files/mobile-bar/tommao-wang-fwz4iqkmrhg-unsplash.png');
}

.akt-wrap .akt-box:nth-child(2)::after {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('/tenancy/assets/manager/files/541430847-1085156763818484-4721128301063473515-n.jpg');
}

.akt-wrap .akt-box:nth-child(3)::after {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('/tenancy/assets/manager/files/baar-school/baar-school1.jpg');
}

.akt-wrap .akt-box:nth-child(4)::after {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('/tenancy/assets/manager/files/mobile-bar/geert-pieters-eg1r6bn-ece-unsplash.png');
}

.akt-wrap .akt-box:nth-child(5)::after {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('/tenancy/assets/manager/files/baar-school/baar-school2.jpg');
}

.akt-wrap .akt-box:nth-child(6)::after {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('/tenancy/assets/manager/files/mobile-bar/lots-of-fruits.jpg');
}

.akt-wrap .akt-box-title,
.akt-wrap .akt-box-text,
.akt-wrap .akt-box-link {
    color: #000;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.akt-wrap .akt-box-link {
    border-bottom-color: #000;
    margin-top: auto;
    font-size: 15px;
}

.akt-wrap .akt-box:hover .akt-box-title {
    color: #fff;
}

.akt-wrap .akt-box:hover .akt-box-text {
    color: rgba(255, 255, 255, 0.85);
}

.akt-wrap .akt-box:hover .akt-box-link {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px) {
    .akt-grid,
    .akt-grid.akt-grid--6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .akt-grid.akt-grid--3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .akt-grid,
    .akt-grid.akt-grid--6 {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   3. Logo cards (.akt-box--logo) - homepage
      Whole card is a link: <a class="akt-box akt-box--logo">
        <img class="akt-box-logo"> <span class="akt-box-text">
   ========================================================= */

.akt-grid:has(> .akt-box--logo) {
    gap: 32px;
}

.akt-wrap .akt-box--logo {
    min-height: 380px;
    padding: 56px 28px 36px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* No number badge (hidden, not removed, so the counter keeps running) */
.akt-wrap .akt-box--logo::before {
    visibility: hidden;
}

/* No background photo */
.akt-wrap .akt-box--logo::after {
    display: none;
}

.akt-wrap .akt-box--logo:focus-visible {
    outline: 3px solid #181615;
    outline-offset: 4px;
}

/* Base state: big logo, centered */
.akt-wrap .akt-box--logo .akt-box-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 95%;
    max-height: 240px;
    object-fit: contain;
    transform: translate(-50%, -50%);
    transition: top 0.4s ease, width 0.4s ease, max-height 0.4s ease;
}

/* Text hidden until hover, pinned to the bottom */
.akt-wrap .akt-box--logo .akt-box-text {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 36px;
    margin: 0;
    font-size: 18px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

/* Hover / keyboard focus: logo gets smaller and moves up, text appears */
.akt-wrap .akt-box--logo:hover .akt-box-logo,
.akt-wrap .akt-box--logo:focus-visible .akt-box-logo {
    top: 28%;
    width: 65%;
    max-height: 140px;
}

.akt-wrap .akt-box--logo:hover .akt-box-text,
.akt-wrap .akt-box--logo:focus-visible .akt-box-text {
    opacity: 1;
    transform: translateY(0);
}

/* The card is white, so the text stays dark on hover
   (the generic .akt-box:hover rule would turn it white) */
.akt-wrap .akt-box.akt-box--logo:hover .akt-box-text,
.akt-wrap .akt-box.akt-box--logo:focus-visible .akt-box-text {
    color: #333;
}

/* Touch devices have no hover: show the "hovered" state by default */
@media (hover: none) {
    .akt-wrap .akt-box--logo .akt-box-logo {
        top: 28%;
        width: 65%;
        max-height: 140px;
    }

    .akt-wrap .akt-box--logo .akt-box-text {
        opacity: 1;
        transform: none;
        color: #333;
    }
}


/* =========================================================
   4. Homepage band (full-width background + dark overlay)
   ========================================================= */

body {
    margin: 0;
    padding: 0;
}

.akt-band {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 250px 20px;
    background: url("/tenancy/assets/manager/files/static/homepage-background-2.jpg") center / cover no-repeat;
}

.akt-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.akt-band-inner {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .akt-band {
        padding: 60px 16px;
    }
}


/* =========================================================
   5. Intro overlay (logo splash on the homepage)
   ========================================================= */

#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: background-color 1s ease;
}

#intro-overlay.hide {
    background-color: rgba(0, 0, 0, 0);
    pointer-events: none;
}

#intro-overlay img {
    width: min(22vw, 380px);
    min-width: 140px;
    height: auto;
    opacity: 1;
    transition: opacity 1s ease;
}

#intro-overlay.hide img {
    opacity: 0;
    transition-delay: 0.2s;
}

/* Hide scrollbar and cookie widget while the overlay is showing */
html.overlay-active,
html.overlay-active body {
    overflow: hidden;
}

html.overlay-active [class*="cookies__"] {
    visibility: hidden !important;
}


/* =========================================================
   6. Text blocks
   ========================================================= */

.plain-text .bsPlainDivider {
    border: none;
    height: 1px;
    background: #e3e8ee;
    margin: 40px auto;
    max-width: 900px;
}

.plain-text .bsPlainSectionHeading {
    position: relative;
    margin: 50px 0 24px;
    padding-bottom: 16px;
    font-size: 26px;
    font-weight: 700;
    color: #181615;
    text-align: center;
}

.plain-text .bsPlainSectionHeading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 60px;
    height: 3px;
    background: #181615;
    transform: translateX(-50%);
}

.plain-text .bsPlainEyebrow {
    margin: 50px 0 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #919191;
    text-align: center;
}

.plain-text .bsPlainSubheading {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 700;
    color: #181615;
    text-align: center;
}

.plain-text .bsPlainLeadText {
    max-width: 720px;
    margin: 0 auto 16px;
    font-size: 18px;
    line-height: 1.7;
    color: #181615;
    text-align: center;
}

.plain-text .bsPlainBodyText {
    max-width: 720px;
    margin: 0 auto 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    text-align: center;
}

.plain-text .bsPlainQuote {
    position: relative;
    max-width: 700px;
    margin: 24px auto;
    padding: 24px 32px;
    background: #f7f7f7;
    border-left: 4px solid #181615;
    font-size: 17px;
    font-style: italic;
    line-height: 1.6;
    color: #333;
}

.plain-text .bsPlainQuote::before {
    content: "\201C";
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
    font-size: 48px;
    color: #000000;
}

/* Closing call-to-action panel */

.plain-text .bsPlainCtaBox {
    max-width: 820px;
    margin: 60px auto 48px;
    padding: 56px 40px;
    border-radius: 12px;
    text-align: center;
}

.plain-text .bsPlainCtaBox .bsPlainCtaHeading {
    position: relative;
    margin: 0 0 24px;
    padding-bottom: 16px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.plain-text .bsPlainCtaBox .bsPlainCtaHeading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 60px;
    height: 3px;
    background: #fff;
    transform: translateX(-50%);
}

.plain-text .bsPlainCtaBox .bsPlainCtaText {
    margin: 0 auto 12px;
    font-size: 26px;
    line-height: 1.7;
    color: #c9c9c9;
    text-align: center;
}

.plain-text .bsPlainCtaBox .bsPlainCtaText strong {
    color: #fff;
}

.plain-text .bsPlainCtaBox .bsPlainCtaNote {
    display: inline-block;
    margin: 28px auto 0;
    background: #fff;
    color: #181615;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

@media (max-width: 600px) {
    .plain-text .bsPlainSectionHeading {
        font-size: 22px;
    }

    .plain-text .bsPlainSubheading {
        font-size: 20px;
    }

    .plain-text .bsPlainLeadText {
        font-size: 16px;
    }

    .plain-text .bsPlainQuote {
        padding: 20px 22px;
        font-size: 15px;
    }

    .plain-text .bsPlainCtaBox {
        padding: 40px 20px;
    }

    .plain-text .bsPlainCtaBox .bsPlainCtaHeading {
        font-size: 22px;
    }
}
