/* Live status pill (hero) */
.live-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(12, 20, 25, 0.55);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    font-weight: 600;
    color: var(--text-primary);
    flex-wrap: wrap;
}

.live-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-gold);
    flex: none;
}

.live-status.is-open .live-status-dot {
    background: #6ee7a8;
    box-shadow: 0 0 0 0 rgba(110, 231, 168, 0.6);
    animation: livePulse 2s ease-out infinite;
}

.live-status.is-closed .live-status-dot {
    background: var(--text-secondary);
    opacity: 0.6;
}

.live-status-sep {
    opacity: 0.35;
}

.live-status-extra {
    color: var(--text-secondary);
    font-weight: 400;
}

@keyframes livePulse {
    70% { box-shadow: 0 0 0 9px rgba(110, 231, 168, 0); }
    100% { box-shadow: 0 0 0 0 rgba(110, 231, 168, 0); }
}

.community-band .btn:focus-visible {
    outline: 2px solid var(--accent-teal-light);
    outline-offset: 3px;
}

/* Events empty state */
.events-empty-rich {
    text-align: center;
    padding: 36px 24px;
    margin-bottom: 32px;
    border: 1px dashed var(--card-border);
    border-radius: 18px;
    background: var(--card-bg);
}

.events-empty-rich h3 {
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    margin-bottom: 8px;
}

.events-empty-rich p {
    color: var(--text-secondary);
    max-width: 52ch;
    margin: 0 auto 20px;
}

.events-empty-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Frequent Client tiers */
.tier-ladder {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.tier {
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    position: relative;
}

.tier-range {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--accent-teal-light);
}

.tier h4 {
    font-size: 1.25rem;
    margin: 6px 0 8px;
}

.tier p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.93rem;
}

.tier-reward {
    border-color: rgba(255, 215, 0, 0.4);
}

.tier-reward .tier-range {
    color: var(--accent-gold);
}

.tier-founder {
    border-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(0, 174, 239, 0.08));
}

.tier-founder .tier-range {
    color: var(--accent-purple);
}

/* Community band */
.community-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 24px 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.community-band h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 8px;
}

.community-band p {
    margin: 0;
    color: var(--text-secondary);
    max-width: 56ch;
}

.community-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.community-band .btn,
.events-empty-links .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    cursor: pointer;
}

/* Hero quick-booking bar */
.hero-book {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding: 14px 16px;
    border-radius: 18px;
    width: fit-content;
    max-width: 100%;
    background: rgba(12, 20, 25, 0.55);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
}

.hero-book-field {
    display: grid;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-teal-light);
}

.hero-book-field input,
.hero-book-field select {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: rgba(12, 20, 25, 0.6);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: none;
    color-scheme: dark;
}

.hero-book-field input:focus-visible,
.hero-book-field select:focus-visible,
.hero-book .btn:focus-visible {
    outline: 2px solid var(--accent-teal-light);
    outline-offset: 2px;
}

.hero-book-price {
    display: grid;
    min-width: 96px;
    padding-bottom: 4px;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.hero-book-price strong {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--accent-gold);
}

.hero-book .btn {
    min-height: 44px;
    cursor: pointer;
}

