/* ═══════════════════════════════════════════════════════════
   FIX GLOBAL — Cegah horizontal scroll
═══════════════════════════════════════════════════════════ */
html,
body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* ═══════════════════════════════════════════════════════════
   HERO TITLE — ANIMASI ENTRANCE
   Teks HOUSE, of, SWEDEN masuk dari bawah satu per satu
═══════════════════════════════════════════════════════════ */
.hero-title .house,
.hero-title .of,
.hero-title .sweden,
.hero-content .tagline {
    opacity: 0;
    will-change: opacity, transform;
}

body.loaded .hero-title .house {
    animation: heroSlideUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
body.loaded .hero-title .of {
    animation: heroFadeScale 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}
body.loaded .hero-title .sweden {
    animation: heroSlideUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.70s forwards;
}
body.loaded .hero-content .tagline {
    animation: heroFadeScale 0.7s ease 1.05s forwards;
}

@keyframes heroSlideUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeScale {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}


/* ═══════════════════════════════════════════════════════════
   SLIDESHOW — OPACITY FADE (MOBILE)
═══════════════════════════════════════════════════════════ */
.hero-slideshow {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    transition: none !important;
}
.hero-slideshow .slide {
    position: absolute !important;
    inset: 0 !important;
    opacity: 0 !important;
    transition: opacity 1s ease-in-out !important;
    pointer-events: none !important;
}
.hero-slideshow .slide.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1 !important;
}
.hero-slideshow .slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
}

.slide-progress-bar { z-index: 5 !important; }
.slide-dots         { z-index: 5 !important; }

.hero-section::before  { z-index: 2 !important; }
.hero-section .container {
    position: relative !important;
    z-index: 3 !important;
}
.hero-content {
    position: relative !important;
    z-index: 3 !important;
}


/* ═══════════════════════════════════════════════════════════
   COFFEE DECO
═══════════════════════════════════════════════════════════ */
.coffee {
    overflow: visible !important;
    z-index: 10 !important;
    position: absolute !important;
    max-width: none !important;
}
.coffee img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
}
.testimonial-section  { overflow: visible !important; }
.testimonials-wrapper { overflow: visible !important; }


/* ═══════════════════════════════════════════════════════════
   #favorites .menu-title — BANNER ORANGE FULL LEBAR
═══════════════════════════════════════════════════════════ */
#favorites .menu-title {
    position: static !important;
    left: auto !important;
    transform: none !important;
    border-radius: 0 !important;
    display: block !important;
    text-align: center !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 18px 24px !important;
    background: #C8361D !important;
    color: #fff !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
    border: none !important;
    margin-bottom: 40px !important;
}


