/* CITEUS brand tokens (from citeusgroup.com) */
:root {
    --primary: #6D684F;
    --primary-dark: #57533f;
    --sand: #D7BBA0;
    --cream: #FBF2EC;
    --bg: #F6F4F1;
    --line: #ECE8E3;
    --ink: #160703;
    --text: #5D5D5D;
    --muted: #9b958f;
    --ok: #4d7c4a;
    --radius: 22px;
    --shadow: 0 1px 2px rgba(22, 7, 3, .04), 0 12px 32px rgba(22, 7, 3, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Manrope", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -.6px; margin: 0; line-height: 1.15; }
h1 { font-size: 34px; letter-spacing: -1px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
a { color: var(--primary); }
img { display: block; max-width: 100%; }
.icon { width: 18px; height: 18px; flex: none; }

/* One centred column on every screen: this is a phone-first page */
.wrap { max-width: 520px; margin: 0 auto; padding: 0 16px; }

.eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); }
.muted { color: var(--muted); margin: 6px 0 0; }
.fine { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }
.center { text-align: center; margin: 24px 8px 0; }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }

.btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 54px; padding: 0 22px;
    border-radius: 999px; border: 1.5px solid var(--primary);
    font-family: inherit; font-size: 16px; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: background .2s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(109, 104, 79, .3); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary); }

/* ---------- Hero (both pages) ---------- */
.hero { position: relative; min-height: 460px; color: #fff; overflow: hidden; }
.hero-sm { min-height: 340px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(22, 7, 3, .55) 0%, rgba(22, 7, 3, .05) 35%, rgba(22, 7, 3, .85) 100%);
}
.hero-inner {
    position: relative; z-index: 1;
    max-width: 520px; min-height: inherit; margin: 0 auto;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 22px 20px 64px;
}
.hero-logo { width: 116px; height: auto; }
.hero h1 { color: #fff; margin-top: 12px; }
.hero-sub { margin: 8px 0 0; font-size: 16px; opacity: .9; max-width: 34ch; }
.hero-addr { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; opacity: .85; }
.hero-addr .icon { width: 15px; height: 15px; }
.pill-light {
    display: inline-block; padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
}

/* Quick facts strip overlapping the hero */
.facts {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: repeat(3, 1fr);
    list-style: none; margin: -38px 0 18px; padding: 0;
    background: #fff; border-radius: 18px; box-shadow: var(--shadow);
}
.facts li { padding: 14px 6px; text-align: center; }
.facts li + li { border-left: 1px solid var(--line); }
.facts strong { display: block; color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.2; }
.facts span { font-size: 10px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }

/* ---------- Form page ---------- */
.gate { padding: 26px 20px 22px; }
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--cream); color: var(--primary);
    font-size: 12px; font-weight: 700;
}
.badge .icon { width: 14px; height: 14px; }
.gate h2 { margin-top: 14px; }

.benefits { list-style: none; margin: 18px 0 22px; padding: 16px; display: grid; gap: 10px; background: var(--bg); border-radius: 16px; }
.benefits li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.35; }
.benefits .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--primary); color: #fff; }

