/* GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #f6c453;
    --primary-soft: #fff3cd;
    --accent: #ff9f43;
    --accent-soft: rgba(255, 159, 67, 0.16);
    --dark: #2f2216;
    --bg: #fffaf0;
    --card-bg: #ffffff;
    --border-soft: #f1e0b5;
    --muted: #7b6a55;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--dark);
    line-height: 1.6;
}

/* GLOBAL LAYOUT */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

main {
    position: relative;
    z-index: 1;
}

/* BACKGROUND DECORATION */

.bg-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-decor::before,
.bg-decor::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
}

.bg-decor::before {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #ffe29f, #ffa99f);
    top: -70px;
    right: 5%;
}

.bg-decor::after {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #fff3b0, #ffecd2);
    bottom: -90px;
    left: 0;
}

/* HEADER */

/* HEADER */

header {
    background: rgba(255, 248, 225, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-symbol {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #fff8e1, #f3a61b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span:first-child {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.logo-text span:last-child {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* NAV DESKTOP */

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

nav a:hover,
nav a.active {
    background-color: var(--accent-soft);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* HAMBURGER BUTTON */

.nav-toggle {
    display: none;
    /* default: tidak muncul di desktop */
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: #fff7dd;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-toggle-lines {
    width: 18px;
    height: 14px;
    position: relative;
}

.nav-toggle-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 999px;
    background: #3a2a1a;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.nav-toggle-line:nth-child(1) {
    top: 0;
}

.nav-toggle-line:nth-child(2) {
    top: 6px;
}

.nav-toggle-line:nth-child(3) {
    bottom: 0;
}

/* Saat toggle aktif -> jadi ikon X */

.nav-toggle.open .nav-toggle-line:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

.nav-toggle.open .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .nav-toggle-line:nth-child(3) {
    bottom: 6px;
    transform: rotate(-45deg);
}

/* RESPONSIVE NAVIGATION */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-visual {
        order: -1;
    }

    .hero {
        padding-top: 2.3rem;
    }

    .vimi-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-carousel-controls {
        inset: auto 0 -2.1rem 0;
    }
}

/* NAVIGASI MOBILE */

@media (max-width: 640px) {
    .header-inner {
        align-items: center;
    }

    .nav-toggle {
        display: flex;
        /* tombol hamburger muncul */
    }

    nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        padding: 0.3rem 1.2rem 0.8rem;
        background: rgba(255, 248, 225, 0.98);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
        border-radius: 0 0 1rem 1rem;
        transform-origin: top;
        transform: scaleY(0.8);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    nav ul {
        flex-direction: column;
        gap: 0.4rem;
    }

    nav a {
        display: block;
        width: 100%;
    }

    /* saat menu dibuka */
    nav.open {
        opacity: 1;
        transform: scaleY(1);
        pointer-events: auto;
    }
}


/* HERO SECTION */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 2.6rem;
    align-items: center;
    padding: 3.2rem 0 2.5rem;
}

.hero-text h1 {
    font-size: 2.4rem;
    margin-bottom: 0.4rem;
}

.hero-text h1 span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.hero-text p {
    font-size: 0.97rem;
    max-width: 600px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.1rem 0 1.6rem;
}

.badge {
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background-color: var(--primary-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* HERO STATS */

.hero-stats {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.hero-stat {
    background: var(--card-bg);
    border-radius: 1.1rem;
    padding: 0.9rem 1.1rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    min-width: 130px;
    position: relative;
    overflow: hidden;
}

.hero-stat::after {
    content: "";
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 234, 167, 0.9), rgba(255, 193, 7, 0.2));
}

.hero-stat span:first-child {
    font-weight: 700;
    font-size: 1.1rem;
}

.hero-stat span:last-child {
    font-size: 0.78rem;
    opacity: 0.85;
}

/* HERO CAROUSEL (KANAN) */

.hero-visual {
    position: relative;
}

.hero-carousel {
    position: relative;
    border-radius: 1.4rem;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
    background: #fef6d9;
    min-height: 280px;
}

.hero-slides {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-slide {
    min-width: 100%;
    padding: 1.2rem 1.3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--dark);
}

.hero-slide-content {
    background: rgba(255, 250, 240, 0.85);
    border-radius: 1rem;
    padding: 0.8rem 0.9rem;
    backdrop-filter: blur(6px);
}

.hero-slide-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.hero-slide-desc {
    font-size: 0.82rem;
}

.hero-slide-caption {
    position: absolute;
    top: 0.7rem;
    left: 0.9rem;
    font-size: 0.75rem;
    background: rgba(255, 248, 225, 0.95);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Placeholder jika ingin pakai gambar nanti */
.hero-slide-image-layer {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    mix-blend-mode: soft-light;
    background-size: cover;
    background-position: center;
}

/* Paksa carousel punya tinggi tetap dan slides ikut penuh */
.hero-carousel {
    position: relative;
    border-radius: 1.4rem;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
    background: #fef6d9;
    height: 320px;
    /* dari min-height → height supaya fix */
}

.hero-slides {
    display: flex;
    height: 100%;
    /* isi penuh tinggi carousel */
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    /* slide ikut penuh */
    padding: 1.2rem 1.3rem 2.4rem;
    /* tambah padding bawah sedikit untuk teks */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--dark);
    overflow: hidden;
}

/* layer gambar tetap full */
.hero-slide-image-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    mix-blend-mode: normal;
}

/* teks di atas gambar */
.hero-slide-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 250, 240, 0.82);
    border-radius: 1rem;
    padding: 0.8rem 0.9rem;
    backdrop-filter: blur(6px);
}

