/* ElliottBrand public site (docs/ARCHITECTURE_PLAN.md §6).
   Ported from the old site's site.css (Bootstrap 4) to Bootstrap 5.3, keeping its look: the red page, black content
   panels, racing stripes and parallax banners. Plain CSS, no build step. No inline styles anywhere (the CSP forbids
   them), so per-page images are <img> elements, never style="background-image". */

/* ---------- Base ---------- */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    /* Room for the absolutely positioned footer. */
    margin-bottom: 60px;
    background-color: #ff0000;
    color: #000;
    background-image: url("/assets/images/Elliottbrand_GearLogo_01.png");
    background-position: bottom 60px left 0;
    background-repeat: no-repeat;
    --bs-link-color-rgb: 0, 0, 0;
    --bs-link-hover-color-rgb: 0, 0, 0;
}

a, a:visited, a:hover {
    color: #000;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

h1:focus {
    outline: none;
}

.bg-black {
    background-color: #000;
}

.border-black {
    border: 1px solid #000;
}

.l-minus-1 {
    position: relative;
    left: -0.2em;
}

.t-minus-2 {
    position: relative;
    top: -0.55em;
}

/* ---------- Header ---------- */

.top-div {
    background-color: #000;
    color: #ddd;
    font-size: larger;
    text-align: right;
    padding: 0.25em;
}

.top-div a, .top-div a:visited, .top-div a:hover {
    color: #ddd;
    text-decoration: none;
}

.navbar button.navbar-toggler {
    border: 0;
    color: #000;
}

.navbar button.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.5);
}

.navbar button.navbar-toggler .fa-bars {
    font-size: 2.5em;
}

.navbar-nav {
    background-color: #222;
    padding-bottom: 0.25em;
}

.nav-icon {
    font-size: 2em;
    margin-left: auto;
    margin-right: auto;
}

.nav-item {
    background-color: #000;
    margin-top: 0.25em;
    margin-bottom: 0.25em;
    font-size: large;
}

.nav-item .nav-link {
    padding: 0.5em;
    text-align: center;
}

.nav-item:hover {
    background-color: #333;
}

.navbar .nav-item a.nav-link,
.navbar .nav-item a.nav-link:visited {
    color: #ff0000;
}

.navbar .nav-item a.nav-link:hover,
.navbar .nav-item a.nav-link.active {
    color: #ccc;
}

.top-bar-social-icons {
    font-size: 2em;
    color: #555;
}

.top-bar-social-icons a,
.top-bar-social-icons a:visited {
    color: #000;
    margin-left: 0.1em;
}

.top-bar-social-icons-mobile {
    background-color: #212529;
}

.top-bar-social-icons-mobile .top-bar-social-icons a,
.top-bar-social-icons-mobile .top-bar-social-icons a:visited {
    color: #555;
}

.top-bar-social-icons a:hover {
    color: #fff;
    text-decoration: none;
}

/* The Blazot and X marks are inline SVGs, so they can follow the icon font's colors. */
.social-svg {
    width: 26px;
    height: 26px;
    display: inline-block;
    position: relative;
    top: -4px;
    fill: currentColor;
}

@media (min-width: 576px) {
    .social-svg {
        width: 29px;
        height: 29px;
    }
}

/* ---------- Banners (parallax heroes) ---------- */

.hero {
    position: relative;
    text-align: center;
    color: #ccc;
    background-color: #000;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
    overflow: hidden;
}

.hero > .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero > .shaded {
    position: relative;
}

.hero h1 {
    color: #ccc;
}

.hero-web-development {
    background-image: url("/assets/images/Red-Data-Stream.jpg");
}

.hero-about {
    background-image: url("/assets/images/tonyelliott_elliottbrand-decal.jpg");
}

.hero-services {
    background-image: url("/assets/images/code.jpg");
}

.hero-industry {
    margin-top: 1em;
    background-image: url("/assets/images/adams-elliottbrand.jpg");
    border: 0;
}

.hero-industry .shaded {
    padding: 4em 0;
}

.shaded {
    background-color: rgba(0, 0, 0, 0.45);
    padding: 2em;
}

.shaded-darker {
    background-color: rgba(0, 0, 0, 0.65);
    padding: 2em;
}

@media (min-width: 768px) {
    .hero {
        background-attachment: fixed;
    }
}

