/* Basic styles for the website */

/* Universal box-sizing for easier layout */
*, *::before, *::after {
    box-sizing: border-box;
}

@font-face {
	font-family: "troemys";
	src: url("./fonts/Troemys.ttf") format("truetype");
}


/* Body basic styles */
body {
    margin: 0;
    font-family: 'Lora', serif; /* Body font */
    line-height: 1.6;
    color: #4a4a4a; /* Darker, more earthy text color */
    background-color: #f5e8e0; /* Very light, almost white background */
    padding-top: 60px; /* Space for fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'troemys', 'Playfair Display', serif; /* Heading font */
    letter-spacing: 3px;
    color: #8d4444; /* Dark blue-grey for headings */
    margin-top: 0;
}

img {
    max-width:100%;
}

/* Header styles */
header {
    position: fixed; /* Fixed header */
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 1rem; /* Adjusted padding for logo */
    background-color: #8d4444; /* Dark blue-grey, slightly transparent */
    color: #f5e8e0;
    z-index: 1000;
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Vertically center items */
    justify-content: space-between; /* Space out logo and nav */
}

/* Utility styles */
.center {
    text-align:center;
}

/* Specific style for homepage header transparency */
body.homepage header {
}

.header-logo {
    flex-shrink: 0; /* Prevent logo from shrinking */
    padding-left:0.5em;
}

.header-logo img {
    height: 40px; /* Adjust logo height */
    width: auto;
    transition: height 0.3s ease;
    margin-top: .75em;
}

header nav.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-grow: 1; /* Allow nav to take available space */
}

header nav ul li {
    margin: 0 20px; /* Increased spacing */
}

header nav ul li a {
    color: #f5e8e0;
    text-decoration: none;
    font-family: 'troemys';
    letter-spacing: 2px;
    font-size:1.5em;
    font-weight: 600; /* Slightly bolder */
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding-bottom: 5px; /* Space for underline effect */
}

header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #f5e8e0;
    transition: width 0.3s ease;
}

header nav ul li a:hover::after {
    width: 100%;
}

header nav ul li a:hover {
    color: #f0f0f0; /* Slight change on hover */
    transform: translateY(-2px); /* Subtle lift effect */
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

header nav.main-nav ul.dropdown-content {
    display: none; /* Ensure it's hidden by default */
    position: absolute;
    background-color: #8d4444; /* Darker, less transparent */
    min-width: 180px; /* Slightly wider */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3); /* More pronounced shadow */
    z-index: 1;
    list-style: none;
    padding: 10px 0; /* More padding */
    margin: 0;
    top: 100%;
    /* left: 50%; */
    transform: translateX(-50%);
    border-radius: 5px; /* Slightly rounded corners */
}

.dropdown-content li a {
    color: #f5e8e0;
    padding: 10px 20px; /* Adjusted padding */
    text-decoration: none;
    display: block;
    text-align: left;
    font-weight: bold; /* Reset font weight */
}

