/* style.css - Foundational Styles for Visionary Journeys */

/* -------------------
   Global Variables & Reset
   ------------------- */
:root {
    --font-primary: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif; 
    --font-secondary: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif; 

   /* Refined Earth-Tone Palette */
    --color-bg-cream: #FCFAF8; /* Bright, clean warm white */     
    --color-bg-alt: #EBE4DB;   /* Distinct, deeper stone tone */
    --color-text-charcoal: #1E1E1E;     
    --color-accent-terracotta: #E05330;
    
    --color-box-bg: rgba(30, 30, 30, 0.05); 
    --color-box-bg-hover: rgba(30, 30, 30, 0.1);
    --color-text-muted: #555555;        
    --color-white: #FFFFFF;
    
    --header-height: 100px; 
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); 
}

body {
    font-family: var(--font-primary); 
    background-color: var(--color-bg-cream);
    color: var(--color-text-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Global Content Offset --- */
main {
    padding-top: var(--header-height); 
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--color-text-charcoal);
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
    color: var(--color-text-muted);
}

/* --- Heading Weights --- */
h1, h2, h3, h4 {
    font-family: var(--font-primary); 
    margin-bottom: 0.8em;
    color: var(--color-text-charcoal); 
    font-weight: 700; 
}

.hub-box h3,
.footer-nav h4 {
    font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1.2em;
    color: var(--color-text-charcoal);
    font-family: var(--font-primary); 
}

i, em {
    font-style: italic;
    font-weight: 700; 
}
strong {
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* --- Button Structure --- */
.button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px; 
    font-family: var(--font-primary); 
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.button-primary {
    background-color: var(--color-text-charcoal);
    color: var(--color-bg-cream);
    border: 2px solid var(--color-text-charcoal);
}

.button-primary:hover {
    background-color: transparent;
    color: var(--color-text-charcoal);
    transform: translateY(-2px);
}

.button-secondary {
    background-color: transparent;
    color: var(--color-text-charcoal); 
    border: 2px solid var(--color-text-charcoal); 
}

.button-secondary:hover {
    background-color: var(--color-text-charcoal);
    color: var(--color-bg-cream);
}

/* -------------------
   Global Header (Stone)
   ------------------- */
.global-header {
    background-color: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-accent-terracotta);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    flex: 1; /* Forces equal width against the right column */
}

.utility-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Pushes the icons to the far right edge */
    gap: 20px; 
    flex: 1; /* Forces equal width against the left column */
}
.header-logo {
    height: 65px; 
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.3);
}

.header-brand-text {
    max-width: 120px; /* Or whatever your new width is */
    height: auto;
    margin-left: 15px;
    margin-top: 5px; /* Add this to push it down */
    display: inline-block;
    vertical-align: middle;
}

/* --- NAVIGATION --- */
.main-nav {
    margin: 0 auto; 
}

.main-nav > ul {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 8px 20px; 
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    color: var(--color-text-charcoal);
    font-family: var(--font-primary); 
    font-weight: 400; 
    font-size: 1rem; 
    text-decoration: none;
    transition: all 0.2s ease;
    padding-bottom: 6px;
    border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-text-charcoal);
    border-bottom-color: var(--color-text-charcoal);
}

/* --- Utility Icons --- */
.utility-nav {
    display: flex;
    align-items: center;
    gap: 20px; 
    flex-shrink: 0; 
}

.utility-nav button,
.utility-nav a {
    background: none;
    border: none;
    color: var(--color-text-charcoal);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.utility-nav button:hover,
.utility-nav a:hover {
    color: var(--color-text-muted);
}

.cart-count {
    background-color: var(--color-accent-terracotta);
    color: var(--color-white);
    font-size: 0.7rem;
    border-radius: 50%;
    padding: 2px 6px;
    font-weight: bold;
    margin-left: 4px;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-charcoal);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* --- Mobile Menu Drawer --- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; 
    right: -100%; 
    width: 280px; 
    height: 100vh;
    background-color: var(--color-bg-alt);
    border-left: 1px solid rgba(30, 30, 30, 0.1);
    padding: 100px 30px 30px;
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
    right: 0;
}

