/* Twin House Theme — Mobile-first BEM */
:root {
    --y: #F6E62E;
    --ink: #1b1b1b;
    --bg: #141414;
    --card: #202020;
    --cream: #FBF8EC;
    --cream-ink: #1b1b1b;
    --muted: #a9a9a0;
    --line: #333;
    --wa: #25D366;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px)
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --cream: #1d1d1a;
        --cream-ink: #f3f1e4
    }
}

@font-face {
    font-family: 'Archivo';
    src: url('Archivo.ttf') format('truetype');
    font-weight: 400 900;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('PlayfairDisplay.ttf') format('truetype');
    font-style: italic;
    font-weight: 600;
    font-display: swap;
}

:root[data-theme="dark"] {
    --cream: #1d1d1a;
    --cream-ink: #f3f1e4
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px
}

body {
    background: var(--bg);
    color: #f3f1e4;
    font-family: Archivo, system-ui, sans-serif;
    line-height: 1.5
}

body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: env(safe-area-inset-top, 0px);
    background: var(--ink);
    z-index: 30
}

a {
    color: inherit;
    text-decoration: none
}

img,
video,
iframe {
    max-width: 100%;
    height: auto
}

/* ====== LAYOUT ====== */
.wrap {
    max-width: 1080px;
    margin: auto;
    padding: 0 20px
}

/* ====== SKIP LINK ====== */
.skip {
    position: absolute;
    left: -999px
}

.skip:focus {
    left: 10px;
    top: 10px;
    background: #fff;
    padding: 8px;
    z-index: 9
}

/* ====== HEADER ====== */
.site-header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 20;
    background: var(--ink);
    border-bottom: 2px solid var(--y)
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px
}

/* ====== LOGO ====== */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: .5px;
    color: #f3f1e4;
    text-decoration: none;
    transition: opacity .2s
}

.brand:hover {
    opacity: .85
}

.brand__logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(246, 230, 46, .35);
    box-shadow: 0 0 0 0 rgba(246, 230, 46, 0);
    transition: border-color .25s, box-shadow .25s
}

.brand:hover .brand__logo {
    border-color: var(--y);
    box-shadow: 0 0 12px rgba(246, 230, 46, .4)
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1
}

.brand__sub {
    display: block;
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--muted);
    text-transform: uppercase;
    margin-top: 2px
}

/* ====== NAV ====== */
.site-nav {
    display: none;
    gap: 22px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase
}

.site-nav a:hover {
    color: var(--y)
}

/* nav-menu shortcode */
.nav-menu {
    display: contents
}

.nav-menu ul {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0
}

.nav-menu li {
    position: relative
}

.nav-menu>ul>li>a {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: #f3f1e4
}

.nav-menu>ul>li>a:hover {
    color: var(--y)
}

/* submenu */
.nav-menu ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--ink);
    border: 1px solid var(--line);
    border-top: 2px solid var(--y);
    border-radius: 0 0 10px 10px;
    z-index: 200;
    padding: 4px 0;
    flex-direction: column;
    gap: 0
}

.nav-menu li.has-children:hover>ul,
.nav-menu li.has-children:focus-within>ul {
    display: flex
}

.nav-menu ul ul a {
    display: block;
    padding: 10px 16px;
    font-size: .9rem;
    color: #f3f1e4;
    font-weight: 600;
    text-transform: uppercase
}

.nav-menu ul ul a:hover {
    color: var(--y);
    background: rgba(246, 230, 46, .06)
}

.nav-menu li.has-children>a::after {
    content: " ▾";
    font-size: .7em;
    opacity: .6
}

.nav-menu ul ul li.has-children>a::after {
    content: " ▸"
}

/* ====== BURGER ====== */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 6px;
    background: black;
    border: 2px solid var(--y);
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    font-weight: 700;
    color: var(--y);
}

.burger:hover {
    background: rgba(246, 230, 46, .18);
    border-color: var(--y)
}

.burger span {
    display: block;
    height: 2px;
    background: #f3f1e4;
    border-radius: 2px;
    transition: transform .3s, opacity .3s, width .3s
}

.burger span:nth-child(3) {
    width: 70%
}

.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

.burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0)
}

.burger.open span:nth-child(3) {
    width: 100%;
    transform: translateY(-7px) rotate(-45deg)
}

