/* Modern Reset & Variables */
@import url('https://fonts.googleapis.com/css2?family=Aleo:ital,wght@0,400;0,700;1,400&family=Oswald:wght@400;700&display=swap');

@font-face {
    font-family: 'Vintage Corner';
    src: url('fonts/VintageCorner-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary: #b60000;
    --dark: #3A3532;
    --light: #F0EBE0;
    --card-bg: #E2D9CC;
    --white: #ffffff;
    --gray: #6d6d6d;
    --font-main: 'Aleo', serif;
    --font-h1: 'Vintage Corner', cursive;
    --font-h2: 'Oswald', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
}


/* ── Navigation ─────────────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--dark);
    box-shadow: 0 4px 0 rgba(0,0,0,0.3);
    border-bottom: 3px solid var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 2%;
    gap: 30px;
}

/* Logo centred between the two link groups */
nav img {
    height: 200px;
    width: auto;
    order: 2;
}

/* Transparent wrapper — ULs participate directly in nav's flex layout */
.nav-links {
    display: contents;
}

nav ul {
    font-family: var(--font-h2);
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

nav ul:first-of-type { align-items: flex-end;  order: 1; }
nav ul:last-of-type  { align-items: flex-start; order: 3; }

nav a {
    text-decoration: none;
    color: var(--light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.2rem;
    transition: color 0.3s;
}

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

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    order: 3;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--light);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Animate to X when open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── Main Layout ─────────────────────────────────────────── */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

main a {
    color: var(--gray);
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.3s;
}

main a:hover {
    color: var(--primary);
}

ul {
    list-style-type: "♫";
}

ul li {
    padding-left: 0.5rem;
    margin-bottom: 0.25rem;
}

ul li::marker {
    color: var(--primary);
}

section, header {
    margin-bottom: 5rem;
    scroll-margin-top: 250px;
}


/* ── Typography ──────────────────────────────────────────── */
h1 {
    font-family: var(--font-h1);
    color: var(--primary);
    text-transform: uppercase;
    font-size: 4rem;
    line-height: 1.1;
    text-align: center;
}

h2 {
    font-family: var(--font-h2);
    color: var(--primary);
    font-size: 1.8rem;
}

h3 {
    font-family: var(--font-h2);
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}


/* ── Buttons ─────────────────────────────────────────────── */
a.button,
button.button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--primary);
    letter-spacing: 0.05em;
}

button.button {
    font-family: var(--font-main);
    font-size: 1rem;
    cursor: pointer;
}

#booking-form button.button {
    margin-top: 0.75rem;
}

a.button:hover,
button.button:hover {
    background-color: var(--light);
    color: var(--primary);
    border-color: var(--primary);
}


/* ── Carousel ────────────────────────────────────────────── */
.carousel {
    position: relative;
    max-width: 100%;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 12px;
    border: 4px solid var(--card-bg);
    box-shadow: 8px 8px 0px rgba(0,0,0,0.15);
}

.carousel h2 {
    color: var(--light);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
}

.carousel-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.carousel-control {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: var(--white);
    font-size: 2rem;
    padding: 0 1rem;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.4);
}

.carousel-control.prev { left: 0; }
.carousel-control.next { right: 0; }

.carousel-overlay {
    position: absolute;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    padding: 0 1rem;
    box-sizing: border-box;
}

.carousel-overlay.top {
    top: 0;
    height: 15%;
}

.carousel-overlay.bottom {
    bottom: 0;
    height: 25%;
}

.carousel-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.carousel-overlay li {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}


/* ── Concerts ────────────────────────────────────────────── */
.koncert {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 2rem;
    display: flow-root;
}

#koncerty img {
    max-width: 100%;
    float: right;
    width: 50%;
    margin-left: 2rem;
    margin-bottom: 1rem;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.concert-date {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 1.1em;
    font-weight: bold;
    margin-right: 0.4rem;
    vertical-align: middle;
    line-height: 1.4;
}


/* ── Archive ─────────────────────────────────────────────── */
.archiv-trigger {
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    user-select: none;
    transition: color 0.3s;
}

.archiv-trigger:hover {
    color: var(--dark);
}

.toggle-icon {
    font-size: 2rem;
    line-height: 1;
    font-weight: normal;
    color: var(--primary);
}

.archiv-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.archiv-columns {
    column-count: 2;
    column-gap: 3rem;
    padding-top: 1rem;
}

.archiv-columns ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    break-inside: avoid;
}

.archiv-columns li {
    display: block;
    position: relative;
    padding-left: 65px;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.archiv-columns .date {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: var(--primary);
    width: 55px;
}


/* ── About & Genres ──────────────────────────────────────── */
#o-nas .genres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

#o-nas .genre-card {
    background: var(--card-bg);
    border: 1px solid #e0e0e0;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.05);
    padding: 1rem 2rem;
    border-radius: 8px;
    margin: 0;
}

#o-nas .genre-card h3 {
    margin-top: 0;
}

