/* Glenn Cardier - Global Stylesheet */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

body {
    margin: 0;
    padding: 0 15px 15px;
    background-color: #1E1605;
    color: #F0D9AB;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a:link { color: #C99551; }
a:visited { color: #999999; }
a:hover { color: #FF9900; }
a:active { color: #FFCC00; }

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

iframe {
    border: 0;
}

hr {
    border: 0;
    border-top: 1px solid #C99551;
    opacity: 0.4;
    margin: 28px 0;
}

.site-container {
    max-width: 820px;
    margin: 0 auto;
}

/* Sticky Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #1E1605;
    border-bottom: 1px solid rgba(201, 149, 81, 0.35);
    padding: 12px 0 8px;
    margin-bottom: 18px;
    text-align: center;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.header-logo {
    max-width: 360px;
    width: 100%;
    height: auto;
    display: block;
}

.menu-toggle {
    display: none;
    background: #2C2108;
    color: #F0D9AB;
    border: 1px solid #C99551;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.menu-toggle:hover {
    color: #FF9900;
    border-color: #FF9900;
}

.hamburger-bars {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
}

.hamburger-bars span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: currentColor;
}

.site-nav {
    display: block;
    font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    margin-top: 6px;
}

.site-nav .nav-row {
    margin-bottom: 2px;
}

.site-nav .sep {
    margin: 0 5px;
    color: #F0D9AB;
}

.site-nav a[aria-current="page"] {
    color: #FF9900;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.page-title {
    font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: normal;
    text-transform: uppercase;
    margin: 8px 0 16px;
    text-align: center;
}

/* Text & Utility Classes */
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.accent-orange { color: #FF6600; }
.accent-orange-bold { color: #FF6600; font-weight: bold; }
.accent-yellow-italic { color: #FFFF33; font-style: italic; }
.album-title { font-size: 20px; font-weight: bold; margin: 0 0 8px; }
.album-year { font-size: 14px; font-weight: normal; }

/* Intro & Bundles (Music Page) */
.page-intro {
    max-width: 700px;
    margin: 0 auto 20px;
    text-align: center;
}

.bundles-box {
    text-align: center;
    background-color: #251B07;
    border: 1px solid rgba(201, 149, 81, 0.35);
    border-radius: 6px;
    padding: 16px;
    margin: 20px 0;
}

.bundle-item {
    margin-bottom: 18px;
}

.bundle-item:last-of-type {
    margin-bottom: 10px;
}

.bundle-heading {
    font-size: 18px;
    margin: 0 0 4px;
}

.jump-links {
    text-align: center;
    margin: 20px 0;
    line-height: 1.8;
}

/* Bio Float Image */
.bio-section::after {
    content: "";
    display: table;
    clear: both;
}

.float-right-img {
    float: right;
    margin: 0 0 15px 15px;
    max-width: 416px;
}

.promo-banner {
    text-align: center;
    margin: 10px 0 20px;
}

.promo-banner img {
    margin-top: 6px;
}

.award-badge {
    text-align: center;
    margin: 25px 0;
}

/* Embeds */
.bandcamp-bar {
    text-align: center;
    margin: 25px 0;
}

.bandcamp-bar iframe {
    border: 0;
    width: 100%;
    max-width: 550px;
    height: 142px;
    margin-top: 8px;
}

.bandcamp-track-embed {
    border: 0;
    width: 100%;
    max-width: 380px;
    height: 42px;
    margin: 6px auto;
    display: block;
}

.bandcamp-album-embed {
    border: 0;
    width: 350px;
    max-width: 100%;
    height: 470px;
    display: block;
}

.spotify-embed {
    border: 0;
    width: 300px;
    max-width: 100%;
    height: 380px;
    display: block;
    margin: 8px auto 0;
}

/* Two-Column Release / Album Block */
.release-block {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    margin-top: 12px;
}

.release-cover {
    flex: 0 0 400px;
    min-width: 0;
    max-width: 100%;
}

.release-cover.wide-cover {
    flex: 0 0 420px;
}

.release-cover.embed-cover {
    flex: 0 0 350px;
}

.release-info {
    flex: 1;
    min-width: 0;
}

.release-secondary {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    margin-top: 20px;
}

.release-extra-photos {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.cart-form {
    margin: 10px 0 14px;
}

.cart-form input[type="submit"] {
    cursor: pointer;
    padding: 5px 12px;
    font-weight: bold;
}

.sample-box {
    text-align: center;
    margin: 14px 0;
}

/* Apple Music SVG Pill Button */
.apple-music-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background-color: #2C2108;
    border: 1px solid #C99551;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.apple-music-btn:link,
.apple-music-btn:visited {
    color: #F0D9AB;
}

.apple-music-btn:hover {
    color: #FF9900;
    border-color: #FF9900;
    transform: translateY(-1px);
}

.apple-music-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Responsive YouTube Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 25px 0;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
.site-footer {
    margin-top: 35px;
    padding: 20px 0 25px;
    border-top: 1px solid rgba(201, 149, 81, 0.35);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #2C2108;
    border: 1px solid rgba(201, 149, 81, 0.45);
    color: #C99551;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
    color: #FF9900;
    border-color: #FF9900;
    transform: translateY(-2px);
}

.footer-socials svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-contact {
    text-align: right;
    font-size: 13px;
    line-height: 1.5;
}

.footer-contact p {
    margin: 0 0 8px;
}

.footer-credit {
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
    padding-top: 14px;
    border-top: 1px solid rgba(201, 149, 81, 0.2);
}

/* Floating Scroll-to-Top Arrow (appears after 600px scroll) */
.scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2C2108;
    border: 1px solid #C99551;
    color: #F0D9AB;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.scroll-to-top:link,
.scroll-to-top:visited {
    color: #F0D9AB;
}

.scroll-to-top:hover {
    color: #FF9900;
    border-color: #FF9900;
    transform: translateY(-2px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 75px;
    }

    body {
        padding: 0 12px 12px;
    }

    .site-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 0;
        text-align: left;
    }

    .header-top {
        flex: 1;
        justify-content: flex-start;
        margin-bottom: 0;
        min-width: 0;
    }

    .header-logo {
        max-width: 220px;
    }

    .menu-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #2C2108;
        border: 1px solid rgba(201, 149, 81, 0.5);
        border-radius: 6px;
        padding: 10px 14px;
        margin-top: 4px;
        max-height: 75vh;
        overflow-y: auto;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
        text-align: center;
    }

    .site-nav.open {
        display: block;
    }

    .site-nav .nav-row {
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }

    .site-nav .nav-row + .nav-row {
        border-top: 1px solid rgba(201, 149, 81, 0.25);
        margin-top: 6px;
        padding-top: 6px;
    }

    .site-nav a {
        display: block;
        padding: 6px 0;
        text-decoration: none;
    }

    .site-nav .sep {
        display: none;
    }

    .float-right-img {
        float: none;
        display: block;
        margin: 0 auto 15px;
        width: 100%;
    }

    .release-block,
    .release-secondary {
        flex-direction: column;
    }

    .release-cover,
    .release-cover.wide-cover,
    .release-cover.embed-cover {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .bandcamp-album-embed {
        margin: 0 auto;
    }

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

    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-contact {
        text-align: center;
    }

    .scroll-to-top {
        right: 14px;
        bottom: 14px;
        width: 38px;
        height: 38px;
    }
}