/* ============================================================
   LION HOTEL · Cần Thơ — shared styles
   ============================================================ */
:root {
    --ink: #0e0d0b;
    --ink-2: #17150f;
    --ink-3: #221f18;
    --line-dark: rgba(214, 180, 110, 0.18);
    --gold: #c9a45c;
    --gold-hi: #e3c483;
    --gold-lo: #9c7a36;
    --paper: #f6f2ea;
    --card: #fffdf9;
    --text: #1b1914;
    --muted: #6d675b;
    --line: #e7dfd0;
    --ok: #2f7d55;
    --err: #b3412e;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(20, 16, 8, .04), 0 12px 32px -12px rgba(20, 16, 8, .18);
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.i {
    width: 1em; height: 1em; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.75;
    stroke-linecap: round; stroke-linejoin: round;
}
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Brand mark ---------- */
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .28em; color: #fff; }
.brand-word small { font-size: 9px; letter-spacing: .42em; color: var(--gold); margin-top: 4px; font-weight: 600; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
    color: var(--gold-lo);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 0 22px; border: 0; border-radius: 14px;
    font-weight: 600; font-size: 15px; letter-spacing: .01em;
    transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, opacity .2s;
}
.btn:active { transform: scale(.985); }
.btn .i { font-size: 18px; }
.btn-gold {
    background: linear-gradient(180deg, var(--gold-hi), var(--gold));
    color: #1a1406;
    box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 10px 24px -10px rgba(201,164,92,.75);
}
.btn-gold:hover { background: linear-gradient(180deg, #ecd096, #d1ad68); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #24211a; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ============================================================
   LANDING (TikTok)
   ============================================================ */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(120% 70% at 50% -10%, rgba(201,164,92,.22), transparent 60%),
        radial-gradient(60% 50% at 100% 100%, rgba(201,164,92,.08), transparent 70%),
        var(--ink);
    color: #fff;
    padding: 14px 0 108px;
}
.hero::after { /* thin gold hairline frame */
    content: ""; position: absolute; inset: 10px; border: 1px solid var(--line-dark);
    border-radius: 22px; pointer-events: none;
}
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 6px 0; position: relative; z-index: 1; }
.topbar-call {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
    border-radius: 999px; border: 1px solid var(--line-dark); color: var(--gold-hi);
    font-size: 13px; font-weight: 600; background: rgba(255,255,255,.03);
}
.topbar-call .i { font-size: 15px; }

.hero-body { position: relative; z-index: 1; padding: 44px 6px 0; }
.hero h1 {
    font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 9vw, 46px);
    line-height: 1.12; letter-spacing: -.01em; margin: 16px 0 14px;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-hi); }
.hero p.lead { color: #c9c2b3; font-size: 15px; font-weight: 300; margin: 0; max-width: 34ch; }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 28px; }
.perk {
    border: 1px solid var(--line-dark); border-radius: 14px; padding: 12px 10px;
    background: rgba(255,255,255,.025);
}
.perk strong { display: block; font-family: var(--serif); font-size: 22px; color: var(--gold-hi); line-height: 1.1; font-weight: 600; }
.perk .i { font-size: 22px; color: var(--gold-hi); margin-bottom: 4px; }
.perk span { display: block; font-size: 11.5px; color: #b9b2a3; line-height: 1.35; margin-top: 4px; }

/* Form card overlapping hero */
.form-card {
    position: relative; z-index: 2; margin-top: -80px;
    background: var(--card); border-radius: 22px; box-shadow: var(--shadow);
    border: 1px solid #efe8da; padding: 24px 20px 20px;
}
.form-card h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 10px 0 4px; line-height: 1.2; }
.form-card .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }

