﻿
/* =========================================================
   HIAWATHA PUNISHERS LEMC
   Shared Website Stylesheet
   Pages: index.html, roster.html, eventcalendar.html
   ========================================================= */


/* =========================================================
   1. GLOBAL VARIABLES AND RESET
   ========================================================= */

:root {
    --background: #111315;
    --surface: #1c1f22;
    --silver: #c4c8cc;
    --white: #f5f5f5;
    --accent: #a3262a;
    --muted: #a6aaae;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}


/* =========================================================
   2. GLOBAL BODY AND BACKGROUND
   ========================================================= */

body {
    position: relative;
    margin: 0;
    background: var(--background);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

    /* Fixed watermark behind all page content. */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background: url("../Hiawatha.png") no-repeat center center / min(72vw, 760px) auto;
        opacity: 0.035;
    }

    /* Keep page content above the watermark. */
    body > * {
        position: relative;
        z-index: 1;
    }


/* =========================================================
   3. GLOBAL ELEMENTS
   ========================================================= */

a {
    color: inherit;
    text-decoration: none;
}

    a:focus-visible {
        outline: 2px solid var(--silver);
        outline-offset: 4px;
    }

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}


/* =========================================================
   4. HEADER AND BRANDING
   ========================================================= */

#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

    #site-header header {
        position: relative;
        background: rgba(9, 10, 11, 0.90);
        border-bottom: 2px solid var(--accent);
    }

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

    .brand-logo img {
        display: block;
        width: 110px;
        height: 80px;
        object-fit: contain;
    }

.brand-text {
    min-width: 0;
}

.brand-name {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1.2;
}

.brand-subtitle {
    color: var(--silver);
    font-size: 0.85rem;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* =========================================================
   5. NAVIGATION
   ========================================================= */

nav {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 24px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px 20px;
    flex: 1;
}

.nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    flex-shrink: 0;
}

nav a {
    color: var(--silver);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    padding-bottom: 4px;
}

    nav a:hover {
        color: var(--white);
    }

    nav a.active:not(.nav-button) {
        color: var(--white);
        border-bottom: 2px solid var(--accent);
    }

/* Navigation action buttons */

nav .nav-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: #c4c8cc;
    color: #111315;
    border: 1px solid #a6aaae;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    transition: background 160ms ease, transform 160ms ease;
}

    nav .nav-button:hover {
        background: #f5f5f5;
        color: #111315;
        transform: translateY(-2px);
    }

    nav .nav-button:active {
        transform: translateY(0);
    }

/* =========================================================
   6. HOMEPAGE - HERO
   ========================================================= */

.hero {
    min-height: 430px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.50)), linear-gradient(135deg, #303438, #111315 65%);
    border-bottom: 1px solid #383b3e;
}

.hero-content {
    max-width: 720px;
    padding: 80px 0;
}

