body {
    font-family: "Roboto Condensed", sans-serif;
}

#nav-items .nav-item a:hover {
    transform: scale(1.1);
}

/* DESKTOP */

.full-size {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

.half-size {
    width: 100vw;
    height: 50vh;
    object-fit: cover;
}

.image-overlay-container {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    z-index: 1;
    pointer-events: none;
}

.image-overlay-container img {
    position: relative;
    z-index: 0;
    max-width: 100%;
    max-height: 50vh;
    object-fit: cover;
    display: block;
}

.image-overlay-container-full {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-overlay-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.image-overlay,
.image-overlay-full {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0, rgba(0, 0, 0, 0) 220px), rgba(0, 0, 0, 0.6); /*Dark fade*/
}

.image-overlay-container-full img {
    position: relative;
    z-index: 0;
    max-width: 100%;
    max-height: 100vh;
    object-fit: cover;
    display: block;
}

.apply-caption {
    position: absolute;
    top: 65%;
    left: 15%;
    transform: translate(-50%, -50%);
    text-align: left;
    font-size: 15rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 10;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}

/* Page titles on other pages (e.g. ABOUT US); clamp scales the size with screen width */
.static-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 5rem);
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 10;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}

.static-caption-project {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: clamp(2rem, 3vw, 4rem);
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 10;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}

/* Caption box fills the whole slide, so the heading, tiles and statements share one reference point */
.carousel-caption.homeCaption {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: left;
}

.homeTextContainer {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    left: 3.5%;
    top: 40%;
    transform: translateY(-50%);
    white-space: nowrap;
}

.mainHomeText1 {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(3.7rem, 3.1vw, 5rem);
    line-height: 1;
    color: #fff;
    margin: 0;
    font-weight: bold;
}

.mainHomeText2 {
    font-family: 'Roboto', sans-serif;
    color: var(--raubex-orange);
    font-size: 2rem;
}

/* Tile group: hangs 90px below the heading */
.HomePageButtonWrap {
    position: absolute;
    left: 3.5%;
    top: calc(40% + 90px);
    width: 483px;
    height: 368px;
    font-size: 50px;
    z-index: 1000;
}

.HomePageButtonInnerWrap {
    position: relative;
    width: 100%;
    height: 100%;
    font-size: 50px;
    margin: 0;
    padding: 0;
}

.buttonAbout, .buttonAssosciations, .buttonProjects, .buttonDivisions, .buttonCareers {
    position: absolute;
    border-radius: 10px;
    z-index: 1001;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .buttonAbout:hover, .buttonAssosciations:hover, .buttonProjects:hover, .buttonDivisions:hover, .buttonCareers:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    }

.buttonAbout {
    top: 154px;
    left: 0;
    width: 119px;
    height: 136px;
    background-color: var(--raubex-charcoal);
    overflow: hidden;
    padding: 0;
    background-size: 214% 129%;
    background-position: center;
}

.buttonDivisions {
    top: 77px;
    left: 358px;
    width: 123px;
    height: 100px;
    background-color: var(--raubex-charcoal);
    overflow: hidden;
    padding: 0;
    background-size: 107% 119%;
    background-position: center;
}

.buttonAssosciations {
    top: 193px;
    left: 270px;
    width: 212px;
    height: 174px;
    background-color: var(--raubex-charcoal);
    overflow: hidden;
    padding: 0;
    background-size: 107% 119%;
    background-position: center;
}

.buttonProjects {
    top: 0;
    left: 134px;
    width: 212px;
    height: 174px;
}

.buttonCareers::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: inherit;
}

