/* ==========================================================================
   SITE - shared by every public page. Page files load on top of this.
   (The admin does not use it - see admin.css.)
   Each section carries its own phone rules.

   TOKENS      colours, fonts, widths
   BASE        reset and plain elements
   TYPE        the type scale: eyebrow, headings, lead, meta
   LAYOUT      sections, section heads, page headers, feature grid
   BANNER      the video banner at the top of a page
   BUTTONS     .btn and its versions
   CARDS       card, tile
   FORMS       inputs, labels
   PILLS       filter pills, tags, status badges
   SLIDER      a row of cards that pages sideways
   NAV         the top menu (components/navbar.html)
   FOOTER      components/footer.html
   HOME        hero video and the next-event panel (index only)
   CONTACT     the contact page
   ========================================================================== */

/* ==========================================================================
   TOKENS
   ========================================================================== */
:root {
    /* The palette: every colour on every page is one of these */
    --sg-orange: #ff6b00;
    --sg-orange-bright: #ff8c00;
    --sg-orange-dark: #b34700;
    --sg-gold: #ffb700;
    --sg-sun-top: #f7a83f;
    --sg-sun-deep: #e2661a;
    --sg-sand: #ffd9a0;
    --sg-poster-ink: #1d0d02;
    --sg-poster-cream: #fff4e6;
    --sg-poster-orange: #f25a0c;
    --sg-lime: #d6f53b;
    --sg-purple: #b98cff;
    --sg-purple-dark: #2b1a3d;
    --sg-night: #0a0a0a;
    --sg-panel: #111111;
    --sg-border: #222222;
    --sg-grey: #888888;
    --sg-dim: #aaaaaa;
    --sg-muted: #d0d0d0;
    --sg-white: #ffffff;
    --sg-ink: #12141a;
    --sg-ink-soft: #333333;
    --sg-ink-muted: #606877;
    --sg-paper-line: #e3e6ec;
    --sg-paper-soft: #f6f7f9;
    --sg-green: #15803d;
    --sg-green-bg: #e7f6ee;
    --sg-red: #b3261e;
    --sg-red-light: #ff8a80;
    --sg-red-bg: #fdecea;

    --sg-font: Arial, Helvetica, sans-serif;
    --sg-font-display: 'Arial Black', 'Arial Bold', 'Helvetica Neue', Impact, sans-serif;
    --sg-font-accent: 'Courier New', Courier, monospace;
    --sg-font-script: 'Brush Script MT', 'Segoe Script', 'Pacifico', cursive;

    --sg-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");

    --sg-max-width: 1200px;

    --sg-font-poster: 'Bowlby One', 'Arial Black', Impact, sans-serif;
    --sg-font-hand: 'Permanent Marker', 'Segoe Print', cursive;
    --sg-font-cond: 'Oswald', 'Arial Narrow', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

/* hidden means hidden, whatever display a page gives the element */
[hidden] {
    display: none !important;
}

body {
    background: var(--sg-night);
    color: var(--sg-white);
    font-family: var(--sg-font);
    line-height: 1.6;
    overflow-x: hidden; /* nothing can scroll sideways */
}

img,
video {
    max-width: 100%;
}

a {
    color: var(--sg-orange);
}

/* Text: long words and links wrap instead of widening the page */
h1,
h2,
h3,
h4,
h5,
p,
li,
a {
    overflow-wrap: break-word;
}

/* Headings: tight lines; the big two use the heavy poster face */
h1,
h2,
h3,
h4,
h5 {
    line-height: 1.15;
}

h1,
h2 {
    font-family: var(--sg-font-display);
    letter-spacing: -0.5px;
}

/* Visually hidden, still read by screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Keyboard focus ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--sg-gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   TYPE - one scale for the whole site. Pages only set sizes for one-offs.
   ========================================================================== */

/* The small line above a heading: GIG GUIDE, WHAT WE DO ... */
.eyebrow {
    font-family: var(--sg-font-accent);
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--sg-gold);
    margin: 0 0 14px;
}

.eyebrow.is-dim {
    color: var(--sg-dim);
}

/* The big heading at the top of a page */
.h-hero {
    font-family: var(--sg-font-display);
    font-size: clamp(2.5rem, 6.5vw, 4.8rem);
    line-height: 0.92;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin: 0;
}

.h-hero span {
    color: var(--sg-gold);
}

/* A heading inside a card or tile */
.h-card {
    font-family: var(--sg-font-display);
    font-size: 1.05rem;
    line-height: 1.2;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    margin: 0;
}