/* ═══════════════════════════════════════════════════════════
   ≤ 1024px  ·  TABLET LANDSCAPE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .menu-grid { grid-template-columns: 1fr; }
    .menu-card { gap: 16px; }
    .menu-img  { width: 140px; height: 160px; }
}


/* ═══════════════════════════════════════════════════════════
   ≤ 992px  ·  TABLET WIDE
═══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-section::after {
        border-top-left-radius:  50% 80px;
        border-top-right-radius: 50% 80px;
    }
}


/* ═══════════════════════════════════════════════════════════
   ≤ 900px  ·  TABLET PORTRAIT
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

    .hero-section .container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 70vh;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 600px;
    }

    /* ── FIX UTAMA: terpusat, tidak bergeser ── */
    .hero-title {
        text-align: center !important;
        width: fit-content !important;
        margin: 0 auto !important;
    }
    .hero-title .house  { margin-left: 0 !important; }
    .hero-title .sweden { margin-left: 0 !important; }
    .hero-title .of {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .hero-content h1  { font-size: 62px; }
    .cta-group        { justify-content: center; }
    .open-hours-badge { bottom: 20px; right: 20px; font-size: 16px; padding: 12px 20px; }

    .welcome-section { flex-direction: column; gap: 24px; }
    .welcome-image   { width: 100%; height: 240px; }

    #favorites .menu-title {
        font-size: 28px !important;
        padding: 16px 20px !important;
        margin-bottom: 28px !important;
    }
    #favorites .menu-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
    }
    #favorites .menu-card {
        flex-direction: row;
        align-items: center;
        padding: 14px 16px;
        gap: 16px;
        min-height: unset;
        box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    }
    #favorites .menu-img {
        width: 140px; height: 140px; flex: 0 0 140px;
        border-radius: 14px; overflow: hidden;
    }
    #favorites .menu-img img  { width: 100%; height: 100%; object-fit: cover; }
    #favorites .menu-content  { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 0; }
    #favorites .menu-name     { font-size: 15px; margin: 0; }
    #favorites .menu-price    { font-size: 14px; font-weight: 800; margin: 0; color: black; }
    #favorites .menu-desc     { font-size: 12px; margin: 0; color: #888; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

    .coffee       { display: block; max-width: 150px; top: 60px; }
    .coffee-left  { left: 15px; }
    .coffee-right { right: 15px; }

    .open-from-content    { padding: 30px; text-align: center; }
    .open-from-content h2 { font-size: 36px; }
    .open-from-time       { font-size: 32px; }
    .open-from-tagline    { font-size: 14px; }

    .promo-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════
   ≤ 768px  ·  MOBILE BESAR
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    .hero-section {
        padding: 0 16px;
        min-height: 65vh;
        max-height: 80vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-section::before  { background: rgba(0,0,0,0.35); }
    .hero-section .container {
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 65vh;
    }
    .hero-content {
        max-width: 520px;
        text-align: center;
        align-items: center;
        margin-top: 0;
        display: flex;
        flex-direction: column;
    }
    .hero-content h1       { font-size: 54px; line-height: 1.05; }
    .hero-content .tagline { font-size: 20px; margin-bottom: 16px; }

    /* ── FIX: Hapus semua margin-left yang menyebabkan geser ── */
    .hero-title {
        font-size: 54px !important;
        line-height: 0.95 !important;
        text-align: center !important;
        width: fit-content !important;
        margin: 0 auto !important;
    }
    .hero-title .house  { margin-left: 0 !important; }
    .hero-title .sweden { margin-left: 0 !important; }
    .hero-title .of {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        font-size: 38px !important;
    }

    .btn        { width: 100%; text-align: center; padding: 12px 20px; font-size: 14px; }
    .cta-group  { justify-content: center; flex-direction: column; gap: 10px; width: 100%; }
    .open-hours-badge { display: none; }

    .welcome-image      { width: 100%; height: 200px; }
    .welcome-content h3 { font-size: 22px; padding: 6px 12px; }
    .welcome-content p  { font-size: 14px; }

    #cafe-atmosphere .gallery-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 10px 14px 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    #cafe-atmosphere .gallery-grid::-webkit-scrollbar { display: none; }
    #cafe-atmosphere .gallery-item {
        flex: 0 0 85%;
        aspect-ratio: 1 / 1;
        scroll-snap-align: center;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 14px 40px rgba(0,0,0,0.18);
    }
    #cafe-atmosphere .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
    #cafe-atmosphere .section-title    { text-align: center; font-size: 20px; margin-bottom: 16px; }

    .testimonials-grid    { grid-template-columns: 1fr; }
    .testimonial-section  { padding-top: 120px; padding-bottom: 60px; overflow: visible !important; }
    .testimonial-section::after {
        border-top-left-radius:  50% 60px;
        border-top-right-radius: 50% 60px;
    }

    .coffee {
        display: block !important;
        max-width: 140px !important;
        top: -30px !important;
        filter: drop-shadow(0 10px 16px rgba(0,0,0,0.22));
    }
    .coffee-left  { left: 5px; }
    .coffee-right { right: 5px; }

    .about-container             { grid-template-columns: 1fr; gap: 20px; align-items: stretch; }
    .about-image                 { width: 100%; height: 280px; overflow: hidden; border-radius: 18px; order: 1; }
    .about-image img             { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
    .about-container > *:not(.about-image) { order: 2; }
    .about-badge  { font-size: 11px; padding: 4px 10px; margin-bottom: 8px; }
    .about-title  { font-size: 20px; line-height: 1.25; margin-bottom: 10px; }
    .about-brand  { font-size: 22px; }
    .about-desc   { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
    .about-stats  { display: flex; flex-direction: row; gap: 12px; }
    .stat-number  { font-size: 18px; }
    .stat-label   { font-size: 10px; }

    .open-from-content    { padding: 24px; }
    .open-from-content h2 { font-size: 24px; margin-bottom: 12px; }
    .open-from-time       { font-size: 36px; }

    .promo-grid    { grid-template-columns: repeat(2,1fr); gap: 16px; }
    .promo-wrapper { padding: 40px 24px; margin: 0 16px; }
    .promo-title   { font-size: 28px; }
    .promo-card    { padding: 14px; }
    .promo-card img{ height: 200px; }

    #favorites .menu-title {
        font-size: 20px !important;
        padding: 12px 20px !important;
        margin-bottom: 18px !important;
        letter-spacing: 2px !important;
    }
    #favorites .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0;
    }
    #favorites .menu-card {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 8px;
        min-height: unset;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        border-radius: 12px;
    }
    #favorites .menu-img { width: 100%; height: 140px; flex: none; border-radius: 10px; overflow: hidden; }
    #favorites .menu-img img { width: 100%; height: 100%; object-fit: cover; }
    #favorites .menu-content { flex: none; display: flex; flex-direction: column; gap: 4px; padding: 0; text-align: left; }
    #favorites .menu-name    { font-size: 13px; margin: 0; font-weight: 700; line-height: 1.3; }
    #favorites .menu-price   { font-size: 13px; font-weight: 800; margin: 0; color: black; }
    #favorites .menu-desc    { display: none; }
}


