/* ==========================================
   ☕ BREW PAGE — Filter Coffee Instructions
   ========================================== */

/* Override Lancelot for all headings on this page */
.brew-hero h1,
.brew-steps-header h2,
.brew-tips-banner h2,
.brew-cta h2,
.brew-step-body h3,
.brew-tip-card h3 {
    font-family: 'Poppins', sans-serif;
}

/* ==========================================
   🌅 HERO
   ========================================== */
.brew-hero {
    min-height: 58vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10rem 8% 5rem;
    background:
        linear-gradient(160deg, rgba(58, 34, 20, 0.90) 0%, rgba(200, 131, 107, 0.70) 100%),
        url('../assets/backdrop.jpg') center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

.brew-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(200, 131, 107, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.brew-hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    animation: fadeUp 0.8s ease both;
}

.brew-hero-content .section-eyebrow {
    color: #FDDEC8;
    border-color: rgba(253, 222, 200, 0.35);
    background: rgba(253, 222, 200, 0.1);
}

.brew-hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #FDDEC8;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.15;
    margin: 0.8rem 0 1.2rem;
    letter-spacing: -0.02em;
}

.brew-hero-content p {
    color: rgba(253, 222, 200, 0.80);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 540px;
    margin: 0 auto;
}

.brew-hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(253, 222, 200, 0.45);
    animation: floatY 2s ease-in-out infinite;
}

.brew-hero-scroll-hint svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
}

/* ==========================================
   📊 STATS STRIP
   ========================================== */
.brew-stats-strip {
    background: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.2rem 5%;
    flex-wrap: wrap;
    gap: 0.5rem 0;
}

.brew-stat {
    flex: 1;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    text-align: center;
}

/* Lucide renders <i data-lucide> → <svg>; color flows via currentColor */
.brew-stat-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    opacity: 0.85;
    flex-shrink: 0;
}

.brew-stat-icon svg {
    width: 32px;
    height: 32px;
}

.brew-stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}

.brew-stat-label {
    font-size: 0.7rem;
    color: rgba(253, 222, 200, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.brew-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    align-self: center;
}

/* ==========================================
   📋 STEPS SECTION (single-column)
   ========================================== */
.brew-main {
    background-color: var(--bg-color);
}

.brew-steps-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 5%;
}

.brew-steps-header {
    text-align: center;
    margin-bottom: 3rem;
}

.brew-steps-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.brew-steps-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
}

.brew-steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

/* Individual Step */
.brew-step {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 2.6rem 3rem;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(16px);
}

.brew-step.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease, transform 0.45s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.brew-step:hover {
    background: #FFF8F4;
    border-color: rgba(200, 131, 107, 0.45);
    box-shadow: 0 6px 24px rgba(200, 131, 107, 0.12);
    transform: translateY(-2px);
}

/* Left side: number + icon stacked */
.brew-step-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
    min-width: 72px;
}

.brew-step-number {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.45;
    letter-spacing: 0.1em;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.brew-step:hover .brew-step-number {
    opacity: 0.9;
}

.brew-step-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 131, 107, 0.08);
    border-radius: 18px;
    transition: background 0.3s ease;
}

.brew-step-icon svg {
    width: 36px;
    height: 36px;
    color: var(--primary-color);
    /* Lucide uses stroke="currentColor" — color drives it */
}

.brew-step:hover .brew-step-icon {
    background: rgba(200, 131, 107, 0.16);
}

/* Step text */
.brew-step-body h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.brew-step-body p {
    font-size: 1.08rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.brew-step-body strong {
    color: var(--primary-color);
    font-weight: 700;
}

.brew-optional-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    background: rgba(139, 175, 135, 0.12);
    border: 1px solid rgba(139, 175, 135, 0.35);
    padding: 0.12rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.4rem;
    vertical-align: middle;
    font-family: 'Poppins', sans-serif;
}

/* ==========================================
   ✨ TIPS BANNER
   ========================================== */
.brew-tips-banner {
    background: var(--text-color);
    padding: 5rem 8%;
    text-align: center;
}

.brew-tips-banner h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    color: #FDDEC8;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.brew-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
    max-width: 1050px;
    margin: 0 auto;
}

.brew-tip-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 1.8rem 1.5rem;
    text-align: left;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(18px);
}

.brew-tip-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease, transform 0.45s ease, background 0.3s ease, border-color 0.3s ease;
}

.brew-tip-card:hover {
    background: rgba(200, 131, 107, 0.09);
    border-color: rgba(200, 131, 107, 0.28);
    transform: translateY(-4px);
}

.brew-tip-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 131, 107, 0.12);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.brew-tip-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
}

.brew-tip-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #FDDEC8;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.brew-tip-card p {
    font-size: 0.88rem;
    color: rgba(253, 222, 200, 0.58);
    line-height: 1.65;
}

/* ==========================================
   🛒 CTA SECTION
   ========================================== */
.brew-cta {
    background: linear-gradient(135deg, #FEF7EE 0%, rgba(200, 131, 107, 0.07) 100%);
    padding: 6rem 5%;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.brew-cta > p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.brew-cta h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

/* ==========================================
   🔗 NAV ACTIVE LINK
   ========================================== */
.nav-active {
    color: #FDDEC8 !important;
    position: relative;
}

.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ==========================================
   📱 RESPONSIVE
   ========================================== */
@media (max-width: 640px) {
    .brew-hero {
        padding: 9rem 6% 4rem;
    }

    .brew-stat-divider {
        display: none;
    }

    .brew-stat {
        flex: 0 0 48%;
        padding-bottom: 1rem;
    }

    .brew-steps-section {
        padding: 3.5rem 5%;
    }

    .brew-step {
        flex-direction: row;
        gap: 1rem;
    }

    .brew-step-left {
        min-width: 42px;
    }

    .brew-tips-banner {
        padding: 4rem 5%;
    }

    .brew-tips-grid {
        grid-template-columns: 1fr;
    }
}
