/* ============================================================
   SAINT JOHN SWING — style.css
   ============================================================ */

/* Variables */
:root {
    --cream:         #FDF8F0;
    --cream-dark:    #F5EDD8;
    --gold:          #C8961C;
    --gold-hover:    #A67A10;
    --charcoal:      #2C2C2C;
    --charcoal-light:#666666;
    --white:         #FFFFFF;
    --font-display:  'Playfair Display', Georgia, serif;
    --font-body:     'Lato', system-ui, sans-serif;
    --header-height: 72px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 660px;
}

section {
    padding: 6rem 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 2rem;
    line-height: 1.15;
}

.section-intro {
    color: var(--charcoal-light);
    font-size: 1.05rem;
    margin-top: -1.25rem;
    margin-bottom: 2.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-block;
    padding: 0.875rem 2.25rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    line-height: 1;
}

.btn:active {
    transform: translateY(1px);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background: var(--gold-hover);
    color: var(--white);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ============================================================
   HEADER
   ============================================================ */

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

#site-header.scrolled {
    background: var(--white);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    transition: color 0.35s ease;
    white-space: nowrap;
}

.logo-img {
    height: 40px;
    width: auto;
}

#site-header.scrolled .logo-text {
    color: var(--charcoal);
}

/* Nav */
#main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#main-nav a {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s ease;
}

#main-nav a:hover {
    color: var(--white);
}

#site-header.scrolled #main-nav a {
    color: var(--charcoal-light);
}

#site-header.scrolled #main-nav a:hover {
    color: var(--charcoal);
}

.nav-cta {
    background: var(--gold);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    transition: background 0.2s ease !important;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--gold-hover);
}

/* ============================================================
   HERO
   ============================================================ */

#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media video,
.hero-media .hero-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 4, 0.52);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-logo {
    height: 200px;
    width: auto;
    margin: 0 auto 1.75rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 6.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.0;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.hero-tagline {
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 300;
    letter-spacing: 0.08em;
    margin-bottom: 2.5rem;
}

/* ============================================================
   ABOUT
   ============================================================ */

#about {
    background: var(--cream);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.25rem;
    color: var(--charcoal-light);
    font-size: 1.05rem;
}

.about-text .btn {
    margin-top: 0.5rem;
}

.about-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ============================================================
   JOIN / MAILING LIST
   ============================================================ */

#join {
    background: var(--white);
    text-align: center;
}

.signup-form {
    text-align: left;
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--charcoal);
}

.form-group input[type="text"],
.form-group input[type="email"] {
    padding: 0.8rem 1rem;
    border: 1px solid #DDD;
    background: var(--cream);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal);
    outline: none;
    transition: border-color 0.2s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    border-color: var(--gold);
}

.form-group-checkbox {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--charcoal-light);
    line-height: 1.55;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--gold);
    cursor: pointer;
}

.field-error {
    font-size: 0.78rem;
    color: #C0392B;
    min-height: 1.1em;
    display: block;
}

.btn:disabled {
    background: #CCC;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    font-size: 0.78rem;
    color: #999;
    text-align: center;
    margin-top: 1rem;
}

.form-success {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--cream);
    font-size: 1.1rem;
    color: var(--charcoal);
}

/* ============================================================
   EVENTS
   ============================================================ */

#events {
    background: var(--cream-dark);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: var(--white);
    padding: 1.75rem;
    border-top: 3px solid var(--gold);
}

.event-date {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.event-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.event-location {
    font-size: 0.85rem;
    color: var(--charcoal-light);
    margin-bottom: 0.75rem;
}

.event-description {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    line-height: 1.6;
}

.events-loading,
.events-empty,
.events-error {
    color: var(--charcoal-light);
    font-size: 1rem;
}

/* ============================================================
   GALLERY RIBBON
   ============================================================ */

.gallery-ribbon {
    overflow: hidden;
    width: 100%;
    height: 340px;
    background: var(--charcoal);
    border-top: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
}

.gallery-track {
    display: flex;
    height: 100%;
    width: max-content;
    animation: ribbon-scroll 28s linear infinite;
}

.gallery-ribbon:hover .gallery-track {
    animation-play-state: paused;
}

.gallery-track img {
    height: 100%;
    width: auto;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

@keyframes ribbon-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   FOUNDER BIO
   ============================================================ */

.founder {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--cream-dark);
}

.founder-photo {
    flex-shrink: 0;
}

.founder-photo-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--cream-dark);
    border: 3px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.founder-photo img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
}

.founder-bio h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.founder-bio p {
    color: var(--charcoal-light);
    font-size: 1.05rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

#footer {
    background: var(--charcoal);
    padding: 3rem 0;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.footer-copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 800px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        order: -1;
    }

    .founder {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .gallery-ribbon {
        height: 220px;
    }

    #main-nav {
        gap: 1.25rem;
    }

    #main-nav a:not(.nav-cta) {
        display: none;
    }
}

@media (max-width: 480px) {
    section {
        padding: 4rem 0;
    }

    .gallery-ribbon {
        height: 160px;
    }
}
