/*
    Strzelecki Engineering on chx4-web, matched to strzeleckiengineering.com.au.

    Every class of ours starts se-. Element rules only apply inside a section of ours, so the
    platform's search page and form markup are left alone. The header, footer and version bar
    are the platform's own, restyled through the class names header-footer.css documents.

    The original has no dark mode, so this site has none either: colours are set outright rather
    than through the platform's light/dark variables.
*/

:root {
    --primary: #1f658f;
    --secondary: #444444;
    --info: #1f658f;
    --highlight: #1f658f;
    --body: #222222;
    --surface: #ffffff;
    --on-primary: #ffffff;
    --site-background: #fcfcfc;

    --se-blue: var(--primary);
    --se-ink: #222222;
    --se-nav: #444444;
    --se-page: #fcfcfc;
    --se-band: #f2f2f2;
    --se-rule: #dddddd;
    --se-width: 1170px;

    /* the original sets no web font, so this is the stack it falls back to */
    --se-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    --font-family-sans-serif: var(--se-font);
    --font-family-headings: var(--se-font);
}

:root:has(.site-layout) {
    color-scheme: light;
}

body:has(.site-layout),
.site-layout {
    background-color: var(--se-page);
    color: var(--se-ink);
    font-family: var(--se-font);
}

/* ---------- header ---------- */

.site-layout > header {
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

.site-layout > header .navbar {
    min-height: 105px;
    padding: 0 10px;
    align-items: center;
}

.site-layout > header .navbar-brand {
    padding: 0;
    margin: 0;
}

.site-layout > header .svg-logo,
.site-layout > header .logo,
.home-header .svg-logo,
.home-header .logo,
.sticky-header .svg-logo,
.sticky-header .logo {
    display: block;
    width: 125px;
    height: 85px;
    padding: 0;
}

/* the platform's search button; the original has no search in its header */
.site-layout > header .navbar-nav[data-section="2"] {
    display: none;
}

@media (min-width: 992px) {
    .site-layout > header .navbar-collapse {
        justify-content: center;
        align-self: stretch;
    }

    .site-layout > header .navbar-nav[data-section="1"] {
        align-items: stretch;
        height: 105px;
    }

    .site-layout > header .navbar-nav[data-section="1"] .nav-item {
        display: flex;
        border: 0;
        border-radius: 0;
    }

    .site-layout > header .navbar-nav[data-section="1"] .nav-link {
        display: flex;
        align-items: center;
        margin: 0 !important;
        padding: 0 15px;
        color: var(--se-nav);
        font-size: 12.8px;
        font-weight: 600;
        line-height: 20px;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .site-layout > header .navbar-nav[data-section="1"] .nav-link:hover,
    .site-layout > header .navbar-nav[data-section="1"] .nav-link.active {
        color: var(--se-blue);
        text-decoration: none;
    }
}

/* The phone number is the last item of the Main menu. It sits at the far right, a blue circle
   with the handset in it and the number beside it. */
.site-layout > header .nav-item:has(a[href^="tel:"]) {
    position: absolute;
    top: 0;
    right: 15px;
    height: 105px;
}

.site-layout > header .navbar-nav[data-section="1"] .nav-link[href^="tel:"] {
    padding: 0;
    color: var(--se-nav);
    font-size: 20.8px;
    letter-spacing: 1px;
    text-transform: none;
}

.site-layout > header .nav-link[href^="tel:"] .fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px 0 0 !important;
    border-radius: 50%;
    background-color: var(--se-blue);
    color: #fff;
    font-size: 16px;
}

@media (max-width: 991.98px) {
    .site-layout > header .navbar {
        min-height: 70px;
    }

    .site-layout > header .svg-logo,
    .site-layout > header .logo,
    .home-header .svg-logo,
    .sticky-header .svg-logo {
        width: 80px;
        height: 55px;
    }

    .site-layout > header .navbar-collapse {
        background-color: #fff;
        padding-top: 80px;
    }

    .site-layout > header .navbar-nav[data-section="1"] .nav-link {
        color: var(--se-nav);
        font-size: 1.1rem;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .site-layout > header .navbar-nav[data-section="1"] .nav-link.active {
        color: var(--se-blue);
    }

    /* on a phone the number stays in the menu, as an ordinary item */
    .site-layout > header .nav-item:has(a[href^="tel:"]) {
        position: static;
        height: auto;
    }
}

/* ---------- shared page pieces ---------- */

#cms-content-style .se-section {
    font-family: var(--se-font);
    color: var(--se-ink);
    font-size: 16px;
    line-height: 1.4286;
}

#cms-content-style .se-section :where(a) {
    color: var(--se-blue);
}

#cms-content-style .se-section :where(a:hover, a:focus) {
    color: #123d57;
}

#cms-content-style .se-wrap {
    max-width: var(--se-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* the heading with a short rule under it, used all over the original */
#cms-content-style .se-section .se-title {
    margin: 20px 0 13px;
    color: var(--se-ink);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: 0.25px;
}

#cms-content-style .se-section .se-title::after {
    content: "";
    display: block;
    width: 150px;
    padding-top: 1ex;
    border-bottom: 2px solid currentColor;
}

