/* --- Global Styles & Variables --- */
:root {
    --charcoal: #1a1a1a;
    --dark-grey: #2d2d2d;
    --orange: #E8772E;
    --off-white: #F5F5FF;
    --grey: #a0a0a0;
    --font-headline: 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--charcoal);
    color: var(--off-white);
    font-family: var(--font-body);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}


/* --- Header & Navigation --- */
header {
    padding: 2rem 0;
    position: sticky;
    top: 0;
    background-color: var(--charcoal);
    z-index: 1000;
    transition: padding 0.4s ease, height 0.4s ease;
    height: 95px; /* Set an explicit height for positioning */
}

header.scrolled {
    height: 115px; /* Increase height to fit both elements */
    border-bottom: 1px solid var(--dark-grey);
}

.header-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    height: 100%;
}

.header-logo {
    font-family: var(--font-headline);
    color: var(--off-white);
    font-size: 1.5rem;
    letter-spacing: 1.5px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Always centered */
    opacity: 0; /* Hidden by default */
    pointer-events: none;
    transition: all 0.4s ease;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

header.scrolled .header-logo {
    opacity: 1;
    pointer-events: auto;
    top: 35%;
}

nav {
    position: absolute;
    top: 50%;
    right: 2rem; /* Initial position on the right */
    transform: translateY(-50%); /* Vertically centered */
    transition: all 0.4s ease-in-out;
}

header.scrolled nav {
    right: 50%;
    top: 65%;
    transform: translate(50%, 50%);
}

nav ul {
    list-style: none;
    display: flex;
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

nav a {
    color: var(--off-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

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


/* --- Main Content Layout --- */
.hero-row {
    display: grid;
    grid-template-columns: 1fr; /* Default to a single column */
    gap: 3rem;
    align-items: center;
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .hero-row {
        grid-template-columns: 1fr 1fr; /* Two columns on larger screens */
    }

    .hero-section {
        min-height: calc(100vh - 95px); /* This rule now only applies to larger screens */
    }
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px; 
    background: linear-gradient(to bottom, transparent, var(--charcoal));
    z-index: 4; 
    pointer-events: none; 
}

.hero-image-container {
    position: relative;
    max-width: 550px;
    width: 100%;
    z-index: 2;
}

.hero-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-text {
    position: absolute;
    left: 0px;
    top: 60%;
    transform: translateY(-50%);
    z-index: 5;
}

.hero-text h1 {
    font-family: var(--font-headline);
    font-size: clamp(4rem, 10vw, 6rem);
    line-height: 1;
    color: var(--off-white);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}


/* --- Player & Form Section --- */
.player-and-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center; /* Center vertically */
}


/* --- Audio Player --- */
.audio-player {
    background-color: #252525;
    border: 1px solid #333;
    padding: 1rem;
    border-radius: 8px;
    width: 100%;
    max-width: 350px;
    position: relative; 
    box-shadow: 0 0 0 0 rgba(232, 119, 46, 0.0);
    transition: box-shadow 0.3s ease-out;
}

.audio-player.is-playing {
    box-shadow: 0 0 var(--glow-blur, 8px) var(--glow-spread, 2px) rgba(232, 119, 46, var(--glow-opacity, 0));
}

.track-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.album-art {
    width: 50px;
    height: 50px;
    background-color: var(--charcoal);
    border-radius: 4px;
}

.track-info .title {
    font-weight: 600;
}

.track-info .artist {
    font-size: 0.8rem;
    color: var(--grey);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #444;
    border-radius: 2px;
    cursor: pointer;
}

.progress {
    width: 0%;
    height: 100%;
    background-color: var(--orange);
    border-radius: 2px;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.controls .time-current, .controls .time-total {
    font-size: 0.75rem;
    color: var(--grey);
}

.buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--off-white); 
  font-size: 20px;
  transition: color 0.3s ease;
}

.control-btn:hover {
  color: var(--orange);
}

#play-pause-btn {
    color: var(--orange);
}

#play-pause-btn:hover {
    color: var(--off-white);
}


/* --- Newsletter Signup --- */
.newsletter-signup {
    max-width: 350px;
}

.newsletter-signup h2 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.newsletter-signup form {
    display: flex;
}

.newsletter-signup input[type="email"] {
    flex-grow: 1;
    border: 1px solid #555;
    background-color: #252525;
    padding: 0.75rem;
    color: var(--off-white);
    font-family: var(--font-body);
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.newsletter-signup input:focus {
    outline: 1px solid var(--orange);
}

.newsletter-signup button[type="submit"] {
    width: 50px;
    border: none;
    background-color: var(--orange);
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-signup button[type="submit"] i {
    color: var(--off-white);
    font-size: 1rem;
}

.newsletter-signup button:hover {
    background-color: #ff8c4a;
}

/* --- Location Prompt Styling --- */
#location-prompt {
    display: none;
    padding: 15px;
    background-color: var(--dark-grey);
    border-radius: 6px;
    text-align: left;
    font-size: 0.9em;
    line-height: 1.4;
    margin-top: 1rem;
}

#location-prompt p {
    margin-bottom: 1rem;
}

#location-prompt .location-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

#location-prompt input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    background-color: #252525;
    border: 1px solid #555;
    color: var(--off-white);
    border-radius: 4px;
    font-family: var(--font-body);
}

#location-prompt input[type="text"]:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 2px rgba(232, 119, 46, 0.4);
}