/* caption juga di atas gambar */
.hero-slide-caption {
    position: absolute;
    top: 0.7rem;
    left: 0.9rem;
    font-size: 0.75rem;
    background: rgba(255, 248, 225, 0.95);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 1;
}

/* Controls lebih rapat ke bawah, sedikit space saja */
.hero-carousel-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.5rem;
    /* diperkecil */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.1rem;
    z-index: 2;
}


/* HERO CAROUSEL CONTROLS */

.hero-carousel-controls {
    position: absolute;
    inset: auto 0 -2.3rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- PRIORITAS: GAMBAR KELIHATAN --- */
.hero-slide {
    min-width: 100%;
    padding: 1.2rem 1.3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--dark);
    overflow: hidden;
    /* biar gambar nggak keluar */
}

/* layer gambar di belakang tapi sangat jelas */
.hero-slide-image-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    /* dari 0.4 → 1 supaya jelas */
    mix-blend-mode: normal;
    /* dari soft-light → normal */
}

/* teks & caption di atas gambar */
.hero-slide-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 250, 240, 0.82);
    border-radius: 1rem;
    padding: 0.8rem 0.9rem;
    backdrop-filter: blur(6px);
}

.hero-slide-caption {
    position: absolute;
    top: 0.7rem;
    left: 0.9rem;
    font-size: 0.75rem;
    background: rgba(255, 248, 225, 0.95);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 1;
}

/* --- PRIORITAS: NAVIGASI KELIHATAN --- */
.hero-carousel {
    position: relative;
    border-radius: 1.4rem;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
    background: #fef6d9;
    min-height: 280px;
}

/* letakkan controls DI DALAM kartu, bukan minus */
.hero-carousel-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.7rem;
    /* dari -2.3rem → 0.7rem */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.1rem;
    z-index: 2;
    /* di atas gambar & konten */
}

/* dots & arrows tetap, cuma dipastikan bisa kelihatan */
.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(104, 84, 52, 0.35);
    cursor: pointer;
    transition: all 0.2s;
}

.hero-dot.active {
    width: 26px;
    background: var(--accent);
}

