/* ══════════════════════════════════════
   佳展建設 – 湖子內新案
   Main Stylesheet
   ══════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
}
body {
    font-family: "Noto Serif TC", "Times New Roman", Times, serif;
    color: #fff;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    display: block;
    max-width: 100%;
}
ul {
    list-style: none;
}
button, input, select {
    font-family: inherit;
}

/* ── Header / Nav ── */
.header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: rgba(48, 24, 28, 0.97);
}
.header-logo img {
    height: 40px;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.header-nav a {
    font-size: 15px;
    letter-spacing: 2px;
    color: #fff;
    transition: color .3s;
}
.header-nav a:hover {
    color: #f5c518;
}
.header-nav .nav-highlight {
    color: #f5c518;
}
.header-nav .fb-link img {
    height: 28px;
    width: 28px;
}

/* ── Banner ── */
.banner {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}
.banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 100%);
}
.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px 60px;
}
.banner-title {
    max-width: 720px;
    width: 80%;
    margin: 0 auto;
}

/* ── Form Section ── */
.form-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.form-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.form-overlay {
    position: absolute;
    inset: 0;
    background: rgba(180, 100, 110, .45);
}
.form-wrapper {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px 70px;
}
.form-heading {
    text-align: center;
    margin-bottom: 36px;
}
.form-heading img {
    max-width: 320px;
    width: 60%;
    margin: 0 auto;
}

/* ── Form Rows ── */
.reserve-form .form-row {
    display: flex;
    align-items: stretch;
    margin-bottom: 16px;
    overflow: hidden;
    background: #fff;
    border-bottom: #966666 4px solid;
}
.reserve-form .form-label {
    display: flex;
    flex: 0 0 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d3b2b2;
    color: #fff;
    font-size: 13px;
    padding: 14px 10px;
    font-weight: 500;
}
.reserve-form input[type="text"],
.reserve-form select {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 16px;
    font-size: 15px;
    color: #555;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
}
.reserve-form select {
    cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center;
    padding-right: 40px;
}

/* Two selects in one row (city + region) */
.reserve-form .form-row--split select {
    flex: 1;
}
.reserve-form .form-row--split select + select {
    border-left: 1px solid #eee;
}

/* ── Checkbox & Submit ── */
.form-footer {
    text-align: center;
    margin-top: 28px;
}
.checkbox-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #f5c518;
    cursor: pointer;
}
.checkbox-group .link {
    color: #f5c518;
    text-decoration: underline;
    cursor: pointer;
}
.btn-submit {
    display: inline-block;
    padding: 12px 64px;
    font-size: 16px;
    letter-spacing: 4px;
    color: #fff;
    background: rgba(255,255,255,.25);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 4px;
    cursor: pointer;
    transition: background .3s, transform .2s;
}
.btn-submit:hover {
    background: rgba(255,255,255,.4);
    transform: translateY(-1px);
}

/* ── Footer ── */
.footer {
    background: #3a2225;
    padding: 36px 20px;
    text-align: center;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.footer-inner img {
    height: 36px;
}

/* ── Menu Toggle Button (hidden on desktop) ── */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 13px;
    letter-spacing: 3px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    padding: 4px 0;
}

/* ── Mobile Full-Screen Nav Overlay ── */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(48, 24, 28, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mobile-nav.is-open {
    display: flex;
}
.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
}
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}
.mobile-nav-links a {
    font-size: 18px;
    letter-spacing: 4px;
    color: #fff;
    transition: color .3s;
}
.mobile-nav-links a:hover {
    color: #f5c518;
}
.mobile-nav-links .nav-highlight {
    color: #f5c518;
}
.mobile-nav-links .fb-link img {
    height: 32px;
    width: 32px;
    margin: 0 auto;
}

/* ══════════════════════════════════════
   Responsive – Mobile
   ══════════════════════════════════════ */
@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 16px 20px;
    }
    .header-logo img {
        height: 32px;
    }
    .header-nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }

    /* Banner */
    .banner-title {
        width: 88%;
        max-width: 340px;
    }

    /* Form section */
    .form-wrapper {
        padding: 44px 20px 56px;
    }
    .form-heading img {
        width: 72%;
        max-width: 260px;
    }
    .reserve-form .form-label {
        flex: 0 0 90px;
        font-size: 13px;
        letter-spacing: 2px;
        padding: 13px 8px;
    }
    .reserve-form input[type="text"],
    .reserve-form select {
        font-size: 14px;
        padding: 13px 12px;
    }

    /* 居住地區：城市 + 地區 selects stack vertically */
    .reserve-form .form-row--split {
        flex-wrap: wrap;
    }
    .reserve-form .form-row--split .form-label {
        flex: 0 0 90px;
        align-self: stretch;
    }
    .reserve-form .form-row--split select {
        flex: 1 1 calc(50% - 45px);
        min-width: 0;
    }
    .reserve-form .form-row--split select + select {
        border-left: 1px solid #eee;
    }

    /* Footer */
    .footer {
        padding: 28px 20px;
    }
    .footer-inner img {
        height: 30px;
    }
}