.gate form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input {
    width: 100%; height: 54px; padding: 0 16px;
    font: inherit; font-size: 16px; /* 16px stops iOS zoom on focus */
    color: var(--ink); background: #fff;
    border: 1.5px solid var(--line); border-radius: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #c9c4be; }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(109, 104, 79, .12); }
.field small { font-size: 12px; color: #b42318; }
.has-error input { border-color: #b42318; }
.alert { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fef3f2; color: #b42318; font-size: 14px; }
.hp { position: absolute; left: -9999px; }
.gate .btn { margin-top: 6px; }
.gate .fine { text-align: center; }

.about { margin: 28px 4px 0; }
.about > p:not(.eyebrow) { margin: 6px 0 0; }

/* ---------- Units page ---------- */
.units { padding-bottom: 110px; }
.section-head { margin: 30px 4px 18px; }

.type { margin-bottom: 18px; overflow: hidden; }
.plan { position: relative; display: block; padding: 22px; background: linear-gradient(180deg, #fff, var(--cream)); }
.plan img { width: 100%; max-height: 260px; object-fit: contain; mix-blend-mode: multiply; }
.plan-zoom {
    position: absolute; right: 14px; bottom: 14px;
    display: grid; place-items: center; width: 38px; height: 38px;
    border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow);
}
.type-body { padding: 18px 20px 6px; }
.type-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.type-head .muted { margin-top: 2px; font-size: 13px; }
.left { flex: none; padding: 5px 11px; border-radius: 999px; background: #e9f1e7; color: var(--ok); font-size: 12px; font-weight: 700; }
.left.none { background: var(--bg); color: var(--muted); }

.specs { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.specs li {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 10px 4px; border-radius: 14px; background: var(--bg);
    font-size: 12px; color: var(--muted);
}
.specs strong { color: var(--ink); font-size: 16px; font-weight: 700; }
.specs .icon { color: var(--primary); margin-bottom: 2px; }

.units-list { list-style: none; margin: 8px 0 0; padding: 0; }
.unit { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.unit + .unit { border-top: 1px solid var(--line); }
.unit-no {
    flex: none; display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
}
.unit-info { flex: 1; min-width: 0; display: grid; }
.unit-info strong { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.3; }
.unit-extras { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--muted); }
.unit-extras span { display: inline-flex; align-items: center; gap: 4px; }
.unit-extras .icon { width: 13px; height: 13px; }
.price { margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--primary); }
.actions { display: flex; gap: 8px; }
.icon-btn {
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--cream); color: var(--primary);
    transition: background .2s, color .2s;
}
.icon-btn:active, .icon-btn:hover { background: var(--primary); color: #fff; }
.tag { padding: 5px 11px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.status-sold .unit-no, .status-under_offer .unit-no { background: var(--line); color: var(--muted); }
.status-sold .unit-info strong { color: var(--muted); text-decoration: line-through; }
.status-sold .price, .status-under_offer .price { display: none; }
.status-under_offer .tag { background: #fbf0dc; color: #a16207; }

.contact {
    margin-top: 26px; padding: 24px 20px;
    border-radius: var(--radius);
    background: var(--ink) url("../img/hero.jpg") center / cover;
    background-blend-mode: soft-light;
    color: rgba(255, 255, 255, .75);
}
.contact-top { display: flex; align-items: center; gap: 14px; }
.contact h3 { color: #fff; }
.contact p { margin: 0; }
.contact .eyebrow { color: var(--sand); margin-bottom: 2px; }
.avatar {
    flex: none; display: grid; place-items: center;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--sand); color: var(--ink); font-size: 19px; font-weight: 700;
}
.contact-note { margin: 16px 0 12px !important; font-size: 14px; }
.contact-line {
    display: flex; align-items: center; gap: 10px;
    margin-top: 8px; padding: 13px 16px; border-radius: 14px;
    background: rgba(255, 255, 255, .1); color: #fff;
    font-weight: 600; text-decoration: none; word-break: break-all;
}

.amenities { list-style: none; margin: 14px 0 0; padding: 0; background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
.amenities li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px; font-size: 14px; color: var(--ink); }
.amenities li + li { border-top: 1px solid var(--line); }
.amenities strong { color: var(--primary); white-space: nowrap; }

.bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px;
    max-width: 520px; margin: 0 auto;
    padding: 14px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(rgba(246, 244, 241, 0), var(--bg) 35%);
}

/* ---------- Footer ---------- */
.footer { margin-top: 40px; padding: 32px 20px; background: var(--ink); text-align: center; font-size: 13px; color: rgba(255, 255, 255, .6); }
.footer img { width: 110px; height: auto; margin: 0 auto 14px; }
.footer p { margin: 4px 0; }
.footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-copy { margin-top: 14px !important; font-size: 11px; letter-spacing: 1px; }
.units ~ .footer { padding-bottom: 110px; }

@media (min-width: 600px) {
    .hero { min-height: 520px; }
    .hero-sm { min-height: 380px; }
    h1 { font-size: 40px; }
}

/* ---------- QR poster ---------- */
.page-qr { background: var(--cream); }
.poster { max-width: 520px; margin: 24px auto; padding: 36px 28px; background: #fff; border-radius: var(--radius); text-align: center; }
.poster .logo { width: 150px; height: auto; margin: 0 auto 24px; }
.poster-lead { font-size: 18px; color: var(--ink); margin: 10px 0 20px; }
.poster canvas { width: 100%; max-width: 380px; height: auto; }
.poster-url { font-weight: 600; color: var(--primary); margin: 12px 0 0; }
.poster-actions { display: flex; gap: 10px; justify-content: center; padding: 0 16px 32px; }
@media print { .poster-actions { display: none; } .page-qr { background: #fff; } }