.eyebrow {
    color: var(--silver);
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero h2 {
    margin: 15px 0;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.08;
    text-transform: uppercase;
}

.hero p {
    max-width: 600px;
    color: #d0d0d0;
    font-size: 1.1rem;
}


/* =========================================================
   7. HOMEPAGE - SECTIONS AND CARDS
   ========================================================= */

.section {
    padding: 65px 0;
}

    .section h2 {
        margin-top: 0;
        font-size: 2rem;
        text-transform: uppercase;
    }

.section-intro {
    max-width: 800px;
    color: var(--muted);
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin-top: 30px;
}

.card {
    flex: 0 1 calc((100% - 44px) / 3);
    min-width: 280px;
    padding: 25px;
    background: var(--surface);
    border-top: 3px solid var(--accent);
    transition: border-color 160ms ease, transform 160ms ease;
}

    .card:hover {
        border-top-color: var(--silver);
        transform: translateY(-2px);
    }

    .card h3 {
        margin-top: 0;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .card p {
        margin-bottom: 0;
        color: var(--muted);
    }


/* =========================================================
   8. HOMEPAGE - SUPPORT LINKS
   ========================================================= */

.support-link {
    display: inline-block;
    margin-top: 12px;
    padding-bottom: 4px;
    color: var(--silver);
    font-weight: bold;
    border-bottom: 2px solid var(--accent);
}

    .support-link:hover {
        color: var(--white);
        border-bottom-color: var(--silver);
    }

    .support-link:focus-visible {
        outline: 2px solid var(--silver);
        outline-offset: 4px;
    }


/* =========================================================
   9. HOMEPAGE - CONTACT AND ORGANIZATION
   ========================================================= */

.contact {
    background: rgba(28, 31, 34, 0.92);
    border-top: 1px solid #383b3e;
}

.organization-details {
    max-width: 750px;
    margin-top: 25px;
    padding: 28px;
    background: rgba(17, 19, 21, 0.94);
    border-left: 4px solid var(--accent);
    overflow-wrap: anywhere;
}

    .organization-details h3 {
        margin-top: 0;
        color: var(--white);
    }

    .organization-details p {
        margin-bottom: 20px;
        color: var(--muted);
    }

        .organization-details p:last-child {
            margin-bottom: 0;
        }

    .organization-details strong {
        color: var(--silver);
    }

    .organization-details a {
        color: var(--silver);
        text-decoration: underline;
        text-decoration-color: var(--accent);
        text-underline-offset: 3px;
    }

        .organization-details a:hover {
            color: var(--white);
        }


/* =========================================================
   10. ROSTER PAGE
   ========================================================= */

main {
    padding: 55px 0 70px;
}

h1 {
    margin-top: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
}

.intro {
    max-width: 800px;
    color: var(--muted);
}

.roster-wrap {
    margin-top: 28px;
    overflow-x: auto;
    background: rgba(28, 31, 34, 0.96);
    border-top: 3px solid var(--accent);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 15px 18px;
    border-bottom: 1px solid #383b3e;
}

th {
    color: var(--silver);
    background: rgba(9, 10, 11, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
}

td {
    color: var(--white);
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

td a {
    color: var(--silver);
    text-underline-offset: 3px;
    text-decoration-color: var(--accent);
    overflow-wrap: anywhere;
}
td a:hover {
    color: var(--white);
}

.back-link {
    display: inline-block;
    margin-top: 28px;
    color: var(--silver);
    font-weight: bold;
    text-underline-offset: 4px;
    text-decoration-color: var(--accent);
}


/* =========================================================
   11. FOOTER - ALL PAGES
   ========================================================= */

footer {
    padding: 25px 0;
    background: rgba(9, 10, 11, 0.90);
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 10px;
}

    .footer-links a {
        color: var(--silver);
        text-decoration: underline;
        text-decoration-color: var(--accent);
        text-underline-offset: 3px;
    }

        .footer-links a:hover {
            color: var(--white);
        }


/* =========================================================
   12. RESPONSIVE DESIGN - TABLETS
   ========================================================= */

@media (max-width: 900px) {

    .header-content {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        gap: 14px 18px;
    }
}


/* =========================================================
   13. RESPONSIVE DESIGN - SMALLER SCREENS
   ========================================================= */

@media (max-width: 760px) {

    .hero {
        min-height: 350px;
    }

    .hero-content {
        padding: 55px 0;
    }

    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 500px;
    }

    .section {
        padding: 45px 0;
    }

    .organization-details {
        padding: 20px;
    }

    body::before {
        background-size: min(88vw, 560px) auto;
        opacity: 0.03;
    }
}


/* =========================================================
   14. RESPONSIVE DESIGN - MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .brand {
        gap: 10px;
    }

    .brand-logo img {
        width: 75px;
        height: 60px;
    }

    .brand-name {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .brand-subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.4px;
    }

    .eyebrow {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .hero h2 {
        font-size: clamp(2.2rem, 10vw, 3.3rem);
    }

    .section h2 {
        font-size: 1.65rem;
    }

    nav {
        gap: 12px 16px;
    }

        nav a {
            font-size: 0.8rem;
        }

    th,
    td {
        padding: 12px;
    }
}


/* =========================================================
   15. ACCESSIBILITY - REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .card {
        transition: none;
    }

        .card:hover {
            transform: none;
        }
}


/* =========================================================
   EVENT CALENDAR PAGE
   ========================================================= */

/* Calendar page layout.
   Uses the shared body watermark instead of a second watermark. */

.calendar-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Page heading */

.page-heading {
    text-align: center;
    margin-bottom: 35px;
}

    .page-heading h1 {
        color: var(--white);
        font-size: 2.3rem;
        margin: 0 0 10px;
        text-transform: uppercase;
        letter-spacing: 3px;
    }

    .page-heading .accent {
        width: 90px;
        height: 3px;
        background: var(--accent);
        margin: 15px auto;
    }

    .page-heading p {
        color: var(--silver);
        max-width: 700px;
        margin: 0 auto;
    }

/* Calendar section */

.calendar-section {
    background: var(--surface);
    border: 1px solid #383b3e;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
}

    .calendar-section h2 {
        color: var(--white);
        font-size: 1.35rem;
        margin: 0 0 8px;
    }

.calendar-description {
    color: var(--silver);
    margin: 0 0 20px;
}

/* Embedded Google Calendar */

.calendar-container {
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
    background: #ffffff;
}

    .calendar-container iframe {
        display: block;
        width: 100%;
        height: 700px;
        border: 0;
    }

/* Calendar action button */

.calendar-actions {
    text-align: center;
    margin-top: 25px;
}

.calendar-button {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.2s ease;
}

    .calendar-button:hover {
        background: #cc2929;
        color: var(--white);
        text-decoration: none;
    }

    .calendar-button:focus-visible {
        outline: 2px solid var(--silver);
        outline-offset: 4px;
    }

.calendar-note {
    color: var(--silver);
    font-size: 0.85rem;
    margin-top: 15px;
}

.calendar-home-link {
    margin-top: 28px;
}

/* =========================================================
   EVENT CALENDAR - MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .calendar-main {
        padding: 30px 12px 40px;
    }

    .page-heading h1 {
        font-size: 1.7rem;
    }

    .calendar-section {
        padding: 12px;
    }

    .calendar-container iframe {
        height: 650px;
    }
}

/* =========================================================
   ZEFFY EMBEDDED FORMS
   ========================================================= */

/* Main page layout */
.shop-main,
.donate-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Page heading */
.shop-heading,
.donate-heading {
    text-align: center;
    margin-bottom: 30px;
}

    .shop-heading h1,
    .donate-heading h1 {
        margin-bottom: 10px;
    }

    .shop-heading p,
    .donate-heading p {
        max-width: 750px;
        margin: 0 auto;
        color: var(--silver);
    }

/* Zeffy form container */
.zeffy-container {
    width: 100%;
    min-height: 500px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid #383b3e;
    border-top: 3px solid var(--accent);
    border-radius: 8px;
}

    .zeffy-container iframe {
        display: block;
        width: 100%;
        border: 0;
    }

/* Return navigation */
.shop-home-link,
.donate-home-link {
    margin-top: 28px;
}

/* Mobile adjustments */
@media (max-width: 760px) {
    .shop-main,
    .donate-main {
        padding: 30px 12px 40px;
    }

    .zeffy-container {
        padding: 10px;
    }
}

/* =========================================================
   Social media card icons
   ========================================================= */

.social-icon {
    display: block;
    width: 42px;
    height: 42px;
    margin: 0 auto 15px;
}

.facebook-icon {
    color: #1877F2;
}

.youtube-icon {
    color: #FF0000;
}