#upacara-adat {
    background: var(--cream-dark);
}

:root {
    --cream: #f4ecdb;
    --cream-dark: #f5edd8;
    --cream-deep: #d8c8a4;
    --sogan: #7a4a1e;
    --sogan-deep: #5a3414;
    --brown-dark: #3d2410;
    --ink: #2a1c10;
    --gold: #b89243;
    --gold-soft: #cda85b;
    --gold-deep: #8f6e2c;
    --paper: #fbf6ea;
    --font-head: 'Playfair Display', serif;
    --font-narr: 'Cormorant Garamond', serif;
    --font-ui: 'Josefin Sans', sans-serif;
    --maxw: 1180px ;
    --ease: cubic-bezier(0.22,1,0.36,1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box ;
}

html  {
    scroll-behavior: smooth;
}

body  {
    background-color: var(--cream-dark);
    color: var(--ink);
    font-family: var(--font-narr);
    font-size: 18px;
    line-height: 1.75;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--brown-dark);
    line-height: 1.15;
    font-weight: 600;
}

.kicker {
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--sogan);
    margin-bottom: 1rem;
}

.kicker-gold {
    color: var(--gold-deep);
}

.subtitle {
    font-family: var(--font-ui);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--sogan);
    margin-top: 0.4rem;
}

.lead {
    font-size: 16px !important;
    font-weight: bold;
    font-style: italic;
    color: var(--sogan-deep);
    margin: 1.2rem 0 1.4rem;
    line-height: 1.5;
}

.lead.narrow {
    max-width: 640px;
    font-family: 'Josefin Sans', serif;
    margin-left: auto;
    margin-right: auto;
}

.lead.light {
    color: var(--cream);
}

em {
    color: var(--sogan);
    font-style: italic;
}

.frame {
    position: relative;
    border: 1px solid var(--gold);
    background: var(--paper);
    box-shadow: 0 24px 60px -30px rgba(61,36,16,0.5);
}

.corner {
    position: absolute;
    width: 80px;
    height: 80px;
    pointer-events: none;
    z-index: 3;
}

.corner::before,
.corner::after {
    content: "";
    position: absolute;
    background: var(--gold);
}

.corner::before {
    width: 80px;
    height: 2px;
}

.corner::after {
    width: 2px;
    height: 80px;
}

.corner-tl {
    top: -1px;
    left: -1px;
}

.corner-tl::before {
    top: 0;
    left: 0;
}

.corner-tl::after {
    top: 0;
    left: 0;
}

.corner-tr {
    top: -1px;
    right: -1px;
}

.corner-tr::before {
    top: 0;
    right: 0;
}

.corner-tr::after {
    top: 0;
    right: 0;
}

.corner-bl {
    bottom: -1px;
    left: -1px;
}

.corner-bl::before {
    bottom: 0;
    left: 0;
}

.corner-bl::after {
    bottom: 0;
    left: 0;
}

.corner-br {
    bottom: -1px;
    right: -1px;
}

.corner-br::before {
    bottom: 0;
    right: 0;
}

.corner-br::after {
    bottom: 0;
    right: 0;
}

.ukel {
    position: absolute;
    width: 46px;
    height: 46px;
    z-index: 2;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.85;
    background-image: url(../IMG/);
}

.ukel-tl {
    top: 14px;
    left: 14px;
}

.ukel-tr {
    top: 14px;
    right: 14px;
    transform: scaleX(-1);
}

.ukel-bl {
    bottom: 14px;
    left: 14px;
    transform: scaleY(-1);
}

.ukel-br {
    bottom: 14px;
    right: 14px;
    transform: scale(-1,-1);
}

.lung {
    position: absolute;
    width: 88px;
    height: 88px;
    z-index: 2;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.7;
    background-image: url(../IMG/);
}

.lung-tl {
    top: 6px;
    left: 6px;
}

.lung-tr {
    top: 6px;
    right: 6px;
    transform: scaleX(-1);
}

.lung-bl {
    bottom: 6px;
    left: 6px;
    transform: scaleY(-1);
}