.mobile-menu nav ul {
    list-style: none;
    padding: 0;
}

.mobile-menu nav ul li {
    margin-bottom: 20px;
}

.mobile-menu nav a {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-charcoal);
}

.mobile-menu nav a:hover,
.mobile-menu nav a.active {
     text-decoration: underline;
     text-underline-offset: 4px;
}

.mobile-utility {
    margin-top: 30px;
    border-top: 1px solid rgba(30, 30, 30, 0.1);
    padding-top: 20px;
}

.mobile-utility a, 
.mobile-utility button {
    margin-right: 20px;
    color: var(--color-text-charcoal);
    background: none; 
    border: none; 
    cursor: pointer;
}

/* -------------------
   Hero Section (Cream)
   ------------------- */
.hero-section {
    min-height: auto; 
    background-color: var(--color-bg-cream); 
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 20px 15px;
    width: 100%;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
   display: block; 
   margin: 0 0 10px 0;
   padding: 0;
   line-height: 0; 
}

.hero-content h1 img {
    width: 100%;
    max-width: 550px;
    height: auto;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 1.8rem; 
    color: var(--color-text-charcoal); 
    margin-top: 0; 
    margin-bottom: 15px; 
    font-weight: 400; 
    line-height: 1.0; 
}

.hero-content .tagline {
    font-size: 1.1rem; 
    color: var(--color-text-charcoal); 
    margin-top: 0; 
    margin-bottom: 15px; 
    font-family: var(--font-primary); 
}

.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    max-width: 600px; 
    width: 100%; 
    background: #000;
    border-radius: 8px; 
    border: 1px solid rgba(30, 30, 30, 0.1);
    margin-bottom: 15px; 
}

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

.hero-buttons {
    margin-bottom: 0; 
    margin-top: 0; 
}

.hero-buttons .button {
    margin: 10px;
}

/* -------------------
   Introduction Section (Stone)
   ------------------- */
.intro-section {
    padding: 40px 0; 
    background-color: var(--color-bg-alt);
    text-align: center;
}

.intro-section .container {
    padding: 0 20px; 
}

.intro-section .container p {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1rem; 
    color: var(--color-text-charcoal);
    line-height: 1.7;
    font-family: var(--font-primary); 
    margin-bottom: 1.2em;
}

.intro-section .container p:last-child {
    margin-bottom: 0;
}

/* -------------------
   Action Hub Section (Cream)
   ------------------- */
.action-hub-section {
    padding: 40px 0; 
    background-color: var(--color-bg-cream); 
}

.action-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px; 
    margin: 0 auto;
    padding: 0 20px; 
}

