/* bada.cafe - Coastal Watercolor Magazine Experience */
/* Colors: #1E5F74 #7EC8C8 #E8C87A #C4A67A #FFF8F0 #F5E0D8 #5A8A6A #2A2520 #F5E6CC */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #FFF8F0;
    color: #2A2520;
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.8;
    overflow-x: hidden;
}

/* ===== Hangul Watermark ===== */
.hangul-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Nanum Myeongjo', serif;
    font-size: 30vw;
    color: #1E5F74;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    animation: tideBreath 20s ease-in-out infinite;
    user-select: none;
}

@keyframes tideBreath {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.08; }
}

/* ===== Watercolor Wash System ===== */
.watercolor-wash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.wash-hero {
    background:
        linear-gradient(180deg, rgba(245,224,216,0.3) 0%, rgba(126,200,200,0.15) 50%, rgba(255,248,240,0.1) 100%);
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.wash-hero-overlay-1 {
    background: radial-gradient(ellipse at 30% 40%, rgba(126,200,200,0.25) 0%, transparent 50%);
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 2s ease 0.3s;
}

.wash-hero-overlay-2 {
    background: radial-gradient(ellipse at 70% 60%, rgba(232,200,122,0.2) 0%, transparent 40%);
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 2s ease 0.6s;
}

.wash-hero-overlay-3 {
    background: radial-gradient(ellipse at 50% 80%, rgba(30,95,116,0.15) 0%, transparent 50%);
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 2s ease 0.9s;
}

.wash-hero.revealed,
.wash-hero-overlay-1.revealed,
.wash-hero-overlay-2.revealed,
.wash-hero-overlay-3.revealed {
    opacity: 1;
}

.wash-ocean {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(30,95,116,0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(126,200,200,0.35) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 80%, rgba(245,224,216,0.2) 0%, transparent 40%),
        linear-gradient(180deg, #7EC8C8 0%, #1E5F74 60%, #FFF8F0 100%);
    opacity: 0.45;
    mix-blend-mode: multiply;
}

.wash-ocean-layer2 {
    background:
        radial-gradient(ellipse at 60% 40%, rgba(30,95,116,0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 70%, rgba(126,200,200,0.18) 0%, transparent 40%);
    mix-blend-mode: multiply;
}

.wash-sand {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(232,200,122,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 25% 70%, rgba(196,166,122,0.2) 0%, transparent 45%),
        radial-gradient(ellipse at 75% 30%, rgba(245,224,216,0.25) 0%, transparent 40%),
        linear-gradient(180deg, #E8C87A 0%, #C4A67A 50%, #FFF8F0 100%);
    opacity: 0.35;
    mix-blend-mode: multiply;
}

.wash-sand-layer2 {
    background:
        radial-gradient(ellipse at 40% 50%, rgba(232,200,122,0.15) 0%, transparent 50%);
    mix-blend-mode: multiply;
}

.wash-interlude-1 {
    background:
        radial-gradient(ellipse at 35% 25%, rgba(126,200,200,0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 65% 75%, rgba(30,95,116,0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 35%, rgba(245,224,216,0.3) 0%, transparent 45%);
    mix-blend-mode: multiply;
}

.wash-interlude-1b {
    background:
        radial-gradient(ellipse at 20% 60%, rgba(232,200,122,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 40%, rgba(126,200,200,0.1) 0%, transparent 55%);
    mix-blend-mode: multiply;
}

.wash-interlude-2 {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(232,200,122,0.28) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 65%, rgba(126,200,200,0.22) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 50%, rgba(245,224,216,0.3) 0%, transparent 40%);
    mix-blend-mode: multiply;
}

.wash-interlude-2b {
    background:
        radial-gradient(ellipse at 45% 70%, rgba(30,95,116,0.1) 0%, transparent 50%);
    mix-blend-mode: multiply;
}

.wash-menu-back {
    background:
        radial-gradient(ellipse at 40% 40%, rgba(126,200,200,0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(232,200,122,0.2) 0%, transparent 45%),
        linear-gradient(135deg, rgba(245,224,216,0.5), rgba(126,200,200,0.25));
}

.wash-menu-back-2 {
    background:
        radial-gradient(ellipse at 60% 30%, rgba(30,95,116,0.1) 0%, transparent 50%);
    mix-blend-mode: multiply;
}

/* ===== Cup Ring Ornaments ===== */
.cup-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #C4A67A;
    opacity: 0.12;
    pointer-events: none;
    z-index: 2;
}

.cup-ring-1 {
    width: 120px;
    height: 120px;
    top: 18%;
    right: 12%;
    border-width: 2.2px;
    stroke-dasharray: 8 2;
}

.cup-ring-2 {
    width: 80px;
    height: 80px;
    bottom: 28%;
    left: 8%;
    border-width: 1.8px;
}

.cup-ring-3 {
    width: 100px;
    height: 100px;
    top: 35%;
    left: 55%;
    border-width: 2px;
    opacity: 0.1;
}

/* ===== Soft-Edge Masking ===== */
.spread-visual,
.interlude {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* ===== Cover / Hero ===== */
#cover {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 15vh;
    overflow: hidden;
    z-index: 1;
}

.masthead {
    font-family: 'Cormorant Infant', serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.12em;
    color: #FFF8F0;
    z-index: 5;
    opacity: 0;
    transition: opacity 1s ease, color 1s ease;
}

.masthead.visible {
    opacity: 1;
    color: #2A2520;
}

.masthead-sub {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 1rem;
    letter-spacing: 0.06em;
    color: #5A8A6A;
    z-index: 5;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
}

.masthead-sub.visible {
    opacity: 1;
}

/* ===== Wave Container ===== */
#wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#wave-container.visible {
    opacity: 1;
}

#waves {
    width: 200%;
    height: 100%;
}

.wave-1 { animation: waveDrift1 40s linear infinite; }
.wave-2 { animation: waveDrift2 35s linear infinite; }
.wave-3 { animation: waveDrift3 30s linear infinite; }

@keyframes waveDrift1 {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes waveDrift2 {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

@keyframes waveDrift3 {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== Spreads (Magazine Layout) ===== */
.spread {
    display: flex;
    min-height: 80vh;
    position: relative;
    z-index: 1;
}

.spread-visual {
    width: 60%;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
}

.spread-text {
    width: 35%;
    margin-left: 5%;
    padding: 80px 80px 80px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.spread-text.visible {
    opacity: 1;
}

.spread-reverse {
    flex-direction: row-reverse;
}

.spread-reverse .spread-text {
    margin-left: 0;
    margin-right: 5%;
    padding: 80px 0 80px 80px;
}

.section-heading {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    letter-spacing: 0.06em;
    color: #1E5F74;
    margin-bottom: 24px;
}

.spread-text p {
    margin-bottom: 1.2em;
    max-width: 55ch;
}

.spread-text p:last-child {
    margin-bottom: 0;
}

/* ===== Interludes ===== */
.interlude {
    height: 100vh;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* ===== Menu Section ===== */
#menu-section {
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    position: relative;
    z-index: 1;
}

.menu-card {
    max-width: 480px;
    width: 100%;
    perspective: 1200px;
    cursor: pointer;
}

.menu-card-inner {
    position: relative;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.menu-card.flipped .menu-card-inner {
    transform: rotateY(180deg);
}

.menu-card-front,
.menu-card-back {
    border-radius: 8px;
    padding: 40px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.menu-card-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid #C4A67A;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF8F0;
}

.menu-card-front-text {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 3rem;
    color: #1E5F74;
    opacity: 0.3;
    z-index: 2;
    position: relative;
}

.menu-card-back {
    background: rgba(255,248,240,0.97);
    border: 1px solid #C4A67A;
    transform: rotateY(180deg);
}

.menu-title {
    font-family: 'Cormorant Infant', serif;
    font-weight: 300;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    text-align: center;
    color: #1E5F74;
    margin-bottom: 16px;
}

.menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #C4A67A, transparent);
    margin: 16px 0;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px dotted rgba(196,166,122,0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-item.visible {
    opacity: 1;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-name {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #2A2520;
    letter-spacing: 0.03em;
}

.menu-item-kr {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 0.85rem;
    color: #5A8A6A;
    letter-spacing: 0.03em;
}

/* ===== Footer Shore ===== */
#footer-shore {
    background: linear-gradient(180deg, #FFF8F0 0%, #F5E6CC 100%);
    padding: 80px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer-waves {
    width: 200%;
    height: 40px;
    margin-bottom: 24px;
    animation: waveDrift1 45s linear infinite;
}

.footer-text {
    font-family: 'Cormorant Infant', serif;
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: #5A8A6A;
}

/* ===== Fade-in Sections ===== */
.fade-section {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-section.visible {
    opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .spread {
        flex-direction: column;
    }

    .spread-reverse {
        flex-direction: column;
    }

    .spread-visual {
        width: 100%;
        min-height: 40vh;
    }

    .spread-text {
        width: 100%;
        margin-left: 0;
        padding: 40px 24px;
    }

    .spread-reverse .spread-text {
        margin-right: 0;
        padding: 40px 24px;
    }

    .hangul-watermark {
        font-size: 50vw;
    }

    .masthead {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .menu-item {
        flex-direction: column;
        gap: 4px;
    }
}
