/* ==========================================================================
   Homepage (2026 redesign)
   Ads (featured grid, Broadway banner) sit on navy; functional sections
   (upcoming shows, offers, sponsors) sit on cream with clean cards.
   ========================================================================== */

.home {
    --home-navy: #07122e;
    --home-navy-2: #0d1a44;
    --home-gold: #d79d28;
    --home-gold-light: #f2c14e;
    --home-cream: #faf7f0;
    --home-line: #e6dfcf;
    --home-text: #1c2233;
    --home-muted: #5d6475;
    --home-heading-font: montserrat, sans-serif;
}

.home-section {
    padding: 3.5rem 0;
}

.home-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
}

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

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: 0;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--home-gold-light), var(--home-gold));
    color: var(--home-navy);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.home-btn:hover,
.home-btn:focus-visible {
    color: var(--home-navy);
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.home-btn i {
    font-size: 0.7em;
}

.home-btn-lg {
    padding: 0.8rem 1.75rem;
    font-size: 0.95rem;
}

.home-btn-outline {
    background: transparent;
    color: var(--home-gold);
    border: 2px solid var(--home-gold);
    box-shadow: none;
}

.home-btn-outline:hover,
.home-btn-outline:focus-visible {
    background: var(--home-gold);
    color: var(--home-navy);
}

.home-btn-muted {
    background: #d9d9d9;
    color: #555;
    box-shadow: none;
    cursor: default;
}

.home-btn-muted:hover {
    color: #555;
    filter: none;
    transform: none;
}

/* ---------- Section headings ---------- */

.home-heading {
    font-family: var(--home-heading-font);
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--home-navy);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.1;
    margin: 0;
}

.home-heading-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.home-heading-row .home-rule {
    flex: 1;
    max-width: 140px;
}

.home-heading-row .home-btn {
    margin-left: auto;
    flex-shrink: 0;
}

.home-rule {
    height: 2px;
    background: var(--home-gold);
}

.home-heading-center {
    text-align: center;
    margin-bottom: 2rem;
}

.home-heading-center .home-heading-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.home-heading-center .home-rule {
    width: 100px;
    flex-shrink: 0;
}

.home-kicker {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--home-muted);
}

@media (max-width: 575.98px) {
    .home-heading-center .home-rule { width: 32px; }
}

/* Below tablet width the heading would wrap beside the button, so stack
   heading + button centered instead of splitting them to the sides. */
@media (max-width: 767.98px) {
    .home-heading-row {
        flex-direction: column;
        gap: 0.9rem;
        text-align: center;
    }
    .home-heading-row .home-rule { display: none; }
    .home-heading-row .home-btn { margin-left: 0; }
}

/* ==========================================================================
   Featured grid (ads)
   ========================================================================== */

.home-featured {
    background: var(--home-navy) url('../images/home/grlt_home_featured_bg.jpg') center bottom / cover no-repeat;
    padding: 1.25rem 0 2rem;
}

.hf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hf-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border: 2px solid rgba(215, 157, 40, 0.6);
    border-radius: 6px;
    background: var(--home-navy-2);
    aspect-ratio: 1 / 1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.hf-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hf-tile:hover img {
    transform: scale(1.03);
}

.hf-tile::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
    pointer-events: none;
}

.hf-tile .home-btn {
    position: absolute;
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
    z-index: 1;
    white-space: nowrap;
}

.hf-tile:hover .home-btn {
    filter: brightness(1.08);
}

/* Run-months banner across the top of the flagship tiles ("March – December") */
.hf-run {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.2;
}

.hf-run-short {
    display: none;
}

@media (max-width: 575.98px) {
    .hf-tile:not(.hf-flagship) .hf-run {
        padding: 0.35rem 0.4rem;
        font-size: 0.7rem;
    }

    .hf-tile:not(.hf-flagship) .hf-run-full {
        display: none;
    }

    .hf-tile:not(.hf-flagship) .hf-run-short {
        display: inline;
    }
}

.hf-flagship {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 3;
}

.hf-flagship .home-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.hf-title-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: #fff;
    font-family: var(--home-heading-font);
    font-weight: 700;
    font-size: 1.4rem;
}

