/* --- CONFIGURARE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Playfair+Display:wght@900&display=swap');

/* --- RESETARE GENERALĂ --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: #000000;
    font-family: 'Courier Prime', monospace;
    overflow-x: hidden;
}

/* ==========================================
   PRELOADER ANIMAT (Man Walking on Coffee Cup)
   ========================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Stadiul Animației */
.coffee-animation-stage {
    position: relative;
    width: 200px;
    height: 180px;
    margin-bottom: 20px;
}

/* Aburul de pe cafea */
.steam-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.steam {
    font-size: 24px;
    font-weight: bold;
    display: inline-block;
    animation: floatSteam 1.5s infinite ease-in-out alternate;
}

.s-1 { animation-delay: 0s; }
.s-2 { animation-delay: 0.3s; }
.s-3 { animation-delay: 0.6s; }

@keyframes floatSteam {
    0% { transform: translateY(0px) scale(0.9); opacity: 0.3; }
    100% { transform: translateY(-15px) scale(1.2); opacity: 1; }
}

/* Omulețul din linii care aleargă pe cupă */
.walker-wrapper {
    position: absolute;
    top: 38px;
    left: 0;
    width: 100%;
    height: 40px;
}

.stick-man {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 35px;
    animation: walkAcrossCup 3s linear infinite;
}

@keyframes walkAcrossCup {
    0% { left: 10px; }
    100% { left: 170px; }
}

.stick-man .head {
    width: 10px;
    height: 10px;
    border: 2px solid #000;
    border-radius: 50%;
    margin: 0 auto;
    background: #fff;
}

.stick-man .body-line {
    width: 2px;
    height: 14px;
    background: #000;
    margin: 0 auto;
}

.stick-man .arm {
    position: absolute;
    top: 12px;
    width: 10px;
    height: 2px;
    background: #000;
    transform-origin: left center;
}

.stick-man .arm-left { animation: swingArm 0.4s infinite alternate; }
.stick-man .arm-right { animation: swingArm 0.4s infinite alternate-reverse; }

.stick-man .leg {
    position: absolute;
    top: 24px;
    width: 2px;
    height: 12px;
    background: #000;
    transform-origin: top center;
}

.stick-man .leg-left { left: 8px; animation: walkLeg 0.4s infinite alternate; }
.stick-man .leg-right { left: 10px; animation: walkLeg 0.4s infinite alternate-reverse; }

@keyframes walkLeg {
    0% { transform: rotate(-30deg); }
    100% { transform: rotate(30deg); }
}

@keyframes swingArm {
    0% { transform: rotate(-25deg); }
    100% { transform: rotate(25deg); }
}

/* Ceșca de Cafea 2D */
.cup-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
}

.cup-rim {
    width: 160px;
    height: 12px;
    border: 3px solid #000;
    background: #000;
    border-radius: 6px;
}