.hero-arrow-btn {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: #fff7dd;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    font-size: 0.8rem;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Tombol kekuningan + layout ikon */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    border: none;

    background: linear-gradient(135deg, #FACC15, #F59E0B);
    color: #1F2933;

    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;

    cursor: pointer;
    box-shadow: 0 10px 20px rgba(234, 179, 8, 0.35);
    transform: translateY(0);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease,
        filter 0.15s ease;
}

/* Ikon di dalam tombol */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

/* Hover / aktif */
.btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 14px 28px rgba(234, 179, 8, 0.45);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 6px 12px rgba(234, 179, 8, 0.35);
}

/* Aksesibilitas: fokus keyboard */
.btn:focus-visible {
    outline: 2px solid #FACC15;
    outline-offset: 3px;
}

/* Responsif: center di layar kecil */
@media (max-width: 640px) {
    .hero-cta {
        justify-content: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* IMAGE PLACEHOLDER GENERIC (masih bisa dipakai di section lain) */

.image-placeholder {
    background: repeating-linear-gradient(45deg,
            #fff3cd,
            #fff3cd 10px,
            #ffe9a1 10px,
            #ffe9a1 20px);
    border-radius: 1.2rem;
    border: 2px dashed rgba(255, 255, 255, 0.9);
    min-height: 260px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.image-placeholder::after {
    content: "Spot Foto / Gambar - ganti dengan foto peternakan / produk PT. PRIMA REZEKI";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(58, 42, 26, 0.9);
    background: linear-gradient(to top,
            rgba(255, 250, 240, 0.88),
            rgba(255, 250, 240, 0.2));
}

/* SECTION GENERIC */

.section {
    padding: 2.3rem 0 2.7rem;
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 0.7rem;
    border-left: 4px solid var(--accent);
    padding-left: 0.6rem;
}

.section-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1.2rem;
    max-width: 720px;
}

/* GRID & CARD */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: 1.1rem;
    padding: 1.2rem 1.3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-soft);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left, rgba(255, 231, 172, 0.2), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 193, 7, 0.5);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card ul {
    padding-left: 1.2rem;
    font-size: 0.9rem;
}

.card ul li+li {
    margin-top: 0.2rem;
}

.highlight-list li {
    margin-bottom: 0.5rem;
}

/* VISI MISI */

.vimi-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
    gap: 1.5rem;
}

.visi-box,
.misi-box {
    background-color: var(--card-bg);
    border-radius: 1.1rem;
    padding: 1.2rem 1.3rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-soft);
}

.visi-text {
    font-size: 0.92rem;
    white-space: pre-line;
}

.misi-box ol {
    padding-left: 1.2rem;
    font-size: 0.9rem;
}

.misi-box li+li {
    margin-top: 0.4rem;
}

/* OVERVIEW PAGE */

.facility-list li {
    margin-bottom: 0.4rem;
}

/* GALLERY */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: 1.1rem;
    background-color: var(--card-bg);
    border: 1px dashed var(--border-soft);
    min-height: 150px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.gallery-item::after {
    content: "Slot Foto Portofolio - ganti dengan foto kandang, fasilitas, armada, dll.";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    font-size: 0.8rem;
    text-align: center;
    background: linear-gradient(to top,
            rgba(255, 250, 240, 0.92),
            rgba(255, 250, 240, 0.2));
}

/* PRODUCT PAGE */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 1.1rem;
    padding: 1.2rem 1.3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top right, rgba(255, 193, 7, 0.22), transparent 55%);
    opacity: 0;
    transition: opacity 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 193, 7, 0.6);
}

.product-card:hover::before {
    opacity: 1;
}

.product-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background-color: var(--primary-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 0.3rem;
}

