/* bada.coffee - Victorian Coffee Label / Ocean Roasted */
/* Palette: #1c1410, #3e2723, #f5e6cc, #b87333, #8b2f2f, #d4c5a9, #faf3e8 */

:root {
    --espresso: #1c1410;
    --medium: #3e2723;
    --crema: #f5e6cc;
    --copper: #b87333;
    --cherry: #8b2f2f;
    --steam: #d4c5a9;
    --parchment: #faf3e8;
    --copper-gold: #d4a852;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--espresso);
    color: var(--crema);
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* =========================================
   ROAST METER
   ========================================= */
.roast-meter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 100;
    background: linear-gradient(90deg,
        var(--crema) 0%,
        var(--steam) 20%,
        var(--copper) 45%,
        var(--medium) 70%,
        var(--espresso) 100%
    );
}

.roast-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.roast-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background: rgba(28, 20, 16, 0.6);
    transition: width 0.05s linear;
}

.roast-marker {
    position: absolute;
    top: -3px;
    left: 0%;
    transition: left 0.05s linear;
    z-index: 2;
}

.roast-marker-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--copper);
    border: 2px solid var(--parchment);
    box-shadow: 0 0 6px rgba(184, 115, 51, 0.5);
}

/* =========================================
   SECTIONS (General)
   ========================================= */
.coffee-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    gap: 2rem;
    z-index: 1;
}

/* =========================================
   SECTION 1: THE SEAL
   ========================================= */
.seal-section {
    background: var(--espresso);
    min-height: 100vh;
    padding-bottom: 3rem;
}

.seal {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-svg {
    position: absolute;
    top: 0;
    left: 0;
}

/* Ring drawing animations */
.seal-ring {
    opacity: 0;
    animation: drawRing 1.8s ease forwards;
}

.sr-outer {
    stroke-dasharray: 974;
    stroke-dashoffset: 974;
    animation: drawStroke 2s ease forwards 0.2s;
    opacity: 1;
}

.sr-dots {
    animation-delay: 0.5s;
    stroke-dasharray: 880;
    stroke-dashoffset: 880;
    animation: drawStroke 1.8s ease forwards 0.5s;
    opacity: 1;
}

.sr-ornamental {
    stroke-dasharray: 804;
    stroke-dashoffset: 804;
    animation: drawStroke 1.8s ease forwards 0.8s;
    opacity: 1;
}

.sr-inner-dots {
    animation-delay: 1.1s;
    stroke-dasharray: 729;
    stroke-dashoffset: 729;
    animation: drawStroke 1.6s ease forwards 1.1s;
    opacity: 1;
}

.sr-core {
    stroke-dasharray: 660;
    stroke-dashoffset: 660;
    animation: drawStroke 1.4s ease forwards 1.4s;
    opacity: 1;
}

@keyframes drawStroke {
    to { stroke-dashoffset: 0; }
}

@keyframes drawRing {
    to { opacity: 1; }
}

/* Seal dots at cardinal points */
.seal-dot {
    animation: fadeInDot 0.4s ease forwards;
}
.sd-n { animation-delay: 1.8s; }
.sd-e { animation-delay: 2.0s; }
.sd-s { animation-delay: 2.2s; }
.sd-w { animation-delay: 2.4s; }

@keyframes fadeInDot {
    to { opacity: 0.6; }
}

/* Curved text */
.seal-curved-text {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 9.5px;
    fill: var(--copper);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInText 0.8s ease forwards 2s;
}

.sct-bottom {
    font-size: 7.5px;
    fill: var(--steam);
    letter-spacing: 0.12em;
    animation-delay: 2.2s;
}

.seal-star {
    font-size: 8px;
    fill: var(--copper);
    opacity: 0;
    animation: fadeInText 0.5s ease forwards 2.4s;
}

@keyframes fadeInText {
    to { opacity: 1; }
}

/* Seal center content */
.seal-center {
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInCenter 1s ease forwards 1.6s;
}

@keyframes fadeInCenter {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

.seal-pre {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--steam);
    margin-bottom: 0.3rem;
}

.seal-brand {
    font-family: 'Playfair Display SC', serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--crema);
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.seal-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.4rem 0;
}

.sd-line {
    display: block;
    width: 30px;
    height: 1px;
    background: var(--copper);
    opacity: 0.6;
}

.sd-diamond {
    color: var(--copper);
    font-size: 0.35rem;
    line-height: 1;
}

.seal-sub {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--copper);
}

/* Ornamental line below seal */
.ornament-line {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 2.5rem;
    opacity: 0;
    animation: fadeInOrnament 1s ease forwards 2.6s;
}

@keyframes fadeInOrnament {
    to { opacity: 1; }
}

.orn-long-line {
    width: 80px;
    height: 1px;
    background: var(--copper);
    opacity: 0.4;
}

.orn-short-line {
    width: 20px;
    height: 1px;
    background: var(--copper);
    opacity: 0.6;
}

.orn-end {
    color: var(--copper);
    font-size: 0.4rem;
    padding: 0 0.3rem;
    opacity: 0.7;
}

