/* =====================================================================
   MAIN CSS — HOUSE OF SWEDEN CAFE
   ===================================================================== */

:root {
    --orange:       #C8361D;
    --orange-dark:  #a53722;
    --muted:        #706f6c;
    --card:         #fff;
    --bg:           #fff7f5;
    --section-gap:  50px;
}

* { box-sizing: border-box; }

body {
    font-family: Instrument Sans, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    margin: 0;
    color: #1b1b18;
    background: var(--bg);
    overflow-x: hidden;
}

/* ─────────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────────── */
.fade-up,
.fade-in,
.slide-in-left,
.slide-in-right,
.scale-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
    will-change: opacity, transform;
}

.fade-up.visible  { opacity: 1; transform: translateY(0); }
.fade-in.visible  { opacity: 1; transform: none; }

.slide-in-left             { transform: translateX(-60px); }
.slide-in-left.visible     { opacity: 1; transform: translateX(0); }

.slide-in-right            { transform: translateX(60px); }
.slide-in-right.visible    { opacity: 1; transform: translateX(0); }

.scale-in                  { transform: scale(0.95); }
.scale-in.visible          { opacity: 1; transform: scale(1); }

/* ─────────────────────────────────────────────
   CONTAINER
───────────────────────────────────────────── */
.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
}

.section {
    margin-top: 0;
    margin-bottom: var(--section-gap);
}

.section-title {
    margin-top: 0;
    margin-bottom: var(--section-gap);
    font-size: 32px;
    font-weight: 800;
    color: #1b1b18;
    text-align: center;
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 15px;
}
.btn.primary { background: #fff; color: var(--orange); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.btn.secondary { background: transparent; color: #fff; border: 2.5px solid #fff; }
.btn.secondary:hover { background: rgba(255,255,255,0.15); }

/* ─────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────── */
.hero-section {
    position: relative;
    color: #fff;
    padding: 80px 18px;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        #C8361D 0%,
        #C8361D 40%,
        rgba(200, 54, 29, 0.85) 43%,
        rgba(200, 54, 29, 0.40) 49%,
        rgba(200, 54, 29, 0.15) 58%,
        rgba(200, 54, 29, 0.00) 90%
    );
    pointer-events: none;
}

.hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

/* ─────────────────────────────────────────────
   HERO SLIDESHOW
───────────────────────────────────────────── */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slideshow .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.hero-slideshow .slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.hero-slideshow .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─────────────────────────────────────────────
   HERO CONTENT
───────────────────────────────────────────── */
.hero-content {
    z-index: 2;
    position: relative;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 72px;
    font-weight: 900;
    margin: 0;
    line-height: 0.95;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.hero-content .tagline {
    font-size: 22px;
    color: #fffde8;
    font-weight: 600;
}

.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* ─────────────────────────────────────────────
   HERO TITLE
   Struktur sesuai referensi:
     HOUSE
       of   ← muncul di pojok kanan bawah HOUSE
         SWEDEN
───────────────────────────────────────────── */
.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 900;
    font-size: 72px;
    line-height: 0.95;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    /* inline-block agar width mengikuti konten,
       sehingga posisi "of" bisa presisi */
    display: inline-block;
    position: relative;
}

.hero-title .line   { display: block; }
.hero-title .house  { margin-left: 0; }
.hero-title .sweden { margin-left: 98px; }

/* "of" — di antara baris HOUSE dan SWEDEN,
   sejajar dengan sisi kanan HOUSE / sisi kiri SWEDEN
   persis seperti gambar referensi */
.hero-title .of {
    position: absolute;
    /* secara vertikal: tepat di garis batas dua baris */
    top: 0.95em;          /* = tinggi 1 baris (line-height 0.95) */
    /* secara horizontal: di ujung kanan kata HOUSE */
    left: 5.2ch;          /* ≈ lebar "HOUSE" dalam karakter */
    font-family: 'Calligraffitti', cursive;
    font-style: italic;
    font-weight: 500;
    font-size: 50px;
    text-transform: lowercase;
    color: #fff;
    line-height: 1;
    -webkit-text-stroke: 0.3px #C8361D;
    text-shadow:
        0 0 4px  rgba(200, 54, 29, 1.0),
        0 0 10px rgba(200, 54, 29, 0.9),
        0 0 18px rgba(200, 54, 29, 0.7);
    pointer-events: none;
}

