/* General Reset */
html, body {
    overflow-x: hidden;
}
body {
    /* Using Amerigo BT as primary body font, falling back to a web-safe serif */
    font-family: "Amerigo BT", "Merriweather", Georgia, serif;
    margin: 0;
    line-height: 1.6;
    background-color: #ece3ce; /* Cream Background */
    color: #0f1131; /* Navy Text */
    scroll-behavior: smooth;
}

/* Heads Graphic Banner (Below Navigation) */
.heads-banner-container {
    width: 100%;
    background-color: #f5f0e1; /* Solid black background matches the Heads.jpg canvas */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.heads-banner-img {
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 250px; /* Keeps the top banner neatly proportioned */
}

/* Containers */
.container { 
    padding: 4rem 10%; 
    max-width: 1200px; 
    margin: auto; 
}
.bg-accent { 
    background-color: #f5f0e1; 
    border-top: 1px solid #bb4941; 
    border-bottom: 1px solid #bb4941; 
}

/* Navigation */
.navbar {
    position: sticky; 
    top: 0; 
    background: #0f1131;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 1rem 5%; 
    z-index: 1000; 
    border-bottom: 2px solid #bb4941;
}

/* Logo & Headings using Futura styling */
.logo, h1, h2, h3, .btn-primary, .nav-links a { 
    font-family: "Futura", "Montserrat", "Arial Black", sans-serif;
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 20px; 
}

.nav-links a { 
    color: #ece3ce; 
    text-decoration: none; 
    font-size: 0.9rem; 
    transition: 0.3s; 
    font-weight: bold; 
}

.nav-links a:hover { 
    color: #bb4941; 
}

.logo { 
    font-weight: bold; 
    letter-spacing: 2px; 
    color: #bb4941; 
}

/* Hero */
.hero {
    height: 60vh; 
    background-color: #0f1131; /* Change this hex code to whatever color you want (e.g., #0f1131 for your theme's Navy) */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: #ece3ce;
}

.hero h1 { 
    font-size: 3.5rem; 
    letter-spacing: 4px; 
    margin: 0 0 10px 0; 
    color: #ece3ce; 
}

/* Specific styling for the Amerigo BT subtitle */
.hero .subtitle {
    font-family: "Amerigo BT", "Merriweather", Georgia, serif;
    font-size: 1.8rem;
    font-style: italic;
    margin: 0 0 15px 0;
}

.btn-primary {
    display: inline-block;
    background: #bb4941; 
    color: #ece3ce; 
    padding: 12px 30px;
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 4px; 
    border: none; 
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover { 
    transform: scale(1.05); 
    background: #9e3d37; 
}

/* Highlight Banner */
.highlight-banner {
    background: #0f1131;
    padding: 2rem 0;
    text-align: center;
    color: #ece3ce;
}

.highlight-banner h2 {
    color: #bb4941;
    margin: 0;
}

/* Schedule Table and Alignment Corrections */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.schedule-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: #fff; 
    color: #0f1131; 
}

/* Forces the table column headers to align with the start of the data cells */
.schedule-table th { 
    background: #bb4941; 
    color: #ece3ce; 
    padding: 12px 15px; 
    font-family: "Futura", "Montserrat", sans-serif;
    text-align: left; /* Aligns table headings perfectly above data columns */
}

.schedule-table td { 
    padding: 12px 15px; 
    border-bottom: 1px solid #ddd; 
    text-align: left; /* Matches the text direction of headers */
}

.status-open { 
    color: #bb4941; 
    font-weight: bold; 
}

.status-closed { 
    color: #888; 
}

/* Contact Section */
.contact-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-subtitle a {
    color: #bb4941;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 2rem;
    opacity: 0.8;
    font-size: 0.8rem;
    color: #0f1131;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f1131;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.social-link:hover {
    color: #bb4941;
}

/* Gallery Carousel */
.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-track-wrapper {
    overflow: hidden;
    border-radius: 8px;
    background-color: #0f1131; /* Backup color while image loads */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    aspect-ratio: 16 / 9;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 17, 49, 0.6);
    color: #ece3ce;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.carousel-btn:hover {
    background: #bb4941;
}

.carousel-btn-prev { left: 10px; }
.carousel-btn-next { right: 10px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0f1131;
    opacity: 0.3;
    border: none;
    cursor: pointer;
    padding: 0;
}

.carousel-dot.active {
    opacity: 1;
    background: #bb4941;
}

/* Cast Section Layout */
.cast-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.cast-grid {
    display: grid;
    /* Desktop layout: 4 columns across */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-content: center;
}

.cast-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s ease;
}

.cast-card:hover {
    transform: translateY(-5px);
}

/* Forces image to be a neat 1:1 aspect ratio square */
.cast-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    background-color: #0f1131; /* Backup color while image loads */
}

.cast-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops the image automatically to fill the square space */
    display: block;
}

.cast-info {
    padding: 15px;
}

/* Cast list view: compact rows with a small circular photo instead of a full grid of cards */
.cast-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.cast-list .cast-card {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    padding: 10px 20px;
}

