﻿
/* =========================================================
   DELBRIDGE COFFEE - BREWING GUIDE
   ========================================================= */

.brewing-page {
    --brew-cream: #f8f4ed;
    --brew-paper: #eee5d8;
    --brew-brown: #68452e;
    --brew-dark: #2b211b;
    --brew-muted: #786b60;
    --brew-accent: #a8794e;
    overflow: hidden;
    background: var(--brew-cream);
    color: var(--brew-dark);
}

    .brewing-page * {
        box-sizing: border-box;
    }

.brewing-container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.brewing-section {
    padding: 105px 0;
}

.brewing-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--brew-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.brewing-section-heading {
    max-width: 750px;
    margin: 0 auto 65px;
    text-align: center;
}

    .brewing-section-heading h2,
    .brewing-intro h2,
    .brewing-cta h2 {
        margin: 0 0 22px;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(2.5rem, 5vw, 4.2rem);
        font-weight: 400;
        line-height: 1.1;
        letter-spacing: -0.04em;
    }

    .brewing-section-heading p,
    .brewing-intro p {
        color: var(--brew-muted);
        font-size: 1.05rem;
        line-height: 1.85;
    }


/* =========================================================
   HERO
   ========================================================= */

.brewing-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 650px;
    padding: 100px 24px;
    color: white;
    background: #33251d;
    isolation: isolate;
}

.brewing-hero-image,
.brewing-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.brewing-hero-image {
    background-image: url("/images/brewing/brewing-hero.png");
    background-position: center;
    background-size: cover;
}

.brewing-hero-overlay {
    background: linear-gradient( 90deg, rgba(22, 17, 13, 0.83), rgba(22, 17, 13, 0.45) 65%, rgba(22, 17, 13, 0.15) );
}

.brewing-hero-content {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

.brewing-hero .brewing-eyebrow {
    color: #e5c39d;
}

.brewing-hero h1 {
    max-width: 850px;
    margin: 0 0 25px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.brewing-hero-content > p {
    max-width: 590px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.15rem;
    line-height: 1.85;
}

.brewing-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding: 15px 22px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease;
}

    .brewing-hero-button:hover {
        background: rgba(255, 255, 255, 0.15);
        color: white;
    }


/* =========================================================
   INTRO
   ========================================================= */

.brewing-intro {
    padding: 95px 24px;
    background: var(--brew-paper);
    text-align: center;
}

    .brewing-intro .brewing-container {
        max-width: 850px;
    }

    .brewing-intro p {
        max-width: 700px;
        margin: 0 auto;
    }


/* =========================================================
   STICKY NAVIGATION
   ========================================================= */

.brewing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(104, 69, 46, 0.12);
    background: rgba(248, 244, 237, 0.96);
    backdrop-filter: blur(12px);
}