/* ====== MOBILE NAV ====== */
.mnav {
    display: none;
    flex-direction: column;
    background: var(--ink);
    padding: 8px 20px 16px
}

.mnav.open {
    display: flex
}

.mnav__item {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    text-transform: uppercase;
    color: #f3f1e4
}

.mnav__item:hover {
    color: var(--y)
}

/* ====== BUTTON ====== */
.btn {
    display: inline-block;
    background: var(--y);
    color: #111;
    font-weight: 800;
    padding: 12px 22px;
    border-radius: 999px;
    border: 2px solid var(--y);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-decoration: none
}

.btn--outline {
    background: none;
    color: #fff;
    border-color: #fff
}

.btn--sm {
    padding: 8px 16px;
    font-size: 14px
}

.btn--res {
    display: none
}

@media (min-width: 760px) {
    .btn--res {
        display: inline-block
    }
}

.btn--dark {
    background: #111;
    color: var(--y);
    border-color: #111
}

.btn--wa {
    background: var(--wa);
    color: #fff;
    border-color: var(--wa)
}

/* ====== HERO SLIDER ====== */
.slider {
    position: relative;
    overflow: hidden
}

.slider__track {
    display: flex;
    transition: transform .6s ease
}

.hero {
    flex: 0 0 100%;
    min-width: 0;
    background: var(--y);
    color: #111;
    padding: 48px 0 84px;
    overflow: hidden;
    position: relative
}

.hero .wrap {
    position: relative
}

.hero--event {
    /*background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #fd1d1d, #f56040, #ffdc80);
    background: linear-gradient(135deg, #2b0c3f 0%, #791a54 35%, #d12253 70%, #ff7a00 100%);*/

    background: linear-gradient(135deg, #2b0c3f 0%, #791a54 35%, #d12253 70%, #ff7a00 100%);

    color: #fff
}

.hero__tag {
    display: inline-block;
    background: #111;
    color: var(--y);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 999px
}

.hero--event .hero__tag {
    background: var(--y);
    color: #111
}

.hero__title {
    font-size: clamp(54px, 17vw, 128px);
    line-height: .9;
    font-weight: 900;
    letter-spacing: -3px;
    margin: 18px 0 8px;
    transform: rotate(-3deg);
    transform-origin: left
}

.hero--event .hero__title {
    font-size: clamp(44px, 13vw, 104px);
    color: var(--y);
    transform: rotate(-2deg);
    margin-bottom: 4px
}

.hero__sub {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 22px
}

.hero--event .hero__sub {
    color: #fff;
    font-size: 28px
}

.hero__lead {
    max-width: 460px;
    margin: 18px 0 24px;
    font-weight: 600
}

.hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.hero .btn--dark {
    background: #111;
    color: var(--y);
    border-color: #111
}

.hero .btn--outline {
    color: #111;
    border-color: #111
}

.hero--event .btn--outline {
    color: #fff;
    border-color: #fff
}

.hero__swag {
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 13px;
    margin-top: 14px;
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.hero__event-info {
    margin: 16px 0 22px;
    display: grid;
    gap: 4px;
    font-weight: 700
}

.hero__event-info b {
    font-size: clamp(28px, 8vw, 44px);
    line-height: 1;
    font-weight: 900
}

.hero__perks {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
    font-size: 13px;
    font-weight: 700
}

.hero__perks span {
    background: rgba(0, 0, 0, .08);
    padding: 6px 12px;
    border-radius: 8px
}

.hero__tree {
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 280px;
    height: 280px;
    object-fit: contain;
    opacity: .12;
    pointer-events: none;
    border-radius: 50%
}

/* slider controls */
.slider__dots {
    position: absolute;
    left: 20px;
    bottom: 46px;
    display: flex;
    gap: 8px;
    z-index: 5
}

.slider__dots button {
    width: 12px;
    height: 12px;
    border-radius: 99px;
    border: 2px solid black;
    background: rgba(0, 0, 0, .35);
    padding: 0;
    cursor: pointer;
    transition: width .3s
}

.slider__dots button.on {
    width: 34px;
    background: var(--y);
    border-color: black;
}

.slider__arr {
    display: none;
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #111;
    background: var(--y);
    color: #111;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    transform: translateY(-50%)
}

.slider__arr--prev {
    left: 12px
}

.slider__arr--next {
    right: 12px
}

/* ====== RATE BAR ====== */
.rate {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: -28px;
    position: relative;
    z-index: 2
}

.rate__item {
    background: var(--ink);
    border: 2px solid var(--y);
    border-radius: 14px;
    padding: 14px;
    text-align: center
}

.rate__item b {
    display: block;
    font-size: 24px;
    color: var(--y)
}

.rate__item span {
    font-size: 12px;
    color: var(--muted)
}

/* ====== SECTIONS ====== */
section {
    padding: 56px 0
}

h2 {
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.05;
    margin-bottom: 8px
}

.sub {
    color: var(--muted);
    margin-bottom: 28px
}

/* ====== OUTLET CARDS ====== */
.grid {
    display: grid;
    gap: 18px
}

.oc {
    background: var(--card);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line)
}

.oc__photo {
    height: 140px;
    background: linear-gradient(135deg, var(--y), #e0c900);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 14px;
    color: #111
}

.oc__photo b {
    font-size: 28px;
    font-weight: 900;
    line-height: 1
}

.badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: #111;
    color: #fff
}

.badge--open {
    color: #7dff9a
}

.badge--closed {
    color: #ff9a8a
}

.oc__body {
    padding: 18px
}

.oc__body h3 {
    font-size: 22px
}

.oc__body p {
    color: var(--muted);
    font-size: 14px
}

.oc__row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    border-bottom: 1px dashed var(--line);
    padding: 6px 0
}

