/* bada.cafe - Ocean Deep Cafe */
/* Palette: #1b4965, #5fa8d3, #bee9e8, #f5e6ca, #8b7355, #3c2415, #faf7f0, #e07a5f */

:root {
    --deep-ocean: #1b4965;
    --shallow: #5fa8d3;
    --seafoam: #bee9e8;
    --sand: #f5e6ca;
    --driftwood: #8b7355;
    --espresso: #3c2415;
    --cream: #faf7f0;
    --coral: #e07a5f;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
    color: var(--espresso);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
}

/* Hidden SVG defs */
.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ============================= */
/* Tide Line - left margin       */
/* ============================= */
.tide-line {
    position: fixed;
    left: 1.25rem;
    top: 0;
    width: 4px;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    opacity: 0.35;
}

.tide-svg {
    width: 100%;
    height: 100%;
}

.tide-path {
    stroke-dasharray: 10 6;
    animation: tideShift 6s ease-in-out infinite;
}

@keyframes tideShift {
    0%, 100% {
        stroke-dashoffset: 0;
        transform: translateY(0);
    }
    50% {
        stroke-dashoffset: 16;
        transform: translateY(8px);
    }
}

/* ============================= */
/* Bubbles                       */
/* ============================= */
.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: bubbleRise linear infinite;
}

.b1 { width: 8px; height: 8px; left: 12%; bottom: -20px; background: var(--seafoam); animation-delay: 0s; animation-duration: 14s; }
.b2 { width: 5px; height: 5px; left: 28%; bottom: -20px; background: var(--shallow); animation-delay: 2.5s; animation-duration: 16s; }
.b3 { width: 11px; height: 11px; left: 48%; bottom: -20px; background: var(--seafoam); animation-delay: 1s; animation-duration: 12s; }
.b4 { width: 6px; height: 6px; left: 65%; bottom: -20px; background: var(--shallow); animation-delay: 4s; animation-duration: 15s; }
.b5 { width: 4px; height: 4px; left: 82%; bottom: -20px; background: var(--seafoam); animation-delay: 6s; animation-duration: 18s; }
.b6 { width: 7px; height: 7px; left: 20%; bottom: -20px; background: var(--shallow); animation-delay: 3s; animation-duration: 13s; opacity: 0; }
.b7 { width: 9px; height: 9px; left: 72%; bottom: -20px; background: var(--seafoam); animation-delay: 7s; animation-duration: 17s; }
.b8 { width: 3px; height: 3px; left: 40%; bottom: -20px; background: var(--shallow); animation-delay: 5s; animation-duration: 11s; }

@keyframes bubbleRise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.35;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-110vh) translateX(20px);
        opacity: 0;
    }
}

/* Slight horizontal wobble variants */
.b1, .b3, .b7 {
    animation-name: bubbleRiseLeft;
}

@keyframes bubbleRiseLeft {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    25% {
        transform: translateY(-28vh) translateX(-12px);
    }
    50% {
        transform: translateY(-55vh) translateX(8px);
        opacity: 0.35;
    }
    75% {
        transform: translateY(-82vh) translateX(-6px);
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-110vh) translateX(10px);
        opacity: 0;
    }
}

/* ============================= */
/* Ocean Sections (shared)       */
/* ============================= */
.ocean-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 8rem;
    gap: 2.5rem;
    z-index: 1;
    overflow: hidden;
}

/* Wave Edge */
.wave-edge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    display: block;
}

.wave-gentle {
    height: 70px;
}

.wave-final {
    height: 30px;
    bottom: 40px;
}

/* Sand dots — stipple pattern along wave edges */
.sand-dots {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    height: 30px;
    z-index: 2;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--sand) 1px, transparent 1px);
    background-size: 18px 12px;
    background-position: 0 0;
    opacity: 0.4;
}

.sand-dots-deep {
    opacity: 0.3;
    background-image: radial-gradient(circle, var(--seafoam) 1px, transparent 1px);
}

.sand-dots-shallows {
    bottom: 50px;
    opacity: 0.35;
}

.sand-dots-shore {
    bottom: 40px;
    opacity: 0.25;
    background-image: radial-gradient(circle, var(--driftwood) 0.8px, transparent 0.8px);
    background-size: 20px 14px;
}

/* ============================= */
/* Section 1: Deep Waters        */
/* ============================= */
.deep-waters {
    min-height: 100vh;
    background: linear-gradient(
        180deg,
        #f5e6ca 0%,
        #bee9e8 25%,
        #5fa8d3 50%,
        #1b4965 100%
    );
    padding-top: 0;
    justify-content: center;
}

