/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    box-sizing: border-box;
}

/* Fonts */
@font-face {
    font-family: 'Mono45Headline';
    src: url('fonts/Mono45Headline/Mono45Headline-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Mono45Headline';
    src: url('fonts/Mono45Headline/Mono45HeadlineRegular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* CSS Variables */
:root {
    --dark-black: black;
    --white: white;
    --cyan: #00FFFF;
    --margin-width: 100px;
    --column-gap: 20px;
}

::selection {
    background-color: var(--cyan);
    color: var(--dark-black);
}

html {
    font-family: "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #F5F5F5;
    scroll-behavior: smooth;
    background-image: url("../images/logos/cables.png"), url("../images/logos/cables2.png"), url("../images/logos/cable.png");
    background-size: 80%, 40%, 40%;
    background-position: -100px 300px, 900px bottom, top right;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body {
    margin: 0;
    padding: 0;
}

/* Typography */
h1 {
    color: var(--dark-black);
    font-family: 'Mono45Headline', sans-serif;
    font-size: 6rem;
    font-weight: bold;
    font-style: normal;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h2 {
    color: var(--dark-black);
    font-family: 'Mono45Headline', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

h3 {
    color: var(--dark-black);
    font-family: 'Mono45Headline', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 0.5rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

h4 {
    color: var(--dark-black);
    font-family: 'Mono45Headline', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    letter-spacing: -0.01em;
}

p {
    padding: 0.5rem 0;
    color: var(--dark-black);
    background-color: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.7rem;
    margin: 0;
}

iframe {
    grid-column: 1/-1;
    width: 100%;
    border: none;
    min-height: 1500px;
    display: block;
}


#container {
    display: grid;
    grid-template-columns:
        [margin-left-start] var(--margin-width) [margin-left-end col1-start] minmax(0, 1fr) [col1-end col2-start] minmax(0, 1fr) [col2-end col3-start] minmax(0, 1fr) [col3-end col4-start] minmax(0, 1fr) [col4-end col5-start] minmax(0, 1fr) [col5-end col6-start] minmax(0, 1fr) [col6-end margin-right-start] var(--margin-width) [margin-right-end];
    column-gap: var(--column-gap);
    margin: 0 auto;
    /* padding: 2rem 0; */
}

/* ============================================
   TITLE SECTION
   ============================================ */
/* Hide mobile elements by default, show on mobile */
.logo-mobile {
    display: none;
}

.title-logo {
    grid-column: 1 / -1;
}

.title-logo img {
    width: 100%;
    height: auto;
}

.title-text {
    grid-column: col3-start / -1;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
    grid-column: margin-left-start / col1-end;
    position: sticky;
    top: 2rem;
    background-color: var(--dark-black);
    padding: 2rem 0 2rem var(--margin-width);
    height: fit-content;
}

ul {
    list-style-type: none;
    padding-inline-start: 0;
    margin: 0;
}

.nav-link {
    color: var(--white);
    font-family: 'Mono45Headline', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    gap: 0.5rem;
    padding: 0.7rem 0;
    margin: 0;
    word-break: break-word;
}

.nav-link::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('../images/arrow_closed.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    filter: invert(1) brightness(2);
}

.nav-link:hover {
    color: var(--cyan);
    text-decoration: none;
}

.nav-link:hover::before {
    filter: invert(56%) sepia(100%) saturate(1000%) hue-rotate(140deg) brightness(1.2);
}


/* ============================================
   CONTENT SECTIONS
   ============================================ */

.section-wrapper {
    grid-column: col2-start / col5-end;
    display: grid;
    grid-template-columns: subgrid;
    padding-bottom: 2rem;
}

.section-label {
    grid-column: 1 / 2;
    position: sticky;
    top: 2rem;
    align-self: start;
    word-break: break-word;
    /* padding-top: 2rem; */
}

section {
    grid-column: 2 / 5;
    display: grid;
    grid-template-columns: subgrid;
}

section>p,
section>details {
    grid-column: 1 / -1;
}

.location {
    grid-column: col3-start / col3-end;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.date {
    grid-column: col4-start / col4-end;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-text {
    font-family: 'Mono45Headline', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--dark-black);
    text-transform: uppercase;
}

/* Details/Summary (collapsible sections) */
details {
    padding: 0.75rem 0;
    cursor: pointer;
    color: var(--dark-black);
    /* background-color: black; */
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.7rem;
}

summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-family: 'Mono45Headline', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.2rem;
    /* text-decoration: underline; */
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('../images/arrow_closed.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    /* filter: invert(1) brightness(2); */
}

.manifest {
    background-color: #F5F5F5;
}

details[open] summary::before {
    background-image: url('../images/arrow_open.svg');
}

summary:hover {
    background-color: var(--cyan);
}

summary:hover::before {
    /* filter: invert(56%) sepia(100%) saturate(1000%) hue-rotate(140deg) brightness(1.2); */
}


#tickets {
    gap: 1rem;
}

#tickets .button {
    grid-column: span 1;
    width: 100%;
}

#program .button {
    grid-column: span 3;
    text-align: center;
    width: 100%;
}

#footer {
    grid-column: margin-left-start / margin-right-end;
    margin-top: 2rem;
    background-color: black;
    color: white;
    padding: 2rem 0 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

#footer p {
    margin: 0;
    color: var(--white);
    font-family: 'Mono45Headline', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: -1.5rem;
}

#footer .footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

#footer .footer-logos img {
    max-width: 100px;
    max-height: 100px;
    background-color: white;
    border-radius: 50%;
}

#footer .footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

#footer .footer-links a {
    display: flex;
    align-items: center;
    color: var(--cyan);
    text-decoration: none;
    font-family: 'Mono45Headline', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    transition: opacity 0.2s;
}

#footer .footer-links a:hover {
    opacity: 0.8;
}


