/* RVH-Calc — light, boutique-luxury theme matching Real Vacation Homes (gold + white, Chivo). */
:root {
  --bg: #ffffff;
  --bg-2: #faf8f4;         /* warm off-white band */
  --surface: #ffffff;      /* cards */
  --surface-2: #faf8f4;    /* lifted / inner */
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --hairline: #e7e4de;
  --hairline-2: #f0ede7;
  --gold: #c88904;         /* RVH primary/accent */
  --gold-dark: #a06f03;
  --gold-tint: rgba(200,137,4,.09);
  --gold-tint-2: rgba(200,137,4,.16);
  --pos: #1a7f5a;          /* net positive green */
  --neg: #9a5b3f;          /* muted deduction */
  --sans: "Chivo variable", "Chivo", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20,16,8,.04), 0 18px 44px -30px rgba(20,16,8,.25);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 18px; }
em { font-style: normal; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
img { max-width: 100%; display: block; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(180deg, var(--bg-2) 0%, #fff 100%);
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0 56px;
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.hero-logo { height: clamp(52px, 10vw, 72px); width: auto; }
.lang-toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.lang-btn { background: none; border: 0; padding: 2px; margin: 0; cursor: pointer; line-height: 0; border-radius: 4px; opacity: .55; transition: opacity .2s ease, box-shadow .2s ease; }
.lang-btn:hover { opacity: .9; }
.lang-btn.active { opacity: 1; box-shadow: 0 0 0 2px var(--gold); }
.lang-btn svg { display: block; border-radius: 3px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .7rem;
  font-weight: 600; color: var(--gold-dark); margin-bottom: 16px;
  display: flex; align-items: center; gap: .8rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--gold); flex: none; }
.hero h1 {
  font-weight: 700; font-size: clamp(1.9rem, 6vw, 2.9rem); line-height: 1.1; letter-spacing: -.02em;
}
.hero h1 em { color: var(--gold-dark); font-weight: 700; }
.hero .sub { margin-top: 18px; font-size: 1.05rem; font-weight: 400; line-height: 1.6; color: #444; max-width: 60ch; }
.scroll-hint {
  display: inline-block; margin-top: 24px; color: var(--gold-dark); text-decoration: none;
  font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: .85rem;
  border-bottom: 2px solid var(--gold); padding-bottom: 3px;
}

/* ---- CARDS ---- */
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 24px; margin: 18px 0; box-shadow: var(--shadow);
}
main { padding: 30px 0 60px; }
.section-title { font-weight: 700; font-size: 1.35rem; margin-bottom: 6px; letter-spacing: -.01em; }

/* ---- FORM ---- */
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 18px 0; }
@media (min-width: 560px) { .grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; border: 0; }
.field > span, .field > legend { font-weight: 600; font-size: .9rem; color: var(--text); }
select, input[type=text], input[type=tel], input[type=email] {
  font: inherit; padding: 13px 14px; border: 1px solid var(--hairline);
  border-radius: 10px; background: #fff; color: var(--text); width: 100%;
  appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c88904' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
select:focus, input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
input:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.hint { font-size: .78rem; color: var(--muted); }
.radio-row { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.radio { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: .95rem; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 10px; cursor: pointer; }
.radio input { accent-color: var(--gold); width: 18px; height: 18px; }
.radio:has(input:checked) { border-color: var(--gold); background: var(--gold-tint); }

/* ---- BUTTONS (pill) ---- */
.btn { display: inline-block; font: inherit; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border: 1.5px solid transparent; border-radius: 999px; padding: 13px 24px; cursor: pointer; text-decoration: none; text-align: center; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease; }
.btn.big { width: 100%; font-size: .95rem; padding: 16px; margin-top: 8px; }
.btn.gold { background: var(--gold); color: #fff; box-shadow: 0 8px 22px -12px rgba(200,137,4,.7); }
.btn.gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(200,137,4,.8); }
.btn.gold:disabled { background: #e4dcc8; color: #fff; box-shadow: none; transform: none; cursor: not-allowed; }
.btn.ghost { background: transparent; border-color: var(--gold); color: var(--gold-dark); }
.btn.ghost:hover { background: var(--gold-tint); }
.error-msg { color: var(--neg); margin-top: 10px; font-size: .9rem; }

/* ---- GATE ---- */
.disclaimer-box { background: var(--gold-tint); border: 1px solid var(--hairline); border-left: 3px solid var(--gold); padding: 16px; border-radius: 10px; font-size: .92rem; margin: 12px 0; color: #524a38; }
.ack-check { display: flex; gap: 11px; align-items: flex-start; margin: 16px 0; font-weight: 500; cursor: pointer; font-size: .92rem; }
.ack-check input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; margin-top: 1px; }

/* ---- DELTA CARD ---- */
.delta-card { text-align: center; }
.delta-card.pos { background: linear-gradient(160deg, var(--gold-tint-2), var(--gold-tint)); border-color: var(--gold); }
.delta-head { font-size: 1.25rem; font-weight: 500; line-height: 1.4; color: var(--text); }
.delta-amount { font-weight: 700; font-size: 1.35em; color: var(--gold-dark); white-space: nowrap; }
.delta-brl { margin-top: 6px; font-size: 1.05rem; font-weight: 600; color: var(--gold-dark); }
.delta-sub { margin-top: 12px; font-size: .85rem; color: var(--muted); }

/* ---- COMPARISON GRID ---- */
.compare-grid { display: grid; }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 1.35fr 1fr 1fr; align-items: center; gap: 8px; padding: 12px 8px; }
.cmp-head { border-bottom: 2px solid var(--hairline); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cmp-head .col-now, .cmp-head .col-rvh { text-align: right; font-weight: 700; }
.cmp-head .col-rvh { color: var(--gold-dark); }
.cmp-row { border-bottom: 1px solid var(--hairline-2); }
.cmp-label { font-size: .9rem; }
.cmp-now, .cmp-rvh { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-rvh { background: var(--gold-tint); border-radius: 8px; padding: 8px 10px; font-weight: 600; }
.cmp-row.ded .cmp-now, .cmp-row.ded .cmp-rvh { color: var(--neg); }
.cmp-row.gross .cmp-label, .cmp-row.gross .cmp-now, .cmp-row.gross .cmp-rvh { font-weight: 700; }
.cmp-row.supplies { background: var(--gold-tint); border-radius: 8px; }
.cmp-row.supplies .cmp-label { font-weight: 600; }
.cmp-row.supplies .cmp-now { color: var(--neg); }
.cmp-row.supplies .incl { color: var(--gold-dark); font-weight: 700; font-size: .82rem; }
.cmp-row.net { border-top: 2px solid var(--gold); border-bottom: none; margin-top: 6px; padding-top: 14px; }
.cmp-row.net .cmp-label { font-weight: 700; font-size: 1.05rem; }
.cmp-row.net .cmp-now { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.cmp-row.net .cmp-rvh { font-weight: 700; font-size: 1.15rem; color: var(--pos); background: var(--gold-tint-2); }
.pcttag { display: inline-block; font-size: .68rem; color: var(--muted); font-weight: 500; }
.detail-toggle { margin-top: 16px; width: auto; padding: 10px 20px; font-size: .8rem; }
#detailBody { margin-top: 14px; border-top: 1px solid var(--hairline); padding-top: 8px; }
.detail-note { font-size: .85rem; color: #524a38; background: var(--gold-tint); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.wf-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--hairline-2); font-size: .9rem; }
.wf-row .wf-amt { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---- OCCUPANCY ---- */
.occ-card .occ-title { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.occ-row { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 12px; margin: 10px 0; }
.occ-label { font-size: .85rem; color: var(--muted); }
.occ-track { height: 12px; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 999px; overflow: hidden; }
.occ-fill { display: block; height: 100%; border-radius: 999px; }
.occ-fill.now { background: #cdbfa3; }
.occ-fill.rvh { background: var(--gold); }
.occ-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- CTA ---- */
.cta-card { text-align: center; background: linear-gradient(160deg, var(--gold-tint-2), var(--gold-tint)); border-color: var(--gold); }
.cta-card p { margin-bottom: 14px; font-weight: 600; font-size: 1.1rem; color: var(--text); }
.cta-card .cta-sub { margin: 12px 0 0; font-size: .85rem; font-weight: 400; color: var(--muted); }
.wa-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; font-size: .85rem; color: var(--muted); text-decoration: none; transition: color .3s ease; }
.wa-link:hover { color: #25D366; }
.wa-link svg { width: 15px; height: 15px; fill: #25D366; flex: none; }

/* ---- FOOTER ---- */
.footer-disclaimer { margin: 20px 0; font-size: .78rem; color: var(--muted); padding: 0 4px; }
.footer { border-top: 1px solid var(--hairline); padding: 40px 18px 28px; background: var(--bg-2); margin-top: 20px; }
.footer__inner { max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer__logo { height: 54px; width: auto; margin-bottom: .7rem; }
.footer__line { margin: 0; font-size: .88rem; color: var(--muted); }
.footer__social { display: flex; flex-direction: column; gap: .55rem; text-align: right; }
.footer__social a { font-size: .85rem; color: var(--muted); text-decoration: none; transition: color .3s ease; }
.footer__social a:hover { color: var(--gold-dark); }
.footer__copy { max-width: 760px; margin: 1.8rem auto 0; padding-top: 1.4rem; border-top: 1px solid var(--hairline); font-size: .76rem; color: var(--muted); text-align: center; }
@media (max-width: 600px) { .footer__inner { flex-direction: column; align-items: flex-start; } .footer__social { text-align: left; } }

/* ---- LEAD MODAL ---- */
.modal-bg { position: fixed; inset: 0; background: rgba(28,22,10,.5); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 60; }
.modal-bg[hidden] { display: none; }
.modal { position: relative; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(20,16,8,.4); padding: 26px; max-width: 460px; width: 100%; max-height: 92vh; overflow-y: auto; }
.modal-title { font-weight: 700; font-size: 1.3rem; }
.modal-sub { margin-top: 8px; font-size: .9rem; color: #555; }
.modal .msg { margin: 4px 0 0; font-size: .85rem; }
.modal .msg.err { color: var(--neg); }
.modal .msg.ok { color: var(--pos); }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }
.hp-field { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
