/* The Fuze – site styles. Keeps the look of the original MoGo/Bootstrap theme without the framework. */

:root {
    --bg: #f8f8f8;
    --text: #797979;
    --heading: #333;
    --navy: #223d61;
    --accent: #f38181;      /* separators */
    --highlight: #f6c23a;   /* nav hover / active */
    --link: #337ab7;
    --rule: #ddd;
    --header-h: 110px;
    --header-h-scrolled: 75px;
    --font-body: 'Roboto', system-ui, sans-serif;
    --font-heading: 'Montserrat', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h-scrolled);
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.25rem;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--link); font-weight: 400; text-decoration: none; transition: color .2s ease-in-out; }
a:hover { color: #23527c; }
p { margin: 0 0 15px; }

h1, h2, h3 {
    margin: 0 0 10px;
    color: var(--heading);
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
}

.container { width: min(1170px, 100% - 30px); margin-inline: auto; }
.narrow { width: min(975px, 100% - 30px); }
.text-center { text-align: center; }
.clear { clear: both; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 1001; background: #fff; padding: 8px 12px; }

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 300;
    transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
    background-color: rgba(34, 61, 97, .64);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: var(--header-h);
    transition: min-height .3s;
}
.is-scrolled .header-inner { min-height: var(--header-h-scrolled); }
.brand img { display: block; height: 80px; width: auto; transition: height .3s; }
.is-scrolled .brand img { height: 60px; }
.social img { display: block; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; margin: 0; padding: 0; list-style: none; }
.site-nav a {
    display: block;
    padding: 15px 15px 20px;
    color: #fff;
    font-size: .875rem;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--highlight); }
.site-nav a.active { color: var(--highlight); border-bottom-color: #fde48a; }

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: 9px 10px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: #fff; border-radius: 1px; }
.nav-toggle .bar + .bar { margin-top: 4px; }

@media (max-width: 767px) {
    .header-inner { flex-wrap: wrap; min-height: 75px; }
    .brand img { height: 60px; }
    .nav-toggle { display: block; order: 3; }
    .site-nav {
        display: none;
        order: 4;
        flex-basis: calc(100% + 30px);
        background-color: rgba(34, 61, 97, .9);
        margin: 0 -15px;
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; padding: 5px 0; }
    .site-nav a { padding: 10px 15px; }
    .site-nav a.active { border-bottom-color: transparent; }
}

/* ---------- Sections ---------- */

.section { padding: 85px 0 105px; overflow: hidden; }

.separator { width: 127px; height: 3px; margin: 25px auto; background: var(--accent); }

.section-title { font-size: 1.875rem; line-height: 1.6; text-align: center; }
.section-title + .separator { margin-bottom: 60px; }

.lead { font-size: 1.6rem; line-height: 1.3; }

.label { font-size: .875rem; line-height: 2.5rem; margin-bottom: 20px; }

.divider { height: 2px; margin: 20px 0; border: 0; background: var(--rule); }

/* Hero */
.hero {
    height: clamp(420px, 80vw, 950px);
    background: url(../images/fuzebg2.jpg) center / cover no-repeat;
    position: relative;
}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }

/* Intro */
.intro { padding-bottom: 150px; }
.intro .section-title { margin-bottom: 0; }

/* Video */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 60px;
    align-items: start;
    padding-inline: 5%;
}
.video-frame { aspect-ratio: 16 / 9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.shadowed { box-shadow: 5px 10px 18px #888; }
.signup { grid-column: 1 / -1; }
.signup:empty { display: none; }

/* Biography (over the misty background) */
.bio {
    background:
        linear-gradient(rgba(237, 237, 237, .8), rgba(237, 237, 237, .8)),
        url(../images/divicebg.jpg) center / cover no-repeat;
    padding-top: 165px;
}
.story { text-align: center; overflow: hidden; }
.story + .story { margin-top: 120px; }
.story p:last-child { margin-bottom: 0; }

.float-left { float: left; margin: 0 20px 10px 0; }
.float-right { float: right; margin: 10px 0 10px 20px; }
.lightbox { display: block; cursor: zoom-in; }
.lightbox img { display: block; }

#boatparty .float-left { max-width: 45%; }
#boatparty .float-right { max-width: 40%; }

/* Twitter */
.twitter-feed { display: flex; justify-content: center; }

/* Contact */
.contact { padding: 55px 0 80px; color: var(--navy); }
.contact-title { color: var(--navy); font-size: 1.875rem; }
.contact .lead { margin-bottom: 25px; }

.contact-form { max-width: 600px; margin-inline: auto; text-align: left; }
.contact-form .field { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 5px; font-size: 1rem; font-weight: 400; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: var(--heading);
    font: inherit;
    font-size: 1rem;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.contact-form [aria-invalid="true"] { border-color: #c0392b; }
.field-error { margin: 5px 0 0; color: #c0392b; font-size: .875rem; }
.field-trap { position: absolute; left: -9999px; }
.cf-turnstile { margin-bottom: 20px; }
.btn {
    padding: 10px 30px;
    border: 0;
    border-radius: 4px;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-heading);
    font-size: .875rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s;
}
.btn:hover, .btn:focus-visible { background: #2f5687; }
.form-status { max-width: 600px; margin: 0 auto 20px; padding: 12px 15px; border-radius: 4px; font-size: 1rem; }
.form-success { background: #e6f4ea; color: #1e5631; }
.form-error { background: #fdecea; color: #8a1f17; }

/* Footer */
.site-footer .container {
    border-top: 1px solid var(--rule);
    padding: 40px;
    text-align: center;
    color: #aaa79e;
    font-size: .8125rem;
    line-height: 25px;
}
.site-footer p { margin: 0; }
.site-footer a { color: #3bd3ba; padding: 0 10px; }

/* Back-to-top button */
.scrollup {
    position: fixed;
    right: 25px;
    bottom: 20px;
    z-index: 1000;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s, background-color .5s, visibility .5s;
}
.scrollup.is-visible { opacity: .3; visibility: visible; }
.scrollup:hover, .scrollup:focus-visible { background: #95e1d3; color: #fff; opacity: 1; }

/* Lightbox */
.lightbox-dialog {
    padding: 0;
    border: 0;
    background: transparent;
    max-width: 92vw;
    max-height: 92vh;
    overflow: visible;
}
.lightbox-dialog::backdrop { background: rgba(30, 30, 30, .87); }
.lightbox-dialog img { display: block; max-width: 92vw; max-height: 92vh; width: auto; }
.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2.25rem;
    line-height: 1;
    cursor: pointer;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 991px) {
    body { font-size: 1.125rem; }
}

@media (max-width: 767px) {
    body { font-size: 1rem; }
    .section { padding: 60px 0 70px; }
    .bio { padding-top: 90px; }
    .story + .story { margin-top: 80px; }
    .section-title { font-size: 1.4rem; }
    .section-title + .separator { margin-bottom: 40px; }
    .lead { font-size: 1.15rem; }
    .video-grid { grid-template-columns: 1fr; padding-inline: 0; }
    .intro { padding-bottom: 80px; }
}

@media (max-width: 479px) {
    .float-left, .float-right,
    #boatparty .float-left, #boatparty .float-right {
        float: none;
        max-width: 100%;
        margin: 0 auto 20px;
        width: fit-content;
    }
}