.deep-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 30%, rgba(250, 247, 240, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 4;
    padding-top: 15vh;
}

.brand-name {
    font-family: 'Amatic SC', cursive;
    font-weight: 700;
    font-size: clamp(3.5rem, 12vw, 5.5rem);
    color: var(--cream);
    letter-spacing: 0.05em;
    text-shadow: 0 2px 15px rgba(27, 73, 101, 0.6), 0 0 40px rgba(95, 168, 211, 0.2);
    line-height: 1.1;
}

.brand-name .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.brand-name .letter.visible {
    opacity: 1;
    transform: translateY(0);
}

.brand-sub {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: rgba(250, 247, 240, 0.65);
    margin-top: 0.75rem;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 1.2s ease 1.5s, transform 1.2s ease 1.5s;
}

.brand-sub.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll hint */
.scroll-hint {
    margin-top: 3rem;
    opacity: 0;
    animation: scrollHintFade 1s ease 2.5s forwards;
}

@keyframes scrollHintFade {
    to { opacity: 0.5; }
}

.scroll-arrow {
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ============================= */
/* Section 2: Shallows           */
/* ============================= */
.shallows {
    background: var(--seafoam);
    min-height: 100vh;
    padding-top: 5rem;
}

/* Wave marker (decorative nested curves) */
.wave-marker {
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

/* ============================= */
/* Section 3: The Shore          */
/* ============================= */
.shore {
    background: var(--sand);
    min-height: 100vh;
    padding-top: 4rem;
}

/* ============================= */
/* Section 4: The Cafe           */
/* ============================= */
.cafe {
    background: var(--cream);
    min-height: 70vh;
    padding-top: 5rem;
    padding-bottom: 6rem;
}

/* ============================= */
/* Menu Cards                    */
/* ============================= */
.menu-card {
    max-width: 500px;
    width: 100%;
    padding: 2.25rem 2rem;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 4px 24px rgba(139, 115, 85, 0.1), 0 1px 4px rgba(139, 115, 85, 0.06);
    overflow: hidden;
    animation: cardFloat 6s ease-in-out infinite;
    animation-play-state: paused;
}

.menu-card.visible {
    animation-play-state: running;
}

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

.mc-ocean {
    background: rgba(250, 247, 240, 0.88);
    border: 1px solid rgba(190, 233, 232, 0.3);
}

.mc-sand {
    background: rgba(250, 247, 240, 0.92);
    border: 1px solid rgba(139, 115, 85, 0.1);
}

.mc-cream {
    background: var(--cream);
    border: 1px solid rgba(139, 115, 85, 0.15);
}

/* Paper grain texture overlay */
.card-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* Coffee ring stain */
.coffee-ring {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 1.5px rgba(139, 115, 85, 0.12),
        inset 0 0 25px rgba(139, 115, 85, 0.04),
        0 0 0 0.5px rgba(139, 115, 85, 0.05);
    pointer-events: none;
}

.coffee-ring-offset {
    top: auto;
    bottom: 20px;
    right: auto;
    left: 25px;
    width: 45px;
    height: 45px;
}

/* Card typography */
.card-title {
    font-family: 'Amatic SC', cursive;
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--espresso);
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.card-body {
    font-family: 'Nunito', sans-serif;
    font-size: 0.92rem;
    line-height: 1.75;
    color: rgba(60, 36, 21, 0.7);
}

.wave-mark {
    margin-top: 1.25rem;
    opacity: 0.5;
}

/* ============================= */
/* Menu Items                    */
/* ============================= */
.menu-items,
.pastry-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pastry-list {
    margin-top: 1rem;
}

.menu-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.mi-name {
    font-family: 'Josefin Slab', serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--espresso);
    white-space: nowrap;
}

.mi-dots {
    flex: 1;
    border-bottom: 1px dotted var(--driftwood);
    opacity: 0.3;
    margin-bottom: 4px;
    min-width: 20px;
}

.mi-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 0.78rem;
    color: var(--coral);
    white-space: nowrap;
}

/* ============================= */
/* Driftwood Border              */
/* ============================= */
.driftwood-border {
    width: 100%;
    max-width: 520px;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--driftwood) 0px,
        rgba(139, 115, 85, 0.55) 5px,
        rgba(139, 115, 85, 0.2) 10px,
        transparent 14px,
        rgba(139, 115, 85, 0.35) 18px,
        var(--driftwood) 22px
    );
    border-radius: 3px;
    opacity: 0.35;
    position: relative;
}

