/* ============================================================
   Sewa Kebaya Ngoro - Tema Publik (mobile-first, elegan)
   ============================================================ */

:root {
    --ivory: #FBF8F4;
    --cream: #F3ECE2;
    --maroon: #7B2D3A;
    --maroon-dark: #5E1F2A;
    --gold: #C9A24B;
    --gold-soft: #E4CF9B;
    --charcoal: #2A2522;
    --muted: #8A817A;
    --line: #E8DFD3;
    --white: #ffffff;
    --green: #25D366;
    --green-dark: #1da851;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 30px rgba(42, 37, 34, 0.08);
    --shadow-sm: 0 2px 10px rgba(42, 37, 34, 0.06);
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--ivory);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 18px;
}

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

a { color: inherit; text-decoration: none; }
.link { color: var(--maroon); }
.link:hover { text-decoration: underline; }
.muted { color: var(--muted); font-size: 0.95rem; }

img { max-width: 100%; display: block; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
    line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline { background: transparent; border: 1.5px solid var(--maroon); color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: var(--green-dark); }
.btn-block { width: 100%; justify-content: center; }

/* ---------------- Header ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 248, 244, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    background: var(--maroon); color: var(--gold-soft);
    border-radius: 10px;
    font-family: var(--font-head); font-weight: 700; font-size: 1rem;
    letter-spacing: .5px; flex-shrink: 0;
}
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-label { display: inline; }
.nav { display: none; gap: 26px; }
.nav a { color: var(--charcoal); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--maroon); }

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    background:
        linear-gradient(180deg, rgba(123,45,58,.05), rgba(201,162,75,.08)),
        var(--cream);
    padding: 56px 0 48px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: 2rem; margin-bottom: 14px; }
.hero h1 .accent { color: var(--maroon); }
.hero p { color: var(--muted); max-width: 540px; margin: 0 auto 26px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-eyebrow {
    display: inline-block;
    font-size: .8rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--gold); font-weight: 600; margin-bottom: 14px;
}

/* ---------------- Section ---------------- */
.section { padding: 44px 0; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: 1.7rem; }
.section-head p { color: var(--muted); margin-top: 6px; }

/* ---------------- Filter bar ---------------- */
.toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 26px;
}
.search-row { display: flex; gap: 10px; }
.search-row input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.95rem;
    font-family: inherit;
}
.filters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.filters select, .filters input {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--white);
    width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-soft); border-color: var(--gold); }

/* ---------------- Grid kebaya ---------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--cream); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.badge {
    position: absolute; top: 10px; left: 10px;
    background: rgba(255,255,255,.92);
    color: var(--maroon);
    font-size: .72rem; font-weight: 600;
    padding: 5px 10px; border-radius: 999px;
    backdrop-filter: blur(4px);
}
.badge-cat { background: rgba(42,37,34,.78); color: #fff; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; }
.card-meta { font-size: .82rem; color: var(--muted); }
.card-price { color: var(--maroon); font-weight: 700; font-size: 1.05rem; margin-top: auto; }
.card-price span { font-size: .8rem; font-weight: 500; color: var(--muted); }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }

/* ---------------- Cara sewa ---------------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; }
.step { background: var(--white); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: center; }
.step-num {
    width: 44px; height: 44px; margin: 0 auto 12px;
    display: grid; place-items: center;
    background: var(--cream); color: var(--maroon);
    border-radius: 50%; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
}
.step h4 { margin-bottom: 6px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--charcoal); color: #d9cfc4; margin-top: 50px; padding: 40px 0 20px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1.05rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-grid .muted { color: #b3a89c; }
.brand-footer .brand-name { color: #fff; }
.brand-footer { margin-bottom: 12px; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 18px; font-size: .85rem; color: #9b9085; text-align: center; }

/* ============================================================
   Halaman Detail
   ============================================================ */
.detail { padding: 28px 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; min-width: 0; overflow: hidden; }
.gallery-main {
    aspect-ratio: 4/5;
    max-height: 480px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cream);
    box-shadow: var(--shadow-sm);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs img {
    width: 70px; height: 90px; object-fit: cover; border-radius: 10px;
    cursor: pointer; border: 2px solid transparent; flex-shrink: 0;
}
.gallery-thumbs img.active { border-color: var(--gold); }

.detail-info h1 { font-size: 1.5rem; margin-bottom: 8px; word-wrap: break-word; }
.detail-info { min-width: 0; overflow: hidden; }
.detail-price { font-size: 1.5rem; color: var(--maroon); font-weight: 700; margin: 10px 0; }
.detail-price span { font-size: .9rem; color: var(--muted); font-weight: 500; }
.spec-list { list-style: none; margin: 16px 0; display: grid; gap: 10px; }
.spec-list li { display: flex; gap: 10px; font-size: .95rem; }
.spec-list .label { color: var(--muted); min-width: 90px; }
.detail-desc { margin: 16px 0; color: #4a423c; }

.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--maroon); }