.orn-circle {
    color: var(--copper);
    font-size: 0.5rem;
    padding: 0 0.3rem;
    opacity: 0.5;
}

/* Scroll hint */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    opacity: 0;
    animation: fadeInHint 1s ease forwards 3.2s;
    margin-top: 2rem;
    transition: opacity 0.5s ease;
}

.scroll-hint.hidden {
    opacity: 0;
}

.scroll-hint-text {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--steam);
    opacity: 0.5;
}

.scroll-hint-arrow {
    color: var(--copper);
    font-size: 0.8rem;
    animation: bobArrow 2s ease-in-out infinite 3.5s;
    opacity: 0.5;
}

@keyframes fadeInHint {
    to { opacity: 1; }
}

@keyframes bobArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* =========================================
   VERTICAL SEPARATORS
   ========================================= */
.vert-separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 0;
    position: relative;
    z-index: 1;
}

.vs-dark { background: var(--espresso); }
.vs-transition {
    background: linear-gradient(to bottom, var(--parchment), var(--espresso));
}
.vs-medium {
    background: linear-gradient(to bottom, var(--espresso), var(--medium));
}
.vs-light {
    background: linear-gradient(to bottom, var(--medium), var(--crema));
}

.vs-line {
    display: block;
    width: 1px;
    height: 30px;
    background: var(--copper);
    opacity: 0.4;
}

.vs-diamond {
    color: var(--copper);
    font-size: 0.7rem;
    padding: 0.4rem 0;
    opacity: 0.6;
}

.vs-fleuron {
    color: var(--copper);
    font-size: 1rem;
    padding: 0.4rem 0;
    opacity: 0.5;
}

/* =========================================
   LABEL CARDS
   ========================================= */
.label-card {
    max-width: 560px;
    width: 100%;
    padding: 2.8rem 2.5rem;
    border: 2px solid var(--copper);
    position: relative;
    text-align: center;
}

/* Animate label border on entry */
.animate-label {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.animate-label.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Inner frame (double border effect) */
.label-inner {
    position: absolute;
    inset: 5px;
    border: 1px solid var(--steam);
    pointer-events: none;
    opacity: 0.6;
}

.label-inner-dark {
    border-color: rgba(212, 197, 169, 0.25);
}

.label-inner-medium {
    border-color: rgba(184, 115, 51, 0.35);
}

/* Card background variants */
.lc-light {
    background: var(--parchment);
    color: var(--espresso);
}

.lc-dark {
    background: var(--espresso);
    color: var(--crema);
    border-color: var(--steam);
}

.lc-medium {
    background: var(--medium);
    color: var(--crema);
    border-color: var(--copper);
}

/* Corner ornaments */
.corner-orn {
    position: absolute;
    width: 14px;
    height: 14px;
}

.co-tl { top: 8px; left: 8px; border-top: 1px solid var(--copper); border-left: 1px solid var(--copper); }
.co-tr { top: 8px; right: 8px; border-top: 1px solid var(--copper); border-right: 1px solid var(--copper); }
.co-bl { bottom: 8px; left: 8px; border-bottom: 1px solid var(--copper); border-left: 1px solid var(--copper); }
.co-br { bottom: 8px; right: 8px; border-bottom: 1px solid var(--copper); border-right: 1px solid var(--copper); }

.co-light {
    border-color: var(--steam) !important;
}

.co-copper {
    border-color: var(--copper-gold) !important;
}

/* Banner headings (ribbon shape) */
.banner-heading {
    display: inline-block;
    background: var(--copper);
    clip-path: polygon(4% 0, 96% 0, 100% 50%, 96% 100%, 4% 100%, 0% 50%);
    padding: 0.5rem 2.2rem;
    margin-bottom: 1.8rem;
    transition: background 0.3s ease;
}

.banner-heading span {
    font-family: 'Playfair Display SC', serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--parchment);
    letter-spacing: 0.12em;
}

.bh-dark {
    background: var(--steam);
}

.bh-dark span {
    color: var(--espresso);
}

.bh-gold {
    background: linear-gradient(135deg, var(--copper) 0%, var(--copper-gold) 100%);
}

/* Label text */
.label-body {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.92rem;
    line-height: 1.75;
    color: rgba(28, 20, 16, 0.78);
    max-width: 440px;
    margin: 0 auto;
}

.label-body-second {
    margin-top: 1rem;
}

.label-body-light {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.92rem;
    line-height: 1.75;
    color: rgba(245, 230, 204, 0.72);
    max-width: 440px;
    margin: 0 auto;
}

.label-body-light.label-body-second {
    margin-top: 1rem;
}

/* Roast date stamp */
.roast-date {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--copper);
    position: absolute;
    bottom: 14px;
    right: 18px;
    opacity: 0.7;
}

/* Small batch stamp */
.label-stamp {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
    opacity: 0.5;
}

.stamp-text {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: var(--copper);
    text-transform: uppercase;
    border: 1px solid var(--copper);
    padding: 0.15rem 0.6rem;
    border-radius: 2px;
}

.stamp-number {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    color: var(--steam);
    margin-top: 0.3rem;
}

