/* ==========================================================================
   Humboldt Chamber of Commerce — Master Stylesheet
   --------------------------------------------------------------------------
   Table of Contents
   --------------------------------------------------------------------------
    1.  Design Tokens (CSS Custom Properties)
    2.  Base & Reset
    3.  Typography & Links
    4.  Header & Navigation
    5.  Hero Section
    6.  Hero Buttons
    7.  Global UI Elements (Buttons, Sections, Notes)
    8.  Directory Section
    9.  Events Section
    10. Image Assignments
    11.  Resource Hub (Passes & Partner Logos)
    12.  Contact Form
    13.  Footer
    14.  Animations
    15.  Responsive / Media Queries
    16.  Mobile-Only Overrides
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   CSS custom properties for colors, typography, spacing, and shadows.
   Changes here cascade throughout the entire stylesheet.
   ========================================================================== */

:root {
    /* Colors */
    --bg-color:       #fbfbfd;
    --surface-color:  #ffffff;
    --text-primary:   #1d1d1f;
    --text-secondary: #6e6e73;

    --accent-teal:    #2b7a8a;
    --accent-orange:  #f26522; /* Primary brand / Cubs Orange */
    --accent-crimson: #d33c44;

    /* Shape */
    --radius-lg:   12px;
    --radius-pill: 999px;

    /* Typography */
    --font-stack: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Shadows */
    --shadow-ui:           0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-glass:        0 12px 40px rgba(0, 0, 0, 0.04);
    --shadow-orange:       0 4px 12px rgba(242, 101, 34, 0.2);
    --shadow-hover-orange: 0 10px 24px rgba(242, 101, 34, 0.35);
}


/* ==========================================================================
   2. BASE & RESET
   ========================================================================== */

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

html {
    background-color: var(--bg-color);
    overflow-x: clip;
}

body {
    font-family: var(--font-stack);
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
}


/* ==========================================================================
   3. TYPOGRAPHY & LINKS
   ========================================================================== */

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

/* Inline contextual links (e.g. inside body copy) */
.inline-link {
    color: var(--accent-orange) !important;
    font-weight: 700;
    border-bottom: 1.5px solid rgba(242, 101, 34, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
}

.inline-link:hover {
    border-bottom-color: var(--accent-orange);
    background: rgba(242, 101, 34, 0.05);
}

/* Small muted helper text below section descriptions */
.sub-ghost {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 500;
}


/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */

/* Announcement bar — pinned above the header */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: var(--accent-orange);
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-height: 0;
    padding: 0 20px;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.announcement-bar.is-visible {
    max-height: 50px;
    padding: 10px 20px;
}

.announcement-text {
    flex: 1;
}

.announcement-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 0 0 16px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.announcement-close:hover {
    opacity: 1;
}

.announcement-bar a {
    color: white;
    text-decoration: underline;
    font-weight: 700;
    margin-left: 6px;
}

.announcement-bar a:hover {
    opacity: 0.85;
}

/* Custom element wrapper — fixed to viewport top, shifts down for announcement */
chamber-header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: top 0.4s ease;
    overflow-x: hidden;
}

chamber-header.bar-active {
    top: 40px;
}

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
    padding: 0 5%;
    transition: height 0.3s ease;
}

.site-header.is-scrolled .nav-wrapper {
    height: 60px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    font-size: 1.1rem;
}

.logo-text {
    display: inline;
    font-size: 1.1rem;
}

.logo-subtext {
    display: inline;
    font-weight: 600;
}