.lung-br {
    bottom: 6px;
    right: 6px;
    transform: scale(-1,-1);
}

.parang-divider {
    height: 16px;
    width: 180px;
    margin: 1.4rem 0;
    background-image: repeating-linear-gradient(
        -45deg,
        var(--gold) 0,
        var(--gold) 3px,
        transparent 3px,
        transparent 9px
    );
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    opacity: 0.9;
}

.parang-divider.sm {
    height: 12px;
    width: 130px;
}

.parang-divider.center {
    margin-left: auto;
    margin-right: auto;
}

.parang-divider.light {
    background-image: repeating-linear-gradient(-45deg, var(--gold-soft) 0, var(--gold-soft) 3px, transparent 3px, transparent 9px);
}

.parang-edge {
   height: 26px;
   width: 100%;
   background-image: repeating-linear-gradient(
    -45deg,
    var(--sogan) 0,
    var(--sogan) 6px,
    var(--gold) 6px,
    var(--gold) 8px,
    transparent 8px,
    transparent 18px
   ); 
   opacity: 0.5;
   margin: 0;
}

.parang-edge.thin {
    height: 14px;
    opacity: 0.4;
}

.section {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 5.5rem 1.5rem;
}

.section-card {
    padding: 3.6rem 3,2rem;
}

.section-card.wide {
    padding: 3.6rem 2.4rem;
}

.block-title {
    font-size: 1.9rem;
    color: var(--brown-dark);
}

.centered {
    text-align: center;
    margin-bottom: 2.4rem;
}

.centered-text {
    font-family: 'Josefin Sans', serif;
    max-width: 760px;
    margin: 2rem auto 0;
    text-align: center;
    color: var(--sogan-deep);
}

h2 {
    font-size: 2.6rem;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.split p {
    font-family: 'Josefin Sans', serif;

}

.split.reverse .split-text {
    order: 2;
}

.split.reverse .split-media {
    order: 1;
}

.split-media, .wide-media {
    position: relative;
    border: 1px solid var(--gold);
    overflow: hidden;
}

.split-media img, .wide-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    background: var(--cream-deep);
    transition: transform 1.2s var(--ease);
}

.wide-media {
    margin: 1.5rem 0 0;
}

.wide-media img {
    aspect-ratio: 16 / 7;
}

.split-media:hover img, .wide-media:hover img {
    transform: scale(1.05);
}

figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.4rem 1rem 0.8rem;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--cream);
    background: linear-gradient(transparent, rgba(42,28,16,0.85));
    text-align: center;
}

.lifecycle, .pillars {
    list-style: none;
    margin-top: 0.6rem;
}

.lifecycle li, .pillars li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 1rem;
    color: var(--sogan-deep);
}

.lifecycle li::before, .pillars li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    background: var(--gold);
}

.lifecycle strong, .pillars strong {
    color: var(--brown-dark);
    font-family: var(--font-head);
    font-weight: 500;
}

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
    radial-gradient(ellipse at center, rgba(20,12,6,0.55), rgba(20,12,6,0.82))
    linear-gradient(180deg, rgba(20,12,6,0.7), rgba(20,12,6,0.6));
}

.hero-card {
    position: relative;
    z-index: 2;
    max-width: 90%;
    width: 100%;
    text-align: center;
    padding: 4.5rem 3rem;
    background: rgba(28,18,10,0.42);
    backdrop-filter: blur(3px);
    border-color: var(--gold);
}

.hero-card .corner::before,
.hero-card .corner::after {
    background: var(--gold-soft);
}

.hero-eyebrow {
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.72rem;
    color: var(--gold-soft);
    margin-bottom: 1.6rem;
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    color: var(--paper);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hero-title span {
    display: block;
    font-size: 0.8em;
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold-soft);
    font-style: italic;
    line-height: 1.2;
}

.hero .parang-divider {
    margin: 1.8rem auto;
}

.hero-sub {
    font-size: 1.35rem;
    font-style: italic;
    color: var(--cream);
    max-width: 540px;
    margin: 0 auto;
}

