/* ============================================================
   FONT
   ============================================================ */
@font-face {
    font-family: 'RethinkSans';
    src: url('fonts/RethinkSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RethinkSansBold';
    src: url('fonts/RethinkSans.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   ICON FONT IMPORTS
   ============================================================ */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --header-height: 10rem;
    --accent:        #2a9196;
    --accent-dark:   #1f6f73;
    --white:         #ffffff;
    --font-main:     'RethinkSans', Arial, sans-serif;
    --font-bold:     'RethinkSansBold', Arial, sans-serif;
}

/** PREVENT HIGHLIGHTING */
*,
.page * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
    font-family: var(--font-main);
    overflow-x: hidden;
}

body {
    background-image:
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)),
        url('images/meduse_sfondo2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    background-image:
        linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)),
        url('images/meduse_sfondo2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: 10000;
}

/* ---- Hamburger ---- */
.hamburger-container {
    position: absolute;
    left: 2rem;
    height: 4rem;
    display: flex;
    align-items: center;
}

.hamburger {
    font-size: 2.8rem;
    color: var(--white);
    text-shadow: 0 0 0.625rem rgba(0,0,0,0.8);
    background: none;
    padding: 0;
    border: none;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.hamburger-container:hover .hamburger {
    opacity: 0;
}

/* ---- Social slide-out menu ---- */
.header-social-menu {
    position: absolute;
    top: 0;
    left: 0;
    height: 4rem;
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10002;
    padding: 0 1rem;
}

.hamburger-container:hover .header-social-menu {
    opacity: 1;
    visibility: visible;
}

.hamburger-container:hover .header-social-menu .header-social-icon {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

/* ---- Logo ---- */
.logo-container {
    position: relative;
    height: 9.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo-container:hover {
    transform: scale(1.03);
}

.logo {
    height: 9.375rem;
    width: auto;
    max-width: calc(100vw - 4rem);
    position: relative;
    z-index: 1001;
    pointer-events: none;
}

/* ---- Header right icons ---- */
.header-icons {
    position: absolute;
    right: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-icon {
    font-size: 1.8rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   SHARED ICON RULES
   ============================================================ */
.icon,
.header-icon,
.header-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--white);
}

.icon img,
.header-icon img,
.header-social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-social-icon {
    font-size: 1.4rem;
    padding: 0.375rem 0.5rem;
    opacity: 0;
    transform: translateX(-0.625rem);
    width: 2.5rem;
    height: 2.5rem;
}

/* Hover: colour shift */
.icon:hover,
.header-icon:hover,
.header-social-icon:hover {
    color: var(--accent);
}

.icon:hover img:not([src*="bit_icon"]),
.header-icon:hover img:not([src*="bit_icon"]),
.header-social-icon:hover img:not([src*="bit_icon"]) {
    filter: brightness(0.8) sepia(1) saturate(2) hue-rotate(250deg);
}

/* Bandsintown / Bandcamp: never filter */
.header-social-icon[href*="bandcamp"] img,
.header-icon[href*="bandcamp"] img,
.icon[href*="bandcamp"] img,
.bandsintown-promo-icon img {
    filter: none !important;
}

.bandsintown-promo-icon:hover,
.bandsintown-promo-icon:hover img {
    filter: none !important;
}

/* ============================================================
   SCROLL CONTENT WRAPPER
   Sits below the fixed header; sections flow naturally inside.
   ============================================================ */
.scroll-content {
    flex: 1;
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
}

/* ============================================================
   SECTIONS
   Each section is at least 100vh; content never overlaps.
   ============================================================ */
.section {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 5%;
    font-family: var(--font-main);
}

/* First section: tighten the gap to the header */
.section-first {
    padding-top: 2rem;
}

.section-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;                       /* consistent spacing between children */
}

/* ============================================================
   SECTION 1 – ALBUM
   ============================================================ */
.disco-image {
    width: min(37.5rem, 100%);
    height: auto;
}

.title-bold {
    font-family: var(--font-bold);
    font-weight: 900;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--white);
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    text-shadow: 0 0 0.5rem rgba(0,0,0,0.8);
}

.disco-title {
    font-family: var(--font-bold);
    font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--white);
    letter-spacing: 0.25rem;
    text-transform: uppercase;
}

.buttons-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.preorder-btn {
    border: 0.125rem solid var(--accent);
    background: var(--accent);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: var(--font-main);
}

.preorder-btn:hover {
    background: var(--accent-dark);
    color: var(--white);
}

/* ============================================================
   SECTION 2 – VIDEO
   Intrinsic 16:9 ratio, always correct regardless of container.
   ============================================================ */
.video-container {
    position: relative;
    width: 100%;
    max-width: 70rem;
    /* padding-bottom creates the 16:9 height relative to width */
    aspect-ratio: 16 / 9;           /* modern browsers */
    margin: 0 auto;
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 16 / 9) {
    .video-container {
        height: 0;
        padding-bottom: 56.25%;
    }

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* With aspect-ratio we can simply fill the container */
.video-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================================
   SECTION 3 – CONCERTS
   ============================================================ */
.live-title {
    font-family: var(--font-main);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
}

.concerts-table {
    width: 90%;
    max-width: 75rem;
    margin: 0 auto;
    border-spacing: 0 0.5rem;
    border-collapse: separate;
    font-family: var(--font-main);
    table-layout: fixed;
}

.concerts-table,
.concerts-table td {
    background: transparent;
    border: none;
}

.concerts-table td {
    padding: 0.9rem 1.5rem;
    color: var(--white);
    font-size: clamp(0.95rem, 2vw, 1.3rem);
    font-weight: 500;
    text-align: center;
    width: 33.333%;
}

/* Bandsintown promo block */
.bandsintown-promo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.bandsintown-text {
    color: var(--white);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
    font-family: var(--font-main);
    text-align: center;
    max-width: 90%;
    margin: 0;
}

.bandsintown-promo-icon {
    width: 3.5rem !important;
    height: 3.5rem !important;
}

/* ============================================================
   FOOTER
   Small bottom margin after it, as requested.
   ============================================================ */
.footer-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 5% 3rem;
    font-family: var(--font-main);
}

.social-icons-container {
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.social-icons li {
    display: inline-block;
}

.icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.8rem;
}

.copyright {
    margin-top: 2rem;
    color: var(--white);
    font-size: 1rem;
    text-align: center;
    font-weight: 400;
    font-family: var(--font-main);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Hide hamburger + right icons below 1500px */
@media (max-width: 93.75rem) {          /* 1500 / 16 = 93.75rem */
    .hamburger-container,
    .header-icons {
        display: none;
    }
}

/* Tablet */
@media (max-width: 48rem) {             /* 768px */
    :root {
        --header-height: 9rem;
    }

    .logo-container {
        height: 7.5rem;
    }

    .logo {
        height: 7.5rem;
        max-width: calc(100vw - 2rem);
    }

    .social-icons {
        gap: 1.5rem;
    }

    .icon {
        width: 2rem;
        height: 2rem;
        font-size: 1.4rem;
    }

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

}

/* Mobile */
@media (max-width: 30rem) {             /* 480px */
    .header {
        padding: 0 0.5rem;
    }

    .logo {
        max-width: calc(100vw - 1rem);
    }

    .concerts-table {
        width: 100%;
    }

    .bandsintown-promo-icon {
        width: 3rem !important;
        height: 3rem !important;
    }
}