.mobile-menu-logo {
    display: none;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* "Join" / CTA pill button in the nav */
.nav-links a.nav-cta-button {
    background-color: var(--accent-orange);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-orange);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-links a.nav-cta-button:hover {
    transform: translateY(-2px);
    background-color: #e05a1b;
    box-shadow: var(--shadow-hover-orange);
}

/* Announcement tab — peeks from top-right when bar is dismissed */
.announcement-tab {
    position: fixed;
    top: -40px;
    right: 20px;
    z-index: 10001;
    background: rgba(242, 101, 34, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    border: 1px solid rgba(242, 101, 34, 0.3);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: var(--shadow-ui);
    transition: top 0.35s ease, background 0.2s ease;
}

.announcement-tab.is-visible {
    top: 0;
}

.announcement-tab:hover {
    background: rgba(242, 101, 34, 0.95);
}

/* Hamburger toggle — hidden on desktop, shown via media query */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 10001;
}

.hamburger-line {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 8px; }

/* Animate hamburger into an × when active */
.mobile-toggle.active .hamburger-line:nth-child(1) { top: 8px; transform: rotate(45deg); }
.mobile-toggle.active .hamburger-line:nth-child(2) { top: 8px; transform: rotate(-45deg); }


/* ==========================================================================
   5. HERO SECTION
   Full-screen video background with overlay, headline, and video controls.
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 13vh;
    padding-bottom: 5vh;
    transition: padding-top 0.4s ease;
}

.hero.bar-active {
    padding-top: 18vh;
}

/* Video layer */
.hero-media-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

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

/* Gradient overlay — darkens when video is paused */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.2), rgba(10, 10, 10, 0.6));
    transition: background-color 0.5s ease;
}

.hero.video-paused .hero-overlay {
    background-color: rgba(0, 0, 0, 0.33);
}

/* Content sits above the video/overlay */
.hero-container {
    position: relative;
    z-index: 4;
    color: #ffffff;
    padding: 0 20px;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
}

.hero-subtitle-line {
    display: block;
    font-size: 0.35em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
}

/* Play/Pause + Mute buttons */
.video-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}


/* ==========================================================================
   6. HERO BUTTONS
   Two paired CTAs: solid (Explore) and ghost (Resources).
   Zero-shrink sync ensures identical dimensions and no layout shift on hover.
   ========================================================================== */

.hero-btn-solid,
.hero-btn-action {
    display: inline-block;
    min-width: 240px;
    padding: 12px 28px;           /* Identical padding keeps both the same height */
    border-radius: var(--radius-pill);
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: normal !important;  /* Hard-lock prevents shift on hover */
    text-align: center;
    white-space: nowrap;
    border: 1.5px solid transparent;   /* Pre-reserves border space */
    transition:
        transform         0.3s ease,
        background-color  0.3s ease,
        border-color      0.3s ease,
        box-shadow        0.3s ease;
}

/* "Explore Local Businesses" — solid orange fill */
.hero-btn-solid {
    background-color: var(--accent-orange) !important;
    color: #ffffff !important;
    border-color: var(--accent-orange) !important;
    box-shadow: var(--shadow-orange);
    letter-spacing: 0.1em;
}

/* "Access Resources" — ghost / outline */
.hero-btn-action {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Shared hover — lift only, no width changes */
.hero-btn-solid:hover,
.hero-btn-action:hover {
    transform: translateY(-2px);
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: normal !important;
}

.hero-btn-solid:hover {
    background-color: #e05a1b !important;
    border-color: #e05a1b !important;
    box-shadow: var(--shadow-hover-orange);
}

.hero-btn-action:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
}


/* ==========================================================================
   7. GLOBAL UI ELEMENTS
   Shared section layout, generic button, and notification notes.
   ========================================================================== */

.mobile-only-break {
    display: none;
}

.desktop-only-break {
    display: block;
}

.tablet-only-break {
    display: none;
}

.page-section {
    padding: 100px 0;
}
@media (max-width: 768px) {
    .page-section {
        padding: 60px 0 !important;
    }
    #explore {
        padding-bottom: 20px !important;
    }
    .section-header {
        margin-bottom: 32px !important;
    }
    .section-header h2 {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
    }
    .section-header p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
}

.section-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    position: relative;
    display: block;
    padding-bottom: 8px;
    margin-bottom: 32px;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 1px;
    background-color: var(--accent-orange);
    opacity: 0.6;
}

#contact h2 {
    position: relative;
    display: block;
    padding-bottom: 8px;
    margin-bottom: 32px;
}

#contact h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 1px;
    background-color: var(--accent-orange);
    opacity: 0.6;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Generic dark pill button (used outside the hero) */