/* Bigger body copy under a heading */
.lead {
    max-width: 56ch;
    color: var(--sg-paper-line);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Small uppercase facts: a date, a place, a label */
.meta {
    font-family: var(--sg-font-accent);
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sg-dim);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.section {
    padding: 80px 6%;
}

.section h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-intro {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
    color: var(--sg-muted);
}

/* Heading on the left, a line of words (and maybe arrows) on the right */
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 24px;
    margin-bottom: 26px;
}

.section-head h2 {
    text-align: left;
    margin: 0;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    letter-spacing: -1px;
    text-transform: uppercase;
}

.section-sub {
    margin: 6px 0 0;
    color: var(--sg-dim);
    font-size: 0.92rem;
    text-align: left;
}

.dark {
    background: var(--sg-panel);
}

/* Page header - the dark band at the top of contact, hire and terms */
.page-header {
    position: relative;
    min-height: 52vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(140deg, var(--sg-poster-ink) 0%, var(--sg-night) 55%, var(--sg-poster-ink) 100%);
}

.header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 110px 6% 60px;
    max-width: 820px;
}

.header-content h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-content p {
    color: var(--sg-muted);
    font-size: 1.05rem;
}

.header-content .buttons {
    margin-top: 28px;
}

/* Feature grid - short text blocks side by side */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
}

.feature h3 {
    color: var(--sg-orange);
    margin-bottom: 10px;
}

.feature p {
    color: var(--sg-muted);
}

@media (max-width: 768px) {
    .section {
        padding: 60px 6%;
    }

    .page-header {
        min-height: auto;
    }

    /* Top padding clears the menu (js/site/main.js measures --sg-nav-height) */
    .header-content {
        padding: calc(var(--sg-nav-height, 118px) + 18px) 20px 50px;
    }
}

@media (max-width: 400px) {
    .section {
        padding: 50px 5%;
    }
}

/* ==========================================================================
   BANNER - the video banner at the top of a page. --banner-tint sets the
   colour that shows until the video plays.
   ========================================================================== */
.banner {
    --banner-tint: var(--sg-poster-ink);
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(62vh, 560px);
    padding: calc(var(--sg-nav-height, 80px) + 40px) 20px 44px;
    overflow: hidden;
    background: linear-gradient(120deg, var(--banner-tint) 0%, var(--sg-night) 64%);
}

.banner-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dark on the left behind the words, fading into the page at the bottom */
.banner-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 52%, rgba(0, 0, 0, 0.7) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 40%, var(--sg-night) 100%);
}

/* Words on the left, the handwritten line on the right */
.banner-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    max-width: var(--sg-max-width);
    margin: auto;
}

.banner-text {
    min-width: 0;
}

.banner-inner .lead {
    margin-top: 18px;
}

.banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 26px;
    margin-top: 28px;
}

/* Handwritten line (decorative, aria-hidden), with a short gold rule under it */
.banner-script {
    font-family: var(--sg-font-script);
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    line-height: 1.15;
    text-align: right;
    color: var(--sg-white);
    flex-shrink: 0;
}

.banner-script::after {
    content: '';
    display: block;
    width: 54px;
    height: 3px;
    margin: 10px 0 0 auto;
    border-radius: 2px;
    background: var(--sg-gold);
}

@media (max-width: 900px) {
    .banner-script {
        display: none;
    }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    background: var(--sg-orange);
    color: var(--sg-white);
    padding: 16px 36px;
    border-radius: 50px;
    border: 2px solid var(--sg-orange);
    font-family: var(--sg-font-accent);
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    min-height: 52px; /* easy tap target */
    cursor: pointer;
    transition:
        transform 0.25s,
        background 0.25s;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-3px);
}

/* Outline version */
.btn-outline {
    background: transparent;
    color: var(--sg-white);
    border: 2px solid var(--sg-orange);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: var(--sg-orange);
}

/* Gold version */
.btn-gold {
    background: var(--sg-gold);
    border-color: var(--sg-gold);
    color: var(--sg-poster-ink);
}

.btn-gold:hover,
.btn-gold:focus-visible {
    background: var(--sg-gold);
    border-color: var(--sg-gold);
}

/* Loud version for ticket links */
.btn-ticket {
    background: var(--sg-orange-bright);
    border-color: var(--sg-orange-bright);
    font-size: 1.15rem;
    padding: 18px 46px;
    box-shadow: 0 0 24px rgba(255, 140, 0, 0.45);
}

/* Smaller, for inside a card */
.btn-small {
    padding: 10px 18px;
    min-height: 0;
    font-size: 0.8rem;
}

/* Archived: reads as a statement, not a button */
.btn.is-done {
    background: var(--sg-border);
    border: 1px solid var(--sg-ink-soft);
    color: var(--sg-dim);
    cursor: default;
}