/* OPEN HOURS BADGE */
.open-hours-badge {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.3);
    color: #fff;
    padding: 16px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

/* ─────────────────────────────────────────────
   SLIDE DOTS & PROGRESS BAR
───────────────────────────────────────────── */
.slide-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slide-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.slide-dots .dot.active {
    background: #fff;
    transform: scale(1.3);
}

.slide-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: rgba(255,255,255,0.75);
    z-index: 3;
    border-radius: 0 2px 2px 0;
}

/* ─────────────────────────────────────────────
   WELCOME SECTION
───────────────────────────────────────────── */
.welcome-section {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin-bottom: 48px;
}

.welcome-image {
    width: 320px;
    height: 240px;
    background: #eee;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.welcome-image img { width: 100%; height: 100%; object-fit: cover; }

.welcome-content { flex: 1; padding: 0; }
.welcome-content h3 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    background: var(--orange);
    display: inline-block;
    padding: 8px 16px;
    margin: 0 0 20px;
    border-radius: 4px;
}
.welcome-content p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }

/* ─────────────────────────────────────────────
   MENU
───────────────────────────────────────────── */
.menu-title {
    font-size: 22px;
    font-weight: 600;
    background: #C8361D;
    color: #fff;
    padding: 10px 90px;
    border-radius: 999px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 80px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 56px;
    max-width: 1100px;
    margin: 0 auto;
}

.menu-card {
    background: #fff;
    padding: 28px;
    border-radius: 22px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    min-height: 260px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.18);
    transition: transform .3s ease, box-shadow .3s ease;
}
.menu-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,0.22); }

.menu-img {
    width: 180px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
}
.menu-img img { width: 100%; height: 100%; object-fit: cover; }

.menu-content { display: flex; flex-direction: column; gap: 10px; }
.menu-name { font-size: 15px; font-weight: 700; color: #C8361D; letter-spacing: .6px; margin: 0; text-transform: uppercase; }
.menu-price { font-size: 16px; font-weight: 700; color: #000; }
.menu-desc  { font-size: 13px; line-height: 1.6; color: #777; }

.section#favorites .menu-title {
    font-family: 'Cormorant Garamond', serif;
    position: static !important;
    left: auto !important;
    transform: none !important;
    border-radius: 0 !important;
    display: block !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 22px 24px !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
    border: none !important;
    margin-bottom: 48px !important;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.08) 10px, rgba(255,255,255,0.08) 11px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.08) 10px, rgba(255,255,255,0.08) 11px),
        #C8361D !important;
}

/* ─────────────────────────────────────────────
   CAFE ATMOSPHERE
───────────────────────────────────────────── */
#cafe-atmosphere .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}
#cafe-atmosphere .section-title { text-align: left; }
#cafe-atmosphere .gallery-item {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    background: #eee;
    box-shadow: 0 14px 40px rgba(0,0,0,0.18);
    transition: transform .4s ease, box-shadow .4s ease;
}
#cafe-atmosphere .gallery-item:hover { transform: translateY(-8px); box-shadow: 0 22px 60px rgba(0,0,0,0.25); }
#cafe-atmosphere .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
#cafe-atmosphere .gallery-item:hover img { transform: scale(1.08); }

/* ─────────────────────────────────────────────
   TESTIMONIAL SECTION — FIX: scroll & coffee overlap
───────────────────────────────────────────── */
.testimonial-section {
    position: relative;
    padding-top: 200px;
    padding-bottom: 80px;
    margin-bottom: 0;
    background: transparent;
    /* FIX: hapus overflow visible yang menyebabkan double scroll */
    overflow: hidden;
}

.testimonial-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120vw;
    height: 100%;
    background: linear-gradient(135deg, #C8361D 0%, #d85a3a 45%, #FADDB3 100%);
    border-top-left-radius:  60% 260px;
    border-top-right-radius: 60% 260px;
    z-index: 0;
    pointer-events: none;
}