.button-primary {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--text-primary);
    color: var(--surface-color);
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: var(--shadow-ui);
    transition: all 0.3s ease;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Subdued disclaimer text (uppercase, faded) */
.ghost-note {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.ghost-note p {
    color: rgba(0, 0, 0, 0.25) !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

.ghost-note a {
    color: var(--accent-orange) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ghost-note a:hover {
    font-weight: 600 !important
}

/* Push section header down when it follows a ghost-note */
.ghost-note + .section-header {
    margin-top: 180px;
}

/* Orange CTA prompt at the bottom of a section */
.community-outreach-note {
    text-align: center;
    margin-top: 30px;
}

.community-outreach-note p {
    font-size: 0.9rem;
    font-weight: 600;
}

.community-outreach-note a {
    color: var(--accent-orange);
    border-bottom: 2px solid rgba(242, 101, 34, 0.2);
    transition: all 0.3s ease;
}

.community-outreach-note a:hover {
    border-bottom-color: var(--accent-orange);
    background: rgba(242, 101, 34, 0.05);
}

/* Splash action button row (hero CTAs wrapper) */
.splash-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   8. DIRECTORY SECTION
   Visitor directive bar, experience pills, and gateway card grid.
   ========================================================================== */

.directive-actions {
    display: flex;
    gap: 16px;
}

/* Pill-shaped experience quick-links */
.exp-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--bg-color);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-pill);
    font-weight: 700;
    transition: all 0.3s ease;
}

.exp-pill i {
    color: var(--accent-orange);
}

.exp-pill:hover {
    background: var(--accent-orange);
    color: white !important;
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover-orange);
}

.exp-pill:hover i {
    color: white;
}


/* 2-column gateway card grid */
.gateway-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Glass card base — background image set per-card in section 10 */
.glass-card {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: var(--radius-lg);
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

/* Background image layer */
.glass-card::before {
    content: "";
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.3);
    background-blend-mode: overlay;
    opacity: 0.85;
    filter: blur(2px);
    transition: all 0.6s ease;
    z-index: 1;
}

@media (hover: hover) {
    .glass-card:hover::before {
        transform: scale(1.05);
        opacity: 0.6;
        filter: blur(0);
    }

    .glass-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    }
}

/* Text content sits above the ::before image layer */
.card-content {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}
.card-content h3 {
    font-size: 1.6rem;
}
.card-content p {
    font-size: 1rem;
    margin-top: 8px;
}

/* Badge for glass cards */
.card-badge {
    display: inline-block;
    margin-top: 16px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}


/* ==========================================================================
   9. EVENTS SECTION
   Upcoming event passes grid + annual flagship event card grid.
   ========================================================================== */

#events {
    padding-top: 80px;
    background-color: var(--surface-color);
}
@media (max-width: 768px) {
    #events {
        padding-top: 40px !important;
    }
}

/* --- Upcoming event passes (dynamic grid) --- */

.upcoming-grid-wrapper {
    width: 100%;
    margin-bottom: 80px;
}

.upcoming-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 440px));
    gap: 24px;
    justify-content: center;
    padding: 20px 0;
}

/* Individual pass card */
.event-pass {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    padding: 32px;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
}