.scroll-cue {
    display: inline-block;
    margin-top: 2.6rem;
    width: 26px;
    height: 42px;
    border: 1.5px solid var(--gold-soft);
    border-radius: 14px;
    position: relative;
}

.scroll-cue span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: var(--gold-soft);
    border-radius: 2px;
    animation: scrollDot 1.8s var(--ease) infinite;
}

@keyframes scrollDot {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(14px);
    }
}

.steps {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.6rem;
    margin-top: 2.4rem;
}

.step {
    border: 1px solid rgba(184,146,67,0.5);
    padding: 2rem 1.6rem;
    background: linear-gradient(180deg, var(--paper), var(--cream));
    position: relative;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.step p {
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: bold;
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px -22px rgba(61,36,16,0.6);
}

.step-no {
    font-family: var(--font-head);
    font-size: 2.6rem;
    color: var(--gold);
    font-style: italic;
    display: block;
    margin-bottom: 0.4rem;
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 1.05rem;
    color: var(--sogan-deep);
}

.special {
    max-width: var(--maxw);
}

.special > .section-card {
    margin-bottom: 2.5rem;
}

.special-intro {
    text-align: center;
    margin-bottom: 3;
}

.special-title {
    font-size: clamp(2.4rem,5vw,3.6rem);
    color: var(--brown-dark);
}

.special-title span {
    color: var(--gold-deep);
    font-style: italic;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 1.2rem;
    margin-top: 2rem;
}

.color-card {
    border: 1px solid rgba(184,146,67,0.45);
    padding: 1.4rem 1rem;
    text-align: center;
    background: var(--paper);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.color-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px -18px rgba(61,36,16,0.6);
}

.color-card .swatch {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 0 1px var(--gold), inset 0 0 12px rgba(0,0,0,0.25);
}

.color-card .swatch.ring {
    box-shadow: 0 0 0 1px var(--gold), inset 0 0 12px rgba(0,0,0,0.25);
}

.color-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.color-card p {
    font-size: 0.98rem;
    color: var(--sogan-deep);
    line-height: 1.45;
}

.motif-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 1rem;
    margin-top: 1.8rem;
}

.motif {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(184,146,67,0.55);
    cursor: pointer;
}

.motif img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--cream-deep);
    transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.motif .motif-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem 0.4rem;
    font-family: var(--font-ui);
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    text-align: center;
    color: var(--cream);
    background: linear-gradient(transparent, rgba(42,28,16,0.9));
    transition: opacity 0.4s var(--ease);
}

.motif-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(160deg, rgba(122,74,30,0.92), rgba(42,28,16,0.95));
    color: var(--cream);
    opacity: 0;
    transform: translateY(8%);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.motif-overlay span {
    font-family: var(--font-narr);
    font-style: italic;
    font-size: 0.98rem;
    line-height: 1.4;
}

.motif-overlay strong {
    display: block;
    font-family: var(--font-head);
    font-style: normal;
    color: var(--gold-soft);
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.motif:hover img {
    transform: scale(1.12);
    filter: saturate(1.1);
}

.motif:hover .motif-overlay {
    opacity: 1;
    transform: translateY(0);
}

.motif:hover .motif-name {
    opacity: 0;
}


.quote-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem;
    overflow: hidden;
}

.quote-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
}

.quote-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(20,12,6,0.6), rgba(20,12,6,0.9));
}

.quote-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    text-align: center;
}

.quote-mark {
    font-family: var(--font-head);
    font-size: 6rem;
    color: var(--gold-soft);
    line-height: 0.5;
    display: block;
    opacity: 0.8;
}

.quote-inner blockquote {
    font-family: var(--font-head);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.6rem,3.4vw,2.8rem);
    color: var(--paper);
    line-height: 1.4;
    margin: 1.4rem 0;
}

.quote-inner figcaption {
    position: static;
    background: none;
    padding: 0;
    color: var(--gold-soft);
    font-family: var(--font-ui);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-top: 1rem;
}

