:root {
    --bg-primary: #0B0F14;
    --bg-card: #11161D;
    --text-primary: #FFFFFF;
    --text-secondary: #D1D5DB;
    --accent-gold: #D4A373;
    --gold-gradient: linear-gradient(135deg, #D4A373 0%, #B8935A 100%);
    --gold-glow: 0 10px 40px rgba(212, 163, 115, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --section-padding: 6rem 0;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Typography Scale */
h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 700;
}

.display-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #000000;
    box-shadow: var(--gold-glow);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(212, 163, 115, 0.3);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(212, 163, 115, 0.05);
}

/* Header Refinement */
header {
    background: rgba(11, 15, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Hero Section Refinement - Heritage + Premium Composite */
.hero-section {
    min-height: 85vh; /* Balanced height */
    display: flex;
    align-items: flex-start; /* Move content higher */
    padding-top: 120px; /* Precise gap from header */
    position: relative;
    overflow: hidden;
    background-color: #0B0F14;
}

.hero-bg-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-master-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%; /* Shift focus to the right product */
    filter: brightness(1.05) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-layout-container {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: flex-start; /* Align text higher */
    width: 100%;
    min-height: calc(90vh - 80px);
}

.hero-content {
    max-width: 520px;
    padding: 0; /* Minimized spacing */
    text-align: left !important;
}

.hero-content h1, .hero-content p {
    text-align: left !important;
}

.hero-actions {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 500px;
    opacity: 0.85;
}

/* Product Cards */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: 4px;
    padding: 0; /* Removing padding for seamless image look */
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.product-card > a {
    display: block;
    padding: 2.5rem;
}

.product-image-container {
    margin: -2.5rem -2.5rem 2rem -2.5rem; /* Full bleed image top */
    aspect-ratio: 1/1;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.benefit-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.benefit-title {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.benefit-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Final CTA Section */
.cta-section {
    padding: 12rem 0;
    text-align: center;
    position: relative;
    background-color: #0B0F14;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at center, rgba(212, 163, 115, 0.08) 0%, transparent 70%),
        url('../img/hero-coffee.png') center/cover no-repeat;
    opacity: 0.3;
    filter: blur(5px) grayscale(0.5);
    z-index: 0;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, #0B0F14 90%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 10;
}

/* Responsive Gaps Fix */
section {
    padding: var(--section-padding);
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 0;
    }
    .display-title {
        font-size: 2.2rem;
    }
    .hero-section {
        min-height: 85vh !important;
        display: block !important;
        padding-top: 120px;
        text-align: center !important;
        position: relative;
        overflow: hidden;
        background: #000 !important; /* Pure black to blend with image edges */
    }
    .hero-bg-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
        background: #000 !important;
    }
    .hero-master-img {
        object-fit: cover !important;
        object-position: center !important;
        opacity: 1 !important; /* Restore full vibrant colors */
    }
    .hero-overlay {
        /* Premium radial fade to pure black at the edges */
        background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 60%, #000 100%) !important;
        z-index: 2 !important;
    }
    .hero-layout-container {
        position: relative !important;
        z-index: 10 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 2rem !important;
    }
    .hero-content {
        max-width: 100% !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    .hero-content h1, .hero-content p {
        text-align: center !important;
        text-shadow: 0 4px 20px rgba(0,0,0,0.8); /* Added shadow for readability on 1.0 opacity */
    }
    .hero-actions {
        justify-content: center !important;
    }
}