.testimonials-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonials-title {
    text-align: center;
    background: #fff;
    color: #333;
    padding: 12px 32px;
    display: inline-block;
    margin: 0 auto 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    min-height: 200px;
    position: relative;
    /* Pastikan card di atas coffee image */
    z-index: 3;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.18); }

.testimonial-text { color: #333; font-size: 16px; line-height: 1.6; margin: 0 0 20px; font-style: italic; }
.testimonial-name { font-weight: 700; color: #333; margin: 0; font-size: 14px; margin-top: auto; }

/* ─────────────────────────────────────────────
   COFFEE DECORATION — FIX: ukuran & posisi
   Diperkecil agar hanya sebagai dekorasi tepi,
   tidak menutupi testimonial cards
───────────────────────────────────────────── */
.coffee {
    position: absolute;
    top: -60px;
    width: 280px;           /* diperkecil dari 800px */
    z-index: 1;             /* di BAWAH cards (z-index: 3) */
    pointer-events: none;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25));
}
.coffee-left  { left: 0; }
.coffee-right { right: 0; }

.coffee img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ─────────────────────────────────────────────
   OPEN FROM SECTION
───────────────────────────────────────────── */
.open-from-section {
    position: relative;
    height: 60vh;
    margin-bottom: var(--section-gap);
    padding: 0;
    overflow: hidden;
}

.open-from-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/openfrom1.webp');
    background-size: cover;
    background-position: center;
    filter: blur(6px);
    transform: scale(1.05);
    z-index: 0;
}

.open-from-wrapper {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.open-from-image { display: none; }

.open-from-content {
    background: linear-gradient(135deg, #C8361D 100%, #a53722 0%);
    color: #fff;
    padding: 40px 120px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0,0,0,0.4);
    max-width: 850px;
    width: 90%;
}

.open-from-content h2 {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 31px;
    font-weight: 700;
    margin: 0 0 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.open-from-time {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 56px;
    font-weight: 700;
    margin: 0 0 14px;
    letter-spacing: 1px;
}

.open-from-tagline {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
    margin: 0;
}

/* ─────────────────────────────────────────────
   ABOUT US SECTION
───────────────────────────────────────────── */
.about-wrapper { padding: 80px 18px; }

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-image { border-radius: 20px; overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.about-badge {
    display: inline-block;
    background: #C8361D;
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 18px;
}

.about-title { font-family: 'Cormorant Garamond', serif; font-size: 52px; line-height: 1.2; margin: 0 0 18px; }
.about-brand { color: #c7462c; font-weight: 700; }
.about-desc  { font-size: 18px; color: #555; line-height: 1.7; margin-bottom: 36px; }

.about-stats { display: flex; flex-direction: row; gap: 50px; }
.stat-item   { text-align: left; }
.stat-number { font-size: 40px; font-weight: 700; font-family: 'Cormorant Garamond', serif; color: #c7462c; }
.stat-label  { font-size: 16px; color: #555; }

/* ─────────────────────────────────────────────
   PROMO SECTION
───────────────────────────────────────────── */
.promo-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    border-radius: 28px;
    background: linear-gradient(180deg, #FFD9A0 0%, #F2A65A 100%);
    box-shadow: 0 30px 80px rgba(0,0,0,0.18);
    text-align: center;
}

.promo-badge    { font-size: 14px; font-weight: 800; letter-spacing: 3px; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.promo-title    { font-size: 34px; font-weight: 800; color: #C8361D; margin: 0; }
.promo-subtitle { font-size: 14px; color: #C8361D; margin-top: 6px; margin-bottom: 40px; }

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.promo-card {
    background: linear-gradient(180deg, #8b3a1f, #6f2b16);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    transition: transform .35s ease, box-shadow .35s ease;
}
.promo-card:hover { transform: translateY(-8px); box-shadow: 0 26px 60px rgba(0,0,0,0.45); }
.promo-card img { width: 100%; height: 320px; object-fit: cover; border-radius: 18px; }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
footer {
    margin-top: var(--section-gap);
    padding: 28px 18px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid #eee;
}

.home-page footer { margin-top: 0 !important; border-top: none !important; }
.footer { margin-top: 0 !important; position: relative; z-index: 1; }