.cast-list .cast-card:hover {
    transform: none;
}

.cast-list .cast-img-wrapper {
    width: 64px;
    flex: 0 0 64px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

.cast-list .cast-info {
    padding: 0;
}

/* Music card: wider than a cast card, and matches the band photo's
   4:3 aspect ratio exactly so nothing gets cropped off the sides */
#music .cast-card {
    grid-column: 2 / span 2;
}

#music .cast-img-wrapper {
    aspect-ratio: 4 / 3;
}

.cast-name {
    font-family: "Futura", "Montserrat", sans-serif;
    font-size: 1.1rem;
    color: #0f1131;
    margin: 0 0 5px 0;
}

.cast-role {
    font-family: "Amerigo BT", "Merriweather", serif;
    font-size: 0.9rem;
    color: #bb4941;
    margin: 0;
    font-weight: bold;
}

/* Responsive Rules for Mobile Devices */
@media (max-width: 900px) {
    .cast-grid {
        /* Mobile layout: 2 columns across (creating 4 rows of 2) */
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cast-list .cast-card {
        gap: 15px;
        padding: 8px 15px;
    }

    .cast-list .cast-img-wrapper {
        width: 50px;
        flex: 0 0 50px;
    }

    #music .cast-card {
        grid-column: 1 / -1;
    }

    .container {
        padding: 3rem 5%; /* Tightens container padding slightly for smaller screens */
    }
}
/* ==========================================================================
   Mobile-Specific Overrides (Fixes layout issues on phones)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. Restored original image banner layout & fixed navbar overlap */
    .navbar {
        position: relative; /* Clears sticky behavior so it pushes the image down layout-wise */
        flex-direction: column; 
        gap: 10px;
        padding: 1rem;
        text-align: center;
    }

    .nav-links {
        padding: 0;
        margin: 0;
        gap: 10px 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .heads-banner-container {
        width: 100%;
        background-color: #f5f0e1; /* Matches the cream tint in your web version screenshot */
        padding: 2rem 0;          /* Creates the clean spacing above and below the illustration */
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }

    .heads-banner-img {
        width: 100%;
        max-width: 1200px;        /* Keeps it perfectly contained on wide screens */
        height: auto;             /* Lets it scale naturally with zero distortion */
        display: block;
        /* filter: invert(1);        Seamlessly turns the black asset into the dark sketch lines */
    }
    
    /* 2. Scale down the Hero Section text */
    .hero {
        height: auto;
        padding: 4rem 1rem; 
    }

    .hero h1 {
        font-size: 2.2rem; 
        letter-spacing: 2px;
    }

    .hero .subtitle {
        font-size: 1.3rem; 
    }

    /* 3. Table Layout Transformation with Right-Border Fix */
    .table-container {
        overflow-x: visible; 
    }

    .schedule-table, 
    .schedule-table thead, 
    .schedule-table tbody, 
    .schedule-table th, 
    .schedule-table td, 
    .schedule-table tr { 
        display: block; 
        width: 100%;
        /* Ensures borders are included inside the 100% width calculation */
        box-sizing: border-box; 
    }

    .schedule-table thead {
        display: none; 
    }

    .schedule-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd; /* Solid uniform border on all four sides */
        border-radius: 6px;
        padding: 10px;
        background: #fff;
        box-sizing: border-box; 
    }

    .schedule-table td {
        text-align: right; 
        padding: 6px 10px;
        border-bottom: 1px dashed #eee;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between; 
    }

    .schedule-table td:last-child {
        border-bottom: none;
    }

    /* Column labels injection */
    .schedule-table td::before {
        content: attr(data-label); 
        font-family: "Futura", "Montserrat", sans-serif;
        font-weight: bold;
        color: #bb4941;
        text-align: left;
    }
    
    .schedule-table td:nth-of-type(1)::before { content: "Date:"; }
    .schedule-table td:nth-of-type(2)::before { content: "Day:"; }
    .schedule-table td:nth-of-type(3)::before { content: "Time:"; }
    .schedule-table td:nth-of-type(4)::before { content: "Status:"; }

    /* 4. Ticket Section Layout */
    .ticket-wrapper {
        flex-direction: column; 
        text-align: center;
        gap: 20px;
    }

    /* Music Section Styling */
/* Music Section Styling */
/* Music Section Styling */
    .music-title {
        text-align: center;
        margin-bottom: 2rem;
    }

    .music-wrapper {
        max-width: 900px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .button-men-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .button-men-img {
        width: 100%;
        max-width: 100px; /* Constrains desktop width so it doesn't blow up */
        height: auto;     /* Maintains aspect ratio without stretching */
        display: block;
        object-fit: contain;
    }

    .spotify-container {
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .spotify-iframe {
        width: 100%;
        height: 352px;
        border: none;
        border-radius: 12px;
        display: block;
    }

    /* Mobile Responsiveness for Music Section */
    @media (max-width: 768px) {
        .spotify-iframe {
            height: 152px;
        }
        
        .button-men-img {
            max-width: 160px; /* Scales down neatly for phone viewports */
        }
    }
}