/* A row of buttons */
.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

/* Phone: full-width buttons, stacked */
@media (max-width: 768px) {
    .btn {
        width: 100%;
        max-width: 320px;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn:hover {
        transform: none;
    }
}

/* ==========================================================================
   CARDS
   ========================================================================== */

/* A card: dark panel, rounded, lifts on hover */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--sg-border);
    border-radius: 14px;
    background: var(--sg-panel);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--sg-ink-soft);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    flex: 1;
}

/* A tile: the same box with padding, and no hover lift */
.tile {
    padding: 22px;
    border: 1px solid var(--sg-border);
    border-radius: 14px;
    background: var(--sg-panel);
}

.tile p {
    margin: 0;
    color: var(--sg-dim);
    font-size: 0.92rem;
    line-height: 1.65;
}

.tile .h-card {
    margin-bottom: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none;
    }

    .card:hover {
        transform: none;
    }
}

/* ==========================================================================
   FORMS - put .form on the form or the filter row
   ========================================================================== */
.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--sg-border);
    border-radius: 10px;
    background: var(--sg-panel);
    color: var(--sg-white);
    font-family: var(--sg-font);
    font-size: 0.95rem;
}

.form textarea {
    resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--sg-orange);
}

.form label {
    font-family: var(--sg-font-accent);
    font-size: 0.74rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sg-gold);
}

/* ==========================================================================
   PILLS - a filter pill (.is-on when chosen), a small tag, a status badge
   ========================================================================== */
.pill {
    padding: 9px 18px;
    border: 1px solid var(--sg-border);
    border-radius: 999px;
    background: var(--sg-panel);
    color: var(--sg-muted);
    font-family: var(--sg-font);
    font-size: 0.76rem;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.pill:hover {
    border-color: var(--sg-ink-soft);
    color: var(--sg-white);
}

.pill.is-on,
.pill:has(input:checked) {
    background: var(--sg-gold);
    border-color: var(--sg-gold);
    color: var(--sg-night);
}

.pill input {
    display: none;
}

/* A pill that is a label keeps the pill type, not the form label type */
.form label.pill {
    font-family: var(--sg-font);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    color: var(--sg-muted);
}

.form label.pill:has(input:checked) {
    color: var(--sg-night);
}

.tag {
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--sg-muted);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Status badge: upcoming / soon / past / soldout */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid;
    font-family: var(--sg-font-accent);
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge.is-upcoming {
    background: var(--sg-orange);
    border-color: var(--sg-orange);
    color: var(--sg-night);
}

.badge.is-soon {
    background: transparent;
    border-color: var(--sg-gold);
    color: var(--sg-gold);
}

.badge.is-past {
    background: var(--sg-border);
    border-color: var(--sg-ink-soft);
    color: var(--sg-dim);
}

.badge.is-soldout {
    background: var(--sg-poster-ink);
    border-color: var(--sg-red);
    color: var(--sg-red-light);
}

/* ==========================================================================
   SLIDER - a row of cards that pages sideways with two arrow buttons.
   JS sets --page on .slide-track and reads --per from .slide-view.
   ========================================================================== */
.slide-arrows {
    display: flex;
    gap: 10px;
}

.slide-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--sg-border);
    background: var(--sg-panel);
    color: var(--sg-white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
}

.slide-arrow:hover:not(:disabled) {
    background: var(--sg-orange);
    border-color: var(--sg-orange);
    color: var(--sg-night);
}

/* Dimmed, not hidden, at the ends so the row does not jump */
.slide-arrow:disabled {
    opacity: 0.28;
    cursor: default;
}

/* The window: --per cards across */
.slide-view {
    --per: 4;
    --gap: 20px;
    overflow: hidden;
    padding: 8px 0; /* room for the hover lift */
    margin: -8px 0;
}