/* ═══════════════════════════════════════════════════════════
   ≤ 600px  ·  MOBILE STANDAR
═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

    body { font-size: 14px; }

    .hero-section  { padding: 0 14px; min-height: 60vh; max-height: 75vh; text-align: center; }
    .hero-section::before { background: rgba(0,0,0,0.38); }
    .hero-section .container { align-items: center; justify-content: center; min-height: 60vh; }
    .hero-content  { text-align: center; align-items: center; width: 100%; }
    .hero-content h1       { font-size: 46px; line-height: 1.05; }
    .hero-content .tagline { font-size: 17px; margin-bottom: 14px; }
    .cta-group     { flex-direction: column; gap: 10px; width: 100%; align-items: center; }
    .btn           { width: 100%; padding: 10px 16px; font-size: 13px; }
    .open-hours-badge { display: none; }

    /* ── FIX: Terpusat total ── */
    .hero-title {
        font-size: 46px !important;
        line-height: 0.95 !important;
        text-align: center !important;
        width: fit-content !important;
        margin: 0 auto !important;
    }
    .hero-title .house  { margin-left: 0 !important; }
    .hero-title .sweden { margin-left: 0 !important; }
    .hero-title .of {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        font-size: 32px !important;
    }

    .welcome-section    { gap: 14px; }
    .welcome-image      { height: 160px; border-radius: 12px; }
    .welcome-content h3 { font-size: 18px; padding: 5px 10px; }
    .welcome-content p  { font-size: 12px; line-height: 1.5; }

    #cafe-atmosphere .section-title { font-size: 18px; margin-bottom: 14px; }
    .section-title { font-size: 22px; margin-bottom: 24px; }

    .coffee {
        display: block !important;
        max-width: 130px !important;
        top: -30px !important;
    }
    .coffee-left  { left: 4px; }
    .coffee-right { right: 4px; }

    .testimonials-title   { font-size: 16px; padding: 10px 24px; margin-bottom: 30px; }
    .testimonial-card     { padding: 16px; min-height: unset; }
    .testimonial-text     { font-size: 13px; }
    .testimonials-grid    { gap: 16px; }
    .testimonial-section::after {
        border-top-left-radius:  50% 40px;
        border-top-right-radius: 50% 40px;
    }

    .open-from-section    { height: 45vh; margin-bottom: 30px; padding: 0 12px; }
    .open-from-content    { padding: 20px; width: 95%; }
    .open-from-content h2 { font-size: 18px; margin-bottom: 8px; }
    .open-from-time       { font-size: 26px; margin-bottom: 8px; }
    .open-from-tagline    { font-size: 10px; }

    .about-wrapper { padding: 35px 14px; }
    .about-image   { height: 230px; }
    .about-badge   { font-size: 11px; padding: 5px 12px; margin-bottom: 10px; }
    .about-title   { font-size: 26px; margin-bottom: 10px; }
    .about-desc    { font-size: 13px; margin-bottom: 18px; line-height: 1.6; }
    .about-stats   { gap: 16px; flex-direction: row; flex-wrap: wrap; }
    .stat-number   { font-size: 26px; }
    .stat-label    { font-size: 12px; }

    .promo-wrapper  { padding: 24px 14px; margin: 0 12px; border-radius: 14px; }
    .promo-badge    { font-size: 11px; }
    .promo-title    { font-size: 20px; }
    .promo-subtitle { font-size: 11px; margin-bottom: 18px; }
    .promo-grid     { grid-template-columns: 1fr; gap: 12px; }
    .promo-card     { padding: 12px; border-radius: 14px; }
    .promo-card img { height: 150px; border-radius: 10px; }
    footer { font-size: 11px; padding: 18px 12px; }

    #favorites .menu-title {
        font-size: 26px !important;
        padding: 12px 20px !important;
        margin-bottom: 18px !important;
        letter-spacing: 2.5px !important;
    }
    #favorites .menu-grid { gap: 10px; padding: 0; }
    #favorites .menu-card { flex-direction: column; align-items: stretch; padding: 9px; gap: 7px; box-shadow: 0 3px 12px rgba(0,0,0,0.07); }
    #favorites .menu-img  { width: 100%; height: 120px; flex: none; border-radius: 9px; overflow: hidden; }
    #favorites .menu-img img  { width: 100%; height: 100%; object-fit: cover; }
    #favorites .menu-content  { flex: none; display: flex; flex-direction: column; gap: 3px; padding: 0; }
    #favorites .menu-name     { font-size: 12px; margin: 0; font-weight: 700; line-height: 1.3; }
    #favorites .menu-price    { font-size: 12px; font-weight: 800; margin: 0; color: black; }
    #favorites .menu-desc     { display: none; }
}