.hub-box {
    background-color: var(--color-bg-alt);
    padding: 30px;
    border-radius: 12px; 
    text-align: left; 
    text-decoration: none !important; 
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(30, 30, 30, 0.1); 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.hub-box:hover {
    transform: translateY(-5px);
    background-color: var(--color-white);
}

.hub-icon {
    font-size: 1.8rem; 
    color: var(--color-text-charcoal);
    margin-bottom: 20px;
    background-color: var(--color-box-bg);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hub-box h3, .hub-box p {
    color: var(--color-text-charcoal); 
}

.hub-box h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700; 
    line-height: 1.3; 
}

.hub-box p {
    font-size: 0.9rem; 
    margin-bottom: 20px;
    flex-grow: 1; 
    line-height: 1.3; 
    color: var(--color-text-muted);
}

.explore-link {
    font-family: var(--font-primary); 
    font-weight: bold;
    color: var(--color-text-charcoal);
    font-size: 0.9rem;
    text-decoration: none !important; 
    display: inline-block; 
}
.hub-box:hover .explore-link {
    text-decoration: underline !important; 
}

.explore-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.hub-box:hover .explore-link i {
    transform: translateX(5px);
}

/* -------------------
   Testimonial Section (Cream)
   ------------------- */
.testimonial-section {
    padding: 60px 0;
    background-color: var(--color-bg-cream);
    text-align: center; 
    border-top: 1px solid rgba(30, 30, 30, 0.05);
    border-bottom: 1px solid rgba(30, 30, 30, 0.05);
}

.testimonial-section blockquote {
    font-family: var(--font-primary); 
    font-size: 1rem; 
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 20px;
    color: var(--color-text-charcoal);
    position: relative;
    padding-left: 0; 
    text-align: center; 
}

.testimonial-section blockquote::before {
    content: '\201C';
    font-size: 8rem; 
    color: rgba(30, 30, 30, 0.1); 
    position: absolute;
    left: 50%; 
    transform: translateX(-50%); 
    top: -30px;
    line-height: 1;
    z-index: 1;
}

.testimonial-section blockquote > * {
    position: relative;
    z-index: 2; 
}

.testimonial-section footer {
    font-size: 1rem;
    font-style: normal;
    font-family: var(--font-primary); 
    color: var(--color-text-charcoal); 
    margin-top: 20px;
    text-align: center; 
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: bold;
}

.testimonial-section footer a {
    color: var(--color-text-charcoal);
    text-decoration: underline; 
    text-underline-offset: 3px;
}

.testimonial-section footer a:hover {
    color: var(--color-text-muted);
}

/* --- New Review Author Block --- */
.review-author-block {
    display: flex;
    align-items: center;
    gap: 20px;
}

.review-author-block .lightbox {
    flex-shrink: 0;
    margin-top: 0;
}

.reviewer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(30, 30, 30, 0.1);
    display: block;
    transition: transform 0.3s ease;
}

.reviewer-avatar:hover {
    transform: scale(1.3);
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.reviewer-details a {
    margin-top: 5px;
}

.testimonial-section .button-secondary {
    margin-top: 25px; 
}

/* -------------------
   Global Footer (Cream)
   ------------------- */
.global-footer {
    background-color: var(--color-bg-cream);
    color: var(--color-text-charcoal);
    padding: 40px 0 0 0; 
    border-top: 1px solid var(--color-accent-terracotta);
}

.footer-container {
    display: grid;
    grid-template-columns: auto auto; 
    justify-content: space-around;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 40px;
}

.footer-brand p, .footer-nav a, .footer-bottom {
    font-family: var(--font-primary); 
}

.footer-brand .footer-logo {
    height: 60px; 
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.footer-brand .footer-logo:hover {
    transform: scale(1.3);
}

.footer-brand .footer-brand-text {
    height: 35px; 
    margin-bottom: 15px;
    display: block; 
}

.footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.social-icons a {
    color: var(--color-text-charcoal);
    font-size: 1.4rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-text-muted);
}

.footer-nav h4 {
    color: var(--color-text-charcoal);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700; 
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--color-text-charcoal);
    text-decoration: underline;
}

/* The Dark Anchor */
.footer-bottom {
    background-color: var(--color-text-charcoal);
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--color-bg-cream);
}

.footer-bottom p {
    color: var(--color-bg-cream);
    margin: 0;
}

/* -------------------
   UI Utilities (Scroll to Top & Lightbox defensive CSS)
   ------------------- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-text-charcoal);
    color: var(--color-bg-cream);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(30, 30, 30, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top.visible:hover {
    background-color: var(--color-text-muted);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Hide stray unstyled script elements temporarily */
.close-button, .mfp-close {
    display: none; 
}

/* -------------------
   Responsiveness
   ------------------- */