.stars {
    color: var(--y);
    font-weight: 700;
    margin: 6px 0
}

.oc__cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px
}

.oc__cta .btn {
    padding: 10px 16px;
    font-size: 14px
}

/* ====== MENU SECTION ====== */
.menu-section {
    background: var(--cream);
    color: var(--cream-ink)
}

.tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 18px
}

.tabs button {
    flex: none;
    border: 2px solid var(--cream-ink);
    background: none;
    color: var(--cream-ink);
    font: inherit;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer
}

.tabs button.on {
    background: var(--y);
    color: #111;
    border-color: #111
}

.menu-items {
    display: grid;
    gap: 4px 40px
}

.menu-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(128, 128, 120, .3)
}

.menu-item b {
    font-weight: 700
}

.menu-item small {
    display: block;
    opacity: .65
}

.menu-item span {
    font-weight: 800;
    white-space: nowrap
}

.menu-note {
    font-size: 13px;
    opacity: .7;
    margin-top: 16px
}

.sig {
    display: grid;
    gap: 12px;
    margin-top: 28px
}

.sig__item {
    background: #111;
    color: #fff;
    border-radius: 16px;
    padding: 18px;
    border-left: 8px solid var(--y)
}

.sig__item b {
    color: var(--y);
    font-size: 20px;
    display: block
}

/* ====== GALLERY ====== */
.gal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px
}

.gal__item {
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
    background: var(--card)
}

.gal__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease
}

.gal__item:hover img {
    transform: scale(1.06)
}

.gal__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .75));
    color: #fff;
    font-weight: 800;
    font-size: 14px
}

/* ====== REVIEWS ====== */
.rev {
    display: grid;
    gap: 14px
}

.rv {
    background: var(--card);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--line)
}

.rv .stars {
    margin: 0 0 6px
}

.rv p {
    font-size: 14px
}

.rv small {
    color: var(--muted)
}

/* ====== FORM ====== */
.res-form {
    background: var(--y);
    color: #111;
    border-radius: 22px;
    padding: 24px;
    display: grid;
    gap: 12px
}

.res-form label {
    font-weight: 700;
    font-size: 14px;
    display: grid;
    gap: 4px
}

.res-form input,
.res-form select {
    font: inherit;
    padding: 12px;
    border-radius: 50px;
    border: 2px solid #111;
    background: #fff;
    color: #111
}

.res-form__two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.res-form .btn {
    background: #111;
    color: var(--y);
    border-color: #111;
    width: 100%;
    font-size: 16px
}

/* ====== PAGER ====== */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px
}

.pager a {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    color: #f3f1e4
}