.dropdown-content li a:hover {
    background-color: #8d4444; /* Darker hover background */
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Adjust header nav for dropdowns */
header nav ul li.dropdown {
    margin: 0 20px;
}

@media (max-width: 768px) {
    .dropdown-content {
        display: block; /* Force hide on mobile */
        position: static;
        background-color: transparent;
        box-shadow: none;
        min-width: auto;
        transform: none;
        text-align: center;
        padding: 0; /* Remove padding for mobile */
    }

    .dropdown-content li a {
        padding: 5px 0;
    }

    header nav.main-nav ul.dropdown-content {
        display: block; /* Force hide on mobile */
        position: static;
        background-color: transparent;
        box-shadow: none;
        min-width: auto;
        transform: none;
        text-align: center;
        padding: 0; /* Remove padding for mobile */
        height:auto;
    }
    header nav.main-nav ul.dropdown-content li a {
        padding-top:0;
    }

    .dropdown > a {
        display:none;
    }
}

/* Hamburger Menu Styles */
.nav-toggle {
    display: none; /* Hide the checkbox */
}

.nav-toggle-label {
    position: absolute;
    top: 1.5rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001; /* Above header */
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: #f5e8e0;
    height: 3px;
    width: 100%;
    border-radius: 3px;
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.nav-toggle-label span::before {
    content: '';
    top: -8px;
}

.nav-toggle-label span::after {
    content: '';
    top: 8px;
}

/* Hide regular nav on mobile */
@media (max-width: 768px) {
    header nav.main-nav ul {
        display: none; /* Hide by default */
        flex-direction: column;
        width: 100%;
        background-color: #8d4444; /* Dark background for mobile menu */
        position: absolute;
        top: 0;
        left: 0;
        padding-top: 60px; /* Space for header */
        height: 100vh; /* Full height */
        justify-content: flex-start;
        align-items: center;
        transform: translateX(-100%); /* Off-screen by default */
        transition: transform 0.3s ease-in-out;
    }

    header nav.main-nav ul li {
        margin: 5px 0;
        text-align:center;
    }

    header nav.main-nav ul li a {
        font-size: 1.2em;
    }

    /* Show nav when checkbox is checked */
    .nav-toggle:checked + .nav-toggle-label ~ .main-nav ul {
        display: flex;
        transform: translateX(0); /* Slide in */
    }

    /* Animate hamburger icon */
    .nav-toggle:checked + .nav-toggle-label span {
        transform: rotate(45deg);
    }

    .nav-toggle:checked + .nav-toggle-label span::before {
        top: 0;
        opacity: 0;
    }

    .nav-toggle:checked + .nav-toggle-label span::after {
        top: 0;
        transform: rotate(90deg);
    }
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
    .nav-toggle-label {
        display: none;
    }
    header nav.main-nav ul {
        /*display: flex !important; /* Override mobile display: none */
        transform: translateX(0) !important;
    }
}

/* Footer styles */
footer {
    background-color: #8d4444; /* Dark blue-grey */
    color: #f5e8e0;
    text-align: center;
    padding: 1.5rem 0; /* More padding */
    margin-top: 40px; /* More space from content */
}

footer .social-icons a {
    color: #f5e8e0;
    margin: 0 15px; /* More spacing */
    font-size: 1.8rem; /* Larger icons */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-icons a:hover {
    color: #ecf0f1; /* Lighter hover color */
    transform: translateY(-3px); /* Lift effect */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 10px 0;
    }
}

/* Hero Section Styles */
.hero {
    height: 88vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f5e8e0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25); /* Slightly darker overlay */
    z-index: -1;
}

.hero-content {
        margin-left: -50%;
    }
.hero-overlay-image {
    max-width: 500px;
}

.hero-overlay-title {
    font-family: 'troemys', 'Playfair Display', serif;
    font-size: 5em;
    margin:0;
}

.hero-logo {
    max-width: 80%; /* Adjust as needed */
    height: auto;
    filter: drop-shadow(0px 0px 10px rgba(0,0,0,0.7)); /* Add a subtle shadow to the logo */
}

/* Album Banner Styles */
.album-banner {
    height:300px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ffdde3;
}

/* Video Section Styles */
.video-section {
    padding: 60px 20px; /* More padding */
    text-align: center;
    background-color: #f5e8e0; /* Clean white background */
    margin-top: 0; /* Remove margin-top as body padding handles spacing */
}

.video-section h2 {
    font-size: 2.5em; /* Larger heading */
    margin-bottom: 30px;
    color: #8d4444;
}

.video-container {
    position: relative;
    width: 90%; /* Wider on desktop */
    /*max-width: 900px; /* Max width for larger screens */
    margin: 0 auto;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px; /* Rounded corners for video */
}

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

/* Newsletter Popup Styles */
.newsletter-popup-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: 2000; /* Above everything else */
    /* display: flex; */
    justify-content: center;
    align-items: center;
}

.newsletter-popup-content {
    background-color: #f5e8e0;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
    transform: translateY(20px); /* Start slightly below center */
    opacity: 0; /* Hidden initially */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.newsletter-popup-overlay.show .newsletter-popup-content {
    transform: translateY(0); /* Slide up to center */
    opacity: 1; /* Fade in */
}

.newsletter-popup-content .close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease;
}

