/* Real Vacation Homes — landing page (dark + gold)
   Brand tokens & reusable classes adapted from /var/www/rvhsite/src/styles/index.css */

:root {
  --bg: #0d0d0d;
  --bg-panel: #141414;
  --bg-card: rgba(245, 245, 245, 0.04);
  --border: rgba(245, 245, 245, 0.14);
  --fg: #f5f5f5;
  --fg-muted: rgba(245, 245, 245, 0.72);
  --fg-dim: rgba(245, 245, 245, 0.5);
  --gold: #c88904;                 /* oklch(67.636% 0.14117 76.096) */
  --gold-bright: #e8a83a;          /* oklch(80% 0.16 90) approx */
  --gold-dark: #9a6b12;            /* oklch(55% 0.12 70) approx */
  --maxw: 1180px;
  --radius: 1rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Chivo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5.5rem 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-head p { color: var(--fg-muted); font-size: 1.1rem; margin-top: 1rem; }

.lead { color: var(--fg-muted); font-size: 1.15rem; }

/* ---------- Buttons (pills) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.95rem 1.8rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-sm { padding: 0.6rem 1.3rem; font-size: 0.8rem; }

/* Primary gold — reuses RVH .btn-primary-hover-shimmer */
.btn-primary {
  color: #fff;
  background-image: linear-gradient(
    110deg,
    var(--gold) 0%,
    var(--gold-bright) 45%,
    var(--gold) 100%
  );
  background-position: 0% 0%;
  background-size: 220% 100%;
  box-shadow: 0 8px 30px rgba(200, 137, 4, 0.28);
}
.btn-primary:hover { animation: primary-button-shimmer 0.8s ease-out both; }
@keyframes primary-button-shimmer {
  from { background-position: 0% 0%; }
  to   { background-position: 100% 0%; }
}

/* Secondary outline gold */
.btn-outline {
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
}
.btn-outline:hover { background: rgba(200, 137, 4, 0.15); }

/* Inverted (on gold surfaces) */
.btn-invert { background: #fff; color: var(--gold); }
.btn-invert:hover { background: rgba(255, 255, 255, 0.9); }

/* ---------- Gold shimmer text — reused verbatim from RVH ---------- */
.gold-shimmer {
  -webkit-text-fill-color: transparent;
  color: transparent;
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    var(--gold-bright) 40%,
    var(--gold) 60%,
    var(--gold-dark) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer-line 6s linear infinite;
}
@keyframes shimmer-line {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ---------- Fade-up entrance — reused from RVH ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up          { animation: fade-up 0.6s ease-out both; }
.fade-up.d1       { animation-delay: 0.15s; }
.fade-up.d2       { animation-delay: 0.30s; }
.fade-up.d3       { animation-delay: 0.45s; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.topbar.scrolled { border-bottom-color: var(--gold); }
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.topbar img { height: 44px; width: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 6rem 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("images/hero.jpg") center/cover no-repeat;
  transform: scale(1.05);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(0,0,0,0.35), rgba(0,0,0,0.72)),
    linear-gradient(180deg, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.85) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { max-width: 860px; margin: 0 auto; }

.badge {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.5;
  border-radius: 9999px;
  border: 1px solid var(--gold);
  background: rgba(200, 137, 4, 0.12);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1.75rem;
}
.badge .dot {
  vertical-align: middle;
  margin-right: 0.45rem;
}

/* Header CTA label swaps to a shorter form on small screens */
.nav-cta-short { display: none; }
.nav-cta { flex-shrink: 0; }
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); display: inline-block;
}

.hero h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
.hero .sub {
  color: rgba(245, 245, 245, 0.85);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 620px;
  margin: 1.5rem auto 2.25rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note { margin-top: 1.5rem; color: var(--fg-dim); font-size: 0.85rem; }

/* ---------- Stats band ---------- */
.stats {
  background: var(--gold);
  color: #1a1205;
  padding: 3rem 0;
}
.stats .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stats .num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; line-height: 1; }
.stats .lbl { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; font-weight: 600; margin-top: 0.5rem; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 2rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.card p { color: var(--fg-muted); margin: 0; font-size: 0.98rem; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200, 137, 4, 0.15);
  font-size: 1.4rem; margin-bottom: 1.1rem;
}

.panel { background: var(--bg-panel); }

/* Fee comparison */
.fee-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 860px; margin: 0 auto; }
.fee {
  border-radius: var(--radius);
  padding: 2.25rem;
  border: 1px solid var(--border);
}
.fee.them { background: var(--bg-card); }
.fee.us { background: linear-gradient(160deg, rgba(200,137,4,0.14), rgba(200,137,4,0.04)); border-color: var(--gold); }
.fee .tag { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 600; color: var(--fg-dim); }
.fee.us .tag { color: var(--gold); }
.fee .big { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 900; line-height: 1; margin: 0.6rem 0 1rem; }
.fee ul { list-style: none; padding: 0; margin: 0; }
.fee li { padding: 0.4rem 0 0.4rem 1.6rem; position: relative; color: var(--fg-muted); }
.fee.us li { color: var(--fg); }
.fee li::before { content: "✕"; position: absolute; left: 0; color: var(--fg-dim); font-weight: 700; }
.fee.us li::before { content: "✓"; color: var(--gold); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); padding: 2rem; }
.step .n {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: #1a1205; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { color: var(--fg-muted); margin: 0; }

/* ---------- Calculator CTA band — reuses RVH .cta-surface ---------- */
.cta-band { padding: 0; }
.cta-surface {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 4rem 2.5rem;
  text-align: center;
  color: #1a1205;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.16) 0%, transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(0,0,0,0.22) 0%, transparent 60%),
    linear-gradient(110deg, var(--gold) 0%, #b57a09 50%, var(--gold-bright) 100%);
}
.cta-surface h2 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 780px; margin: 0 auto; }
.cta-surface p { max-width: 640px; margin: 1.25rem auto 2rem; font-size: 1.1rem; color: #2a1d05; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-panel); border-top: 1px solid var(--gold); padding: 4rem 0 2.5rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer img { height: 52px; width: auto; margin-bottom: 1rem; }
.footer h4 { color: var(--gold); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; margin: 0 0 1rem; }
.footer p, .footer a { color: var(--fg-muted); font-size: 0.95rem; }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer .contact-line { display: block; margin-bottom: 0.5rem; }
.footer .foot-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }
.copyright {
  border-top: 1px solid var(--border);
  margin-top: 3rem; padding-top: 1.5rem;
  color: var(--fg-dim); font-size: 0.85rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  section { padding: 4rem 0; }
  .stats .grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-3, .grid-2, .steps, .fee-grid, .footer .cols { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .badge { font-size: 0.62rem; letter-spacing: 0.14em; padding: 0.4rem 0.85rem; }
  .nav-cta-full, .nav-arrow { display: none; }
  .nav-cta-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .gold-shimmer, .fade-up, .btn-primary:hover { animation: none; }
  html { scroll-behavior: auto; }
}