@media (max-width: 575.98px) {
    .hf-tile:not(.hf-flagship) .home-btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.72rem;
    }
}

@media (min-width: 768px) {
    .hf-grid {
        grid-template-columns: 4fr 3fr 3fr;
    }

    .hf-flagship {
        grid-column: 1;
        grid-row: 1 / span 2;
        aspect-ratio: auto;
    }
}

/* Two-flagship hero: used when Music & Memories and Christmas on Main are the
   only featured shows. Square tiles on phones, tall (2:3) tiles from 768px,
   capped in width so two tall posters don't overwhelm a wide screen. */
.hf-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 880px;
    margin: 0 auto;
}

.hf-duo-tile picture,
.hf-duo-tile picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hf-duo-tile picture img {
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hf-duo-tile:hover picture img {
    transform: scale(1.03);
}

@media (min-width: 768px) {
    .hf-duo {
        gap: 20px;
    }

    .hf-duo-tile {
        aspect-ratio: 2 / 3;
    }
}

/* ==========================================================================
   Broadway Series banner with marquee lights
   The bulb strip is a small repeating tile. background-repeat: round makes
   the browser slightly resize the tile so a whole number of bulbs always
   fits the width, so bulbs never get cut off at the edges at any screen size.
   ========================================================================== */

.bw-lights {
    position: relative;
    height: 24px;
    background-color: #0a0f24;
    background-image: url('../images/home/marquee_bulbs_a.svg');
    background-size: 48px 24px;
    background-repeat: round;
}

.bw-lights::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/home/marquee_bulbs_b.svg');
    background-size: 48px 24px;
    background-repeat: round;
    animation: bw-chase 1.1s steps(1, end) infinite;
}

@keyframes bw-chase {
    0% { opacity: 0; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .bw-lights::after { animation: none; opacity: 0; }
}

/* Vertical parallax (driven by the script in home.html). The curtain layer
   is much taller than the banner — at least the photo's full 2:1 height —
   so it travels through the whole image (dark top down to the hem) as the
   banner scrolls past. Small travel was invisible because the folds are
   uniform vertically. */
.bw-banner {
    position: relative;
    overflow: hidden;
    background-color: var(--home-navy-2);
}

.bw-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: max(280%, 50vw);
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.bw-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at center, rgba(7, 18, 46, 0.55), rgba(7, 18, 46, 0.2) 70%);
    pointer-events: none;
}

.bw-inner {
    position: relative;
    z-index: 1;
}

/* Logo on one side, a grouped copy block (kicker, line, button) on the other.
   Vertical padding is kept tight so the bigger logo doesn't grow the band. */
.bw-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0.8rem 16px;
    text-align: center;
    color: #fff;
}

.bw-logo {
    width: min(460px, 86vw);
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
}

.bw-divider {
    display: none;
    width: 2px;
    align-self: stretch;
    margin: 0.5rem 0;
    background: linear-gradient(to bottom, transparent, var(--home-gold), transparent);
}

.bw-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.bw-kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--home-gold-light);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.bw-text {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    max-width: 400px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.bw-copy .home-btn {
    white-space: nowrap;
}

@media (min-width: 768px) {
    .bw-inner {
        flex-direction: row;
        justify-content: center;
        gap: 2.25rem;
        text-align: left;
    }

    .bw-divider { display: block; }

    .bw-copy { align-items: flex-start; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .bw-logo { width: 320px; }
}

/* ==========================================================================
   Upcoming shows (functional)
   ========================================================================== */

.home-upcoming {
    background: var(--home-cream);
}

.hu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (min-width: 768px) {
    .hu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

@media (min-width: 1200px) {
    .hu-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.hu-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(7, 18, 46, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hu-card:hover {
    box-shadow: 0 6px 18px rgba(7, 18, 46, 0.16);
    transform: translateY(-2px);
}

.hu-img {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--home-navy-2);
}

.hu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hu-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.85rem 0.85rem 1rem;
    color: var(--home-text);
}

.hu-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hu-title a {
    color: inherit;
    text-decoration: none;
}

.hu-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--home-muted);
}

.hu-meta li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.hu-meta i {
    width: 1em;
    color: var(--home-navy);
    text-align: center;
}

.hu-body .home-btn {
    margin-top: auto;
    width: 100%;
    padding: 0.55rem 0.5rem;
    font-size: 0.78rem;
}

.hu-empty {
    text-align: center;
    color: var(--home-muted);
    padding: 2rem 0;
}

/* ==========================================================================
   Become a Member
   ========================================================================== */

.home-member {
    background: var(--home-navy);
    color: #fff;
    border-top: 3px solid var(--home-gold);
    border-bottom: 3px solid var(--home-gold);
    padding: 0;
    overflow: hidden;
}

.hm-wrap {
    display: grid;
    grid-template-columns: 1fr;
}

.hm-photo {
    position: relative;
    aspect-ratio: 3 / 2;
    background: #0a1330;
    overflow: hidden;
}

/* The sign and marquee sit right of center in the photo; keep them in frame
   when the column crops the image. */
.hm-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% 50%;
    display: block;
}