/* ═══════════════════════════════════════════════════════════
   ≤ 480px  ·  MOBILE KECIL
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

    .hero-section          { padding: 0 12px; }
    .hero-content h1       { font-size: 38px; }
    .hero-content .tagline { font-size: 15px; margin-bottom: 12px; }

    .hero-title {
        font-size: 38px !important;
        width: fit-content !important;
        margin: 0 auto !important;
    }
    .hero-title .house  { margin-left: 0 !important; }
    .hero-title .sweden { margin-left: 0 !important; }
    .hero-title .of {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        font-size: 28px !important;
    }

    .btn        { padding: 9px 14px; font-size: 12px; border-radius: 999px; }
    .open-hours-badge { display: none; }

    .welcome-image      { height: 140px; }
    .welcome-content h3 { font-size: 16px; }
    .welcome-content p  { font-size: 11px; }

    .coffee { max-width: 120px !important; top: -30px !important; }

    #cafe-atmosphere .section-title { font-size: 18px; margin-bottom: 14px; }
    .testimonial-card { padding: 14px; }
    .testimonial-text { font-size: 12px; }
    .section-title    { font-size: 18px; margin-bottom: 18px; }

    .promo-wrapper  { padding: 18px 12px; margin: 0 10px; }
    .promo-title    { font-size: 16px; }
    .promo-grid     { gap: 10px; }
    .promo-card img { height: 120px; }
    footer { font-size: 10px; padding: 14px 10px; }

    #favorites .menu-title { font-size: 18px !important; padding: 10px 16px !important; margin-bottom: 14px !important; letter-spacing: 1.8px !important; }
    #favorites .menu-card  { padding: 8px; gap: 6px; }
    #favorites .menu-img   { width: 100%; height: 110px; flex: none; border-radius: 8px; }
    #favorites .menu-name  { font-size: 11px; }
    #favorites .menu-price { font-size: 11px; }
    #favorites .menu-desc  { display: none; }
}


/* ═══════════════════════════════════════════════════════════
   ≤ 430px  ·  SMALL PHONE
═══════════════════════════════════════════════════════════ */
@media (max-width: 430px) {

    .hero-content h1 { font-size: 36px; }
    .hero-title {
        font-size: 36px !important;
        width: fit-content !important;
        margin: 0 auto !important;
    }
    .hero-title .house  { margin-left: 0 !important; }
    .hero-title .sweden { margin-left: 0 !important; }
    .hero-title .of {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        font-size: 26px !important;
    }

    .testimonial-card { padding: 16px; }
    .coffee       { max-width: 110px !important; top: -30px !important; }
    .coffee-left  { left: 5px; }
    .coffee-right { right: 5px; }

    #favorites .menu-title { font-size: 16px !important; padding: 10px 14px !important; margin-bottom: 12px !important; }
    #favorites .menu-card  { padding: 7px; gap: 5px; }
    #favorites .menu-img   { width: 100%; height: 100px; flex: none; border-radius: 8px; }
    #favorites .menu-name  { font-size: 11px; }
    #favorites .menu-price { font-size: 11px; }
    #favorites .menu-desc  { display: none; }
}


