/* ==========================================================================
   41º Big Band - site styles. Plain modern CSS: no Foundation, jQuery or Font Awesome.
   ========================================================================== */

@font-face {
    font-family: 'Lovelo Black';
    src: url("../fonts/Lovelo_Black-8siPB7P.woff") format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url("../fonts/open-sans-latin-400-normal-wXCs6kL.woff2") format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url("../fonts/open-sans-latin-700-normal-3H8Il7f.woff2") format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #181145;
    --ink: #222;
    --paper: #fff;
    --dark: #262626;
    --jet: #222;
    --side: 6%;
    --row: 1600px;
    /* left/right inset that keeps header, banner and footer inside the 1600px row on wide screens */
    --gutter: calc(var(--side) + max(0px, (100% - 2 * var(--side) - var(--row)) / 2));
    --gutter-lg: calc(3% + max(0px, (100% - 6% - var(--row)) / 2));
    --header-h: 80px;
    --radius: 3px;
    --font-head: 'Lovelo Black', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
    --font-body: 'open-sans', 'Open Sans', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;   /* Foundation 5 set this globally */
    -moz-osx-font-smoothing: grayscale;
}

img, video, svg { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.8; }
p { margin: 0 0 1.25rem; font-size: 0.8rem; }
@media (min-width: 641px) { p { font-size: 1rem; } }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

.text-center { text-align: center; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.icon { vertical-align: -0.125em; }

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

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 160;
    height: var(--header-h);
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary);
}
.site-header a {
    font-family: var(--font-head);
    color: #fff;
    text-decoration: none;
    position: relative;
}
.site-header .logo { font-size: 1.6rem; line-height: 1; }

.site-nav { display: flex; align-items: center; gap: 0.94rem; }
.site-nav a { font-size: 0.8rem; line-height: 1.4; }
.site-nav a::after {
    content: '';
    position: absolute;
    left: 50%; bottom: -6px;
    width: 0; height: 2px;
    background: #fff;
    transition: all 0.3s ease-out;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current='page']::after { left: 5%; width: 90%; }
.site-header a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    position: absolute;
    left: 10px; right: 10px;
    height: 2px;
    background: #fff;
    content: '';
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before { top: -7px; left: 0; right: 0; }
.nav-toggle-bars::after { top: 7px; left: 0; right: 0; }

@media (max-width: 640px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h); left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem var(--side) 1rem;
        background: var(--primary);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { font-size: 1rem; padding: 0.8rem 0; }
    .site-nav a::after { display: none; }
}

/* ---------- Hero ---------- (sizes mirror the old Foundation-based site) */

