/* Rivergum Performing Arts Centre — dark theatre theme */

:root {
    --bg: #0b0809;
    --bg-raised: #141012;
    --bg-card: #191316;
    --line: #2c2226;
    --red: #c8102e;
    --red-bright: #ef233c;
    --red-deep: #7c0a1d;
    --text: #f4ede3;
    --muted: #b3a89d;
    --faint: #857b72;
    --spot: 255, 226, 186;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.display { font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-weight: 400; }

a { color: inherit; }

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

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.nb { white-space: nowrap; }

/* ---- curtain valance ---- */
.curtain {
    height: 16px;
    background: repeating-linear-gradient(90deg,
        #6d0a1a 0 14px, #a3122a 14px 30px, #85101f 30px 44px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .7);
    position: relative;
    z-index: 60;
}

/* ---- nav ---- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 8, 9, .88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    display: flex; align-items: center; gap: 28px;
    height: 62px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem; letter-spacing: .08em; color: var(--text);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
    text-decoration: none; color: var(--muted);
    padding: 8px 14px; border-radius: 8px;
    font-size: .92rem; font-weight: 500;
    transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-phone {
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem; letter-spacing: .06em;
    color: var(--red-bright);
    white-space: nowrap;
}
@media (max-width: 820px) {
    .nav-links { display: none; }
    .nav-phone { margin-left: auto; }
}

/* ---- hero ---- */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 60% at 50% 108%, rgba(200, 16, 46, .22), transparent 60%),
        radial-gradient(ellipse 70% 55% at 50% 38%, rgba(var(--spot), .07), transparent 65%),
        var(--bg);
}
.beam {
    position: absolute; top: -12%;
    width: 30vw; max-width: 420px; height: 130vh;
    background: linear-gradient(to bottom,
        rgba(var(--spot), .30),
        rgba(var(--spot), .10) 45%,
        rgba(var(--spot), .02) 75%,
        transparent);
    clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
    filter: blur(16px);
    transform-origin: 50% 0;
    pointer-events: none;
}
.beam-l { left: 4%; animation: swayL 12s ease-in-out infinite alternate; }
.beam-r { right: 4%; animation: swayR 14s ease-in-out infinite alternate; }
@keyframes swayL { from { transform: rotate(9deg); } to { transform: rotate(24deg); } }
@keyframes swayR { from { transform: rotate(-9deg); } to { transform: rotate(-24deg); } }

.hero-inner { position: relative; z-index: 2; padding: 90px 24px 70px; }
.hero-logo { height: 130px; width: auto; margin: 0 auto 30px; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .8)); }
.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    line-height: .92;
    letter-spacing: .04em;
}
.hero h1 .l1 {
    display: block;
    font-size: clamp(4.2rem, 13vw, 10.5rem);
    color: var(--red-bright);
    text-shadow: 0 0 60px rgba(200, 16, 46, .45);
}
.hero h1 .l2 {
    display: block;
    font-size: clamp(1.6rem, 4.6vw, 3.7rem);
    letter-spacing: .34em;
    margin-top: 10px;
    padding-left: .34em; /* balance tracking */
    color: var(--text);
}
.hero-tag {
    max-width: 560px; margin: 26px auto 0;
    color: var(--muted); font-size: 1.08rem;
}
.hero-cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-block; text-decoration: none;
    padding: 14px 30px; border-radius: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem; letter-spacing: .1em;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-red {
    background: var(--red); color: #fff;
    box-shadow: 0 0 0 rgba(200, 16, 46, 0);
}
.btn-red:hover {
    background: var(--red-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 16, 46, .45);
}
.btn-ghost {
    border: 1px solid var(--line); color: var(--text);
}
.btn-ghost:hover { border-color: var(--faint); transform: translateY(-2px); }

.hero-stats {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 84px;
}
.stat { text-align: center; padding: 6px 12px; }
.stat + .stat { border-left: 1px solid var(--line); }
@media (max-width: 700px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; padding: 36px 16px 64px; }
    .stat:nth-child(3) { border-left: none; }
}
.stat b {
    display: block;
    font-family: 'Bebas Neue', sans-serif; font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: var(--red-bright); line-height: 1;
    margin-bottom: 10px;
}
.stat span {
    font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--faint);
}