.newsletter-popup-content .close-popup:hover {
    color: #5a7d7c;
}

.newsletter-popup-content h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #8d4444;
}

.newsletter-popup-content p {
    margin-bottom: 25px;
    font-size: 1.1em;
}

.newsletter-popup-content .newsletter-form {
    display: flex;
    flex-direction: column; /* Stack inputs vertically */
    gap: 15px;
    align-items: center;
}

.newsletter-popup-content .newsletter-form input[type="email"] {
    padding: 12px 20px;
    border: 1px solid #a0a0a0;
    border-radius: 25px;
    width: 100%; /* Full width within popup */
    max-width: 350px;
    font-size: 1em;
}

.newsletter-popup-content .newsletter-form button {
    padding: 12px 25px;
    background-color: #5a7d7c;
    color: #f5e8e0;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.newsletter-popup-content .newsletter-form button:hover {
    background-color: #4a6a69;
    transform: translateY(-2px);
}

#mc_embed_signup {
    font-size:1.15em;
}
#mc_embed_signup input {
    font-size:1.25em;
}
#mc_embed_signup .button {
    color: white;
    background: maroon;
    border: none;
    padding: 0.75em;
    border-radius: 10px;
    margin-top: 1.5em;
    line-height: 1em;
}


/* General page content styling for non-homepage sections */
.page-content {
    padding: 60px 40px 60px; /* More padding, adjust top for fixed header */
    max-width: 1200px; /* Wider content area */
    margin: 0 auto;
    background-color: #f5e8e0;
    min-height: calc(100vh - 220px); /* Adjust based on header/footer height */
    border-radius: 8px; /* Rounded corners for content blocks */
}

.page-content h1 {
    text-align: center;
    margin-bottom: 40px; /* More space */
    font-size: 5em; /* Larger heading */
    color: #8d4444;
}

.videos-page-content {
    text-align:center;
}

.videos-page-content iframe {
    width:80%;
    min-height: 50vh;
    margin-bottom:1em;
}

.music {    
    text-align: center;
}
.music-single {
    margin:0;
    border:solid 2px #8d4444;
    padding-top: 2.5em; 
    padding-bottom:2em;
    margin:1em;
}

@media (min-width: 768px) {
    .music {
        display: flex;
        flex-wrap: wrap;
    }
    .music-single {
        flex: 0 0 47%;
        max-width:49%;
    }
}

.music-single img {
    width: 80%;
}

.music-single i {
    /* display: block; */
    font-size: 3em;
    color: #8d4444;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    body {
        padding-top: 50px; /* Adjust for smaller header on mobile */
    }

    header {
        padding: 0.8rem 0;
    }

    .hero-content {
        margin-top:300px;
        margin-left:0;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        /* font-size: 1.4em; */
    }

    .hero-overlay-image {
        max-width: 300px;
    }

    .hero-overlay-title {
        font-size: 3em;
    }

    .album-banner {
        margin-top:1em;
        height:100px;
    }

    .video-section, .newsletter-section {
        padding: 30px 15px;
    }

    .video-container {
        width: 100%;
        border-radius: 0;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form input[type="email"],
    .newsletter-form button {
        width: 100%;
        max-width: 350px; /* Keep a max-width for better form appearance */
    }

    .page-content {
        padding: 80px 20px 40px;
        min-height: calc(100vh - 180px);
        border-radius: 0;
    }

    .page-content h1 {
        font-size: 4em;
    }
}


.page-content-contact {
    text-align:center;
}

.page-content-contact h2 {
    margin-bottom:0;
    margin-top:0.5em;
}

.page-content-press {
    text-align:center;
}

.page-content-press .review-content {
    color: #8d4444;
    font-size:1.25em;
    margin-bottom:0.25em;
}

.page-content-press .review-reviewer {
    margin-top:0;
}

.pswp-gallery a {

}

.pswp-gallery img {
    max-width:24%;
}

@media (max-width: 768px) {
    .pswp-gallery img {
        max-width:100%;
    }
}