.buttonCareers {
    top: 193px;
    left: 134px;
    width: 123px;
    height: 100px;
    background-color: var(--raubex-orange);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.mainButtonsText {
    white-space: nowrap;
    color: white;
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    overflow: hidden;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Vision & Mission: starts 600px right of the tiles' left edge so it never slides under them */
.homeStatements {
    position: absolute;
    left: calc(3.5% + 600px);
    right: 3.5%;
    top: calc(40% + 140px);
    z-index: 1000;
    color: #fff;
}

.homeStatement {
    position: relative;
    padding-left: 42px;
    margin-bottom: 55px;
}

    .homeStatement:last-child {
        margin-bottom: 0;
    }

.homeStatementTitle {
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 4px 0;
}

.homeStatementText {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.25;
    text-align: justify;
    margin: 0 0 0 16px;
}

/* Arcs: circles with only the top and left borders coloured */
.homeStatement::before,
.homeStatement::after {
    content: "";
    position: absolute;
    border-style: solid;
    border-color: transparent;
    border-radius: 50%;
    pointer-events: none;
}

.homeStatement::before {
    left: 0;
    top: -20px;
    width: 84px;
    height: 84px;
    border-width: 5px;
    border-top-color: var(--raubex-orange);
    border-left-color: var(--raubex-orange);
    transform: rotate(-10deg);
}

.homeStatement::after {
    left: 8px;
    top: -12px;
    width: 70px;
    height: 70px;
    border-width: 3px;
    border-top-color: #fff;
    border-left-color: #fff;
    transform: rotate(-30deg);
}

.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
    display: none !important;
}

/* DESKTOP - SHORT SCREENS (laptops with display scaling): lifts and shrinks the content so it clears the footer */
@media screen and (min-width: 769px) and (max-height: 800px) {
    .homeTextContainer {
        top: 35%;
    }

    .HomePageButtonWrap {
        top: calc(35% + 80px);
        transform: scale(0.75);
        transform-origin: top left;
    }

    .homeStatements {
        left: calc(3.5% + 470px);
        top: calc(35% + 100px);
    }

    .homeStatement {
        margin-bottom: 45px;
    }

    .homeStatementTitle {
        font-size: 18px;
    }

    .homeStatementText {
        font-size: 13px;
    }
}

/* MOBILE */
@media screen and (max-width: 768px) {
    /* The home page is locked to one screen on desktop; phones stack content, so let it scroll */
    body.overflow-hide {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .apply-caption {
        left: 30%;
    }
    /* Content stacks in normal flow; padding-top reserves the space for the heading.
       151px = room for the longest (two-line) heading plus its 18px gap above the tiles,
       kept tight so the statements finish above the sticky footer */
    body.overflow-hide #carousel-desktop {
        position: relative;
        padding-top: 151px;
        padding-bottom: 24px;
    }

    /* When the content is shorter than the screen, the banner stretches to meet the footer
       instead of leaving the white page background showing beneath it (home page only) */
    body.overflow-hide:has(.homeStatements) {
        display: flex;
        flex-direction: column;
    }

        body.overflow-hide:has(.homeStatements) #carousel-desktop {
            flex: 1 0 auto;
        }
        /* Slides stretch behind the heading, tiles and statements, however tall they make the box */
        body.overflow-hide #carousel-desktop .carousel-inner {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
        }

        body.overflow-hide #carousel-desktop .carousel-item,
        .full-size,
        .image-overlay-container-full,
        .image-overlay-full {
            height: 100%;
        }

            .image-overlay-container-full img {
                max-height: none;
            }

    /* Bottom edge sits 18px above the tiles; longer headings grow upwards into the space under the header */
    .homeTextContainer {
        left: 5%;
        right: 5%;
        top: 133px;
        transform: translateY(-100%);
        white-space: normal;
    }

    .mainHomeText1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .mainHomeText2 {
        font-size: clamp(1.3rem, 5vw, 2.1rem);
        line-height: 1;
    }
    /* zoom shrinks the real size (unlike scale), so nothing below is pushed down by empty space */
    .HomePageButtonWrap {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0 auto;
        zoom: 0.7;
    }

    .homeStatements {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        margin: 65px 5% 0;
        display: grid;
    }

    .homeStatement {
        grid-area: 1 / 1;
        margin-bottom: 0;
        opacity: 0;
        transition: opacity 0.8s ease;
    }

        .homeStatement.is-active {
            opacity: 1;
        }
}

/* MOBILE - SHORTER PHONES: smaller tiles (and text on the shortest) so Mission still clears the footer */
@media screen and (max-width: 768px) and (max-height: 780px) {
    .HomePageButtonWrap {
        zoom: 0.6;
    }

    .homeStatements {
        margin-top: 16px;
    }
}

@media screen and (max-width: 768px) and (max-height: 700px) {
    /* Tighter gaps around the heading: 12px above the tiles, longest heading still clears the header */
    body.overflow-hide #carousel-desktop {
        padding-top: 138px;
    }

    .homeTextContainer {
        top: 126px;
    }

    .HomePageButtonWrap {
        zoom: 0.47;
    }

    .homeStatements {
        margin-top: 10px;
    }

    .homeStatementTitle {
        font-size: 18px;
    }

    .homeStatementText {
        font-size: 13px;
    }
}

/* The page caption is the page's h1. Undo the site-wide heading styles (grayscale.css, and Site.css's
   !important h1 sizes and padding) so it keeps the look it had as a plain div. */
h1.static-caption,
h1.static-caption-project {
    margin: 0;
    padding-bottom: 0 !important;
    line-height: inherit;
    letter-spacing: normal;
    text-transform: none;
}

h1.static-caption {
    font-size: clamp(1.6rem, 3vw, 5rem) !important;
}

h1.static-caption-project {
    font-size: clamp(2rem, 3vw, 4rem) !important;
}