/* ---- sections ---- */
section { padding: 84px 0; }
.section-alt { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.kicker {
    font-size: .8rem; letter-spacing: .26em; text-transform: uppercase;
    color: var(--red-bright); margin-bottom: 10px; font-weight: 600;
}
h2.heading {
    font-family: 'Bebas Neue', sans-serif; font-weight: 400;
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    letter-spacing: .05em; line-height: 1;
    margin-bottom: 26px;
}

.about-grid {
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 48px; align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo {
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 0 1px var(--line);
}
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-copy strong { color: var(--text); }

/* ---- accordions ---- */
.acc {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card);
}
.acc details + details { border-top: 1px solid var(--line); }
.acc summary {
    list-style: none;
    cursor: pointer;
    display: flex; align-items: baseline; gap: 16px;
    padding: 20px 24px;
    transition: background .2s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: rgba(255, 255, 255, .03); }
.acc summary .t {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem; letter-spacing: .07em;
    color: var(--text);
}
.acc summary .s { color: var(--faint); font-size: .9rem; flex: 1; }
.acc summary .chev {
    margin-left: auto; align-self: center;
    color: var(--red-bright);
    transition: transform .25s;
    flex-shrink: 0;
}
.acc details[open] summary .chev { transform: rotate(180deg); }
.acc details[open] summary { background: rgba(200, 16, 46, .06); }
.acc details[open] { border-left: 3px solid var(--red); }
.acc-body { padding: 6px 24px 24px; animation: accIn .3s ease; }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.acc-body ul { list-style: none; }
.acc-body li {
    color: var(--muted);
    padding: 7px 0 7px 22px;
    position: relative;
}
.acc-body li::before {
    content: '';
    position: absolute; left: 0; top: 16px;
    width: 8px; height: 2px; background: var(--red);
}
.acc-body .note { color: var(--faint); font-size: .9rem; margin-top: 12px; font-style: italic; }
.acc-body a { color: var(--red-bright); }
@media (max-width: 700px) { .acc summary .s { display: none; } }

.full-spec { margin-top: 22px; color: var(--faint); font-size: .95rem; }
.full-spec a { color: var(--red-bright); }

/* ---- use cases ---- */
.uc-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}
.uc-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.uc-card:hover {
    transform: translateY(-4px);
    border-color: var(--red);
    box-shadow: 0 14px 40px rgba(200, 16, 46, .15);
}
.uc-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(200, 16, 46, .12);
    color: var(--red-bright);
    margin-bottom: 18px;
}
.uc-card h3 {
    font-family: 'Bebas Neue', sans-serif; font-weight: 400;
    font-size: 1.5rem; letter-spacing: .05em; line-height: 1.1;
    margin-bottom: 10px;
}
.uc-card p { color: var(--muted); font-size: .95rem; }

/* ---- gallery ---- */
.gal-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.gal-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 4 / 3;
    transition: border-color .2s, box-shadow .2s;
}
.gal-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.gal-item:hover { border-color: var(--red); box-shadow: 0 12px 36px rgba(200, 16, 46, .2); }
.gal-item:hover img { transform: scale(1.05); }

.lightbox {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(6, 4, 5, .94);
    display: flex; align-items: center; justify-content: center;
    animation: lbIn .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
    max-width: min(92vw, 1400px); max-height: 84vh;
    border-radius: 10px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .8);
}
.lightbox button {
    position: absolute;
    background: none; border: none; cursor: pointer;
    color: var(--muted);
    font-size: 3rem; line-height: 1;
    padding: 12px 20px;
    transition: color .2s;
    font-family: inherit;
}
.lightbox button:hover { color: #fff; }
.lb-close { top: 12px; right: 16px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-caption {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    color: var(--muted); font-size: .95rem;
    max-width: 80vw; text-align: center;
}
@media (prefers-reduced-motion: reduce) {
    .lightbox { animation: none; }
    .gal-item img, .uc-card { transition: none; }
}

/* ---- downloads ---- */
.dl-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.dl-card {
    display: flex; flex-direction: column; gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    text-decoration: none;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.dl-card:hover {
    transform: translateY(-4px);
    border-color: var(--red);
    box-shadow: 0 14px 40px rgba(200, 16, 46, .18);
}
.dl-card svg { color: var(--red-bright); }
.dl-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.45rem; letter-spacing: .06em;
    color: var(--text); line-height: 1.05;
}
.dl-meta { color: var(--faint); font-size: .85rem; margin-top: auto; }
.dl-tag {
    display: inline-block;
    font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
    color: #e8b64c;
    border: 1px solid rgba(232, 182, 76, .4);
    border-radius: 99px;
    padding: 2px 9px; margin-top: 6px;
}
.dl-get {
    color: var(--red-bright); font-size: .9rem; font-weight: 600;
}

/* ---- booking / contact ---- */
.book-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px;
}
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } }
.book-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 34px;
}
.book-card h3 {
    font-family: 'Bebas Neue', sans-serif; font-weight: 400;
    font-size: 1.8rem; letter-spacing: .06em; margin-bottom: 12px;
}
.book-card p { color: var(--muted); margin-bottom: 18px; }
.contact-line {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    letter-spacing: .05em;
    color: var(--text);
    text-decoration: none;
    line-height: 1.35;
    overflow-wrap: anywhere;
    transition: color .2s;
}
.contact-line:hover { color: var(--red-bright); }
.contact-line.long {
    font-size: clamp(1.35rem, 2.6vw, 1.8rem);
    letter-spacing: .02em;
}
.contact-sub { color: var(--faint); font-size: .9rem; margin-top: 14px; }
.contact-sub a { color: var(--red-bright); }