.brewing-nav-inner {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding-top: 19px;
    padding-bottom: 19px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.brewing-nav a {
    flex: 0 0 auto;
    color: var(--brew-brown);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .brewing-nav a:hover {
        color: var(--brew-accent);
    }


/* =========================================================
   METHOD SECTIONS
   ========================================================= */

.brewing-method {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 75px;
    margin-bottom: 120px;
    scroll-margin-top: 100px;
}

    .brewing-method:last-child {
        margin-bottom: 0;
    }

.brewing-method-reverse .brewing-method-image {
    order: 2;
}

.brewing-method-reverse .brewing-method-content {
    order: 1;
}

.brewing-method-image {
    position: relative;
    min-height: 780px;
    overflow: hidden;
    background: var(--brew-paper);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

    .brewing-method-image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

    .brewing-method-image:hover img {
        transform: scale(1.04);
    }

.brewing-method-number {
    position: absolute;
    bottom: 25px;
    left: 25px;
    display: grid;
    place-items: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #fffdf9;
    color: var(--brew-brown);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
}

.brewing-method-content {
    padding: 15px 0;
}

    .brewing-method-content h3 {
        margin: 0 0 20px;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(2.2rem, 4vw, 3.5rem);
        font-weight: 400;
        line-height: 1.1;
    }

    .brewing-method-content > p {
        margin-bottom: 30px;
        color: var(--brew-muted);
        font-size: 1.03rem;
        line-height: 1.85;
    }

    .brewing-method-content h4 {
        margin: 30px 0 15px;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.04em;
    }

    .brewing-method-content ul,
    .brewing-method-content ol {
        padding-left: 24px;
        color: var(--brew-muted);
        line-height: 2;
    }

    .brewing-method-content li {
        padding-left: 5px;
        margin-bottom: 5px;
    }

.brewing-tip {
    margin-top: 35px;
    padding: 25px 28px;
    border-left: 3px solid var(--brew-accent);
    background: #eee5d8;
}

    .brewing-tip strong {
        display: block;
        margin-bottom: 8px;
        color: var(--brew-brown);
        font-size: 0.75rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .brewing-tip p {
        margin: 0;
        color: var(--brew-muted);
        line-height: 1.75;
    }


/* =========================================================
   FUNDAMENTALS
   ========================================================= */

.brewing-perfect {
    padding: 110px 0;
    background: var(--brew-paper);
}

.brewing-fundamentals-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.brewing-fundamental {
    padding: 35px 25px;
    background: #fffdf9;
    text-align: center;
}

.brewing-fundamental-icon {
    display: grid;
    place-items: center;
    width: 65px;
    height: 65px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #f0e5d8;
    color: var(--brew-brown);
    font-size: 1.65rem;
}

.brewing-fundamental h3 {
    margin-bottom: 15px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 400;
}

.brewing-fundamental p {
    margin: 0;
    color: var(--brew-muted);
    font-size: 0.93rem;
    line-height: 1.8;
}


/* =========================================================
   QUICK TIPS
   ========================================================= */

.brewing-tips {
    padding: 110px 0;
}

.brewing-tips-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.brewing-tip-card {
    padding: 38px 32px;
    border: 1px solid rgba(104, 69, 46, 0.14);
    background: #fffdf9;
    transition: transform 0.25s ease;
}

    .brewing-tip-card:hover {
        transform: translateY(-5px);
    }

    .brewing-tip-card > span {
        display: block;
        margin-bottom: 25px;
        color: var(--brew-accent);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 2rem;
    }

    .brewing-tip-card h3 {
        margin-bottom: 14px;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1.5rem;
        font-weight: 400;
    }

    .brewing-tip-card p {
        margin: 0;
        color: var(--brew-muted);
        line-height: 1.8;
    }

/* =========================================================
   Temperature guide
   ========================================================= */
.brewing-temperature{
    padding: 110px 0;
    background: var(--brew-dark);
    scroll-margin-top: 90px;
}

.brewing-eyebrow-temperature {
    color: var(--brew-paper);
}

.brewing-title-temperature{
    color: white;
}

.brewing-title-temperature p {
    color: white;
}



/* =========================================================
   TROUBLESHOOTING
   ========================================================= */

.brewing-troubleshooting {
    padding: 110px 0;
    background: var(--brew-paper);
    scroll-margin-top: 90px;
}

.brewing-troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.brewing-trouble-card {
    padding: 32px;
    border: 1px solid rgba(104, 69, 46, 0.12);
    background: #fffdf9;
}

    .brewing-trouble-card h3 {
        margin-bottom: 20px;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1.5rem;
        font-weight: 400;
    }

    .brewing-trouble-card p {
        color: var(--brew-muted);
        line-height: 1.8;
    }

        .brewing-trouble-card p:last-child {
            margin-bottom: 0;
        }

    .brewing-trouble-card strong {
        color: var(--brew-brown);
    }


/* =========================================================
   CLOSING CTA
   ========================================================= */

.brewing-cta {
    padding: 110px 24px;
    background: #39291f;
    color: white;
    text-align: center;
}

    .brewing-cta .brewing-container {
        max-width: 850px;
    }

    .brewing-cta .brewing-eyebrow {
        color: #d5ad83;
    }

    .brewing-cta p {
        max-width: 650px;
        margin: 0 auto;
        color: rgba(255, 255, 255, 0.78);
        font-size: 1.05rem;
        line-height: 1.85;
    }

.brewing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 35px;
    padding: 16px 30px;
    border: 1px solid #e4c5a3;
    background: #e4c5a3;
    color: #33251d;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.25s ease, background 0.25s ease;
}

    .brewing-button:hover {
        gap: 25px;
        background: transparent;
        color: white;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
    .brewing-method {
        gap: 40px;
    }

    .brewing-method-image {
        min-height: 480px;
    }

    .brewing-fundamentals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .brewing-container {
        width: min(100% - 36px, 540px);
    }

    .brewing-section {
        padding: 75px 0;
    }

    .brewing-hero {
        min-height: 570px;
        padding: 75px 18px;
    }

    .brewing-hero-overlay {
        background: rgba(22, 17, 13, 0.62);
    }

    .brewing-hero-content {
        padding: 0;
    }

    .brewing-hero h1 {
        font-size: clamp(3.2rem, 14vw, 5rem);
    }

    .brewing-hero-content > p {
        font-size: 1rem;
    }

    .brewing-intro {
        padding: 75px 18px;
    }

    .brewing-nav-inner {
        justify-content: flex-start;
        gap: 25px;
        width: 100%;
        padding-inline: 18px;
    }

    .brewing-method {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 80px;
    }

    .brewing-method-reverse .brewing-method-image,
    .brewing-method-reverse .brewing-method-content {
        order: initial;
    }

    .brewing-method-image {
        min-height: 390px;
    }

    .brewing-method-content {
        padding: 0;
    }

    .brewing-fundamentals-grid,
    .brewing-tips-grid,
    .brewing-troubleshooting-grid {
        grid-template-columns: 1fr;
    }

    .brewing-section-heading {
        margin-bottom: 40px;
    }

    .brewing-fundamental {
        padding: 30px 25px;
    }

    .brewing-tips,
    .brewing-perfect,
    .brewing-troubleshooting,
    .brewing-cta {
        padding: 80px 0;
    }

    .brewing-cta {
        padding-inline: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brewing-page *,
    .brewing-page *::before,
    .brewing-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