/* ---------------- Kalender ---------------- */
.calendar-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; margin: 20px 0; overflow: hidden; max-width: 100%; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h3 { font-size: 1.1rem; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 1rem; color: var(--charcoal); }
.cal-nav button:hover { background: var(--cream); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 100%; }
.cal-dow { text-align: center; font-size: .72rem; color: var(--muted); font-weight: 600; padding: 6px 0; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; font-size: .85rem; position: relative; min-width: 0; }
.cal-day.empty { background: transparent; }
.cal-day.ready { background: #EAF7EE; color: #1f8a44; }
.cal-day.booked { background: #FBEAEC; color: var(--maroon); text-decoration: line-through; }
.cal-day.past { color: #c9c1b8; }
.cal-legend { display: flex; gap: 16px; margin-top: 14px; font-size: .8rem; flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dot.ready { background: #EAF7EE; border: 1px solid #1f8a44; }
.dot.booked { background: #FBEAEC; border: 1px solid var(--maroon); }

.order-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; margin-top: 20px; overflow: hidden; max-width: 100%; }
.order-box h3 { font-size: 1.1rem; margin-bottom: 12px; }
.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.date-row label { font-size: .82rem; color: var(--muted); display: block; margin-bottom: 4px; }
.date-row input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; }
.order-warning { color: var(--maroon); font-size: .85rem; margin-bottom: 12px; display: none; }
.order-warning.show { display: block; }

/* ---------------- Recommendations ---------------- */
.rec-section { margin-top: 40px; }

/* ============================================================
   Responsive — Mobile-first
   ============================================================ */

/* Phones up to 599px — compact everything */
@media (max-width: 599px) {
    .container { padding: 0 14px; }

    /* Header */
    .header-inner .btn-wa .wa-label { display: none; }

    /* Hero — compact */
    .hero { padding: 32px 0 28px; }
    .hero h1 { font-size: 1.45rem; }
    .hero p { font-size: .9rem; margin-bottom: 18px; }
    .hero-eyebrow { font-size: .7rem; margin-bottom: 10px; }
    .hero-actions { gap: 10px; }
    .hero-actions .btn { padding: 10px 18px; font-size: .85rem; }

    /* Section */
    .section { padding: 30px 0; }
    .section-head h2 { font-size: 1.3rem; }
    .section-head p { font-size: .88rem; }

    /* Toolbar / filters — keep 2 columns */
    .toolbar { padding: 12px; gap: 10px; margin-bottom: 18px; }
    .search-row input { padding: 10px 14px; font-size: .88rem; }
    .filters { grid-template-columns: 1fr 1fr; gap: 8px; }
    .filters select, .filters input { padding: 8px 10px; font-size: .82rem; }

    /* Grid cards */
    .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .card-body { padding: 10px; gap: 4px; }
    .card-title { font-size: .88rem; }
    .card-meta { font-size: .75rem; }
    .card-price { font-size: .9rem; }
    .card-price span { font-size: .72rem; }
    .badge { font-size: .65rem; padding: 4px 8px; top: 8px; left: 8px; }

    /* Steps */
    .steps { gap: 12px; }
    .step { padding: 16px; }
    .step-num { width: 36px; height: 36px; font-size: 1rem; }
    .step h4 { font-size: .92rem; }
    .step p { font-size: .84rem; }

    /* Detail page */
    .gallery-main { aspect-ratio: 4/5; max-height: 380px; }
    .gallery-thumbs img { width: 56px; height: 72px; }
    .detail-info h1 { font-size: 1.3rem; }
    .detail-price { font-size: 1.2rem; }
    .spec-list li { font-size: .88rem; }
    .detail-desc { font-size: .9rem; }

    /* Calendar */
    .calendar-wrap { padding: 14px; }
    .cal-head h3 { font-size: 1rem; }
    .cal-day { font-size: .78rem; }
    .cal-dow { font-size: .65rem; }

    /* Order box */
    .order-box { padding: 14px; }
    .order-box h3 { font-size: 1rem; }

    /* Footer */
    .site-footer { padding: 30px 0 16px; margin-top: 36px; }
    .site-footer h4 { font-size: .95rem; }
    .footer-grid { gap: 22px; }

    /* Buttons global */
    .btn { padding: 10px 18px; font-size: .88rem; }
    .btn-sm { padding: 8px 14px; font-size: .8rem; }
    .btn-block { padding: 11px 16px; }
}

/* Extra-small (up to 360px) */
@media (max-width: 360px) {
    .container { padding: 0 10px; }
    .hero h1 { font-size: 1.3rem; }
    .hero-actions .btn { padding: 9px 14px; font-size: .8rem; }
    .grid { gap: 8px; }
    .card-body { padding: 8px; }
    .card-title { font-size: .82rem; }
    .filters { grid-template-columns: 1fr; gap: 6px; }
    .date-row { grid-template-columns: 1fr; }
    .gallery-main { max-height: 320px; }
}

/* Tablets (600px+) */
@media (min-width: 600px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .filters { grid-template-columns: repeat(4, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .gallery-main { aspect-ratio: 3/4; max-height: 500px; }
}

/* Tablets landscape / small desktop (768px+) */
@media (min-width: 768px) {
    .nav { display: flex; }
    .hero { padding: 70px 0 56px; }
    .hero h1 { font-size: 2.6rem; }
    .toolbar { flex-direction: row; align-items: center; }
    .search-row { flex: 1; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .detail-grid { grid-template-columns: 1fr 1fr; align-items: start; }
    .gallery-main { max-height: none; }
    .section-head h2 { font-size: 2rem; }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .grid { grid-template-columns: repeat(4, 1fr); }
    .hero { padding: 80px 0 64px; }
    .hero h1 { font-size: 3.2rem; }
}
