/* ============================================
   RVLeaseBusters — Elegant High-End Design System
   Palette: Deep charcoal, warm ivory, refined gold
   Typography: Cormorant Garamond + Inter
   ============================================ */

:root {
  --ink: #121212;
  --charcoal: #1c1c1c;
  --soft-charcoal: #2a2a2a;
  --ivory: #f7f4ef;
  --cream: #ebe6dc;
  --gold: #c9a96e;
  --gold-light: #dfc896;
  --gold-dark: #a88b4f;
  --muted: #8a857c;
  --white: #ffffff;
  --border: rgba(201, 169, 110, 0.25);
  --radius: 4px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(3.2rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.4rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.15rem; font-family: 'Inter', sans-serif; font-weight: 500; letter-spacing: 0.02em; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 1.25rem auto 0;
  font-weight: 300;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(247, 244, 239, 0.45);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border: none;
  padding: 0.85rem 1rem;
}
.btn-ghost:hover { color: var(--gold); }

.btn-lg {
  padding: 1.05rem 2.1rem;
  font-size: 0.82rem;
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.72rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: var(--transition);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(12px);
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--ivory);
}

.logo-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--gold);
}

.logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  gap: 2.2rem;
}

.main-nav a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.78);
}

.main-nav a:hover { color: var(--gold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ivory);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--ivory);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(18,18,18,0.50) 0%, rgba(18,18,18,0.70) 100%),
    url('../assets/capistrano/hero-side.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 32px 5rem;
  max-width: 900px;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--ivory);
}

.hero-sub {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(247, 244, 239, 0.82);
  max-width: 580px;
  margin-bottom: 2.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4.5rem;
}

.hero-stats {
  display: flex;
  gap: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(201, 169, 110, 0.25);
}

.stat-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.55);
}

/* Value Strip */
.value-strip {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 5rem 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.value-icon {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
}

.value-item h3 {
  margin-bottom: 0.85rem;
  color: var(--ivory);
}

.value-item p {
  font-size: 0.95rem;
  color: rgba(247, 244, 239, 0.65);
  font-weight: 300;
  line-height: 1.7;
}

/* Sections */
.section {
  padding: 7rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header.light {
  color: var(--ivory);
}

.section-header.light .section-lead {
  color: rgba(247, 244, 239, 0.65);
}

/* Process */
.how-it-works {
  background: var(--ivory);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.process-card {
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 6px;
  transition: var(--transition);
}

.process-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.process-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.process-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
}

.process-card p {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 300;
}

.process-cta, .center-cta {
  text-align: center;
}

/* Takeovers */
.takeovers {
  background: var(--charcoal);
  color: var(--ivory);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.listing-card {
  background: var(--soft-charcoal);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
}

.listing-card:hover {
  border-color: var(--border);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}

.listing-image {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.listing-body {
  padding: 1.6rem 1.5rem 1.8rem;
}

.listing-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  color: rgba(247, 244, 239, 0.75);
}

.tag.gold {
  background: rgba(201, 169, 110, 0.18);
  color: var(--gold-light);
}

.listing-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
  color: var(--ivory);
}

.listing-loc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.listing-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.listing-price span {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

/* Rentals */
.rentals {
  background: var(--ivory);
}

.rental-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 0.7rem 1.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--ivory);
}

.rental-card .listing-body {
  background: var(--white);
  color: var(--ink);
}

.rental-card h3 { color: var(--ink); }
.rental-card .listing-loc { color: var(--muted); }

.rental-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
}

.rental-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--ink);
}

.rental-pricing small {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.rental-pricing .price-weekly,
.rental-pricing .price-monthly {
  display: none;
  font-size: 1.15rem;
}

.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rating {
  font-size: 0.85rem;
  color: var(--muted);
}

.rental-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.rental-features h4 {
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.rental-features p {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 300;
}

/* Why Us */
.why-us {
  background: var(--cream);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-content .eyebrow { text-align: left; }
.why-content h2 { margin-bottom: 1.5rem; }
.why-content > p {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.why-list {
  margin-bottom: 2.5rem;
}

.why-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.why-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.why-image {
  height: 520px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
}

/* CTA Band */
.cta-band {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 6rem 0;
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 1rem;
}

.cta-band p {
  font-size: 1.1rem;
  color: rgba(247, 244, 239, 0.7);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

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

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(247, 244, 239, 0.55);
  font-weight: 300;
  line-height: 1.7;
  max-width: 280px;
}

.domains {
  margin-top: 1rem !important;
  color: var(--gold) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.03em;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 1.25rem;
  color: var(--ivory);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: rgba(247, 244, 239, 0.55);
  margin-bottom: 0.65rem;
  font-weight: 300;
}

.footer-links a:hover { color: var(--gold); }

.footer-contact p {
  font-size: 0.9rem;
  color: rgba(247, 244, 239, 0.55);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.phone {
  color: var(--gold) !important;
  font-size: 1.05rem !important;
  margin: 0.75rem 0 !important;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(247, 244, 239, 0.35);
  font-weight: 300;
}

/* Responsive */
@media (max-width: 1024px) {
  .process-grid,
  .listing-grid,
  .value-grid,
  .rental-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .why-image { height: 380px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    flex-direction: column;
    padding: 1.5rem 32px;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .mobile-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }

  .process-grid,
  .listing-grid,
  .value-grid,
  .rental-features,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .section { padding: 5rem 0; }
}

/* Duration tab pricing visibility */
body[data-duration="weekly"] .price-daily,
body[data-duration="monthly"] .price-daily {
  display: none;
}
body[data-duration="daily"] .price-weekly,
body[data-duration="monthly"] .price-weekly {
  display: none;
}
body[data-duration="daily"] .price-monthly,
body[data-duration="weekly"] .price-monthly {
  display: none;
}
body[data-duration="weekly"] .price-weekly,
body[data-duration="monthly"] .price-monthly {
  display: block;
}