.event-pass:hover {
    transform: translateY(-8px);
    border-color: var(--accent-orange);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.pass-tag {
    align-self: flex-start;
    background: #f4f4f7;
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
}

/* Pass hero image */
.pass-image {
    margin: -32px -32px 20px -32px;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pass-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

/* Pass description */
.pass-description {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Featured passes get an orange tag */
.featured-pass .pass-tag {
    background: var(--accent-orange);
    color: #ffffff;
}

.pass-body {
    flex-grow: 1;
}

.pass-body h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.pass-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
}

.pass-body i {
    color: var(--accent-orange);
    width: 16px;
    text-align: center;
}

.pass-cta {
    margin-top: 28px;
    text-align: center;
    padding: 14px;
    background: var(--bg-color);
    color: var(--text-primary);
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pass-cta:hover {
    background: var(--accent-orange);
    color: #ffffff;
    border-color: var(--accent-orange);
}

/* Glassy "coming soon" badge for resource cards */
.pass-badge {
    display: block;
    margin-top: 28px;
    text-align: center;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- "Year at a Glance" header --- */

.events-gallery-header {
    text-align: center;
    margin: 100px auto 40px auto;
}

.events-gallery-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

/* --- Annual flagship event card grid --- */

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Event card — background image set per-card in section 10 */
.event-card {
    position: relative;
    overflow: hidden;
    background: #111;
    border-radius: var(--radius-lg);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1); 
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-card:hover { 
    transform: translateY(-8px); 
    border-color: var(--accent-orange); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); 
}

.event-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.45);
    background-blend-mode: multiply;
    filter: blur(3px);
    opacity: 0.85;
    transition: all 0.6s ease;
    z-index: 1;
}

.event-card:hover::before {
    filter: blur(0);
    opacity: 1;
    transform: scale(1.05);
}

.event-content {
    position: relative;
    z-index: 2;
}

.event-date {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}

.event-card h4 {
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.2;
    margin-bottom: 6px;
}

.event-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
}

/* Mouse-following tooltip for event cards */
.event-tooltip {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(8px);
}


/* ==========================================================================
   10. IMAGE ASSIGNMENTS
   Background images for glass cards (directory) and event cards.
   ========================================================================== */

/* Directory gateway cards */
.card-directory::before { background-image: url('home_images/Directory/directory.jpg'); }
.card-dining::before    { background-image: url('home_images/Directory/dining.jpg'); }
.card-housing::before   { background-image: url('home_images/Directory/lifeinhumboldt.jpg'); }
.card-edu::before       { background-image: url('home_images/Directory/school.jpg'); }

/* Annual event cards */
.ev-3rd-sat::before  { background-image: url('home_images/Events/square.jpg'); }
.ev-owl::before      { background-image: url('home_images/Events/jamboree.jpg'); }
.ev-speedway::before { background-image: url('home_images/Events/speedway.jpg'); }
.ev-fireworks::before{ background-image: url('home_images/Events/fireworks.jpg'); }
.ev-movies::before   { background-image: url('home_images/Events/movies.jpg'); }
.ev-waterwars::before{ background-image: url('home_images/Events/water.jpg'); }
.ev-moe::before      { background-image: url('home_images/Events/moe.jpg'); }
.ev-biblesta::before { background-image: url('home_images/Events/biblesta.jpg'); }
.ev-dia::before      { background-image: url('home_images/Events/dia.jpg'); }
.ev-bike::before     { background-image: url('home_images/Events/bike.jpg'); }
.ev-market::before   { background-image: url('home_images/Events/market.jpg'); }
.ev-civil::before    { background-image: url('home_images/Events/civil-war.jpg'); }


/* ==========================================================================
   11. RESOURCE HUB — PARTNER LOGOS
   Full-color logo grid with levitation hover and tooltip.
   ========================================================================== */

#resources {
    padding-top: 100px;
    background-color: var(--bg-color);
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 60px;
    opacity: 0.8;
}

/* Partner logo section wrapper */
.resource-partners {
    margin-top: 140px;
    padding-top: 100px;
    padding-bottom: 100px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.partner-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 60px;
}

.partner-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 60px 80px;
    max-width: 1200px;
    margin: 60px auto 0 auto;
}

/* Individual logo item */
.partner-logo {
    flex: 0 1 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-logo:hover {
    transform: translateY(-10px);
}

.partner-logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    max-height: 55px;
    object-fit: contain;
    filter: none;       /* Force full color — no greyscale */
    opacity: 0.7;       /* Slight ghost until hover */
    transition: all 0.4s ease;
}

.partner-logo:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Tooltip — reads from data-title attribute */
.partner-logo::after {
    content: attr(data-title);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--text-primary);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.partner-logo:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ==========================================================================
   12. CONTACT FORM
   ========================================================================== */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-input {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-input:focus {
    outline: none;
    border-color: var(--accent-orange) !important;
    box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.1);
}