#cms-content-style .se-button {
    display: inline-block;
    padding: 6px 12px;
    border: 2px solid var(--se-blue);
    border-radius: 0;
    background-color: var(--se-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

#cms-content-style .se-button:hover,
#cms-content-style .se-button:focus {
    background-color: #fff;
    color: var(--se-blue);
    text-decoration: none;
}

/* ---------- page banner (every page but Home) ---------- */

#cms-content-style .se-banner {
    position: relative;
    display: flex;
    align-items: center;
    height: 60vh;
    min-height: 320px;
    max-height: 540px;
    overflow: hidden;
    background-color: #2b3a44;
}

#cms-content-style .se-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#cms-content-style .se-banner-shade {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.5) 80%);
}

#cms-content-style .se-banner-text {
    position: relative;
    width: 100%;
    max-width: var(--se-width);
    margin: 0 auto;
    padding: 0 30px;
    color: #fff;
    text-align: center;
}

#cms-content-style .se-banner-text h2 {
    margin: 0 0 13px;
    color: #fff;
    font-size: 48px;
    font-weight: 600;
    line-height: 60px;
    letter-spacing: 0.25px;
}

#cms-content-style .se-banner-text h2::after {
    content: "";
    display: block;
    width: 150px;
    margin: 0 auto 1ex;
    padding-top: 1ex;
    border-bottom: 2px solid #fff;
}

#cms-content-style .se-banner-text p {
    margin: 0 0 10px;
    color: #fff;
}

@media (max-width: 767.98px) {
    #cms-content-style .se-banner-text h2 {
        font-size: 32px;
        line-height: 40px;
    }
}

/* ---------- main text with the Specialties menu beside it ---------- */

/* The row's Layout Class. The columns are the platform's; this centres them on the original's
   1170px grid, 75/25 like its col-md-9/col-md-3. */
#cms-content-style .cms-row.se-content {
    width: 100%;
    max-width: var(--se-width);
    margin: 0 auto;
    padding: 32px 0;
}

#cms-content-style .se-article {
    padding: 0 15px;
    font-size: 16px;
    line-height: 1.7;
}

#cms-content-style .se-article p {
    margin: 0 0 16px;
}

#cms-content-style .se-article h3 {
    margin: 20px 0 10px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.25px;
}

#cms-content-style .se-article h4 {
    margin: 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.25px;
}

/* the bordered list with a ringed dot before each item */
#cms-content-style .se-section .se-list {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

#cms-content-style .se-section .se-list li {
    position: relative;
    margin-bottom: -1px;
    padding: 10px 15px 10px 32px;
    border: 1px solid var(--se-rule);
    background-color: #fff;
    line-height: 1.7;
}

#cms-content-style .se-section .se-list li:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

#cms-content-style .se-section .se-list li:last-child {
    margin-bottom: 0;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

#cms-content-style .se-section .se-list li::before {
    content: "";
    position: absolute;
    top: calc(10px + 0.85em - 6px);
    left: 12px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--se-blue);
    border-radius: 50%;
    background-color: var(--se-blue);
    box-shadow: inset 0 0 0 2px #fff;
}

/* the Specialties block: a blue disc with a chevron, then the link */
#cms-content-style .se-side {
    padding: 0 15px;
}

#cms-content-style .se-side ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#cms-content-style .se-side li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

#cms-content-style .se-side a {
    position: relative;
    display: block;
    padding: 15px 25px 15px 50px;
    color: var(--se-blue);
    font-size: 16px;
    line-height: 1.4286;
    text-decoration: none;
}

#cms-content-style .se-side a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border-radius: 50%;
    background-color: var(--se-blue);
}

#cms-content-style .se-side a::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 15px;
    width: 9px;
    height: 9px;
    margin-top: -5px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: rotate(45deg);
}

#cms-content-style .se-side a:hover {
    text-decoration: underline;
}

/* ---------- client logos (a Horizontal Scroller block) ---------- */

#cms-content-style .cms-row.se-clients {
    background-color: #fff;
}

#cms-content-style .se-clients .hs-wrapper {
    max-width: var(--se-width);
    margin: 0 auto;
    padding: 0 30px;
}

#cms-content-style .se-clients .hs-container {
    max-width: none;
    scroll-snap-type: x mandatory;
}

#cms-content-style .se-clients .hs-item {
    flex: 0 0 20%;
    max-width: 20%;
    scroll-snap-align: start;
}

#cms-content-style .se-client {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

#cms-content-style .se-client[href=""] {
    pointer-events: none;
}

#cms-content-style .se-clients .hs-container img {
    width: auto;
    max-width: 100%;
    height: 80px;
    object-fit: contain;
}

/* the original's arrows are bare chevrons at the edges of the strip */
#cms-content-style .se-clients .hs-button {
    top: 50%;
    padding: 0 4px;
    transform: translateY(-50%);
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--se-ink);
    font-size: 30px;
}

#cms-content-style .se-clients .hs-button:hover {
    background: none;
    color: var(--se-blue);
}

#cms-content-style .se-clients .hs-button-back {
    left: 0;
}