.driftwood-border::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5%;
    width: 90%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        rgba(139, 115, 85, 0.15) 7px,
        transparent 10px,
        rgba(139, 115, 85, 0.1) 16px,
        transparent 20px
    );
    border-radius: 1px;
}

.driftwood-border-lower {
    opacity: 0.25;
    margin-top: 0.5rem;
}

/* ============================= */
/* Seashell Decorations          */
/* ============================= */
.seashell {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.seashell-right {
    right: 8%;
    bottom: 30%;
}

.seashell-left {
    left: 6%;
    top: 20%;
}

/* ============================= */
/* Cafe Section                  */
/* ============================= */
.cafe-content {
    max-width: 460px;
    text-align: center;
}

.cafe-title {
    font-family: 'Amatic SC', cursive;
    font-weight: 700;
    font-size: 2.8rem;
    color: var(--espresso);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.cafe-body {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    line-height: 1.85;
    color: rgba(60, 36, 21, 0.62);
}

/* ============================= */
/* Steam Cup                     */
/* ============================= */
.steam-cup {
    position: relative;
    margin-top: 2.5rem;
    width: 60px;
    height: 80px;
}

.cup-body {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 32px;
    background: linear-gradient(180deg, var(--driftwood) 0%, #6b5740 100%);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.cup-liquid {
    position: absolute;
    top: 2px;
    left: 3px;
    right: 3px;
    height: 8px;
    background: var(--espresso);
    border-radius: 50%;
    opacity: 0.4;
}

.cup-handle {
    position: absolute;
    right: 2px;
    bottom: 16px;
    width: 14px;
    height: 18px;
    border: 2.5px solid var(--driftwood);
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.cup-saucer {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 6px;
    background: var(--driftwood);
    border-radius: 0 0 50% 50%;
    opacity: 0.6;
}

.steam {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.steam-path {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: steamWisp 4s ease-in-out infinite;
}

.sp-1 {
    animation-delay: 0s;
}

.sp-2 {
    animation-delay: 1.3s;
}

.sp-3 {
    animation-delay: 2.6s;
}

@keyframes steamWisp {
    0% {
        stroke-dashoffset: 60;
        opacity: 0;
        transform: translateY(0);
    }
    20% {
        opacity: 0.3;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 0.2;
    }
    80% {
        opacity: 0.08;
    }
    100% {
        stroke-dashoffset: -60;
        opacity: 0;
        transform: translateY(-15px);
    }
}

/* Cafe hours */
.cafe-hours {
    text-align: center;
    margin-top: 1.5rem;
}

.hours-label {
    font-family: 'Josefin Slab', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--driftwood);
    opacity: 0.6;
    margin-bottom: 0.25rem;
}

.hours-time {
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    color: rgba(60, 36, 21, 0.4);
}

/* Cafe closing */
.cafe-closing {
    font-family: 'Josefin Slab', serif;
    font-size: 0.85rem;
    color: var(--driftwood);
    margin-top: 3rem;
    opacity: 0.45;
    letter-spacing: 0.02em;
    text-align: center;
    position: relative;
    z-index: 4;
}

/* ============================= */
/* Fade In Animations            */
/* ============================= */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered card animations */
.shallows .menu-card:nth-child(2) {
    transition-delay: 0.15s;
}

.shallows .menu-card:nth-child(3) {
    transition-delay: 0.3s;
}

.shore .menu-card:nth-child(2) {
    transition-delay: 0.1s;
}

.shore .menu-card:nth-child(3) {
    transition-delay: 0.2s;
}

/* ============================= */
/* Responsive                    */
/* ============================= */
@media (max-width: 768px) {
    .ocean-section {
        padding: 4rem 1.25rem 6rem;
    }

    .menu-item {
        flex-wrap: wrap;
    }

    .mi-dots {
        display: none;
    }

    .mi-desc {
        font-size: 0.72rem;
        width: 100%;
        padding-left: 0;
    }

    .tide-line {
        display: none;
    }

    .seashell {
        display: none;
    }

    .brand-name {
        font-size: clamp(2.8rem, 14vw, 4.5rem);
    }

    .menu-card {
        max-width: 100%;
        padding: 1.75rem 1.5rem;
    }

    .cafe-title {
        font-size: 2.2rem;
    }

    .hero-content {
        padding-top: 20vh;
    }

    .sand-dots {
        display: none;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: clamp(2.2rem, 16vw, 3.5rem);
    }

    .card-title {
        font-size: 1.8rem;
    }

    .ocean-section {
        padding: 3rem 1rem 5rem;
    }
}

@media (min-width: 1200px) {
    .menu-card {
        max-width: 540px;
    }

    .cafe-content {
        max-width: 520px;
    }
}
