/* Global Styles */
:root {
    --brand-color: #b3ac98;
    --accent-color: #403d39;
    --highlight-color: #e07a5f;
    --light-bg: #f9f9f9;
    --dark-text: #1a1a1a;
    --light-text: #ffffff;
    --border-radius: 8px;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* === NEW HERO BACKGROUND STYLE === */
.hero-background {
    position: relative;
    padding: 120px 20px;
    min-height: 450px;
    background-image: url('images/hero-sylvester.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 16px;
    overflow: hidden;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto 20px;
    color: #ffffff;
}

/* Hint GPU to prep background for scroll-linked changes */
.parallax {
    will-change: background-position, transform;
}

/* Desktop: allow fixed attachment for smoother illusion */
@media (min-width: 900px) {
    .hero-background.parallax {
        background-attachment: fixed;
    }
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
}

.hero-background.is-visible .hero-content {
    opacity: 1;
    transform: none;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    margin-top: 14px;
    font-size: 20px;
    color: #f0f0f0;
    max-width: 55ch;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content .hero-cta {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Improve default visibility of secondary button on dark hero */
.hero-content .button-secondary {
    color: #ffffff;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.hero-content .button-secondary:hover {
    background: #ffffff;
    color: #1a1a1a;
}

/* Clear focus outline for keyboard users */
.button-primary:focus-visible,
.button-secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7), 0 0 0 6px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {

    .hero-content h1,
    .hero-content p {
        color: #ffffff;
    }
}

@media (max-width: 600px) {
    .hero-background {
        padding: 80px 20px;
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }
}

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

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--brand-color);
    color: var(--dark-text);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container layout */
.container {
    display: flex;
    flex-direction: row;
    max-width: 1440px;
    /* ✅ Max width for desktop */
    margin: 0 auto;
    gap: 40px;
    padding: 40px 24px;
    flex-wrap: wrap;
    /* Helps with responsiveness */
    align-items: flex-start;
    /* ✅ Align items to top for better layout */
}

.product-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-header h1,
.product-header h2 {
    font-size: 26px;
    color: var(--accent-color);
    margin: 0;
}

.product-header .price {
    font-weight: bold;
    font-size: 20px;
    color: var(--accent-color);
    margin: 8px 0 0 0;
}

.product-image img {
    width: 100%;
    /* ✅ Responsive */
    height: auto;
    border-radius: 8px;
    display: block;
    max-width: 100%;
    /* Ensures it doesn't overflow */
}

.sample-pack-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--accent-color);
    color: var(--light-text);
    font-weight: bold;
    font-size: 24px;
    font-family: monospace;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    opacity: 0.95;
    text-align: center;
}

/* Product Info */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    padding-top: 66px;
    /* ✅ Align with image by offsetting title+price height */
}

h1 {
    font-size: 26px;
    color: var(--accent-color);
}

.price {
    font-weight: bold;
    font-size: 20px;
    color: var(--accent-color);
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls button {
    width: 32px;
    height: 32px;
    font-size: 18px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.quantity-controls button:hover {
    background-color: var(--highlight-color);
    color: white;
}

/* Buttons */
.add-to-cart,
.shop-pay {
    padding: 14px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: background-color 0.3s, color 0.3s;
}

.add-to-cart {
    background-color: white;
    color: var(--dark-text);
    border: 2px solid var(--dark-text);
}

.add-to-cart:hover {
    background-color: var(--dark-text);
    color: white;
}

.shop-pay {
    background-color: var(--accent-color);
    color: white;
}

.shop-pay:hover {
    background-color: var(--highlight-color);
}

.more-options {
    font-size: 14px;
    color: var(--dark-text);
    text-decoration: underline;
}

/* Text blocks */
.product-details {
    font-size: 15px;
    background-color: var(--light-bg);
    padding: 16px 18px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
    line-height: 1.6;
}

.product-details p {
    margin: 0;
}

.product-details p + p {
    margin-top: 14px;
}

/* Legacy styles for backwards compatibility */
.description,
.note {
    font-size: 15px;
    background-color: var(--light-bg);
    padding: 12px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
}

.site-header {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    background-color: transparent;
    text-align: left;
}

.site-header h2 {
    font-size: 20px;
    color: var(--accent-color);
}

.share-link {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius);
    border: 1px solid rgba(64, 61, 57, 0.15);
}

.share-link a {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.share-link a:hover {
    color: var(--highlight-color);
}

/* === Grid Section for Additional Tabs === */
.tabs-grid-section {
    max-width: 1440px;
    margin: 1px auto;
    padding: 24px 24px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--accent-color);
    text-align: left;
}

.tabs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px
}

.tab-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    padding: 20px;
}

.tab-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}


.tab-card h3 {
    font-size: 18px;
    color: var(--accent-color);
    margin: 10px 0 5px;
}

.tab-card p {
    font-size: 16px;
    color: var(--highlight-color);
    font-weight: bold;
}