.product-image-placeholder {
    margin-top: 0.6rem;
    border-radius: 0.9rem;
    border: 2px dashed rgba(0, 0, 0, 0.06);
    min-height: 130px;
    position: relative;
    overflow: hidden;
    background: repeating-linear-gradient(45deg,
            #fff7da,
            #fff7da 10px,
            #ffe29f 10px,
            #ffe29f 20px);
}

.img-product{
    max-width: 100%;
    height: auto;
}

.product-image-placeholder::after {
    content: "Spot Foto Produk - ganti dengan foto TELUR REZEKI / Pabrik AMDK";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    text-align: center;
    font-size: 0.8rem;
    background: linear-gradient(to top,
            rgba(255, 250, 240, 0.9),
            rgba(255, 250, 240, 0.2));
}

/* FOOTER */

footer {
    background: #2b2116;
    color: #fdf3dc;
    padding: 1.7rem 0 1.3rem;
    margin-top: 2.2rem;
    position: relative;
    z-index: 2;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.footer-brand {
    max-width: 340px;
}

.footer-brand-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.footer-brand-desc {
    font-size: 0.84rem;
    opacity: 0.92;
}

.footer-contact {
    font-size: 0.82rem;
}

.footer-bottom {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 0.7rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0.85;
}

/* SCROLL REVEAL ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-visual {
        order: -1;
    }

    .hero {
        padding-top: 2.3rem;
    }

    .vimi-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-carousel-controls {
        inset: auto 0 -2.1rem 0;
    }
}

@media (max-width: 640px) {
    .header-inner {
        display: flex;
        flex-direction: row;
        /* pastikan sejajar, bukan kolom */
        align-items: center;
        justify-content: space-between;
        /* logo kiri, hamburger kanan */
    }

    .logo {
        margin-right: auto;
        /* dorong logo ke kiri */
    }

    .nav-toggle {
        display: flex;
        /* tampilkan tombol hamburger */
        margin-left: auto;
        /* dorong ke kanan */
    }

    nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        padding: 0.3rem 1.2rem 0.8rem;
        background: rgba(255, 248, 225, 0.98);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
        border-radius: 0 0 1rem 1rem;
        transform-origin: top;
        transform: scaleY(0.8);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    nav ul {
        flex-direction: column;
        gap: 0.4rem;
    }

    nav a {
        display: block;
        width: 100%;
    }

    nav.open {
        opacity: 1;
        transform: scaleY(1);
        pointer-events: auto;
    }
}

/* OVERVIEW CAROUSEL */

.overview-carousel {
    margin-top: 1.5rem;
    border-radius: 1.4rem;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    background: #fef6d9;
    min-height: 260px;
    position: relative;
}

.overview-slides {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.overview-slide {
    min-width: 100%;
    position: relative;
    min-height: 500px;
}

/* Placeholder gradient kalau belum pakai foto */
.overview-bg-1 {
    background: linear-gradient(135deg, #ffe29f 0%, #ffa99f 48%, #fecfef 100%);
}

.overview-bg-2 {
    background: linear-gradient(135deg, #fff3b0 0%, #ffdd9e 40%, #f9c58d 100%);
}

.overview-bg-3 {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

/* Layer gambar opsional (kalau mau pakai background-image) */
.overview-slide-image-layer {
    position: absolute;
    inset: 0;
    opacity: 1;
    mix-blend-mode: soft-light;
    background-size: cover;
    background-position: center;
}

/* KONTROL CAROUSEL OVERVIEW */

.overview-carousel-controls {
    position: absolute;
    inset: auto 0 0.7rem 0;
    padding: 0 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.overview-dots {
    display: flex;
    gap: 0.4rem;
}

.overview-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(104, 84, 52, 0.35);
    cursor: pointer;
    transition: all 0.2s;
}

.overview-dot.active {
    width: 22px;
    background: var(--accent);
}

.overview-arrows {
    display: flex;
    gap: 0.4rem;
}

.overview-arrow-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: #fff7dd;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    font-size: 0.8rem;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.overview-arrow-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    background: #ffe7a1;
}

/* teks overview di bawah slider */
.overview-desc {
    margin-top: 1.2rem;
    max-width: 100%;
    text-align: justify;
}