@media (max-width: 992px) {
    .main-nav, .utility-nav { display: none !important; }
    .hamburger-menu { display: block !important; margin-top: 0; }
    .logo-link .header-brand-text { display: none !important; }
    .action-hub-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; text-align: center; }
    .footer-brand .logo-link, .footer-brand .social-icons { justify-content: center; }
}

@media (max-width: 768px) {
    .global-header { height: 60px; padding: 10px 0; }
    .header-logo { height: 40px; width: auto; }
    .header-brand-text { height: 24px; margin-top: 2px; display: block; }
    .hamburger-menu { font-size: 1.3rem; }
    main { padding-top: 60px; }
    html { scroll-padding-top: 60px; }
    .header-container { justify-content: space-between; }
    .logo-link { flex-grow: 1; }

    .hero-section { padding: calc(var(--header-height) - 20px) 20px 40px; }
    .hero-content h1 { margin-bottom: 0.1em; margin-top: -50px; }
    .hero-content h1 img { max-width: 250px; } 
    .hero-content h2 { font-size: 1.25rem; margin: 0.3em 0; } 
    .hero-content .tagline { font-size: 1.15rem; margin-top: 0; margin-bottom: 0.5em; } 
    
   .hero-buttons { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 15px; }
    .hero-buttons .button { margin: 0; padding: 12px 24px; width: auto; }

    .action-hub-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 10px; }
    .hub-box { padding: 12px; min-height: 150px; }
    .hub-icon { width: 35px; height: 35px; font-size: 1.3rem; }
    .hub-box h3 { font-size: 0.95rem; }
    .hub-box p { font-size: 0.75rem; }

    .testimonial-section { padding: 40px 0; }
    .testimonial-section blockquote { font-size: 1rem; }
    .testimonial-section blockquote::before { display: none; }

    .footer-container { grid-template-columns: 1fr; text-align: center; }
}

/* -------------------
   JS-Driven Classes
   ------------------- */
body.mobile-menu-open { overflow: hidden; }
.mobile-menu.active { display: block; right: 0; }

/* Profile image scaling */
@media (max-width: 768px) {
    .profile-photo-container {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 0 20px 0 !important;
    }
    .profile-photo-container img {
        max-width: 250px !important; 
        width: 100% !important;
        height: auto !important;
        float: none !important; 
        margin: 0 auto !important;
        border-radius: 4px;
    }
}

/* -------------------
   Dynamic Lightbox Styles
   ------------------- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translate(0px, 0px);
    transition: transform 0.3s ease;
    cursor: zoom-in; 
    
    /* Crucial: Prevent browser hijacking pointer events */
    touch-action: none; 
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-img.dragging {
    transition: none !important; /* Removes rubber-banding lag during manual drag */
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1) translate(0px, 0px);
}

.lightbox-overlay.active .lightbox-img.zoomed {
    /* Base zoom scale; translation is handled dynamically via inline styles */
    transform: scale(1.8) translate(0px, 0px);
    cursor: grab; 
}

.lightbox-overlay.active .lightbox-img.zoomed:active {
    cursor: grabbing; 
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--color-bg-cream);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    display: block !important; 
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--color-accent-terracotta);
}

/* Custom Zoom Button */
.lightbox-zoom-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(30, 30, 30, 0.7);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 2100;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox-zoom-btn:hover {
    background: rgba(30, 30, 30, 0.9);
    transform: scale(1.1);
}

/* Custom Large Navigation Elements */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #FFFFFF;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 2100;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
    display: block;
}

.lightbox-nav:hover {
    color: var(--color-accent-terracotta);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: var(--color-bg-cream);
    font-size: 1.2rem;
    font-weight: bold;
    font-family: var(--font-primary);
    z-index: 2100;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .lightbox-nav { font-size: 40px; padding: 10px; }
    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }
    .lightbox-img { max-width: 95%; max-height: 80vh; }
    .lightbox-counter { bottom: 15px; left: 15px; font-size: 1rem; }
    .lightbox-zoom-btn {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 1rem;
    }
}