.hero {
    position: relative;
    min-height: 85vh;
    padding: 23vh var(--side) 0;
    color: #fff;
    background: var(--primary) url("../images/41-degrees-big-band-xYwQ5AW.jpg") no-repeat bottom center / contain;
}
.hero-content { text-align: center; }
.hero h1, .hero-lead { max-width: 500px; margin: 0 auto; text-align: center; color: #fff; }
.hero h1 { font-size: 1.4rem; }
.hero h1 span { font-size: 1.8rem; }
.hero-lead { font-family: var(--font-body); font-size: 0.9rem; line-height: 1.4; }
.hero-actions { margin: 0; font-size: 0; }              /* font-size 0: no whitespace gaps between buttons */
.hero .button { display: block; width: 100%; max-width: 300px; margin: 2rem auto 0; }

@media (max-width: 640px) {
    .hero { padding-bottom: 70vw; }                      /* leave room for the artwork under the buttons */
}
@media (min-width: 641px) {
    .hero { padding-top: 10rem; }
    .hero h1 { font-size: 2rem; }
    .hero h1 span { font-size: 2.4rem; }
    .hero-lead { font-size: 1rem; }
    .hero .button { width: auto; }
}
@media (min-width: 1025px) {
    .hero { min-height: 800px; padding: 18rem var(--gutter-lg) 0; background-position: bottom right; }
    .hero-content { text-align: left; }
    .hero h1, .hero-lead { max-width: 550px; margin: 0; text-align: left; }
    .hero h1 { font-size: 3rem; }
    .hero h1 span { font-size: 4rem; }
    .hero-lead { font-size: 1.4rem; }
    .hero .button { display: inline-block; margin: 2rem 0.5rem 0 0; }
}

/* ---------- Buttons ---------- */

.button {
    display: inline-block;
    padding: 1rem 2rem 1.0625rem;
    border: 0;
    border-radius: var(--radius);
    background: #fff;
    color: var(--primary);
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.button:hover, .button:focus-visible { background: #e6e6e6; opacity: 1; }
.button .icon { margin-left: 0.15em; }

/* ---------- Content bands ---------- */

.band { padding: 8rem var(--side); }
.band .wrap { max-width: 850px; margin: 0 auto; }
.band .wrap-wide { max-width: 1600px; }
.band-flush-top { padding-top: 0; }
.band-page-head { padding-top: 14rem; padding-bottom: 8rem; }

.band-title { font-size: 1.8rem; line-height: 2.6rem; margin: 0 auto; }
.band-subtitle { opacity: 0.9; font-size: 1.2rem; line-height: 2.6rem; margin: 0 auto; }
@media (min-width: 641px) {
    .band-title { font-size: 3rem; }
    .band-subtitle { font-size: 2rem; }
}

.band-primary { background: var(--primary); color: #fff; }
.band-primary .band-title, .band-primary a { color: #fff; }
.band-dark { background: var(--dark); color: #fff; }
.band-dark .band-title { color: #fff; }

.testimonial { margin: 0; }
.testimonial p {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.6rem;
    line-height: 1.6;
    color: #fff;
}

/* Contact */
#contact .wrap > p { max-width: 500px; margin-left: auto; margin-right: auto; }
.contact-link { margin: 0; }
.contact-link .icon { display: block; margin: 2rem auto 1rem; font-size: 2rem; }
.contact-link a { font-family: var(--font-head); font-size: 1.2rem; color: #fff; }

/* ---------- Events ---------- (sizes calibrated from the live events page: name 2rem, date 1rem) */

.event-grid { display: grid; grid-template-columns: 1fr; gap: 3rem 0; }
@media (min-width: 641px) { .event-grid { grid-template-columns: 1fr 1fr; } }

.event-date {
    margin: 0 0 0.5rem;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    color: #333;
}
.event-name { margin: 0 0 0.25rem; font-size: 1.5rem; line-height: 1.3; color: #333; overflow-wrap: anywhere; }
@media (min-width: 641px) { .event-name { font-size: 2rem; } }
.event-location { margin: 0; font-size: 1rem; line-height: 1.5; }
.event-description { margin: 0; font-size: 1rem; line-height: 1.5; }

/* ---------- Players ---------- */

.band.players { padding-top: 2rem; padding-left: calc(var(--side) / 2); padding-right: calc(var(--side) / 2); }

/* Sections 1 and 2 (Musical Director / Band Leader) share the top row; every later section is a full-width row. */
.section-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 641px) {
    .section-grid { grid-template-columns: 1fr 1fr; }
    .player-section:nth-child(n+3),
    .player-section:only-child { grid-column: 1 / -1; }
}
.player-section { text-align: center; }
.player-section-title { margin: 6rem 0 0; font-size: 2.3125rem; }

.player-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.player { flex: 0 0 auto; width: 240px; max-width: 100%; padding: 1rem; }
@media (min-width: 641px) { .player { width: 180px; } }
@media (min-width: 1025px) { .player { width: 320px; } }

.player-photo { margin-bottom: 1rem; border-radius: 50%; overflow: hidden; }
.player-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.player h3 { margin: 0; font-size: 1.6rem; text-transform: none; }

/* ---------- Video dialog ---------- */

.video-dialog {
    width: min(98vw, 1000px);
    max-width: none;
    max-height: 92vh;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: #000;
    overflow: visible;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}
.video-dialog::backdrop { background: rgba(80, 80, 80, 0.85); }
.video-dialog video { display: block; width: 100%; max-height: 92vh; }
.video-close {
    position: absolute;
    top: -12px; right: -12px;
    z-index: 2;
    width: 40px; height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-size: 1.4rem;
    line-height: 40px;
    cursor: pointer;
}
body:has(dialog[open]) { overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding: 2rem var(--gutter);
    background: var(--jet);
    color: #fff;
    font-size: 0.6rem;
    line-height: 40px;
}
.site-footer a { color: #fff; line-height: 40px; }
.site-footer .copyright { margin: 0; font-size: inherit; }
.site-footer .social a { display: inline-block; margin: 0 10px; font-size: 1.6rem; line-height: 1; }
.site-footer .social a:first-child { margin-left: 0; }

@media (max-width: 640px) {
    .site-footer { flex-direction: column; text-align: center; }
}

.encore-badge { position: fixed; right: 10px; bottom: 10px; z-index: 100; }
.encore-badge img { display: block; width: 100px; height: 100px; }