.paypal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: linear-gradient(to bottom, #ffc439 0%, #f7b731 100%);
    color: #1a1a1a;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: none;
    font-size: 16px;
    transition: all 0.2s ease;
    margin-top: 10px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.paypal-button:hover {
    background: linear-gradient(to bottom, #ffb347 0%, #ffa726 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.paypal-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}



/* Responsive Styles */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        padding: 20px;
    }

    .product-image,
    .product-info {
        width: 100%;
    }

    .product-info {
        padding-top: 40px;
        /* ✅ Remove top padding on mobile */
    }



    h1 {
        font-size: 22px;
    }

    .price {
        font-size: 18px;
    }

    .add-to-cart,
    .shop-pay {
        width: 100%;
    }

    .tabs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 10px;
        gap: 20px;
    }



    .quantity-controls {
        justify-content: space-between;
    }

    .description,
    .note {
        font-size: 14px;
    }

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

}

/* Modern background */
body {
    background: radial-gradient(1200px 600px at 20% 0%, #c7c2b0 0%, #b3ac98 35%, #a7a08d 60%, #9a927e 100%);
}

/* Texture overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: .3;
    mix-blend-mode: overlay;
}

/* Hero layout */
.hero {
    max-width: 1440px;
    margin: 0 auto 20px;
    padding: 80px 20px 40px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-copy h1 {
    font-size: 44px;
    line-height: 1.1;
    color: var(--dark-text);
}

.hero-copy p {
    margin-top: 14px;
    font-size: 18px;
    color: #2a2a2a;
    max-width: 55ch;
}

.hero-cta {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button-primary {
    background: var(--dark-text);
    color: white;
    padding: 14px 18px;
    border-radius: 999px;
    text-decoration: none;
    border: 2px solid var(--dark-text);
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.button-secondary {
    background: transparent;
    color: var(--dark-text);
    padding: 14px 18px;
    border-radius: 999px;
    text-decoration: none;
    border: 2px solid var(--dark-text);
    transition: background .2s ease, color .2s ease, transform .15s ease;
}

.button-secondary:hover {
    background: var(--dark-text);
    color: white;
    transform: translateY(-1px);
}

/* Hero media */
.hero-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
}

.hero-media img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.02);
    transition: transform 6s ease;
}

.hero-media:hover img {
    transform: scale(1.08);
}

/* Audio element */
.audio-preview {
    width: 100%;
    margin-top: -4px;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Card micro-interaction */
.tab-card {
    transform: translateZ(0);
}

.tab-card:hover {
    transform: translateY(-6px) rotateX(0.25deg) rotateY(0.25deg);
}

/* Dark mode (automatic) */
:root {
    color-scheme: light dark;
}

/* === Footer === */
.site-footer {
    margin-top: auto;
    padding: 24px 24px 0;
    /* ✅ Match standard content padding */
    background: transparent;
    flex-shrink: 0;
}

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 24px 12px;
    /* ✅ Match standard content padding */
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    align-items: start;
    align-content: start;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px 16px 16px 16px;
    /* ✅ Rounded corners on all sides */
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .08);
    border: 1px solid rgba(0, 0, 0, 0.12);
    /* ✅ Border all around instead of just top */
}

.footer-brand h3 {
    color: var(--accent-color);
    font-size: 20px;
}

.footer-brand .tagline {
    color: #2a2a2a;
    opacity: .9;
    margin-top: 6px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 16px;
}

.footer-links h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-links a {
    color: var(--dark-text);
    text-decoration: none;
    opacity: .9;
    display: block;
    padding: 4px 0;
}

.footer-links a:hover {
    color: var(--highlight-color);
}

.footer-bottom {
    padding: 12px 24px 24px;
    /* ✅ Match standard content padding */
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    color: #2a2a2a;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 12px;
    font-size: 14px;
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--highlight-color);
}

.footer-bottom .dot {
    opacity: .5;
}

@media (prefers-color-scheme: dark) {
    .footer-inner {
        background: rgba(0, 0, 0, 0.6);
        box-shadow: 0 -8px 30px rgba(0, 0, 0, .45);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-brand .tagline,
    .footer-bottom {
        color: #d9d9d9;
    }

    .footer-links a {
        color: #eaeaea;
    }
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: radial-gradient(1200px 600px at 20% 0%, #2c2b27 0%, #262520 40%, #1f1e1a 100%);
        color: #eaeaea;
    }

    .section-title,
    .site-header h2,
    h1,
    .hero-copy h1,
    .product-header h1,
    .product-header h2 {
        color: #f2f2f2;
    }

    .product-header .price {
        color: #f2f2f2;
    }

    .description,
    .note,
    .tab-card,
    .product-details {
        background: rgba(255, 255, 255, 0.06);
        box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
    }

    .add-to-cart {
        background: transparent;
        color: #eaeaea;
        border-color: #eaeaea;
    }

    .button-secondary {
        color: #eaeaea;
        border-color: #eaeaea;
    }

    .share-link {
        background-color: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .share-link a {
        color: #eaeaea;
    }

    .share-link a:hover {
        color: #ffc439;
    }
}

/* Responsive hero */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 60px;
        gap: 24px;
    }

    .hero-copy h1 {
        font-size: 36px;
    }
}