/* One page is exactly -100% */
.slide-track {
    --page: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
    gap: var(--gap);
    transform: translateX(calc(var(--page) * (-100% - var(--gap))));
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Fewer cards across as the screen narrows */
@media (max-width: 1100px) {
    .slide-view {
        --per: 3;
    }
}

@media (max-width: 820px) {
    .slide-view {
        --per: 2;
    }
}

@media (max-width: 560px) {
    .slide-view {
        --per: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slide-track {
        transition: none;
    }
}

/* ==========================================================================
   NAV - sits over the top of the page. Items live in components/navbar.html.
   ========================================================================== */
nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 40px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.nav-logo a {
    display: block;
    padding: 0;
    border-bottom: none;
}

.nav-logo img {
    height: 45px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

nav a {
    display: inline-block;
    padding: 10px 2px;
    color: var(--sg-white);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition:
        color 0.25s,
        border-color 0.25s;
}

nav a:hover {
    color: var(--sg-gold);
}

/* Current page (js/site/main.js sets .active) */
nav a.active {
    color: var(--sg-orange);
    border-bottom-color: var(--sg-orange);
    font-weight: bold;
}

/* Dropdowns */
nav .has-sub {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

nav .sub-toggle {
    background: none;
    border: 0;
    padding: 10px 2px;
    color: var(--sg-white);
    font-size: 0.7rem;
    line-height: 1;
    cursor: pointer;
    transition:
        color 0.25s,
        transform 0.25s;
}

nav .sub-toggle:hover {
    color: var(--sg-gold);
}

nav .has-sub.is-open .sub-toggle span {
    display: inline-block;
    transform: rotate(180deg);
}

nav .subnav {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 110;
    display: block;
    min-width: 210px;
    padding: 8px;
    margin: 0;
    background: rgba(12, 12, 12, 0.97);
    border: 1px solid var(--sg-border);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    /* Kept in the page so it can fade and stays reachable by keyboard */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
        opacity 0.18s,
        transform 0.18s,
        visibility 0.18s;
}

nav .has-sub:hover .subnav,
nav .has-sub:focus-within .subnav,
nav .has-sub.is-open .subnav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav .subnav li {
    display: block;
}

nav .subnav a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    border-bottom: 0;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

nav .subnav a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--sg-gold);
}

/* Parent lights up when the current page is under it */
nav .has-sub.has-active > a {
    color: var(--sg-orange);
    border-bottom-color: var(--sg-orange);
    font-weight: bold;
}

/* The one coloured item: Contact */
nav a.nav-cta {
    background: var(--sg-orange);
    border: 2px solid var(--sg-orange);
    border-radius: 50px;
    padding: 10px 22px;
    font-weight: bold;
}

nav a.nav-cta:hover {
    background: transparent;
    color: var(--sg-white);
}

nav a.nav-cta.active {
    border-bottom-color: var(--sg-orange);
}

/* Home page: menu hides over the hero, slides in as a fixed bar further down
   (js/site/main.js toggles .is-tucked) */
.home nav {
    position: fixed;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--sg-border);
    transition:
        opacity 0.35s ease,
        transform 0.4s ease,
        visibility 0.4s;
}

.home nav.is-tucked {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-105%);
    pointer-events: none;
}

/* Burger button - only shows on a phone */
.nav-burger {
    display: none;
}

/* Tablet and phone: a burger button and a drop-down panel */
@media (max-width: 900px) {
    .nav-logo img {
        height: 34px;
    }

    .nav-burger {
        display: grid;
        gap: 5px;
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        padding: 10px;
        place-content: center;
        border: 0;
        border-radius: 10px;
        background: none;
        cursor: pointer;
    }

    .nav-burger span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: var(--sg-white);
        transition:
            transform 0.2s ease,
            opacity 0.2s ease;
    }

    /* Burger turns into a cross while open */
    nav.is-open .nav-burger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    nav.is-open .nav-burger span:nth-child(2) {
        opacity: 0;
    }

    nav.is-open .nav-burger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* The panel hangs under the bar so the bar height never changes */
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px 16px 18px;
        background: var(--sg-night);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    }

    nav.is-open ul {
        display: flex;
    }

    nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    nav ul li:last-child {
        border-bottom: 0;
    }

    nav a {
        display: block;
        padding: 15px 4px;
        font-size: 1rem;
        letter-spacing: 0.02em;
        text-align: left;
    }

    nav .nav-long {
        display: inline;
    }

    /* Sub-items shown indented, always open */
    nav .has-sub {
        display: block;
    }

    nav .sub-toggle {
        display: none;
    }

    nav .subnav {
        position: static;
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        margin: 0 0 6px;
        padding: 0;
        border: 0;
        background: none;
        box-shadow: none;
    }

    nav .subnav li {
        border-bottom: 0;
    }

    nav .subnav a {
        padding: 11px 4px 11px 18px;
        font-size: 0.92rem;
        color: rgba(255, 255, 255, 0.72);
        border-left: 2px solid rgba(255, 255, 255, 0.14);
    }

    nav .subnav a:hover,
    nav .subnav a.active {
        color: var(--sg-white);
        border-left-color: var(--sg-orange);
    }

    nav .nav-cta-item {
        margin-top: 12px;
        border-bottom: 0;
    }

    nav a.nav-cta {
        display: block;
        padding: 14px 20px;
        text-align: center;
    }
}