.quote-inner .parang-divider {
    margin: 1.2rem auto;
}

.reveal {
    opacity: 1;
}

.steps .step, .color-grid .color-card, .motif-grid .motif {
    transition-delay: var(--d, 0s);
}

.hero-card {
    max-width: 900px !important; 
    width: 90% !important; 
    padding: 1.5rem 3rem !important; 
    margin: 80px auto 0 auto !important;
    min-height: auto !important;
    box-sizing: border-box;
}

#apa-itu .frame {
    max-width: 95% !important;
    width: 95% !important; 
    margin: 2rem auto !important;
    padding: 3rem 4rem !important;
    border: 1px solid var(--gold);
    box-sizing: border-box;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

#apa-itu .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

#apa-itu .split-text h2 {
    margin-bottom: 0.5rem;
}

.section-card {
    padding: 4rem !important; 
}

.split-text h2 {
    margin-bottom: 0.5rem;
}

.parang-divider.sm {
    margin: 1.2rem 0;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* --- RESPONSIVE MOBILE ADJUSTMENTS (GLOBAL) --- */
@media (max-width: 768px) {

    /* 1. Reset Global Section Padding */
    .section {
        padding: 2rem 0.5rem !important;
    }

    .hero-card {
        padding: 1.5rem !important;
        width: 90% !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    /* 2. Standardisasi semua Section Card (Lebar & Padding) */
    .section-card,
    .frame.section-card {
        width: 94% !important;
        /* Lebar seragam */
        margin: 1rem auto !important;
        padding: 1.25rem !important;
        /* Padding dalam seragam */
        max-width: 100% !important;
    }

    #apa-itu .section-card {
        padding: 1rem !important;
        /* Sesuaikan nilai 1rem ini sesuai keinginan Anda */
    }

    /* 3. Paksa Layout Split & Grid menjadi Vertikal */
    .split,
    .steps,
    .color-grid,
    .motif-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    /* 4. Hierarki Gambar & Media */
    .split-media,
    .wide-media {
        width: 100% !important;
        aspect-ratio: 16 / 9;
        margin-bottom: 1rem !important;
        order: 1;
        /* Gambar selalu di atas */
    }

    .split-text {
        order: 2;
        /* Teks selalu di bawah */
    }

    /* Khusus untuk .reverse agar gambar tetap di atas teks */
    .split.reverse {
        flex-direction: column-reverse !important;
    }

    .split.reverse .split-media {
        order: 2;
    }

    .split.reverse .split-text {
        order: 1;
    }

    /* 5. Penyesuaian Tipografi */
    h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    .block-title {
        font-size: 1.2rem !important;
    }

    .lead {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    .lifecycle li,
    .pillars li {
        font-size: 0.85rem !important;
        padding-left: 0.8rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* 6. Pembersihan Elemen Dekoratif (Sangat penting untuk kerapihan di HP) */
    .corner,
    .lung,
    .ukel {
        display: none !important;
    }

}

/* --- TAMPILAN UNTUK MOBILE (Layar di bawah 768px) --- */
@media (max-width: 767px) {
    .motif {
        position: relative;
        /* Memastikan posisi overlay tetap aman di dalam figure */
    }

    .motif-overlay {
        /* 1. Langsung munculkan overlay tanpa nunggu hover */
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        /* Reset jika sebelumnya ada efek transform/slide up */

        /* 2. Buat background menjadi pudar (sesuaikan warnanya) */
        background: rgba(0, 0, 0, 0.87) !important;
        /* Hitam pudar 60% */

        /* 3. Opsional: Mengatur posisi agar teks berada di bawah/tengah */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 10px;

    }
    .motif-grid{
        max-height: 4000px;
    }

    /* Jika teksnya warna hitam, ubah ke putih agar kontras dengan bg pudar */
    .motif-overlay span,
    .motif-overlay strong {
        color: #ffffff;
    }

    /* Sembunyikan figcaption bawaan jika bertubrukan dengan overlay */
    .motif-name {
        display: none;
    }
}