/* ============================================
   UI ELEMENTS
   ============================================ */

.button,
.inline-button {
    background-color: var(--dark-black);
    color: var(--white);
    font-family: 'Mono45Headline', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    letter-spacing: 0.05em;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.button:hover,
.button:active,
.button:focus,
.inline-button:active,
.inline-button:focus,
.inline-button:hover {
    background-color: var(--cyan);
    color: var(--dark-black);
}

.button:focus-visible,
.inline-button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.button {
    font-size: 1.2rem;
    padding: 1rem 0;
    display: block;
    width: 100%;
}

.inline-button {
    font-size: 1rem;
    padding: 0.2rem 0.4rem;
    display: inline;
}

/* Links */
a {
    cursor: pointer;
    list-style: none;
    display: flex;
    gap: 0.5rem;
    font-family: 'Mono45Headline', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
}

a:hover {
    color: var(--cyan);
}


/* Forms */
form {
    background-color: #F5F5F5;
    font-weight: normal;
    border: 2px var(--dark-black) solid;
    padding: 1rem;
    margin: 1rem 0;
    grid-column: 1 / -1;
    color: var(--dark-black);
    line-height: 1.7rem;
}

form label {
    padding: 0 0 0.5rem;
    display: block;
}

form fieldset {
    border: none;
    padding: 0;
}

form legend {
    padding: 0 0 0.5rem;
}

form fieldset label {
    display: flex;
}

form fieldset input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

form input {
    height: 40px;
    margin-bottom: 1rem;
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--dark-black);
    border-radius: 0;
    background-color: var(--white);
    color: var(--dark-black);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s;
}

form textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid var(--dark-black);
    border-radius: 0;
    background-color: var(--white);
    color: var(--dark-black);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s;
    min-height: 120px;
    resize: vertical;
}

form textarea:focus,
form input:focus {
    outline: none;
    border-color: var(--cyan);
}

form button[type="submit"] {
    color: var(--white);
    background-color: var(--dark-black);
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 0;
    font-family: 'Mono45Headline', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s;
}

form button[type="submit"]:hover {
    background-color: var(--cyan);
    color: var(--dark-black);
}

form .hidden {
    display: none;
}


/* ============================================
   UTILITY COMPONENTS
   ============================================ */

/* Back to top button */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background-color: var(--white);
    color: var(--dark-black);
    border: 3px solid var(--dark-black);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1;
    padding: 0;
}

#back-to-top:hover {
    background-color: var(--cyan);
    color: var(--dark-black);
    border-color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}


/* ============================================
   RESPONSIVENESS
   ============================================ */

/* Medium screens (tablets and smaller desktops) */
@media (max-width: 1200px) {

    :root {
        --margin-width: 30px;
        --column-gap: 10px;
    }

    html {
        background-image: url("../images/logos/cables.png"), url("../images/logos/cable.png");
        background-size: 120%, 40%;
        background-position: -300px 400px, top right;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    nav {
        grid-column: margin-left-start / col2-end;
        padding: 1rem var(--margin-width);
    }

    .nav-link {
        font-size: 1.2rem;
        white-space: normal;
    }

    .section-wrapper {
        grid-column: col3-start / col6-end;
    }

    .section-label {
        grid-column: 1 / -1;
        position: static;
        padding-top: 0;
        margin-bottom: 0.5rem;
    }

    section {
        grid-column: 1 / -1;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.7rem;
    }

    .button {
        padding: 0.75rem 0;
    }

}

@media (max-width: 800px) {
    :root {
        --margin-width: 0px;
        --column-gap: 5px;
    }

    html {
        background-image: url("../images/logos/cables1.png"), url("../images/logos/cable1.png");
        background-size: auto, 100%;
        background-position: right bottom, right top;
        background-repeat: no-repeat;
        background-attachment: scroll, scroll;
    }

    #container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0;
        margin: var(--margin-width);
    }

    .section-wrapper {
        padding: 0 10px;
        margin-bottom: 1.5rem;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
    }

    .title-text {
        grid-column: 1 / -1;
        padding: 0 1rem;
        margin: 1rem 0;
    }

    .title-text h2 {
        text-align: center;
    }

    nav {
        grid-column: 1 / -1;
        position: static;
        margin-bottom: 1rem;
        padding: 1rem;
        background-color: var(--dark-black);
    }

    /* Content sections */
    .section-wrapper {
        grid-column: 1 / -1;
        grid-template-columns: subgrid;
    }

    .section-label {
        grid-column: 1 / -1;
        position: static;
        padding-top: 0;
        margin-bottom: 0.5rem;
    }

    .location,
    .date {
        grid-column: auto;
    }

    .info-text {
        white-space: normal;
    }

    #footer {
        grid-column: 1 /-1;
    }

    #back-to-top {
        display: block;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    #footer .footer-logos img {
        max-width: 60px;
        max-height: 60px;
        background-color: white;
        border-radius: 50%;
    }
}