.cup-body {
    position: relative;
    width: 130px;
    height: 80px;
    margin: 0 auto;
    border: 4px solid #000;
    border-top: none;
    border-radius: 0 0 30px 30px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cup-handle {
    position: absolute;
    right: -24px;
    top: 10px;
    width: 24px;
    height: 45px;
    border: 4px solid #000;
    border-left: none;
    border-radius: 0 15px 15px 0;
}

.cup-badge {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border: 2px solid #000;
    padding: 2px 8px;
    background: #fff;
}

/* Progres Bar */
.loader-text-wrapper {
    width: 260px;
}

.loader-status {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.progress-bar-border {
    width: 100%;
    height: 16px;
    border: 3px solid #000000;
    padding: 2px;
    background: #fff;
    box-shadow: 4px 4px 0px #000;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: #000000;
    transition: width 0.1s linear;
}

.progress-percent {
    display: block;
    margin-top: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #ffffff;
    border-bottom: 4px solid #000000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* --- HERO SECTION --- */
.hero-urban {
    height: 90vh;
    background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('background.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}

.badge-tag {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    border: 2px solid #fff;
}

.hero-inner h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 6.5rem);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 3px 3px 15px rgba(0,0,0,0.6);
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-sketch {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    border: 4px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    background: rgba(0,0,0,0.4);
    transition: 0.3s;
}

.btn-sketch:hover {
    background: #ffffff;
    color: #000000;
}

.btn-accent {
    background: #000;
    border-color: #000;
}

/* --- FEATURE NOU #1: MOOD QUIZ --- */
.quiz-section {
    padding: 80px 5%;
    background-color: #f0f0f0;
    border-bottom: 4px solid #000;
}

.quiz-box {
    max-width: 800px;
    margin: 0 auto;
    border: 4px solid #000;
    background: #fff;
    padding: 40px;
    box-shadow: 12px 12px 0px #000;
    text-align: center;
    position: relative;
}

.quiz-badge {
    position: absolute;
    top: -15px;
    left: 30px;
    background: #000;
    color: #fff;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 0.75rem;
}

.quiz-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.quiz-subtitle {
    font-weight: 700;
    margin-bottom: 30px;
    color: #444;
}

.mood-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.mood-btn {
    padding: 15px;
    border: 3px solid #000;
    background: #fff;
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.mood-btn:hover, .mood-btn.active {
    background: #000;
    color: #fff;
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0px #000;
}

.quiz-result.hidden {
    display: none;
}

.result-card {
    border: 3px dashed #000;
    padding: 25px;
    margin-top: 20px;
    background: #fafafa;
}

.result-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #666;
}

.result-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 10px 0;
}

.result-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 15px 0;
}

/* --- MENU SECTION --- */
.menu-container {
    padding: 80px 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-header-sketch h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    text-align: center;
    text-decoration: underline;
    margin-bottom: 10px;
}

.menu-legend {
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}

.menu-block h3 {
    background: #000000;
    color: #ffffff;
    padding: 5px 15px;
    margin-bottom: 25px;
    display: inline-block;
}

.line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 2px dotted #000000;
    padding-bottom: 5px;
    font-weight: 700;
}

.highlight-item {
    background: #fff3a3;
    padding: 4px 6px;
    border-bottom: 2px solid #000;
}

.price::after {
    content: " MDL";
    font-size: 0.8rem;
}

/* --- FEATURE NOU #2: OFFER BANNER --- */
.offer-banner {
    padding: 60px 5%;
    background: #000;
    color: #fff;
    text-align: center;
}

.offer-card {
    max-width: 700px;
    margin: 0 auto;
    border: 3px dashed #fff;
    padding: 40px 20px;
}

.offer-badge {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.offer-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.stamps-preview {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.stamp {
    width: 45px;
    height: 45px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stamp.gift {
    background: #fff;
    color: #000;
    font-weight: 700;
    font-size: 0.7rem;
}

/* --- REVIEWS (Story Format) --- */
.reviews-section {
    padding: 100px 5%;
    background-color: #f7f7f7;
    border-top: 4px solid #000000;
}

.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.review-card {
    background: #ffffff;
    padding: 15px;
    border: 3px solid #000000;
    box-shadow: 10px 10px 0px #000000;
}

.photo-frame {
    width: 100%;
    aspect-ratio: 9 / 16;
    border: 2px solid #000000;
    overflow: hidden;
    margin-bottom: 15px;
    background: #eee;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-name {
    display: block;
    text-align: right;
    font-weight: 700;
    border-top: 1px solid #000000;
    padding-top: 5px;
    font-size: 0.8rem;
}

/* --- CONTACT SECTION --- */
.contact-section {
    padding: 100px 5%;
    text-align: center;
    border-top: 4px solid #000000;
    background-color: #ffffff;
}

.contact-box {
    border: 4px solid #000000;
    padding: 50px 20px;
    display: inline-block;
    box-shadow: 15px 15px 0px #000000;
    max-width: 500px;
    width: 100%;
}

.contact-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 30px;
}

.contact-details p {
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.btn-sketch-dark {
    display: inline-block;
    padding: 15px 30px;
    border: 3px solid #000000;
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-sketch-dark:hover {
    background: #000000;
    color: #ffffff;
}

.btn-review {
    background-color: #000000;
    color: #ffffff;
}

.btn-review:hover {
    background-color: #ffffff;
    color: #000000;
}

/* --- FEATURE NOU #3: LIVE TOAST POPUP --- */
.live-toast {
    position: fixed;
    bottom: -100px;
    left: 20px;
    background: #fff;
    border: 3px solid #000;
    padding: 12px 20px;
    box-shadow: 6px 6px 0px #000;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 999;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.live-toast.show {
    bottom: 20px;
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-text {
    font-weight: 700;
    font-size: 0.85rem;
}

.toast-time {
    font-size: 0.7rem;
    color: #666;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 60px;
    border-top: 4px solid #000000;
    font-weight: 700;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
        padding: 15px 5%;
    }
    
    .nav-links {
        gap: 12px;
        font-size: 0.85rem;
    }

    .quiz-box {
        padding: 25px 15px;
    }
}