.field { margin-bottom: 14px; }
.field label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--muted); }
.control { position: relative; }
.control .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: #a59c88; pointer-events: none; }
.input {
    width: 100%; height: 52px; padding: 0 14px 0 44px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
    font-size: 16px; /* >=16px tránh iOS zoom */
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #b3ab9b; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,92,.18); }
.input.invalid { border-color: var(--err); box-shadow: 0 0 0 4px rgba(179,65,46,.12); }
select.input { padding-right: 40px; background-image: none; }
.control .caret { left: auto; right: 14px; }
.field-error { display: none; color: var(--err); font-size: 12.5px; margin-top: 6px; }
.field-error.show { display: block; }

.stepper { display: flex; align-items: center; height: 52px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.stepper button { width: 56px; height: 100%; border: 0; background: transparent; display: grid; place-items: center; font-size: 18px; color: var(--text); }
.stepper button:hover { background: #faf6ee; }
.stepper output { flex: 1; text-align: center; font-weight: 600; font-size: 16px; }
.stepper output small { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }

.form-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.form-note .i { font-size: 15px; color: var(--ok); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.tip {
    display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px;
    border-radius: 12px; background: #fbf5e7; border: 1px dashed #e2cf9f; font-size: 12.5px; color: #6b5626;
}
.tip .i { font-size: 17px; margin-top: 1px; color: var(--gold-lo); }
.tip b { color: #4a3a14; }

/* Sections */
.section { padding: 44px 0 0; }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.2; margin: 10px 0 6px; }
.section-head p { color: var(--muted); font-size: 13.5px; margin: 0; }

.chips { display: flex; gap: 8px; margin: 18px 0 14px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none; height: 36px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 500; color: var(--muted);
    transition: all .2s;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .count { opacity: .55; margin-left: 4px; }

.branches { display: grid; gap: 12px; }
.branch {
    background: var(--card); border: 1px solid #efe8da; border-radius: var(--radius);
    padding: 16px; display: grid; grid-template-columns: 56px 1fr; gap: 14px;
    transition: box-shadow .2s, border-color .2s;
}
.branch:hover { box-shadow: var(--shadow); border-color: #e6dac2; }
.branch.picked { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,164,92,.2); }
.mono {
    width: 56px; height: 64px; border-radius: 12px;
    background: linear-gradient(160deg, var(--ink-3), var(--ink));
    color: var(--gold-hi); display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 1px solid #3a3222;
}
.mono small { font-size: 8px; letter-spacing: .3em; color: #9d8f70; font-weight: 600; }
.mono b { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.1; }
.branch h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #f3ecdd; color: var(--gold-lo); }
.branch .addr { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.branch .price { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.branch .price b { color: var(--text); font-size: 15px; }
.branch-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; padding-top: 12px; border-top: 1px solid #f1eadc; }
.act {
    height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600;
    transition: border-color .2s, background .2s;
}
.act .i { font-size: 15px; color: var(--gold-lo); }
.act:hover { border-color: var(--gold); }
.act.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.act.primary .i { color: var(--gold-hi); }
.more { margin-top: 14px; }
.more .i { transition: transform .2s; }
.more[aria-expanded="true"] .i { transform: rotate(180deg); }

.skeleton { height: 150px; border-radius: var(--radius); background: linear-gradient(90deg, #eee7d9 0%, #f7f2e8 50%, #eee7d9 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

.feature {
    margin-top: 32px; display: flex; gap: 14px; align-items: center;
    padding: 18px; border-radius: var(--radius); background: var(--ink); color: #fff; position: relative; overflow: hidden;
}
.feature::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(201,164,92,.25), transparent 70%); }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(201,164,92,.14); color: var(--gold-hi); font-size: 24px; flex: none; }
.feature h3 { margin: 0; font-size: 15px; font-weight: 700; }
.feature p { margin: 3px 0 0; font-size: 12.5px; color: #b9b2a3; }

.site-footer { margin-top: 56px; background: var(--ink); color: #9d968a; text-align: center; padding: 40px 16px 120px; }
.site-footer .quote { font-family: var(--serif); font-style: italic; color: var(--gold-hi); font-size: 19px; margin: 14px 0 6px; }
.site-footer small { font-size: 12px; letter-spacing: .08em; }
.site-footer .brand { justify-content: center; }

/* Sticky CTA (mobile) */
.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(14,13,11,0), rgba(14,13,11,.85) 40%);
    display: flex; gap: 10px; justify-content: center;
    transform: translateY(110%); transition: transform .3s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { flex: 1; max-width: 400px; }
.sticky-cta .btn-call { flex: none; width: 52px; padding: 0; background: #fff; color: var(--ink); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(10,9,7,.6); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { width: 100%; max-width: 380px; background: var(--card); border-radius: 22px; padding: 28px 22px 20px; text-align: center; transform: translateY(12px) scale(.98); transition: transform .3s; }
.modal.open .modal-box { transform: none; }
.modal-ok { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: #e6f2eb; color: var(--ok); font-size: 30px; }
.modal-box h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 8px; }
.modal-box p { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.modal-box p b { color: var(--text); }
.modal-box .btn + .btn { margin-top: 8px; }

.alert { display: none; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fbeae6; color: var(--err); font-size: 13px; }
.alert.show { display: block; }

/* Reveal on scroll: .reveal (từ dưới lên), .from-left / .from-right (trượt từ 2 bên) */
body { overflow-x: hidden; overflow-x: clip; } /* không cho phần tử đang trượt tạo thanh cuộn ngang */
.reveal, .from-left, .from-right {
    opacity: 0;
    transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1), box-shadow .2s, border-color .2s;
    transition-delay: var(--delay, 0s);
}
.reveal { transform: translateY(14px); }
.from-left { transform: translateX(-48px); }
.from-right { transform: translateX(48px); }
.reveal.in, .from-left.in, .from-right.in { opacity: 1; transform: none; }

@media (min-width: 720px) {
    .wrap { max-width: 720px; }
    .hero { padding-bottom: 130px; }
    .hero-body { padding-top: 64px; text-align: center; }
    .hero-body .eyebrow, .hero p.lead { margin-left: auto; margin-right: auto; }
    .hero p.lead { max-width: 46ch; }
    .perks { max-width: 560px; margin-left: auto; margin-right: auto; }
    .form-card { max-width: 560px; margin-left: auto; margin-right: auto; padding: 32px; margin-top: -96px; }
    .branches { grid-template-columns: 1fr 1fr; }
    .sticky-cta { display: none; }
    .site-footer { padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal, .from-left, .from-right { opacity: 1; transform: none; }
}

/* ============================================================
   BIO (link-in-bio)
   ============================================================ */
body.bio {
    background:
        radial-gradient(90% 50% at 50% 0%, rgba(201,164,92,.18), transparent 65%),
        var(--ink);
    color: #fff; min-height: 100vh; min-height: 100dvh;
}
.bio-wrap { max-width: 440px; margin: 0 auto; padding: 28px 16px 36px; }
.bio-head { text-align: center; }
.bio-logo { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; background: rgba(255,255,255,.03); }
.bio-logo img { width: 52px; height: 52px; object-fit: contain; }
.bio-head .brand-word { align-items: center; margin-top: 14px; }
.bio-head .brand-word b { font-size: 24px; }
.bio-head h1 { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.15; margin: 22px 0 10px; }
.bio-head h1 em { color: var(--gold-hi); font-weight: 500; }
.bio-head p { color: #b9b2a3; font-size: 14px; font-weight: 300; margin: 0 auto; max-width: 32ch; }
.bio-stats { display: flex; justify-content: center; gap: 0; margin: 22px 0 26px; }
.bio-stats div { padding: 0 16px; text-align: center; }
.bio-stats div + div { border-left: 1px solid var(--line-dark); }
.bio-stats b { display: block; font-family: var(--serif); font-size: 22px; color: var(--gold-hi); font-weight: 600; line-height: 1.1; }
.bio-stats span { font-size: 11px; color: #9d968a; letter-spacing: .04em; }

.links { display: grid; gap: 10px; }
.link {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 72px;
    border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035);
    transition: background .2s, border-color .2s, transform .15s;
}
.link:hover { background: rgba(255,255,255,.06); border-color: var(--line-dark); }
.link:active { transform: scale(.985); }
.link .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; flex: none; background: rgba(201,164,92,.1); color: var(--gold-hi); }
.link .txt { flex: 1; min-width: 0; }
.link .txt b { display: block; font-size: 14.5px; font-weight: 600; }
.link .txt span { display: block; font-size: 12.5px; color: #9d968a; margin-top: 2px; }
.link > .i { font-size: 18px; color: #6f6859; }
.link.primary { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); border-color: transparent; color: #1a1406; box-shadow: 0 14px 30px -14px rgba(201,164,92,.8); }
.link.primary .ico { background: rgba(0,0,0,.1); color: #1a1406; }
.link.primary .txt span { color: rgba(26,20,6,.7); }
.link.primary > .i { color: rgba(26,20,6,.6); }
.link .txt .badge, .badge { display: inline-block; margin-top: 0; color: var(--gold-hi); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; margin-left: 6px; border-radius: 999px; background: rgba(201,164,92,.18); color: var(--gold-hi); vertical-align: 2px; }

.bio-divider { display: flex; align-items: center; gap: 12px; color: #6f6859; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin: 22px 0 12px; }
.bio-divider::before, .bio-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.08); }
.bio-foot { text-align: center; margin-top: 32px; color: #6f6859; font-size: 12px; }
.bio-foot .quote { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 16px; margin-bottom: 6px; }