/* ---- footer ---- */
footer {
    border-top: 1px solid var(--line);
    padding: 44px 0 60px;
    background: #080607;
}
.foot {
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    color: var(--faint); font-size: .88rem;
}
.foot img { height: 44px; width: auto; opacity: .85; }
.foot .grow { flex: 1; min-width: 240px; }
.foot a { color: var(--muted); }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .beam-l, .beam-r { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .dl-card { transition: none; }
}

/* ---- admin ---- */
.admin-wrap { max-width: 860px; margin: 0 auto; padding: 40px 24px 80px; }
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 26px;
}
.admin-card h2 {
    font-family: 'Bebas Neue', sans-serif; font-weight: 400;
    font-size: 1.7rem; letter-spacing: .07em; margin-bottom: 18px;
}
.admin-login {
    max-width: 400px; margin: 10vh auto 0;
    text-align: center;
}
.admin-login img { height: 90px; margin: 0 auto 24px; }
input[type=password], input[type=text] {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--text);
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
}
input[type=password]:focus, input[type=text]:focus {
    outline: none; border-color: var(--red);
}
input[type=file] { color: var(--muted); font-size: .9rem; max-width: 100%; }
.btn-sm {
    display: inline-block;
    background: var(--red); color: #fff; border: none; cursor: pointer;
    padding: 10px 20px; border-radius: 8px;
    font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; letter-spacing: .08em;
    transition: background .2s;
}
.btn-sm:hover { background: var(--red-bright); }
.btn-plain {
    background: transparent; border: 1px solid var(--line); color: var(--muted);
}
.btn-plain:hover { background: rgba(255,255,255,.05); color: var(--text); }
.btn-danger { background: transparent; border: 1px solid var(--line); color: #d98a8a; }
.btn-danger:hover { background: rgba(200, 16, 46, .12); border-color: var(--red); color: #fff; }
.flash {
    border-radius: 10px; padding: 14px 18px; margin-bottom: 22px;
    background: rgba(46, 160, 67, .12); border: 1px solid rgba(46, 160, 67, .4); color: #7ee2a8;
}
.flash.err { background: rgba(200, 16, 46, .1); border-color: var(--red); color: #ff9daa; }
.doc-row {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 18px 0;
}
.admin-thumb {
    width: 96px; height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    flex-shrink: 0;
}
.doc-row + .doc-row { border-top: 1px solid var(--line); }
.doc-info { flex: 1; min-width: 220px; }
.doc-info b { font-size: 1.05rem; }
.doc-info .m { color: var(--faint); font-size: .84rem; margin-top: 2px; }
.doc-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-top {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 30px;
}
.admin-top h1 {
    font-family: 'Bebas Neue', sans-serif; font-weight: 400;
    font-size: 2.2rem; letter-spacing: .07em; flex: 1;
}
.admin-top a { color: var(--muted); font-size: .9rem; }
.inline-form { display: inline; }
.field-row { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.field-row input[type=text], .field-row input[type=password] { flex: 1; min-width: 200px; }

/* ---- mobile spacing ---- */
@media (max-width: 700px) {
    section { padding: 48px 0; }
    .hero { min-height: 0; }
    .hero-inner { padding: 56px 20px 36px; }
    .hero-logo { height: 92px; margin-bottom: 20px; }
    .hero-tag { margin-top: 18px; font-size: 1rem; }
    .hero-cta { margin-top: 26px; }
    .hero-stats { padding: 24px 16px 44px; row-gap: 24px; }
    .stat b { margin-bottom: 6px; }
    h2.heading { margin-bottom: 18px; }
    .about-grid, .book-grid { gap: 26px; }
    .book-card { padding: 24px; }
    .acc summary { padding: 15px 18px; }
    .acc-body { padding: 4px 18px 18px; }
    .full-spec { margin-top: 16px; }
    footer { padding: 32px 0 40px; }
}