.contact-submit {
    width: 100%;
    padding: 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Focus-visible for buttons and links */
a:focus-visible,
button:focus-visible,
.button-primary:focus-visible,
.exp-pill:focus-visible,
.event-card:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 3px;
}

.highlight-orange {
    color: var(--accent-orange);
    font-weight: 700;
}


/* ==========================================================================
   13. FOOTER
   Three-column grid layout, social icons, legal bar, and legal links.
   ========================================================================== */

.site-footer {
    background-color: var(--surface-color);
    padding: 80px 0 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Three-column layout: brand · links · links */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 24px;
    opacity: 0.9;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    max-width: 380px;
    line-height: 1.5;
}

.footer-column h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-column p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

/* Social icon circles */
.footer-socials {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--accent-orange);
    color: white;
    transform: translateY(-3px);
}

/* Copyright / legal bar */
.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Uniform light weight for all footer-bottom text and links */
.footer-bottom p,
.footer-bottom span,
.footer-bottom a {
    font-weight: 400 !important;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--text-primary) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* Agency link — explicitly non-bold */
.footer-bottom a[href*="ethereallensmedia"] {
    font-weight: 400 !important;
}

/* Legal link group (privacy, terms, etc.) */
.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.legal-divider {
    opacity: 0.3;
    font-size: 0.6rem;
}

.legal-link {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--text-primary);
    text-decoration: underline !important;
}


/* ==========================================================================
   14. ANIMATIONS
   Fade-up scroll animation class — toggled by IntersectionObserver in main.js.
   ========================================================================== */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity   0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay utilities */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }


/* ==========================================================================
   15. RESPONSIVE / MEDIA QUERIES
   Breakpoints: 1100px (tablet landscape) · 900px (tablet) · 650px (mobile)
   ========================================================================== */

/* --- 1100px: Stack visitor bar, 2-col events grid --- */
@media (max-width: 1100px) {

    .directive-actions {
        flex-direction: row;
        justify-content: center;
        padding: 0 16px;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   15b. TABLET OVERRIDES (iPad Air / iPad Pro)
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1024px) {
    
    .tablet-only-break {
    display: block !important;
    }
    
    .hero h1 {
        font-size: 4rem !important; 
        line-height: 1.0 !important;
        margin-bottom: 24px !important;
    }

    .hero-subtitle-line {
        font-size: 0.38em !important; 
        letter-spacing: 0.18em !important;
        margin-bottom: 8px !important;
    }

    .ghost-note {
        max-width: 85% !important;
        margin: 40px auto !important;
    }

    .ghost-note p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        white-space: normal !important;
    }

    .section-header h2 {
        font-size: 2.2rem !important;
        white-space: nowrap !important;
    }

    .upcoming-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 850px !important;
        margin: 0 auto !important;
        gap: 20px !important;
    }

    .event-pass {
        min-height: 250px !important;
    }

    #events .ghost-note {
        max-width: 95% !important;
        margin: 30px auto !important;
    }

    #events .ghost-note p {
        font-size: 0.8rem !important;
        white-space: nowrap !important;
    }

    .upcoming-grid-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }

    .upcoming-grid-container .event-pass:nth-child(3) {
        grid-column: 1 / span 2 !important;
        justify-self: center !important; 
        width: 100% !important;
        max-width: 380px !important;
    }

    .footer-description {
        max-width: 400px !important; /* Prevents the iPad 'squish' */
        margin: 0 auto 24px auto !important;
    }
}