#cms-content-style .se-clients .hs-button-next {
    right: 0;
}

@media (max-width: 991.98px) {
    #cms-content-style .se-clients .hs-item {
        flex-basis: 33.3333%;
        max-width: 33.3333%;
    }
}

@media (max-width: 575.98px) {
    #cms-content-style .se-clients .hs-container {
        max-width: none;
    }

    #cms-content-style .se-clients .hs-item {
        flex-basis: 50%;
        max-width: 50%;
    }
}

/* ---------- Our Quality Guarantee (a shared block) ---------- */

#cms-content-style .se-cta {
    position: relative;
    overflow: hidden;
    padding-bottom: 10%;
    background-color: var(--se-blue);
    background-image: url("/uploads/5dd760b1-a88c-4988-a986-df91e3a1ab0d.png");
    color: #fff;
}

/* the white wedge and small logo across the bottom, as one picture */
#cms-content-style .se-cta::after {
    content: "";
    position: absolute;
    inset: 0 0 -1px 0;
    background-image: url("/uploads/625c6b19-e8e8-4d7a-b92b-ae9d50d4a70d.svg");
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: 100% auto;
    pointer-events: none;
}

#cms-content-style .se-cta .se-wrap {
    position: relative;
    display: flex;
}

#cms-content-style .se-cta-message {
    position: relative;
    z-index: 2;
    flex: 0 0 50%;
    max-width: 50%;
    padding: 100px 15px;
}

#cms-content-style .se-cta-message h2 {
    margin: 0;
    color: #fff;
    font-size: 36px;
    font-weight: 600;
    line-height: 45px;
    letter-spacing: 0.25px;
}

#cms-content-style .se-cta-message h2::after {
    content: "";
    display: block;
    width: 150px;
    margin-bottom: 1ex;
    padding-top: 1ex;
    border-bottom: 2px solid #fff;
}

#cms-content-style .se-cta-message h2 a {
    color: #fff;
    text-decoration: none;
}

#cms-content-style .se-cta-message p {
    margin: 0 0 10px;
    color: #fff;
}

#cms-content-style .se-cta-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-top: 8px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--se-blue);
    text-decoration: none;
    transition: transform 0.2s;
}

#cms-content-style .se-cta-go::before {
    content: "";
    width: 11px;
    height: 11px;
    margin-left: -4px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    transform: rotate(45deg);
}

#cms-content-style .se-cta-go:hover {
    transform: scale(1.08);
}

#cms-content-style .se-cta-drawing {
    position: absolute;
    top: -100px;
    left: calc(50% + 15px);
    width: 500px;
    max-width: 50%;
    height: auto;
}

@media (max-width: 991.98px) {
    #cms-content-style .se-cta-message {
        flex-basis: 100%;
        max-width: 100%;
        padding: 50px 15px;
    }

    #cms-content-style .se-cta-drawing {
        display: none;
    }
}

/* ---------- footer ---------- */

.site-layout footer {
    background-color: var(--se-band);
    color: var(--se-ink);
}

.site-layout footer #cmsContent {
    margin: 0 -15px;
    padding: 100px 0;
    background-color: var(--se-band);
    font-size: 12.8px;
    line-height: 18.3px;
}

.site-layout footer .se-footer {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: var(--se-width);
    margin: 0 auto;
    font-family: var(--se-font);
}

.site-layout footer .se-footer-column {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

.site-layout footer .se-footer h4 {
    margin: 10px 0 16px;
    padding-bottom: 8px;
    border-bottom: 6px solid rgba(0, 0, 0, 0.15);
    color: var(--se-ink);
    font-size: 14.4px;
    font-weight: 600;
    line-height: 17.6px;
    letter-spacing: 0.25px;
}

.site-layout footer .se-footer address {
    margin: 0;
}

.site-layout footer .se-footer p {
    margin: 0 0 10px;
}

.site-layout footer .se-footer a {
    color: var(--se-blue);
}

.site-layout footer .se-footer .fa {
    width: 1.1em;
    margin-right: 4px;
    color: var(--se-ink);
}

.site-layout footer .se-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-layout footer .se-footer li {
    padding: 7px 0;
}

.site-layout footer .se-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 6px;
    border-radius: 2px;
    background-color: #3b5998;
    color: #fff !important;
    font-size: 12px;
    text-decoration: none;
}

.site-layout footer .se-social .fab {
    margin: 0;
    color: #fff;
}

@media (max-width: 767.98px) {
    .site-layout footer .se-footer-column {
        flex-basis: 100%;
        max-width: 100%;
    }

    .site-layout footer .se-footer-spacer {
        display: none;
    }
}

/* the platform's copyright line, as the original's blue bar */
.site-layout footer #versionInfo {
    align-items: center;
    margin: 0 -15px;
    padding: 30px max(15px, calc((100% - var(--se-width)) / 2 + 15px));
    background-color: var(--se-blue);
    color: #fff;
    font-size: 10.67px;
}

.site-layout footer #versionInfo a,
.site-layout footer #versionInfo a:hover,
.site-layout footer #tenantCopyright:hover {
    color: #fff;
}