#location-prompt .prompt-buttons {
    display: flex;
    gap: 10px;
}

#location-prompt button {
    flex-grow: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

#location-prompt #save-location-btn {
    background-color: var(--orange);
    color: var(--off-white);
}
#location-prompt #save-location-btn:hover {
    background-color: #ff8c4a;
}

#location-prompt #no-thanks-btn {
    background-color: #444;
    color: var(--grey);
}
#location-prompt #no-thanks-btn:hover {
    background-color: #555;
}

#location-prompt .success-message {
    display: none; /* Hidden by default */
    text-align: center;
}

#location-prompt.is-success .prompt-content {
    display: none; /* Hide form fields on success */
}

#location-prompt.is-success .success-message {
    display: block; /* Show success message */
    animation: fadeIn 0.5s ease-in-out;
}

.success-message h3 {
    color: var(--orange);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.success-message h3 i {
    margin-right: 0.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Form Messages Styling --- */
#form-message-container {
    min-height: 30px;
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9em;
    text-align: center;
    display: none; 
}

#form-message-container.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

#form-message-container.success {
    background-color: var(--dark-grey);
    color: var(--off-white);
}

#form-message-container.error {
    background-color: #6d1c1c;
    color: var(--off-white);
}

/* --- Browser Autofill Styling --- */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #252525 inset !important;
    -webkit-text-fill-color: var(--off-white) !important;
    caret-color: var(--off-white) !important;
    border: 1px solid #555;
}

/* --- Content Sections --- */
.content-section {
    padding: 6rem 2rem;
    border-top: 1px solid #333;
    position: relative;
    z-index: 3;
    background-color: var(--charcoal);
    scroll-margin-top: 130px;
}

.content-section:first-of-type {
    border-top: none; 
    padding-top: 4rem;
}

.content-section h2 {
    font-family: var(--font-headline);
    font-size: 4rem;
    color: var(--orange);
    margin-bottom: 2rem;
    text-align: center;
}

.content-section p {
    max-width: 800px;
    margin: 0 auto 1.5em auto; /* Add bottom margin to paragraphs */
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: center;
    color: var(--grey);
}

/* --- Contact Section Styles --- */
.email-link {
    color: var(--orange);
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: var(--off-white);
}

/* --- CREATIVE FORMATTING FOR MANIFESTO & INDUSTRY --- */
.manifesto-text, #industry .bio-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left; /* Align text to the left for readability */
}

.manifesto-text p, #industry .bio-container p {
    text-align: left;
    max-width: 100%;
}

.manifesto-text h3 {
    font-family: var(--font-headline);
    font-size: 2.5rem;
    color: var(--off-white);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.manifesto-text h4 {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    color: var(--orange);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--dark-grey);
    padding-bottom: 0.5rem;
}

#industry .bio-container {
    background-color: var(--dark-grey);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
}

#industry .bio-container strong {
    color: var(--orange);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-row {
        text-align: center;
    }
    
    .player-and-form {
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    body, .container {
        padding: 1rem;
    }

    .header-content {
        padding: 0 1rem;
    }

    nav {
        right: 50%;
        transform: translate(50%, -50%);
    }

    header.scrolled nav {
        transform: translate(50%, 50%);
    }
    
    nav ul {
        justify-content: center;
        gap: 1.5rem;
    }

    /* --- MOBILE HERO SECTION OVERHAUL --- */
    main > .hero-row {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        min-height: calc(100vh - 85px);
        gap: 1.5rem;
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .hero-section {
        order: 1;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .hero-section::after {
        display: none;
    }

    .hero-text {
        position: static;
        transform: none;
        margin-bottom: 0;
        order: 1;
    }
    
    .hero-text h1 {
      font-size: clamp(3.5rem, 15vw, 4rem);
      text-shadow: 3px 3px 8px rgba(0,0,0,0.4);
    }

    .hero-image-container {
        max-width: 85%;
        order: 2;
        transform: none !important;
    }
    
    .player-and-form {
        flex-direction: column;
        align-items: center;
        order: 2;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .content-section {
        padding: 4rem 1rem;
    }
    
    .content-section h2 {
        font-size: 3rem;
    }

    .manifesto-text h3 { font-size: 2rem; }
    .manifesto-text h4 { font-size: 1.25rem; }
}

/* --- Bandsintown Widget Styles --- */
.bandsintown-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--orange);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
}

#bandsintown-widget {
    color: var(--off-white) !important;
}

#bandsintown-widget .bit-event-details-container a {
    color: var(--orange) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

#bandsintown-widget .bit-event-details-container a:hover {
    color: var(--off-white) !important;
}

#bandsintown-widget .bit-event-ticket-button, 
#bandsintown-widget .bit-request-show-button a {
    display: inline-block;
    background-color: var(--orange) !important;
    color: var(--off-white) !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    margin: 0;
    text-align: center;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.3s ease;
}

#bandsintown-widget .bit-request-show-button {
    background-color: transparent !important;
    display: block;
    padding: 0 !important;
    margin-top: 10px;
}

#bandsintown-widget .bit-event-ticket-button:hover,
#bandsintown-widget .bit-request-show-button a:hover {
    background-color: #ff8c4a !important;
    color: var(--off-white) !important;
}

#bandsintown-widget .bit-header {
    background-color: transparent !important;
}

#bandsintown-widget .bit-logo {
    display: none !important;
}

#bandsintown-widget .bit-widget {
    min-width: 0px;
}