/* --- New Page Layout Grid --- */
.main-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Two-column layout */
    gap: 40px;
    padding: 40px 0;
}

/* Ensure background colours fill the full height */
main {
    background-color: var(--color-bg-cream);
    min-height: 80vh;
}

@media (max-width: 768px) {
    .main-content-grid { grid-template-columns: 1fr; }
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.album-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--color-white);
    padding: 20px;
    border: 1px solid rgba(30,30,30,0.1);
    border-radius: 8px;
    position: relative; 
}
.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(30, 30, 30, 0.1);
}
.album-card img {
    border-radius: 4px;
    margin-bottom: 15px;
    width: 100%;
    height: auto;
}
.album-card-header {
    margin-bottom: 10px;
}
.album-card-header h3 {
    font-size: 1.25rem;
    margin-bottom: 2px;
    line-height: 1.2;
}
.release-year {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.album-excerpt {
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 20px;
    font-style: italic;
}
.button-buy {
    width: 100%;
}
.album-card a.button-buy::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* --- Row-Based Product Layout --- */
.product-row {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(30, 30, 30, 0.1);
    box-shadow: 0 4px 15px rgba(30, 30, 30, 0.05);
}

.product-row:last-child {
    margin-bottom: 0;
}

.product-media {
    flex: 0 0 350px; /* Matches standard Bandcamp embed width */
}

.product-media img, 
.product-media iframe {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.product-description {
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(30, 30, 30, 0.1);
    padding-top: 20px;
}

.product-actions .button {
    margin: 0; /* Override global button margins if any */
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Mobile Responsiveness for Product Rows */
@media (max-width: 768px) {
    .product-row {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .product-media {
        flex: auto;
        max-width: 100%;
    }
}

/* -------------------
   Custom Audio Player Engine (Ported from V31)
   ------------------- */

.audio-player-container {
    background-color: var(--color-white);
    border: 1px solid rgba(30, 30, 30, 0.1); 
    padding: 15px;
    border-radius: 8px; 
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(30, 30, 30, 0.05);
}

.player-controls { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.play-pause-btn {
    flex-shrink: 0;
    width: 50px; 
    height: 50px; 
    border-radius: 50%;
    background-color: var(--color-accent-terracotta); 
    border: none; 
    color: var(--color-bg-cream);
    font-size: 1.2rem; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    transition: transform 0.2s ease, background-color 0.2s;
}

.play-pause-btn:hover { 
    transform: scale(1.1); 
    background-color: var(--color-text-charcoal); 
}

.progress-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.progress-bar {
    width: 100%; 
    height: 6px; 
    background-color: rgba(30, 30, 30, 0.1);
    border-radius: 3px; 
    position: relative; 
    cursor: pointer; 
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%; 
    background-color: var(--color-accent-terracotta); 
    width: 0%; 
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem; 
    color: var(--color-text-muted); 
    font-family: var(--font-primary);
}

.tracklist {
    list-style: none; 
    padding: 0; 
    margin: 0 0 20px 0; 
    text-align: left;
    max-height: 250px; 
    overflow-y: auto; 
    border: 1px solid rgba(30, 30, 30, 0.1); 
    background-color: var(--color-white);
    border-radius: 4px;
}

.track-btn {
    display: flex; 
    justify-content: space-between; 
    width: 100%;
    padding: 10px 15px; 
    background: none; 
    border: none;
    border-bottom: 1px solid rgba(30, 30, 30, 0.05); 
    color: var(--color-text-muted); 
    font-family: var(--font-primary);
    text-align: left; 
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.track-btn:hover { 
    background-color: var(--color-bg-alt); 
    color: var(--color-text-charcoal); 
}

.track-btn.active {
    color: var(--color-accent-terracotta); 
    background-color: var(--color-bg-cream);
    font-weight: bold; 
    border-left: 3px solid var(--color-accent-terracotta);
}

.track-btn span {
    pointer-events: none;
}

/* -------------------
   Individual Article Layouts
   ------------------- */

.article-main { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: calc(var(--header-height) + 40px) 20px 40px; 
}

.article-content p { 
    margin-bottom: 1.5em; 
    line-height: 1.8; 
}

.pull-quote { 
    border-left: 4px solid var(--color-accent-terracotta); 
    padding-left: 20px; 
    font-style: italic; 
    color: var(--color-text-charcoal); 
    margin: 30px 0; 
    font-size: 1.2rem; 
    background: var(--color-bg-alt);
    padding: 20px;
}

.article-navigation { 
    margin-top: 40px; 
    display: flex; 
    justify-content: space-between; 
    border-top: 1px solid rgba(30,30,30,0.1); 
    padding-top: 20px; 
}

.editor-note {
    background-color: var(--color-bg-alt);
    padding: 15px;
    border-left: 4px solid var(--color-text-charcoal);
    margin-bottom: 30px;
    font-size: 0.95rem;
    font-style: italic;
}

.timeline-entry {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 2px solid var(--color-accent-terracotta);
}

.timeline-date {
    font-weight: bold;
    color: var(--color-accent-terracotta);
    display: block;
    margin-bottom: 5px;
}

.data-box {
    background-color: var(--color-bg-alt);
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
}

.data-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.data-box ul {
    list-style: disc;
    margin-left: 20px;
}

.data-box li {
    margin-bottom: 8px;
}
.split-intent-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 40px;
}
.intent-box {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    border: 2px solid var(--color-accent-terracotta);
    border-radius: 8px;
    padding: 25px;
    text-decoration: none !important;
    color: var(--color-text-charcoal) !important;
    display: block;
    background-color: var(--color-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.intent-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(30, 30, 30, 0.1);
}
.intent-box h2 {
    margin-top: 0;
    text-align: center;
    font-size: 1.5rem;
}
.intent-box ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}
.intent-box li {
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.intent-or {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-text-muted);
}
/* -------------------
   Kunaki Grid Order Form
   ------------------- */
.kunaki-grid {
    display: grid;
    grid-template-columns: 80px 1fr auto 80px;
    gap: 20px;
    align-items: center;
    background-color: var(--color-white);
    border: 1px solid rgba(30, 30, 30, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.kunaki-row {
    display: contents; 
}

.kunaki-row > div {
    padding: 15px 0;
    border-bottom: 1px solid rgba(30, 30, 30, 0.05);
}

.kunaki-row:last-child > div {
    border-bottom: none;
}

.kunaki-cover img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(30,30,30,0.1);
}

.kunaki-info {
    padding-right: 20px !important;
}

.kunaki-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--color-text-charcoal);
}

.kunaki-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.kunaki-qty input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(30,30,30,0.2);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    text-align: center;
    color: var(--color-text-charcoal);
}

/* Compact Audio Player Modifier */
.audio-player-container.compact-player {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.audio-player-container.compact-player .progress-container,
.audio-player-container.compact-player .time-display {
    display: none !important;
}

/* Mobile Stacking Rules */
@media (max-width: 768px) {
    .kunaki-grid {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }
    
    .kunaki-row {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: 80px 1fr;
        gap: 15px;
        padding: 15px 0;
        border-bottom: 1px solid rgba(30, 30, 30, 0.05);
        align-items: center;
    }
    
    .kunaki-row > div { 
        padding: 0; 
        border: none; 
    }
    
    .kunaki-info {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        padding-right: 0 !important;
    }
    
    .kunaki-player { 
        grid-column: 1 / 2; 
        grid-row: 2 / 3;
        display: flex; 
        justify-content: center; 
    }
    
    .kunaki-qty { 
        grid-column: 2 / 3; 
        grid-row: 2 / 3;
    }
}