/* =========================================================
   NUSANTARA HOMESTAY — public booking site
   Palette: Deep teal (#0E3B36), warm brass (#C79A4B),
            sand (#F4EEE2), ink (#122421), coral accent (#E76F51)
   Type: 'Fraunces' (display) + 'Manrope' (body/UI)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --teal-950: #0A2E2A;
    --teal-900: #0E3B36;
    --teal-700: #17564D;
    --teal-500: #2D7D6E;
    --brass: #C79A4B;
    --brass-light: #E4C480;
    --sand: #F4EEE2;
    --sand-dark: #E9E0CC;
    --ink: #122421;
    --coral: #E76F51;
    --white: #FFFFFF;
    --shadow: 0 20px 50px -20px rgba(10, 46, 42, 0.35);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    background: var(--sand);
    color: var(--ink);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', serif;
    color: var(--teal-950);
    margin: 0 0 .4em;
    line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ---------- Top bar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244, 238, 226, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--sand-dark);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1px;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--teal-950);
}
.brand .mark {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(145deg, var(--brass-light), var(--brass));
    display: flex; align-items: center; justify-content: center;
    color: var(--teal-950); font-weight: 800; font-size: .95rem;
}
.topbar nav a {
    font-size: .92rem;
    font-weight: 600;
    color: var(--teal-700);
    margin-left: 28px;
}
.topbar .staff-link {
    border: 1px solid var(--teal-700);
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--teal-900) !important;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    /* background-color: rgba(0, 128, 128, 0.6); */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('hero3.jpg');
    background-size: cover;
	background-position: center;
    /* background: radial-gradient(120% 140% at 15% 0%, var(--teal-700) 0%, var(--teal-900) 45%, var(--teal-950) 100%); */
    color: var(--sand);
    padding: 78px 0 110px;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -60% -10%;
    height: 260px;
    background: var(--sand);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brass-light);
    font-weight: 700;
    margin-bottom: 18px;
}
.eyebrow::before { content: "●"; color: var(--coral); }
.hero h1 {
    color: var(--white);
    font-size: clamp(2.3rem, 4.2vw, 3.4rem);
    font-weight: 600;
    max-width: 12ch;
}
.hero p.lead {
    color: #D8E6E1;
    font-size: 1.08rem;
    max-width: 46ch;
    margin-bottom: 28px;
}
.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 34px;
}
.hero-stats div strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    color: var(--brass-light);
}
.hero-stats div span {
    font-size: .8rem;
    color: #B9CCC6;
}
.hero-note {
    margin-top: 30px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    font-size: .88rem;
    color: #E8F0EC;
}

/* ---------- Booking card (floating over hero) ---------- */
.booking-card {
    position: relative;
    z-index: 3;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}
.booking-card h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}
.booking-card .sub {
    font-size: .85rem;
    color: #6B7A76;
    margin-bottom: 20px;
}
.field {
    margin-bottom: 16px;
}
.field label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--teal-700);
    margin-bottom: 6px;
}
.field input, .field select, .field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--sand-dark);
    border-radius: 10px;
    font-family: inherit;
    font-size: .95rem;
    background: #FBF9F4;
    color: var(--ink);
    transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--teal-500);
    background: var(--white);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FBF9F4;
    border: 1.5px solid var(--sand-dark);
    border-radius: 10px;
    padding: 12px 13px;
}
.field-checkbox input { width: auto; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    padding: 13px 22px;
    border-radius: 999px;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
    background: var(--coral);
    color: var(--white);
    width: 100%;
    box-shadow: 0 12px 24px -10px rgba(231, 111, 81, 0.6);
}
.btn-primary:hover { opacity: .92; }
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--teal-900);
    color: var(--teal-900);
}
.btn-dark { background: var(--teal-900); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: .82rem; }

.avail-box {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .87rem;
    font-weight: 600;
    display: none;
}
.avail-ok { background: #E4F3EC; color: #1E6B4C; }
.avail-bad { background: #FBE8E4; color: #B23B22; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head {
    max-width: 620px;
    margin: 0 auto 48px;
    text-align: center;
}
.section-head .eyebrow { justify-content: center; display: flex; color: var(--brass); }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { color: #5C6E69; }

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.room-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 14px 34px -22px rgba(10,46,42,.3);
    border: 1px solid var(--sand-dark);
    display: flex;
    flex-direction: column;
}
.room-card .thumb {
    height: 170px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-900));
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.85);
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    position: relative;
}
.room-card .thumb .price-tag {
    position: absolute;
    bottom: 12px; left: 12px;
    background: var(--white);
    color: var(--teal-950);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: .8rem;
    padding: 6px 12px;
    border-radius: 999px;
}
.room-card .body { padding: 20px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.room-card h3 { font-size: 1.15rem; }
.room-card p { color: #5C6E69; font-size: .9rem; flex: 1; }
.room-meta {
    display: flex;
    gap: 14px;
    margin: 12px 0 16px;
    font-size: .8rem;
    color: var(--teal-700);
    font-weight: 700;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 20px;
    border: 1px solid var(--sand-dark);
}
.step .num {
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    color: var(--brass);
    margin-bottom: 8px;
}
.step h4 { font-size: 1rem; }
.step p { font-size: .85rem; color: #5C6E69; margin: 0; }

.cta-band {
    background: var(--teal-950);
    color: var(--sand);
    border-radius: 24px;
    padding: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cta-band h3 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: #B9CCC6; margin: 0; }

footer {
    background: var(--teal-950);
    color: #9FB6B0;
    padding: 40px 0;
    text-align: center;
    font-size: .85rem;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .rooms-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .cta-band { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    .rooms-grid, .steps { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .topbar nav { display: none; }
    .hero { padding: 48px 0 90px; }
}