/* ==========================================================================
   15b. MOBILE OVERRIDES
   ========================================================================== */

   @media (max-width: 900px) {

    .mobile-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;
        justify-content: flex-start !important;
        
        padding-top: 80px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .main-nav.active {
        right: 0;
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-logo {
        display: block !important;
        margin-bottom: 40px;
    }

    .mobile-menu-logo img {
        height: 100px;
        width: auto;
        opacity: 0.9;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 22px !important;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.15rem !important;
        color: #000000 !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-description {
        margin: 0 auto;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }

    .footer-legal {
        justify-content: center;
        margin-bottom: 10px;
    }

    .partner-logo-grid {
        gap: 40px;
    }

    .partner-logo {
        flex: 0 1 140px;
    }
}

@media (max-width: 650px) {

    .mobile-only-break {
        display: block !important;
    }

    .desktop-only-break {
        display: none !important;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    .upcoming-grid-container {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    #events .ghost-note {
        max-width: 320px !important;
        margin: 20px auto !important;
    }

    #events .ghost-note p {
        font-size: 0.7rem !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        text-align: center;
    }

    .section-header h2,
    #contact h2 {
        font-size: 1.6rem !important;
    }

    #contact .section-header img {
        height: 80px !important;
        margin-bottom: 16px !important;
    }

    .gateway-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .directive-actions {
        gap: 10px;
        padding: 0 12px;
    }

    .exp-pill {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .glass-card {
        aspect-ratio: auto !important;
        min-height: 220px !important;
        padding: 30px !important;
        pointer-events: none !important;
        cursor: default !important;
    }
    .glass-card::before {
        opacity: 0.85 !important;
        filter: blur(2px) !important;
        transform: none !important;
    }

    .glass-card .card-content h3,
    .glass-card .card-content p,
    .glass-card .card-content i {
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
    }
}

@media (max-width: 650px) {

    .section-header h2::after,
    #contact h2::after {
        width: 180px !important; 
        height: 1px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 4px !important; 
    }

    .section-header h2,
    #contact h2 {
        padding-bottom: 6px !important;
    }
    
    .logo-text {
        display: flex !important;
        flex-direction: column !important;
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }

    .logo-subtext {
        display: block !important;
        font-size: 0.75rem !important;
        margin-top: 2px;
    }

    .header-logo-img {
        height: 26px !important;
    }

    .gateway-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .glass-card .card-content h3 {
        font-size: 1.1rem !important;
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;
    }

    .glass-card .card-content p {
        font-size: 0.75rem !important;
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;
    }

    .section-header p, .footer-column p {
        color: #000000 !important;
    }

    .footer-description {
        max-width: 325px !important;
        margin: 0 auto !important;
        font-size: 0.8rem !important;
    }


    /* 1) Hero — tighten vertical centering on mobile */
    .hero {
        padding-top: 10vh !important;
        padding-bottom: 5vh !important;
    }

    .hero.bar-active {
        padding-top: 14vh !important;
    }

    .hero-container {
        padding: 0 28px !important;
    }

    .hero-container p {
        font-size: 0.95rem !important;
        margin-bottom: 32px !important;
    }

    .splash-actions {
        gap: 12px !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-btn-solid,
    .hero-btn-action {
        padding: 14px 28px !important;
        font-size: 0.85rem !important;
        width: 100% !important;
        max-width: 300px !important;
    }

    /* 1b) Announcement tab — shift left of hamburger on mobile */
    .announcement-tab.is-visible {
        top: 0 !important;
        right: 72px !important;
    }

    /* 3) Ghost notes — shrink to prevent orphan wrapping */
    .ghost-note p {
        font-size: 0.65rem !important;
        line-height: 1.5 !important;
    }

    /* 4) Contact section — tighten text */
    #contact .section-header p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    #contact .section-header h2 {
        font-size: 2rem !important;
    }

    /* 5) Footer mobile overrides */
    .footer-column h4 {
        font-size: 0.7rem !important;
        margin-bottom: 18px !important;
    }

    .footer-column p {
        font-size: 0.72rem !important;
    }

    .footer-description {
        font-size: 0.7rem !important;
        max-width: 300px !important;
    }

    .footer-bottom {
        text-align: center !important;
    }

    .footer-bottom p,
    .footer-bottom span,
    .footer-bottom a {
        font-size: 0.65rem !important;
    }

    .footer-legal {
        justify-content: center !important;
    }

    .footer-legal-links {
        justify-content: center !important;
    }
}


/* ==========================================================================
   17. TOUCH DEVICE OVERRIDES
   Disable sticky hover effects on devices without a pointer hover capability.
   ========================================================================== */