/* ---------- Section headers (the slanted stripe) ---------- */

.stripe-header-container {
    position: relative;
    overflow: hidden;
}

.stripe-header-container h2 {
    text-transform: uppercase;
}

.long-stripe {
    position: absolute;
    width: 100%;
    z-index: 31;
    height: 34px;
    display: inline-block;
    background-color: #000;
    margin-top: 0.25em;
    margin-left: 0.25em;
    transform: skew(-25deg);
}

/* ---------- Content panels ---------- */

.content-section {
    background-color: #000;
    color: #ccc;
    padding-top: 1em;
    padding-bottom: 1em;
    font-size: large;
}

.content-section a, .content-section a:visited {
    color: #ff0000;
}

.content-section a:hover {
    color: #fff;
}

.content-section img {
    max-width: 100%;
    height: auto;
}

.content-section figure {
    margin: 1em 0;
}

.content-section figcaption {
    font-size: 0.85em;
    color: #999;
}

.content-section table {
    width: 100%;
    margin-bottom: 1em;
    color: #ccc;
}

.content-section th, .content-section td {
    border: 1px solid #444;
    padding: 0.35em 0.5em;
}

.content-section h3, .content-section h4 {
    color: #ff0000;
}

.content-image {
    max-width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .content-image-float {
        float: right;
        max-width: 40%;
        margin: 0 0 1em 1.5em;
    }
}

.service-list-item h4 a,
.service-list-item h4 a:visited {
    color: #ff0000;
}

.service-list-item h4 a:hover {
    color: #fff;
}

@media (min-width: 576px) {
    .content-section-bg-image {
        background-image: url("/assets/images/racingstripes_grayer.svg");
        background-position: bottom right;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .navbar-nav {
        background-color: inherit;
        padding-bottom: inherit;
    }

    .nav-item {
        margin-left: 0.25em;
        margin-right: 0.25em;
        border-radius: 0.25em;
        margin-top: 0.25em;
        font-size: inherit;
    }
}

/* ---------- Contact form ---------- */

.contact-form .input-group-text {
    width: 6.5em;
    background-color: #000;
    color: #f8f9fa;
    border-color: #000;
}

.contact-form .form-control {
    background-color: #212529;
    color: #f8f9fa;
    border-color: #000;
}

.contact-form .form-control:focus {
    background-color: #2b3035;
    color: #fff;
    border-color: #000;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.6);
}

.contact-form .validation-message {
    color: #000;
    font-weight: bold;
    margin: 0.15em 0 0.35em;
}

.contact-form .btn-dark {
    min-width: 7em;
}

/* The honeypot: off-screen for people, still in the form for bots. */
.contact-form .hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-alert {
    font-weight: bold;
}

/* The badge is hidden, so the form shows Google's required notice instead. Its host must stay in the layout (not
   display:none) for Google's iframe to work, so it's simply moved out of sight. */
.grecaptcha-badge {
    visibility: hidden !important;
}

.recaptcha-host {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    left: -10000px;
}

.recaptcha-notice {
    font-size: 0.8em;
    margin-top: 0.75em;
}

.recaptcha-notice a, .recaptcha-notice a:visited {
    text-decoration: underline;
}

/* ---------- Account pages (sign-in, 2FA, password) ---------- */

.eb-account {
    background-color: #fff;
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
    margin-top: 1em;
    margin-bottom: 1em;
}

.eb-account a, .eb-account a:visited {
    color: #0366d6;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ---------- Footer ---------- */

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    background-color: #343a40;
    border-top: 2px solid #000;
    color: #777;
    background-image: url("/assets/images/Elliottbrand_GearLogo_02.png");
    background-position: top left;
    background-repeat: no-repeat;
}

.footer a, .footer a:visited {
    color: #aaa;
}

.footer a:hover {
    color: #eee;
}

/* ---------- Wide screens: the racing stripes down the right side ---------- */

@media (min-width: 1200px) {
    .container {
        max-width: 975px;
    }

    .stripesdiv {
        position: absolute;
        z-index: 30;
        height: 100%;
        min-height: 400px;
        width: 100px;
        right: 20px;
        background-image: url("/assets/images/racingstripes.svg");
        background-repeat: repeat-y;
        pointer-events: none;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

/* ---------- Framework UI ---------- */

.blazor-error-boundary {
    background-color: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}
