/* ===== Hero (mobile-first: teks -> foto -> fitur) ===== */
.hero {
    --hero-bg: 243, 236, 224;
    position: relative; overflow: hidden;
    color: var(--ink);
    padding: calc(var(--nav-h) + 1.5rem) 0 2rem;
    background: rgb(var(--hero-bg));
}
.hero-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.hero .tagline {
    font-family: 'Caveat', cursive; font-size: 1.55rem;
    color: var(--brown); display: block; margin-bottom: .2rem;
}
.hero h1 {
    font-size: clamp(2.3rem, 3.4vw + 1rem, 3.8rem);
    font-weight: 700; line-height: 1.12; color: var(--ink); margin: 0;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead { max-width: 440px; font-size: 1rem; color: var(--ink-soft); line-height: 1.6; margin: 1rem 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.hero-cta .btn { flex: 1 1 150px; white-space: nowrap; padding-left: 1rem; padding-right: 1rem; }

/* Slider foto: di mobile jadi kartu foto yang jelas terlihat, dot di bawahnya */
.hero-slider { position: relative; }
.hero-frame {
    position: relative; overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    background: #d9cdb6;
    box-shadow: 0 14px 30px rgba(74, 44, 23, .20);
    touch-action: pan-y;           /* geser horizontal dipakai slider, scroll vertikal tetap normal */
    -webkit-tap-highlight-color: transparent;
}
.hero-slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    opacity: 0; z-index: 0;
    will-change: opacity; backface-visibility: hidden;
    user-select: none; -webkit-user-drag: none;
}
.hero-slide.prev { opacity: 1; z-index: 1; }
.hero-slide.active { opacity: 1; z-index: 2; animation: slideFade 1s ease; }
@keyframes slideFade { from { opacity: 0; } to { opacity: 1; } }
/* bayangan gelap tipis di bawah foto supaya nama menu terbaca */
.hero-frame::before {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
    background: linear-gradient(0deg, rgba(30, 16, 6, .62), rgba(30, 16, 6, 0));
    pointer-events: none; z-index: 3;
}
.hero-caption {
    position: absolute; left: 1rem; right: 1rem; bottom: .7rem; z-index: 4;
    font-family: 'Caveat', cursive; font-size: 1.7rem; line-height: 1.1; color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .55);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-dots {
    --dot: rgba(74, 44, 23, .25); --dot-on: var(--gold-dark);
    display: flex; justify-content: center; flex-wrap: wrap;
    margin-top: .55rem;
}
/* area sentuh 20x24 px, titik yang terlihat tetap kecil */
.hero-dot {
    position: relative; width: 20px; height: 24px; padding: 0; border: 0; background: none;
    cursor: pointer; transition: width .3s ease;
}
.hero-dot::before {
    content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 8px; margin-top: -4px;
    border-radius: 999px; background: var(--dot); transition: background .3s ease;
}
.hero-dot:hover::before { background: var(--dot-on); opacity: .7; }
.hero-dot.active { width: 34px; }
.hero-dot.active::before { background: var(--dot-on); opacity: 1; }

/* Kartu fitur: 2x2 di HP, 4 kolom di layar lebar */
.hero-features {
    background: rgba(250, 246, 238, .96);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border-radius: 16px; padding: 1rem .75rem;
    box-shadow: 0 10px 30px rgba(74, 44, 23, .12);
}
.hero-features .item { display: flex; gap: .65rem; align-items: flex-start; padding: .45rem .6rem; }
.hero-features .ico { font-size: 1.5rem; line-height: 1; }
.hero-features strong { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.hero-features small { display: block; font-size: .78rem; color: #7a6652; line-height: 1.4; margin-top: .15rem; }

/* Tablet (576-991): foto lebih lebar & pendek */
@media (min-width: 576px) {
    .hero-frame { aspect-ratio: 16 / 9; }
    .hero-cta .btn { flex: 0 0 auto; }
    .hero-features { padding: 1.1rem 1rem; }
}

/* Laptop / desktop: teks di kiri, foto memenuhi sisi kanan dengan gradasi halus */
@media (min-width: 992px) {
    .hero {
        display: flex; align-items: center;
        min-height: 640px; min-height: min(100svh, 860px);
        padding: calc(var(--nav-h) + 2rem) 0 3rem;
    }
    .hero-grid { display: block; }
    .hero-text { position: relative; z-index: 2; max-width: 540px; }
    .hero-cta .btn { flex: 0 0 auto; }
    .hero-slider { position: absolute; top: 0; right: 0; bottom: 0; left: 50%; z-index: 1; }
    .hero-frame {
        position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none;
    }
    .hero-frame::after {
        content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
        background: linear-gradient(90deg,
            rgba(var(--hero-bg), 1)   0%,
            rgba(var(--hero-bg), .88) 10%,
            rgba(var(--hero-bg), .62) 24%,
            rgba(var(--hero-bg), .34) 40%,
            rgba(var(--hero-bg), .12) 55%,
            rgba(var(--hero-bg), 0)   70%);
    }
    .hero-frame::before { height: 30%; }
    .hero-caption { left: auto; right: 2rem; bottom: 2.6rem; max-width: 60%; font-size: 1.6rem; text-align: right; }
    .hero-dots {
        --dot: rgba(255, 255, 255, .6); --dot-on: var(--gold);
        position: absolute; right: 1.5rem; bottom: .8rem; z-index: 5; margin: 0;
    }
    .hero-features {
        position: relative; z-index: 2; max-width: 760px; margin-top: 3rem;
        padding: 1.1rem 1.1rem;
    }
    .hero-features .item + .item { border-left: 1px solid var(--line); }
    .hero-features strong { font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
    .hero-features small { font-size: .74rem; }
}
@media (min-width: 1200px) { .hero-slider { left: 46%; } }