.sidebar-card {
    background-color: #111;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--raubex-orange);
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

    .sidebar-label::before {
        content: "";
        width: 28px;
        height: 2px;
        background-color: var(--raubex-orange);
    }

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .sidebar-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

        .sidebar-list li:last-child {
            border-bottom: 0;
        }

    .sidebar-list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 14px 0;
        color: #fff;
        font-size: 13px;
        text-transform: uppercase;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .sidebar-list a:hover {
            color: var(--raubex-orange);
        }

        .sidebar-list a .fa {
            color: var(--raubex-orange);
        }

.sidebar-date {
    display: block;
    color: var(--raubex-orange);
    font-size: 11px;
    margin-top: 4px;
    text-transform: none;
}

/* Building blocks shared by the content pages (About, Divisions, Support, Projects, Careers, Contact).
   Only the declarations every page agrees on live here; each page's own sizes and spacing
   stay in Content/views/<Area>/<View>.css, which loads after this file. */

.black-container {
    position: relative;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.white-container {
    position: relative;
    padding-right: 0px;
}

.footer {
    position: relative;
    z-index: 0;
}

.subheading {
    display: block;
    text-align: left;
    font-weight: bold;
    margin-bottom: 5px;
}

.viewButton {
    background-color: var(--raubex-orange);
    padding: 8px 32px;
    border: none;
    font-size: 16px;
    font-weight: bold;
}

.heading-text {
    display: block;
    text-align: left;
    font-weight: bold;
    margin-bottom: 5px;
}

.heading-container {
    position: relative;
}

.numberedCircle {
    background-color: var(--raubex-orange);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.mainImageContainer {
    position: relative;
    width: 80%;
    height: auto;
}

@media screen and (max-width: 768px) {
    .support-row {
        padding-top: 45px !important;
    }
}

/* Business unit sections (Views/Divisions/_SectionHeroLayered, _SectionDarkBand, _SectionSplit, _LayeredImages).
   The background image is set inline by each partial, because its file name comes from the CMS.
   Variations are "division-section--<name>" classes; DivisionSectionViewModel.Modifiers lists them. */

.section-tagline {
    display: block;
    text-align: left;
    color: var(--raubex-orange);
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
}

.layered-images-column {
    position: relative;
    flex-direction: column;
}

.layered-images {
    position: relative;
    width: 80%;
    max-width: 550px;
    height: auto;
    margin-bottom: 76px;
}

.layered-images__main {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.layered-images__overlap {
    width: 70%;
    max-width: 336px;
    height: auto;
    border-radius: 13px;
    position: absolute;
    bottom: -10%;
    right: -15%;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    border: 4px solid white;
}

.division-section--image-79 .layered-images {
    width: 79%;
}

.division-section--image-100 .layered-images {
    width: 100%;
}

.division-section--gap-0 .layered-images {
    margin-bottom: 0;
}

.division-section--gap-60 .layered-images {
    margin-bottom: 60px;
}

.division-section--gap-80 .layered-images {
    margin-bottom: 80px;
}

.section-hero-layered {
    position: relative;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    overflow: hidden;
    margin-bottom: -30px;
    z-index: 10;
}

.section-hero-layered__heading {
    display: block;
    text-align: left;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.division-section--tight-text .section-hero-layered__text {
    line-height: 1.4;
}

.section-dark-band {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    margin-top: -50px;
    z-index: 5;
    position: relative;
}

.section-dark-band__row {
    margin: 0;
}

.section-dark-band__col {
    padding: 0;
}

.section-dark-band__panel {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    padding: 50px 0;
    display: flex;
    min-height: 50vh;
}

.section-dark-band__shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 7;
}

.section-dark-band__text {
    text-align: left;
    color: white;
    max-width: 800px;
    z-index: 8;
    margin: 3% 10% 0;
}

.section-dark-band .section-tagline {
    font-size: 14px;
    margin-bottom: 10px;
}

.division-section--small-tagline .section-tagline {
    font-size: 13px;
    margin-bottom: 5px;
}

.section-dark-band__heading {
    font-size: 36px;
    font-weight: bold;
    color: white;
    margin-bottom: 0;
}

.division-section--heading-gap .section-dark-band__heading {
    margin-top: 25px !important;
}

.section-split {
    position: relative;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.division-section--overlap {
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    margin-bottom: -30px;
    z-index: 10;
}

.section-split__row {
    padding: 40px;
}

.section-split__media {
    margin-top: 20px;
    margin-bottom: 20px;
}

.section-split__frame {
    position: relative;
    max-width: 100%;
    height: auto;
}

.section-split__image {
    border-radius: 20px;
    width: 100%;
    height: auto;
}

.section-split__text {
    padding-left: 20px;
    margin-top: 20px;
    margin-right: 20px;
}

.division-section--text-gap-15 .section-split__text {
    margin-bottom: 15px;
}

.division-section--text-gap-16 .section-split__text {
    margin-bottom: 16px;
}

.section-split__heading {
    display: block;
    text-align: left;
    font-size: 27px;
    font-weight: bold;
    margin-bottom: 5px;
}