#o-nas .genre-card ul {
    margin: 0;
    padding-left: 1.2rem;
}


/* ── Members ─────────────────────────────────────────────── */
.members-grid {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.members-grid img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 6px solid var(--card-bg);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}


/* ── Videos ──────────────────────────────────────────────── */
.video-container {
    display: grid;
    grid-template-columns: 81fr 256fr 81fr;
    gap: 16px;
    align-items: start;
}

iframe {
    border-radius: 8px;
    border: 4px solid var(--card-bg);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.1);
}

.video-container iframe {
    width: 100%;
    height: auto;
    display: block;
}

.video-short iframe { aspect-ratio: 9/16; }
.video-main iframe  { aspect-ratio: 16/9; }


/* ── References ──────────────────────────────────────────── */
.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.reference-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--dark);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.1);
}

#reference img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin: 1rem auto;
    display: block;
    border: 3px solid var(--card-bg);
}

#reference p {
    margin-bottom: 1rem;
    text-align: center;
}

#reference p em {
    color: #555;
    font-size: 1.05rem;
}


/* ── Film Grain Overlay ───────────────────────────────────── */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    filter: grayscale(100%);
}


/* ── Social Links ────────────────────────────────────────── */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.social-links a,
.social-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-h2);
    font-size: 1.1rem;
    transition: opacity 0.2s;
}

.social-links a:hover,
.social-inline:hover {
    opacity: 0.75;
}

.social-links svg,
.social-inline svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

#kontakt .social-links a {
    color: var(--white);
}

.social-inline {
    color: var(--gray);
}

.social-inline svg {
    color: var(--primary);
}


/* ── Forms ───────────────────────────────────────────────── */
.form-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.form-row input {
    flex: 1;
    min-width: 160px;
}

form input,
form textarea {
    font-family: var(--font-main);
    font-size: 1rem;
    padding: 0.6rem 0.9rem;
    border-radius: 4px;
    border: 2px solid transparent;
    background: rgba(255,255,255,0.15);
    color: inherit;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

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

form textarea {
    resize: vertical;
    margin-top: 0.75rem;
}

.form-status {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    min-height: 1.2em;
}

/* Booking form — light background */
#booking-form input,
#booking-form textarea {
    background: rgba(255,255,255,0.7);
    color: var(--dark);
    border-color: rgba(0,0,0,0.1);
}

#booking-status.success { color: #2a7a2a; }
#booking-status.error   { color: var(--primary); }

/* Subscribe form — dark background */
#subscribe-form input {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    padding: 12px 0.9rem;
}

#subscribe-form input::placeholder { color: rgba(255,255,255,0.5); }

#subscribe-status.success { color: #7dcf7d; }
#subscribe-status.error   { color: #f88; }


/* ── Contact ─────────────────────────────────────────────── */
#kontakt {
    text-align: center;
    font-size: 1.1rem;
    background: var(--dark);
    color: var(--white);
    padding: 3rem;
    border-radius: 12px;
}

#kontakt h1 {
    color: var(--white);
}

#kontakt a {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-underline-offset: 3px;
}


/* ── Mobile Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0.5rem 1rem;
        gap: 0;
    }

    nav img {
        height: 60px;
        order: 1;
    }

    .nav-toggle {
        display: flex;
        order: 2;
    }

    .nav-links {
        display: block;
        width: 100%;
        order: 3;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.open {
        max-height: 400px;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin: 0.5rem 0;
        order: unset;
    }

    nav ul:first-of-type,
    nav ul:last-of-type {
        align-items: center;
        order: unset;
    }

    nav a {
        font-size: 1rem;
    }

    section, header {
        margin-bottom: 3rem;
        scroll-margin-top: 180px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.4rem; }

    main {
        padding: 1rem;
    }

    .carousel-item img {
        height: 250px;
    }

    .carousel-overlay.top h2 {
        font-size: 1rem;
    }

    .carousel-overlay.bottom {
        height: 35%;
    }

    .carousel-overlay li {
        font-size: 0.7rem;
        padding: 2px 8px;
    }

    #koncerty img {
        float: none;
        width: 100%;
        margin-left: 0;
    }

    .koncert {
        padding: 1.5rem;
    }

    .archiv-columns {
        column-count: 1;
    }

    .video-container {
        grid-template-columns: 1fr 1fr;
    }

    .video-main {
        grid-column: 1 / -1;
        order: -1;
    }

    .form-row {
        flex-direction: column;
    }

    button.button {
        align-self: flex-start;
    }

    #kontakt {
        padding: 1.5rem;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
}

/* ── Navbar only: tablet landscape (iPad etc.) ────────────── */
@media (max-height: 768px) and (orientation: landscape) {
    nav img {
        height: 80px;
    }

    nav ul {
        flex-direction: row;
        gap: 16px;
    }

    nav ul:first-of-type { align-items: center; }
    nav ul:last-of-type  { align-items: center; }

    nav a {
        font-size: 1rem;
    }
}