/* Phone: a slimmer bar */
@media (max-width: 768px) {
    nav {
        padding: 12px 16px;
        gap: 12px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
        border-bottom: none;
    }
}

/* ==========================================================================
   FOOTER - components/footer.html
   ========================================================================== */
.footer {
    background: var(--sg-night);
    border-top: 1px solid var(--sg-border);
}

.footer-content {
    max-width: var(--sg-max-width);
    margin: auto;
    padding: 60px 6%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-logo h2 {
    color: var(--sg-orange);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.footer-logo p {
    color: var(--sg-dim);
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    font-style: normal; /* <address> is italic by default */
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.footer-links a {
    color: var(--sg-dim);
    text-decoration: none;
    padding: 9px 0; /* 44px tap target */
    transition: color 0.25s;
}

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

.footer-contact p {
    color: var(--sg-dim);
    margin-bottom: 10px;
}

.footer-contact a {
    display: inline-block;
    padding: 9px 0;
    color: var(--sg-dim);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--sg-orange);
}

.footer-bottom {
    border-top: 1px solid var(--sg-border);
    text-align: center;
    padding: 20px;
}

.footer-bottom p {
    color: var(--sg-ink-muted);
    font-size: 0.9rem;
}

/* Tablet: two columns; phone: one, centred */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 8%;
    }

    .footer-links,
    .footer-contact {
        align-items: center;
    }
}

/* ==========================================================================
   HOME - index.html only
   ========================================================================== */

/* Hero: full-screen video, dark overlay, logo and buttons */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 20px 60px;
    width: 100%;
    max-width: 900px;
    min-width: 0;
}

.hero-logo {
    width: min(340px, 70%);
    height: auto;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: clamp(2.6rem, 8vw, 5rem);
    margin-bottom: 20px;
    line-height: 1;
}

/* Next event panel */
.featured-event {
    position: relative;
    overflow: hidden;
    background-color: var(--sg-night);
    background-image: linear-gradient(rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.86)), url('../../data/images/services/trailer-stage.webp');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--sg-poster-ink);
    border-radius: 18px;
    max-width: var(--sg-max-width);
    margin: auto;
    padding: 50px 40px;
    text-align: center;
}

.featured-event h2 {
    font-size: clamp(2.2rem, 7vw, 4.2rem);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Edition line under the event name */
.featured-event .event-subtitle {
    font-family: var(--sg-font-display);
    font-size: clamp(1.1rem, 3.2vw, 1.8rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--sg-orange);
    margin-bottom: 24px;
}

.event-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 40px;
    list-style: none;
    margin-bottom: 32px;
}

.event-facts li {
    font-family: var(--sg-font-accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--sg-muted);
    font-size: 0.95rem;
}

.event-facts li strong {
    display: block;
    color: var(--sg-white);
    font-size: 1.1rem;
}

/* With a poster: poster left, words right */
.featured-event.has-poster {
    display: grid;
    grid-template-columns: minmax(0, 340px) 1fr;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.fe-poster {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    transform: rotate(-2deg);
    transition: transform 0.2s;
}

.fe-poster:hover {
    transform: rotate(0deg) scale(1.02);
}

.fe-poster img {
    display: block;
    width: 100%;
    height: auto;
}

/* The poster stacks on top */
@media (max-width: 860px) {
    .featured-event.has-poster {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .fe-poster {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }

    /* Top padding clears the menu (js/site/main.js measures --sg-nav-height) */
    .hero-content {
        padding: calc(var(--sg-nav-height, 120px) + 20px) 20px 60px;
    }

    .hero-logo {
        width: min(210px, 58%);
        margin-bottom: 18px;
    }

    .featured-event {
        padding: 36px 22px;
    }

    .event-facts {
        gap: 16px 26px;
    }
}

/* ==========================================================================
   CONTACT - contact.html: details left, form right
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: var(--sg-max-width);
    margin: auto;
}

.contact-info h2 {
    margin-bottom: 20px;
    text-align: left;
}

.contact-info p {
    color: var(--sg-muted);
}

.contact-item {
    margin-top: 28px;
}

.contact-item h3 {
    color: var(--sg-orange);
    margin-bottom: 8px;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-item a {
    color: var(--sg-white);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--sg-orange);
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 15px;
    border-radius: 8px;
    background: var(--sg-panel);
    color: var(--sg-white);
    border: 1px solid var(--sg-border);
    font-family: var(--sg-font);
    font-size: 1rem;
    width: 100%;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn {
    border: none;
    width: 100%;
}

/* Tablet: one column; phone: centred heading */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .contact-info h2 {
        text-align: center;
    }
}
