/* Squash On Fire — maintenance page
   Brand tokens lifted from squashonfire.com (Neusa, #f33 red, black/white). */

@font-face {
    font-family: neusa;
    src: url(/fonts/Neusa-SemiBold.woff2) format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: neusa;
    src: url(/fonts/Neusa-Bold.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: neusa;
    src: url(/fonts/Neusa-Black.woff2) format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

html {
    height: 100%;
}

body {
    height: 100%;
    margin: 0;
    background-color: #fff;
    color: #000;
    font-family: Neusa, neusa, serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
p {
    margin: 0;
}

a[href^="tel:"],
a[href^="mailto:"] {
    color: #f33;
    text-decoration: none;
}

.content-wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

/* ---------- header ---------- */

.navbar-wrapper {
    background-color: #fff;
    width: 100%;
    z-index: 20;
}

.navbar {
    display: flex;
    align-items: stretch;
    position: relative;
    height: 78px;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.navbar .logo-spacer {
    width: 140px;
}

.navbar .logo {
    display: inline-block;
    width: 140px;
    height: 110px;
    background-color: #f33;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 200;
    background-size: 79%;
    background-repeat: no-repeat;
    background-position: 50%;
    background-image: url(/images/SOF.svg);
}

.navbar .call {
    margin-left: auto;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    padding-left: 24px;
    padding-right: 24px;
    text-decoration: none;
}

.navbar .call:hover {
    background-color: #f33;
}

/* ---------- main ---------- */

main {
    flex: 1 0 auto;
}

.section {
    padding: 40px;
}

.section-header {
    position: relative;
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.maintenance .section-header {
    margin-bottom: 24px;
}

.maintenance p {
    margin-bottom: 32px;
    max-width: 780px;
}

.maintenance p:last-child {
    margin-bottom: 0;
}

/* ---------- red call-us section ---------- */

.red-section {
    background-color: #f33;
    color: #fff;
}

.call-us .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.call-us .section-header {
    margin-bottom: 0;
}

.call-blocks {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 24px;
}

/* .call-us prefix keeps these ahead of the a[href^="tel:"] / [mailto:] red rule */
.call-us .call-block {
    border: 1px solid #fff;
    padding: 24px 32px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: #fff;
    transition: 0.3s ease all;
}

.call-us .call-block:hover {
    background-color: #fff;
    color: #f33;
}

.call-caption {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    text-transform: uppercase;
}

.call-number {
    font-size: 48px;
    line-height: 60px;
    font-weight: 900;
    white-space: nowrap;
}

.call-email {
    font-size: 26px;
    line-height: 40px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.call-note {
    font-size: 20px;
    line-height: 28px;
}

/* ---------- footer ---------- */

.footer {
    background-color: #000;
    color: #fff;
    padding: 80px 40px;
}

/* The stripe gets its own grid cell, so it can never overlap the text —
   the text lives in .footer-text and the diagonal is drawn inside .stripe. */
.footer .content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.footer-text {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    min-width: 0;
}

.footer-address {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* ---------- red diagonal stripe (site accent) ---------- */

.footer .stripe {
    position: relative;
    overflow: hidden;
    min-height: 120px;
    pointer-events: none;
}

.footer .stripe:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 260%;
    height: 30px;
    background: linear-gradient(to left, #f33, transparent 75%);
    transform: rotate(-50deg);
    transform-origin: 100% 0;
}

.footer-header {
    font-size: 30px;
    line-height: 40px;
    font-weight: 700;
}

.footer-item {
    line-height: 32px;
}

.footer-logo img {
    width: 164px;
    height: auto;
    display: block;
}

.footer-copyright {
    margin-top: 16px;
    font-size: 20px;
    line-height: 28px;
    color: #ccc;
}

/* ---------- desktop ---------- */

@media (min-width: 835px) {
    .section-header {
        font-size: 48px;
        line-height: 60px;
    }

    .section {
        padding: 80px 40px;
    }

    .call-number {
        font-size: 80px;
        line-height: 88px;
    }

    .call-email {
        font-size: 34px;
        line-height: 88px;
    }

    /* text column | stripe column */
    .footer .content-wrapper {
        grid-template-columns: minmax(0, 1fr) 30%;
        align-items: stretch;
        gap: 40px;
    }

    .footer-address {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* ---------- mobile ---------- */

@media (max-width: 834px) {
    body {
        font-size: 20px;
    }

    .navbar {
        height: 50px;
    }

    .navbar .logo {
        height: 100%;
        width: 90px;
        background-size: 50%;
    }

    .navbar .logo-spacer {
        width: 90px;
    }

    .navbar {
        font-size: 18px;
    }

    .navbar .call {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section {
        padding: 32px 20px;
    }

    .footer {
        padding: 48px 20px;
    }

    .call-blocks {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .call-block {
        padding: 20px 24px;
    }

    .call-number {
        font-size: 36px;
        line-height: 44px;
    }

    .call-email {
        font-size: 21px;
        line-height: 30px;
    }

    /* stripe drops to its own row under the text, held to the right */
    .footer .content-wrapper {
        gap: 32px;
    }

    .footer-text {
        gap: 40px;
    }

    .footer .stripe {
        width: 60%;
        margin-left: auto;
        min-height: 100px;
    }
}