@media (hover: none) {

    .hero-btn-solid:hover,
    .hero-btn-action:hover {
        transform: none;
        box-shadow: none;
    }

    .hero-btn-solid:hover {
        background-color: var(--accent-orange) !important;
        border-color: var(--accent-orange) !important;
    }

    .hero-btn-action:hover {
        background-color: transparent !important;
        border-color: rgba(255, 255, 255, 0.6) !important;
    }

    .button-primary:hover {
        transform: none;
        box-shadow: var(--shadow-ui);
    }

    .exp-pill:hover {
        background: rgba(0, 0, 0, 0.03);
        color: var(--text-primary) !important;
        transform: none;
        box-shadow: none;
    }

    .exp-pill:hover i {
        color: var(--accent-orange);
    }

    .glass-card:hover {
        transform: none !important;
        box-shadow: none !important;
        border-color: transparent !important;
    }

    .glass-card:hover::before {
        opacity: 0.85 !important;
        filter: blur(2px) !important;
        transform: none !important;
    }

    .event-card:hover {
        transform: none;
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }

    .event-card:hover::before {
        opacity: 0.4;
    }

    .event-pass:hover {
        transform: none;
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    }

    .pass-cta:hover {
        transform: none;
        background: var(--bg-color);
        color: var(--text-primary);
        border-color: rgba(0, 0, 0, 0.05);
    }

    .nav-links a.nav-cta-button:hover {
        transform: none;
        background-color: var(--accent-orange);
        box-shadow: var(--shadow-orange);
    }

    .partner-logo:hover {
        transform: none;
    }

    .partner-logo:hover img {
        filter: none;
    }

    .control-btn:hover {
        transform: none;
        background: rgba(0, 0, 0, 0.3);
    }

    /* Hide tooltip on touch devices */
    .event-tooltip {
        display: none !important;
    }

    /* Compact event cards — tap to expand */
    .event-card {
        min-height: 0 !important;
        padding: 18px 20px !important;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .event-card::before {
        opacity: 0.3 !important;
        filter: none !important;
        transform: none !important;
    }

    .event-card.is-expanded::before {
        opacity: 0.85 !important;
    }

    .event-card.is-expanded {
        min-height: 240px !important;
        padding: 24px !important;
    }

    /* CTA button inside expanded card */
    .event-card-mobile-cta {
        display: none;
        margin-top: 12px;
        padding: 8px 16px;
        background: var(--accent-orange);
        color: #fff;
        font-size: 0.72rem;
        font-weight: 700;
        border-radius: 6px;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        text-align: center;
        position: relative;
        z-index: 3;
    }

    .event-card.is-expanded .event-card-mobile-cta {
        display: block;
    }

    /* Glassy "page coming soon" badge on event cards */
    .event-card-mobile-badge {
        display: none;
        margin-top: 12px;
        padding: 8px 16px;
        background: rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.65rem;
        font-weight: 700;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        text-transform: uppercase;
        letter-spacing: 0.12em;
        text-align: center;
        position: relative;
        z-index: 3;
    }

    .event-card.is-expanded .event-card-mobile-badge {
        display: block;
    }

    /* Compact resource pass cards — tap to expand */
    .event-pass {
        padding: 20px !important;
        min-height: 0 !important;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .event-pass .pass-image {
        margin: -20px -20px 16px -20px !important;
    }

    .event-pass.is-expanded .pass-image {
        margin: -32px -32px 20px -32px !important;
    }

    .event-pass .pass-body p,
    .event-pass .pass-cta,
    .event-pass .pass-badge {
        display: none;
    }

    .event-pass .pass-body h4 {
        margin-bottom: 0;
    }

    .event-pass.is-expanded {
        padding: 32px !important;
    }

    .event-pass.is-expanded .pass-body p {
        display: flex;
    }

    .event-pass.is-expanded .pass-body h4 {
        margin-bottom: 12px;
    }

    .event-pass.is-expanded .pass-cta,
    .event-pass.is-expanded .pass-badge {
        display: block;
    }
}