/* Premium Coffee Experience Styles */

/* Base Container Styles */
:root {
    --primary-color: #2c1810;
    --secondary-color: #d4a574;
    --text-light: #666;
    --text-dark: #333;
    --bg-light: #f8f6f3;
}

.premium-coffee-experience {
    width: 100%;
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
    position: relative;
}

/* Hero Section */
.hero-premium {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c1810 100%);
    overflow: hidden;
    padding: 60px 0;
}

/* Subtle animated background */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
}

.coffee-steam-bg {
    width: 100%;
    height: 100%;
    background: url('../images/coffee-pattern.svg') repeat;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

/* Typography - Professional */
.hero-headline {
    margin-bottom: 1.5rem;
}

.headline-small {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.headline-large {
    display: block;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.hero-subtext {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Quality Meter - Interactive Element */
.quality-meter {
    max-width: 500px;
    margin: 3rem auto;
}

.meter-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meter-bar {
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c 0%, #f39c12 50%, #27ae60 100%);
    width: 30%;
    transition: width 2s ease;
    display: flex;
    align-items: center;
    padding: 0 20px;
    animation: meterGrow 2s ease-out;
}

@keyframes meterGrow {
    from { width: 0; }
    to { width: 30%; }
}

.meter-text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.meter-upgrade {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.meter-upgrade:hover {
    transform: translateX(10px);
}

/* CTAs - Professional */
.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary-large {
    padding: 1.2rem 2.5rem;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
    color: var(--primary-color);
    text-decoration: none;
}

.btn-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 400;
    margin-top: 0.2rem;
    color: inherit;
}

.btn-secondary {
    padding: 1.2rem 2.5rem;
    background: transparent;
    color: white !important;
    border: 2px solid white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color); 
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    text-decoration: none;
}

/* Ensure hover states work properly */
.btn-primary-large:hover,
.btn-primary-large:focus,
.btn-primary-large:active {
    color: var(--primary-color) !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    color: var(--primary-color) !important;
}

/* Trust Row */
.trust-row {
    display: flex;
    gap: 3rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: rgba(255,255,255,0.3);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--secondary-color);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-20px); }
    100% { transform: translateY(50px); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Coffee Problem Section */
.coffee-problem {
    background: #f8f6f3;
    padding: 100px 0;
}

.coffee-problem h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Problem Cards - Interactive */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.problem-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.problem-card:hover::before,
.problem-card.active::before {
    background: var(--secondary-color);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.problem-card:hover .card-icon {
    background: var(--secondary-color);
    color: white;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.problem-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.problem-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-stat {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* How It Works Section */
.how-it-works {
    background: #fff;
    padding: 100px 0;
}

.how-it-works h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Process Timeline - Horizontal Layout Fix */
.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 40px; /* Add padding for edge markers */
}

/* Timeline container for horizontal layout */
.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-top: 60px; /* Space for the timeline track */
}

/* Timeline track - horizontal line */
.timeline-track {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.timeline-progress {
    height: 100%;
    background: var(--secondary-color);
    width: 0%;
    transition: width 3s ease-out;
}

/* Animate progress bar when section is in view */
.how-it-works.in-view .timeline-progress {
    width: 100%;
}

/* Process step - now flex items */
.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    padding: 0 20px;
}

/* Step marker - positioned at top */
.step-marker {
    width: 80px;
    height: 80px;
    background: white;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    margin: 0 auto 2rem; /* Center the marker */
}

/* Step content below marker */
.step-content {
    text-align: center;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.step-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Detail stats */
.step-detail {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.detail-stat {
    font-size: 0.75rem;
    color: var(--text-light);
    padding: 0.2rem 0.6rem;
    background: var(--bg-light);
    border-radius: 15px;
    display: inline-block;
    opacity: 0;
    transform: translateX(-10px);
}

/* Responsive - Stack vertically on mobile */
@media (max-width: 768px) {
    .timeline-container {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-track {
        width: 2px;
        height: calc(100% - 80px);
        left: 50%;
        top: 40px;
        right: auto;
        transform: translateX(-50%);
    }
    
    .process-step {
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: 2rem;
        text-align: left;
        padding: 0;
        margin-bottom: 3rem;
        width: 100%;
        max-width: 400px;
    }
    
    .step-marker {
        margin: 0;
    }
    
    .step-content {
        text-align: left;
        padding-top: 0.5rem;
    }
    
    .step-detail {
        justify-content: flex-start;
    }

    
}

/* =================================================================
   MOBILE BUTTON FIXES
   ================================================================= */

@media (max-width: 768px) {
    /* Explorer CTA Buttons */
    .explorer-cta {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .explorer-cta p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .explorer-cta .btn-primary,
    .explorer-cta .btn-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 1rem 2rem;
        margin: 0.5rem;
        border-radius: 25px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 0.95rem;
        width: calc(100% - 2rem);
        max-width: 300px;
    }
    
    .explorer-cta .btn-primary {
        background: linear-gradient(135deg, var(--primary-gold, #d4a574) 0%, var(--dark-gold, #c09560) 100%);
        color: white;
        border: 2px solid transparent;
    }
    
    .explorer-cta .btn-secondary {
        background: white;
        color: var(--primary-color, #2c1810);
        border: 2px solid var(--primary-gold, #d4a574);
    }
    
    .explorer-cta .btn-primary:hover,
    .explorer-cta .btn-primary:active,
    .explorer-cta .btn-primary:focus {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
        color: white;
        text-decoration: none;
    }
    
    .explorer-cta .btn-secondary:hover,
    .explorer-cta .btn-secondary:active,
    .explorer-cta .btn-secondary:focus {
        background: var(--primary-gold, #d4a574);
        color: white;
        transform: translateY(-2px);
        text-decoration: none;
    }
    
    /* Ensure icons display properly */
    .explorer-cta .btn-primary i,
    .explorer-cta .btn-secondary i {
        font-size: 1rem;
        display: inline-block;
    }
}

/* Touch-friendly button states */
@media (hover: none) and (pointer: coarse) {
    .btn-primary,
    .btn-secondary,
    .btn-primary-large,
    .btn-secondary-large {
        /* Remove hover effects on touch devices */
        transition: opacity 0.2s ease;
    }
    
    .btn-primary:active,
    .btn-secondary:active {
        opacity: 0.9;
        transform: scale(0.98);
    }
}

/* Ensure all buttons have proper base styles */
.btn-primary,
.btn-secondary,
.btn-primary-large,
.btn-secondary-large {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-align: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}


/* Define the fadeInUp animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Define the popIn animation for markers */
@keyframes popIn {
    0% {
        transform: scale(0);
    }
    80% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Define fadeInLeft for detail stats */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fix step number styling */
.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Ensure step content is visible */
.step-content {
    opacity: 1 !important; /* Force visibility for debugging */
}

/* Ensure detail stats animate properly */
.how-it-works.in-view .detail-stat {
    animation: fadeInLeft 0.4s ease-out forwards;
}

/* Add delays for staggered animation */
.how-it-works.in-view .process-step:nth-of-type(1) .detail-stat:nth-child(1) { animation-delay: 0.5s; }
.how-it-works.in-view .process-step:nth-of-type(1) .detail-stat:nth-child(2) { animation-delay: 0.6s; }
.how-it-works.in-view .process-step:nth-of-type(1) .detail-stat:nth-child(3) { animation-delay: 0.7s; }

.how-it-works.in-view .process-step:nth-of-type(2) .detail-stat:nth-child(1) { animation-delay: 0.8s; }
.how-it-works.in-view .process-step:nth-of-type(2) .detail-stat:nth-child(2) { animation-delay: 0.9s; }
.how-it-works.in-view .process-step:nth-of-type(2) .detail-stat:nth-child(3) { animation-delay: 1.0s; }

.how-it-works.in-view .process-step:nth-of-type(3) .detail-stat:nth-child(1) { animation-delay: 1.1s; }
.how-it-works.in-view .process-step:nth-of-type(3) .detail-stat:nth-child(2) { animation-delay: 1.2s; }
.how-it-works.in-view .process-step:nth-of-type(3) .detail-stat:nth-child(3) { animation-delay: 1.3s; }

.how-it-works.in-view .process-step:nth-of-type(4) .detail-stat:nth-child(1) { animation-delay: 1.4s; }
.how-it-works.in-view .process-step:nth-of-type(4) .detail-stat:nth-child(2) { animation-delay: 1.5s; }
.how-it-works.in-view .process-step:nth-of-type(4) .detail-stat:nth-child(3) { animation-delay: 1.6s; }

/* Hover effects for step markers */
.process-step:hover .step-marker {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
    background: var(--secondary-color);
}

.process-step:hover .step-marker .step-number {
    color: white;
}

/* Debug - temporarily make everything visible */
.process-step {
    opacity: 1 !important; /* Remove after testing */
}

.detail-stat {
    opacity: 1 !important; /* Remove after testing */
}

/* Keep the same animations */
.how-it-works.in-view .process-step:nth-of-type(1) {
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.how-it-works.in-view .process-step:nth-of-type(2) {
    animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

.how-it-works.in-view .process-step:nth-of-type(3) {
    animation: fadeInUp 0.6s ease-out 0.9s forwards;
}

.how-it-works.in-view .process-step:nth-of-type(4) {
    animation: fadeInUp 0.6s ease-out 1.2s forwards;
}

/* Coffee Explorer Section */
.coffee-explorer {
    background: var(--bg-light);
    padding: 100px 0;
}

.coffee-explorer h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Explorer Filters */
.explorer-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Coffee Showcase */
.coffee-showcase {
    margin-bottom: 3rem;
}

.showcase-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Coffee Cards */
.coffee-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.coffee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.coffee-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.coffee-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coffee-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.coffee-details {
    padding: 1.5rem;
}

.coffee-details h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.roaster {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.flavor-notes {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.flavor-notes span {
    padding: 0.3rem 0.8rem;
    background: var(--bg-light);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.coffee-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
}

.stat-value {
    font-weight: 600;
    color: var(--primary-color);
}

.stat-dots {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
}

.dot.active {
    background: var(--secondary-color);
}

/* Explorer CTA */
.explorer-cta {
    text-align: center;
}

.explorer-cta p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.btn-primary {
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

/* Testimonials Section */
.testimonials-premium {
    background: #fff;
    padding: 100px 0;
}

.testimonials-premium h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.testimonial-card.featured {
    grid-column: span 2;
    background: var(--bg-light);
    position: relative;
}

.testimonial-card.featured::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.testimonial-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-meta h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.testimonial-role {
    color: var(--text-light);
    font-size: 0.9rem;
}

blockquote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0 0 1.5rem 0;
}

.rating {
    color: #ffc107;
    margin-top: 0.5rem;
}

.testimonial-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-stat i {
    color: var(--secondary-color);
}

/* Value Proposition Section */
.value-proposition {
    background: var(--bg-light);
    padding: 100px 0;
}

.value-proposition h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary-color);
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.value-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.value-calc {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: left;
}

.calc-item {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.calc-result {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.2rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e0e0e0;
}

.value-stat {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Final CTA Section */
.final-cta-premium {
    background: linear-gradient(135deg, #2c1810 0%, #1a1a1a 100%);
    color: white;
    padding: 100px 0;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    margin-bottom: 1rem;
}

.cta-content > p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
}

/* CTA Options */
.cta-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
    max-width: 800px;
}

.cta-option {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.cta-option:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.cta-option.recommended {
    border: 2px solid var(--secondary-color);
    background: rgba(212, 165, 116, 0.1);
}

.recommended-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.3rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cta-option h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-option p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}

.btn-secondary-large {
    padding: 1rem 2rem;
    background: transparent;
    color: white; 
    border: 2px solid white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-secondary-large:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    text-decoration: none;
}

.btn-note {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 400;
    margin-top: 0.3rem;
}

/* Guarantee */
.guarantee {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    max-width: 600px;
    margin: 3rem auto 0;
    backdrop-filter: blur(10px);
}

.guarantee i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.guarantee-text strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: white;
}

.guarantee-text p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* =================================================================
   COFFEE EXPLORER SECTION
   ================================================================= */

.coffee-explorer {
    padding: 80px 0;
    background: linear-gradient(135deg, #fdfbf8 0%, #f8f6f3 100%);
}

.coffee-explorer h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Explorer Filters */
.explorer-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #e5e5e5;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

/* Coffee Showcase Grid */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.coffee-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.coffee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.coffee-card.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Coffee Card Image */
.coffee-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.coffee-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.coffee-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-gold);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Coffee Details */
.coffee-details {
    padding: 1.5rem;
}

.coffee-details h4 {
    font-size: 1.3rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.roaster,
.region {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.roaster i,
.region i {
    color: var(--primary-gold);
    font-size: 0.8rem;
}

/* Flavor Notes */
.flavor-notes {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.flavor-notes span {
    background: var(--light-gray);
    color: #666;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Coffee Stats */
.coffee-stats {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #f0f0f0;
}

.stat {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-weight: 600;
    color: var(--charcoal);
}

/* Coffee Actions */
.coffee-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-gold);
}

.btn-view-coffee {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-view-coffee:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
    color: white;
    text-decoration: none;
}

/* Explorer CTA */
.explorer-cta {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

.explorer-cta p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.explorer-cta .btn-primary,
.explorer-cta .btn-secondary {
    margin: 0 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* No coffees found */
.no-coffees-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Alternative option - Light grey background */
.btn-secondary-alt {
    padding: 1.2rem 2.5rem;
    background: #f8f8f8; /* Light grey background */
    color: var(--primary-color);
    border: 2px solid #f8f8f8;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-secondary-alt:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    text-decoration: none;
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

@media (max-width: 768px) {

    .btn-secondary,
    .btn-secondary-large {
        font-weight: 600;
        font-size: 1rem;
        padding: 1rem 2rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .explorer-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .coffee-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .btn-view-coffee {
        justify-content: center;
    }

        /* Hide the timeline track on mobile */
        .timeline-track {
            display: none;
        }
        
        /* Restructure timeline for mobile */
        .process-timeline {
            position: relative;
            padding: 2rem 0;
        }
        
        .timeline-container {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            padding: 0 1rem;
        }
        
        /* Create vertical line connecting circles on left side */
        .timeline-container::before {
            content: '';
            position: absolute;
            left: 35px; /* Align with circle centers */
            top: 40px;
            bottom: 40px;
            width: 2px;
            background: linear-gradient(180deg, 
                transparent 0%, 
                rgba(212, 165, 116, 0.3) 10%, 
                rgba(212, 165, 116, 0.3) 90%, 
                transparent 100%
            );
            z-index: 0;
        }
        
        .process-step {
            display: flex;
            gap: 1.5rem;
            align-items: flex-start;
            position: relative;
            opacity: 1 !important;
            transform: none !important;
        }
        
        .step-marker {
            position: relative;
            z-index: 2;
            flex-shrink: 0;
            width: 50px;
            height: 50px;
            background: white;
            border: 3px solid var(--secondary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .step-number {
            font-size: 1rem;
            font-weight: 700;
            color: var(--secondary-color);
        }
        
        .step-content {
            flex: 1;
            padding-top: 0.5rem;
        }
        
        .step-content h3 {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            color: var(--primary-color);
        }
        
        .step-content p {
            font-size: 0.9rem;
            color: var(--text-light);
            margin-bottom: 1rem;
            line-height: 1.5;
        }
        
        .step-detail {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        
        .detail-stat {
            font-size: 0.75rem;
            padding: 0.25rem 0.75rem;
            background: var(--bg-light);
            border-radius: 15px;
            color: var(--text-dark);
            opacity: 1 !important;
        }
    
    section {
        padding: 60px 0;
    }
    
    .headline-large {
        font-size: 2.5rem;
    }
    
    .hero-subtext {
        font-size: 1.1rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary-large,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .trust-row {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .problem-grid,
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        grid-template-columns: 60px 1fr;
    }
    
    .step-marker {
        width: 60px;
        height: 60px;
    }
    
    .step-number {
        font-size: 1.2rem;
    }
    
    .testimonial-card.featured {
        grid-column: span 1;
    }
    
    .showcase-slider {
        grid-template-columns: 1fr;
    }
    
    .cta-options {
        grid-template-columns: 1fr;
    }
    
    .guarantee {
        flex-direction: column;
        text-align: center;
    }
}

/* Animation States */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure proper z-index stacking */
.shop-header {
    z-index: 1000;
}

.hero-content {
    z-index: 10;
}

/* Print styles */
@media print {
    .hero-bg-animation,
    .scroll-hint,
    .explorer-filters {
        display: none;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .timeline-container::before {
        left: 31px; /* Fine-tune for smaller screens */
    }
    
    .step-marker {
        width: 42px;
        height: 42px;
    }
    
    .step-number {
        font-size: 0.9rem;
    }
    
    .process-step {
        gap: 1rem;
    }
}

/* Pulse animation for quiz button highlight */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(212, 165, 116, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 165, 116, 0);
    }
}

/* Meter upgrade hover effect improvement */
.meter-upgrade {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.meter-upgrade:hover {
    background: rgba(212, 165, 116, 0.1);
    transform: translateX(5px);
}

.meter-upgrade:active {
    transform: scale(0.95) translateX(5px);
}


/* Heartbeat pulse animation for quiz button when not logged in */
@keyframes heartbeat {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    }
    10% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(212, 165, 116, 0.5);
    }
    20% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    }
    30% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(212, 165, 116, 0.5);
    }
    40% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    }
}

/* Apply heartbeat to quiz button when user is not logged in */
body:not(.logged-in) .btn-primary-large[href*="quiz"] {
    animation: heartbeat 3s ease-in-out infinite; /* Changed from 2s to 3s */
    animation-delay: 1s; /* Start after 1 second */
}

/* Stop animation on hover for better UX */
body:not(.logged-in) .btn-primary-large[href*="quiz"]:hover {
    animation: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}

/* Add a subtle glow effect for extra attention */
body:not(.logged-in) .btn-primary-large[href*="quiz"]::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(212, 165, 116, 0.3), 
        rgba(212, 165, 116, 0.1), 
        rgba(212, 165, 116, 0.3)
    );
    border-radius: 7px;
    z-index: -1;
    animation: glow 4s ease-in-out infinite alternate;
    opacity: 0;
}

@keyframes glow {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Ensure button has relative positioning for the glow effect */
body:not(.logged-in) .btn-primary-large[href*="quiz"] {
    position: relative;
    overflow: visible;
}

/* Alternative: More subtle pulse for mobile users */
@media (max-width: 768px) {
    body:not(.logged-in) .btn-primary-large[href*="quiz"] {
        animation: heartbeat 3s ease-in-out infinite; 
    }
}

/* Add special attention-grabbing text animation */
body:not(.logged-in) .btn-primary-large[href*="quiz"] .btn-subtitle {
    animation: fadeInOut 6s ease-in-out infinite; /* Changed from 4s to 6s */
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}
 
/* Explorer Section Secondary Button - Dark background friendly */
.btn-explorer-secondary {
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-explorer-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    text-decoration: none;
}

/* Final CTA Section Secondary Button - Dark background with light styling */
.btn-cta-secondary {
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    text-decoration: none;
}

/* Keep the original btn-secondary for the hero section */
.btn-secondary {
    padding: 1.2rem 2.5rem;
    background: transparent;
    color: white !important;
    border: 2px solid white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color) !important; 
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    text-decoration: none;
}

/* Mobile responsiveness for new buttons */
@media (max-width: 768px) {
    .btn-explorer-secondary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .explorer-cta .btn-primary,
    .explorer-cta .btn-explorer-secondary {
        margin: 0.5rem 0;
    }
}