.hero-proof {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hero-proof li {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: rgba(12, 20, 25, 0.5);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Compact header on scroll */
header .header-container,
header .logo,
header .logo-img {
    transition: height 0.3s ease, min-height 0.3s ease;
}

header.is-compact .header-container {
    height: 68px;
    min-height: 68px;
}

header.is-compact .logo {
    height: 56px;
}

header.is-compact .logo-img {
    height: 42px;
}

.mobile-book-cta {
    display: none;
}

@media (max-width: 768px) {
    .mobile-book-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        right: 16px;
        bottom: 16px;
        z-index: 900;
        min-height: 48px;
        padding: 0 28px;
        border-radius: 999px;
        opacity: 0;
        transform: translateY(16px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .mobile-book-cta.is-visible {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .hero-book {
        width: 100%;
    }

    .hero-book-field {
        flex: 1 1 130px;
    }

    .hero-book .btn {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-book-cta,
    header .header-container {
        transition: none;
    }
}

/* Gallery: masonry, keeps each photo's own proportions */
.gallery-grid {
    display: block;
    columns: 3 260px;
    column-gap: 20px;
}

.gallery-item {
    display: block;
    aspect-ratio: auto;
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 18px;
}

.gallery-item img {
    display: block;
    height: auto;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:focus-visible {
    outline: 2px solid var(--accent-teal-light);
    outline-offset: 3px;
}

.gallery-overlay {
    background: linear-gradient(to top, rgba(12, 20, 25, 0.92), transparent);
    padding: 40px 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.gallery-item:focus-within .gallery-overlay {
    transform: translateY(0);
}

@media (hover: none) {
    .gallery-overlay {
        transform: none;
    }
}

.gallery-cta {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.55);
    background: rgba(12, 20, 25, 0.7);
    color: var(--accent-gold);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.gallery-cta:hover,
.gallery-cta:focus-visible {
    background: var(--accent-gold);
    color: var(--bg-color);
    outline: none;
}

/* Gallery: lightbox */
.lb {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(5, 9, 12, 0.96);
}

.lb.is-open {
    display: flex;
}

.lb-fig {
    margin: 0;
    max-width: min(92vw, 1100px);
    text-align: center;
}

.lb-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    object-fit: contain;
}

.lb-cap {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.lb-btn {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.lb-btn:hover,
.lb-btn:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    outline: 2px solid var(--accent-teal-light);
}

.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 560px) {
    .gallery-grid { columns: 2 150px; column-gap: 12px; }
    .gallery-item { margin-bottom: 12px; }
    .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
}

/* Vision: stat row */
.vision-stats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.vision-stats li {
    padding: 18px 16px;
    border-radius: 18px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    text-align: center;
}

.vision-stats strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.4vw, 2.2rem);
    color: var(--accent-gold);
    line-height: 1.1;
}

.vision-stats span {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Vision: reveal description on hover or focus (mouse only; touch always shows it) */
@media (hover: hover) and (pointer: fine) {
    .vision-grid .medium-card .card-text p {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease;
    }

    .vision-grid .medium-card:hover .card-text p,
    .vision-grid .medium-card:focus-visible .card-text p,
    .vision-grid .medium-card:focus-within .card-text p {
        max-height: 14em;
        opacity: 1;
    }
}

.vision-grid .medium-card:focus-visible {
    outline: 2px solid var(--accent-teal-light);
    outline-offset: 3px;
}

/* Hours: today */
.hours-tile.is-today {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.35), 0 0 24px rgba(255, 215, 0, 0.12);
}

.hours-today {
    display: block;
    margin-bottom: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.hours-today.is-open {
    color: #6ee7a8;
}

/* Annual membership preview */
.annual-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px 48px;
    justify-content: stretch;
    max-width: 1000px;
    margin: 48px auto 0;
    border-color: rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(0, 174, 239, 0.08)), var(--card-bg);
}

.annual-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--accent-gold);
    color: var(--bg-color);
    margin-bottom: 12px;
}

.annual-copy h3 {
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

.annual-copy p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.annual-perks {
    list-style: none;
    display: grid;
    gap: 10px;
}

.annual-perks li {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.annual-off-label,
.ap-member {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-gold);
}

.annual-free-label {
    color: var(--text-primary);
}

.annual-free-value {
    color: var(--text-secondary);
}

.annual-soon {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--card-border);
}

.annual-soon-title {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-teal-light);
    margin-bottom: 8px;
}

.annual-soon ul {
    list-style: none;
    display: grid;
    gap: 6px;
}

.annual-soon li {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.annual-soon li::before {
    content: "+ ";
    color: var(--accent-teal-light);
    font-weight: 700;
}

.annual-fineprint {
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.annual-fee {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.annual-fee .period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.annual-prices {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.annual-prices th,
.annual-prices td {
    padding: 8px 6px;
    text-align: right;
    border-bottom: 1px solid var(--card-border);
    font-weight: 400;
}

.annual-prices th:first-child {
    text-align: left;
}

.annual-prices thead th {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.annual-prices tbody th {
    font-weight: 600;
}

.ap-regular {
    color: var(--text-secondary);
    text-decoration: line-through;
}

.annual-breakeven {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.annual-join {
    min-height: 44px;
    cursor: pointer;
}

.annual-preview-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--accent-gold);
}

.annual-preview-note[hidden] {
    display: none;
}

.tier-annual {
    border-color: rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 174, 239, 0.06));
}

@media (max-width: 760px) {
    .annual-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .live-status {
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-status.is-open .live-status-dot {
        animation: none;
    }
}