/* Botanical illustrations */
.botanical {
    margin-top: 1.8rem;
    opacity: 0.55;
}

.botanical-complete {
    opacity: 0.45;
    margin-top: 2.5rem;
}

/* Fleuron */
.fleuron {
    font-size: 1.3rem;
    color: var(--copper);
    margin-top: 1.8rem;
    opacity: 0.6;
}

/* =========================================
   ORIGIN SECTIONS
   ========================================= */
.origin-section {
    min-height: auto;
    padding: 5rem 2rem;
}

.origin-light {
    background: var(--parchment);
}

.origin-dark {
    background: var(--espresso);
}

/* =========================================
   SECTION 3: THE ROAST
   ========================================= */
.roast-section {
    background: var(--medium);
    min-height: auto;
    padding: 5rem 2rem;
}

/* Temperature marks */
.roast-temps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.temp-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.temp-label {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--steam);
    opacity: 0.6;
}

.temp-value {
    font-family: 'Playfair Display SC', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--copper-gold);
}

.temp-divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--copper), transparent);
    opacity: 0.5;
}

/* Steam wisps */
.steam-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.wisp {
    opacity: 0;
    animation: steamRise 4s ease-in-out infinite;
}

.w1 { animation-delay: 0s; }
.w2 { animation-delay: 1.3s; }
.w3 { animation-delay: 2.6s; }

@keyframes steamRise {
    0% { opacity: 0; transform: translateY(0) scaleX(1); }
    15% { opacity: 0.25; }
    40% { opacity: 0.35; transform: translateY(-8px) scaleX(1.05); }
    70% { opacity: 0.15; transform: translateY(-18px) scaleX(0.95); }
    100% { opacity: 0; transform: translateY(-28px) scaleX(0.9); }
}

/* Roast progression strip */
.roast-progression {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2rem 2rem;
    background: var(--medium);
}

.rp-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.rp-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--copper);
}

.rp-green .rp-dot { background: #6b7f4e; }
.rp-blonde .rp-dot { background: #c4a95a; }
.rp-medium-r .rp-dot { background: #8b5e3c; }
.rp-dark-r .rp-dot { background: #4a2c1a; }
.rp-french .rp-dot { background: #1c1410; }

.rp-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--steam);
    opacity: 0.5;
}

.rp-line {
    width: 30px;
    height: 1px;
    background: var(--copper);
    opacity: 0.3;
    margin: 0 0.4rem;
    margin-bottom: 1.2rem;
}

/* =========================================
   SECTION 4: THE CUP
   ========================================= */
.cup-section {
    background: var(--crema);
    min-height: 85vh;
    padding: 6rem 2rem 4rem;
}

/* Pull quote */
.pullquote {
    display: flex;
    align-items: stretch;
    gap: 1.2rem;
    max-width: 520px;
}

.pq-bracket {
    font-family: 'Playfair Display SC', serif;
    font-size: 4rem;
    color: var(--copper);
    opacity: 0.4;
    line-height: 1;
    display: flex;
    align-items: center;
}

.pq-inner {
    display: flex;
    align-items: center;
}

.pq-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--espresso);
    text-align: center;
}

/* Closing seal */
.seal-small {
    margin-top: 3rem;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.seal-small:hover {
    opacity: 0.8;
}

/* Closing ornament */
.closing-ornament {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.co-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--copper);
    opacity: 0.4;
}

.co-diamond {
    color: var(--copper);
    font-size: 0.35rem;
    opacity: 0.5;
}

/* Closing text */
.closing-text {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--copper);
    margin-top: 1.2rem;
}

.closing-korean {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.8rem;
    color: var(--medium);
    opacity: 0.4;
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .seal {
        width: 260px;
        height: 260px;
    }

    .seal-svg {
        width: 260px;
        height: 260px;
    }

    .seal-brand {
        font-size: 1.6rem;
    }

    .coffee-section {
        padding: 4rem 1.5rem;
    }

    .label-card {
        padding: 2.2rem 1.8rem;
        max-width: 90%;
    }

    .pullquote {
        gap: 0.6rem;
    }

    .pq-bracket {
        font-size: 2.5rem;
    }

    .pq-text {
        font-size: 1rem;
    }

    .ornament-line {
        margin-top: 1.5rem;
    }

    .orn-long-line {
        width: 40px;
    }

    .roast-temps {
        gap: 1rem;
    }

    .temp-value {
        font-size: 1.1rem;
    }

    .rp-line {
        width: 15px;
    }

    .botanical-complete {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    .seal {
        width: 220px;
        height: 220px;
    }

    .seal-svg {
        width: 220px;
        height: 220px;
    }

    .seal-brand {
        font-size: 1.35rem;
    }

    .seal-curved-text {
        font-size: 7.5px;
    }

    .sct-bottom {
        font-size: 6px;
    }

    .label-card {
        padding: 1.8rem 1.2rem;
    }

    .label-body,
    .label-body-light {
        font-size: 0.85rem;
    }

    .pullquote {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }

    .pq-bracket {
        font-size: 2rem;
    }

    .roast-progression {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .rp-line {
        width: 10px;
    }
}