/* Photo fades into the navy content: downward when stacked, rightward when
   side by side. A gradient overlay (not baked into the image) so it adapts
   to any width and the photo can be swapped freely. */
.hm-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(7, 18, 46, 0) 45%,
        rgba(7, 18, 46, 0.55) 75%,
        var(--home-navy) 100%
    );
}

.hm-content {
    padding: 2.5rem 16px 3rem;
}

.hm-content .home-heading {
    color: #fff;
    font-size: clamp(1.5rem, 2.6vw, 2.4rem);
}

@media (min-width: 992px) {
    .hm-content .home-heading { white-space: nowrap; }
    .hm-content .home-rule { width: 60px; }
}

.hm-content .home-kicker {
    color: rgba(255, 255, 255, 0.8);
}

.hm-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .hm-benefits { grid-template-columns: repeat(3, 1fr); }
}

.hm-benefit {
    border: 1px solid rgba(215, 157, 40, 0.65);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.hm-benefit i {
    font-size: 2rem;
    color: var(--home-gold);
    margin-bottom: 0.75rem;
}

.hm-benefit h3 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--home-gold-light);
    margin-bottom: 0.5rem;
}

.hm-benefit p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 992px) {
    /* Photo on the right so the leftward fade lands on the plain wall and
       the sign/marquee (right side of the photo) stays bright. */
    .hm-wrap { grid-template-columns: 7fr 5fr; }
    .hm-photo { order: 2; aspect-ratio: auto; min-height: 100%; }
    .hm-photo img { object-position: 80% 50%; }
    .hm-photo::after {
        background: linear-gradient(
            to left,
            rgba(7, 18, 46, 0) 45%,
            rgba(7, 18, 46, 0.6) 75%,
            var(--home-navy) 100%
        );
    }
    .hm-content { padding: 3rem 2.5rem; }
}

/* ==========================================================================
   Special offers
   ========================================================================== */

.home-offers {
    background: var(--home-cream);
}

.ho-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 576px) {
    .ho-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
    .ho-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ho-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(7, 18, 46, 0.08);
}

.ho-img {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--home-navy-2);
}

.ho-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ho-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1rem 1.1rem;
    color: var(--home-text);
}

.ho-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.ho-body p {
    font-size: 0.9rem;
    color: var(--home-muted);
    margin: 0 0 0.75rem;
}

.ho-body .ho-expiry {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a4661b;
}

.ho-body .home-btn {
    margin-top: auto;
    width: 100%;
}

/* ==========================================================================
   Sponsors & community
   ========================================================================== */

.home-sponsors {
    background: #fff;
    border-top: 1px solid var(--home-line);
}

.hs-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 3rem;
}

.hs-logos img {
    max-height: 90px;
    max-width: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Navy panel: several chamber logos are white and built for dark backgrounds */
.hs-community {
    margin-top: 3rem;
    padding: 1.75rem 1rem 2rem;
    background: var(--home-navy);
    border-radius: 8px;
    text-align: center;
}

.hs-community .home-kicker {
    margin: 0 0 1.25rem;
    color: rgba(255, 255, 255, 0.8);
}

.hs-community .hs-logos img {
    max-height: 64px;
    max-width: 160px;
}