/* ═══════════════════════════════════════════════════════════
   ≤ 420px  ·  SMALL PHONE — touch targets
═══════════════════════════════════════════════════════════ */
@media (max-width: 420px) {

    .hero-section { padding: 0 10px; }
    .hero-section .container { align-items: center; justify-content: center; }
    .hero-content h1       { font-size: 34px; line-height: 1.0; }
    .hero-content .tagline { font-size: 14px; margin-bottom: 10px; }

    .hero-title {
        font-size: 34px !important;
        width: fit-content !important;
        margin: 0 auto !important;
    }
    .hero-title .house  { margin-left: 0 !important; }
    .hero-title .sweden { margin-left: 0 !important; }
    .hero-title .of {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        font-size: 25px !important;
    }

    .hero-slideshow .slide img { object-position: center top; }
    .cta-group     { width: 100%; gap: 10px; }
    .cta-group .btn{ width: 100%; padding: 10px 12px; font-size: 13px; min-height: 44px; border-radius: 12px; }
    .welcome-image { height: 130px; }
    .testimonial-card { padding: 12px; }
    .coffee       { max-width: 100px !important; top: -30px !important; }
    .coffee-left  { left: 4px; }
    .coffee-right { right: 4px; }

    #favorites .menu-title { font-size: 15px !important; padding: 9px 14px !important; margin-bottom: 12px !important; }
    #favorites .menu-card  { padding: 7px; gap: 5px; }
    #favorites .menu-img   { width: 100%; height: 95px; flex: none; border-radius: 7px; }
    #favorites .menu-name  { font-size: 10px; }
    #favorites .menu-price { font-size: 10px; }
    #favorites .menu-desc  { display: none; }
}


/* ═══════════════════════════════════════════════════════════
   ≤ 360px  ·  VERY SMALL PHONE
═══════════════════════════════════════════════════════════ */
@media (max-width: 360px) {

    .hero-content h1       { font-size: 30px; }
    .hero-content .tagline { font-size: 13px; }

    .hero-title {
        font-size: 30px !important;
        width: fit-content !important;
        margin: 0 auto !important;
    }
    .hero-title .house  { margin-left: 0 !important; }
    .hero-title .sweden { margin-left: 0 !important; }
    .hero-title .of {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        font-size: 22px !important;
    }

    .btn                   { font-size: 12px; padding: 9px 10px; }
    .promo-title           { font-size: 15px; }
    .testimonial-name      { font-size: 13px; }
    .coffee       { max-width: 90px !important; top: -30px !important; }
    .coffee-left  { left: 3px; }
    .coffee-right { right: 3px; }

    #favorites .menu-title { font-size: 14px !important; padding: 9px 12px !important; margin-bottom: 10px !important; }
    #favorites .menu-card  { padding: 6px; gap: 4px; }
    #favorites .menu-img   { width: 100%; height: 85px; flex: none; border-radius: 7px; }
    #favorites .menu-name  { font-size: 10px; }
    #favorites .menu-price { font-size: 10px; }
    #favorites .menu-desc  { display: none; }
}