.pager a:hover {
    border-color: var(--y);
    color: var(--y)
}

.pager .on {
    background: var(--y);
    color: #111;
    border-color: var(--y)
}

/* ====== POST / PAGE ====== */
.entry {
    padding: 32px 0 48px
}

.entry h1 {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px
}

.entry .meta {
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 18px
}

.entry .meta a {
    color: var(--y)
}

.featured {
    width: 100%;
    border-radius: 16px;
    margin: 14px 0;
    display: block
}

.content {
    line-height: 1.8;
    font-size: 1.05rem
}

.content h2,
.content h3,
.content h4 {
    margin: 1.6em 0 .5em;
    font-weight: 900
}

.content h2 {
    font-size: 1.5rem
}

.content h3 {
    font-size: 1.2rem
}

.content p {
    margin-bottom: 1em
}

.content a {
    color: var(--y);
    text-decoration: underline
}

.content img {
    border-radius: 12px
}

.content table {
    display: block;
    overflow-x: auto;
    max-width: 100%
}

.content blockquote {
    border-left: 4px solid var(--y);
    margin: 1.5em 0;
    padding: .5em 1.2em;
    color: var(--muted)
}

.tags span {
    color: var(--muted);
    font-size: .9rem;
    margin-right: 6px
}

/* ====== BLOG INDEX ====== */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .4)
}

.card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block
}

.card h2 {
    font-size: 1.1rem;
    margin: 14px 16px 4px;
    font-weight: 800
}

.card h2 a {
    color: #f3f1e4;
    text-decoration: none
}

.card h2 a:hover {
    color: var(--y)
}

.card time,
.card p {
    margin: 4px 16px 14px;
    color: var(--muted);
    font-size: .9rem;
    display: block
}

/* blog main wrapper */
.blog-main {
    padding: 32px 0 56px
}

.blog-main h1 {
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 900;
    margin-bottom: 4px
}

/* ====== FOOTER ====== */
.site-footer {
    background: #0b0b0b;
    border-top: 2px solid var(--y);
    padding: 40px 0 28px;
    font-size: 14px
}

.site-footer .grid {
    gap: 24px
}

.site-footer h4 {
    color: var(--y);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px
}

.site-footer a {
    display: block;
    padding: 3px 0;
    color: #ddd
}

.site-footer a:hover {
    color: var(--y)
}

/* Brand di footer tetap flex seperti header */
.site-footer .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin-bottom: 12px
}

.site-footer .brand:hover {
    opacity: .85
}

.site-footer a i {
    width: 16px;
    text-align: center;
    color: var(--y);
    margin-right: 6px
}

.halal {
    display: inline-block;
    border: 2px solid #8a6fd0;
    color: #cbb8ff;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 10px
}

.copy {
    color: var(--muted);
    font-size: 12px;
    margin-top: 24px
}

/* ====== WA FLOAT ====== */
.wa-float {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 25;
    background: var(--wa);
    color: #fff;
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
    text-decoration: none;
    font-size: 15px
}

.wa-float:hover {
    background: #1fb855
}

/* ====== 404 ====== */
.not-found {
    padding: 80px 0;
    text-align: center
}

.not-found h1 {
    font-size: clamp(60px, 15vw, 120px);
    font-weight: 900;
    color: var(--y);
    line-height: 1
}

.not-found p {
    color: var(--muted);
    margin: 12px 0 24px
}

/* ====== RESPONSIVE ====== */
@media (min-width: 760px) {
    .slider__arr {
        display: block
    }

    .site-nav {
        display: flex
    }

    .burger {
        display: none
    }

    .mnav {
        display: none !important
    }

    .grid.c2 {
        grid-template-columns: 1fr 1fr
    }

    .gal {
        grid-template-columns: repeat(4, 1fr)
    }

    .rev {
        grid-template-columns: repeat(3, 1fr)
    }

    .menu-items {
        grid-template-columns: 1fr 1fr
    }

    .sig {
        grid-template-columns: 1fr 1fr
    }

    .site-footer .grid {
        grid-template-columns: 2fr 1fr 1.5fr
    }

    .hero {
        padding: 90px 0 100px
    }

    .hero__tree {
        width: 460px;
        right: 0
    }
}

@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none
    }

    .slider__track {
        transition: none
    }
}