/* ============================================================
   RV Apps NW LLC — landing page
   Palette mirrors Hitchlist.app: forest green + warm rust on cream
   ============================================================ */

:root {
  /* Surfaces & text */
  --color-bg: #f7f6f2;
  --color-surface: #fbfbf9;
  --color-surface-2: #eee9df;
  --color-border: #d4d1ca;
  --color-divider: #e2dfd9;
  --color-text: #28251d;
  --color-text-muted: #6b6963;
  --color-text-faint: #a4a39d;

  /* Primary — Forest green */
  --color-green: #2c5f4f;
  --color-green-hover: #224a3e;
  --color-green-soft: #d8e3df;

  /* Accent — Warm rust */
  --color-rust: #c97b3c;
  --color-rust-hover: #b56930;
  --color-rust-soft: #f3e1d2;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --shadow-sm: 0 1px 2px rgba(40, 37, 29, 0.06);
  --shadow-md: 0 6px 16px rgba(40, 37, 29, 0.08);
  --shadow-lg: 0 18px 40px rgba(40, 37, 29, 0.12);

  --font-display: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.accent-rust { color: var(--color-rust); }
.accent-green { color: var(--color-green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-green);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--color-green-hover); }

.btn-ghost {
  background: transparent;
  color: var(--color-green);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-green); background: var(--color-green-soft); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--color-divider);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand-mark { width: 42px; height: 42px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--color-green);
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
.brand-llc {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--color-rust);
  font-weight: 700;
}
.header-cta { padding: 0.6rem 1.25rem; font-size: 0.875rem; }

/* ---------- Ridge backdrop ---------- */
.ridge {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 620px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.ridge svg { width: 100%; height: 100%; }
.ridge path { fill: var(--color-green-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4.5rem 0 4rem;
}
.hero-logo {
  width: 168px;
  height: 168px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(40, 37, 29, 0.10));
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-rust); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: 1.3rem;
}
.hero-sub {
  max-width: 580px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: var(--color-text-muted);
}
.hero-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 1; padding: 4.5rem 0; }
.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-lead {
  max-width: 620px;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2.75rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-green-soft);
}
.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: var(--color-green-soft);
  color: var(--color-green);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}
.card p { color: var(--color-text-muted); font-size: 0.98rem; }

/* ---------- Contact ---------- */
.contact-section { padding-top: 1rem; }
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 3.25rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-green), var(--color-rust));
}
.contact-card .section-lead { margin-left: auto; margin-right: auto; margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface-2);
  padding: 2.25rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 0.85rem; }
.footer-mark { width: 46px; height: 46px; object-fit: contain; }
.footer-name { font-family: var(--font-display); font-weight: 700; color: var(--color-green); }
.footer-loc { font-size: 0.875rem; color: var(--color-text-muted); }
.footer-copy { font-size: 0.85rem; color: var(--color-text-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .hero { padding: 3rem 0 3rem; }
  .hero-logo { width: 132px; height: 132px; }
  .section { padding: 3.25rem 0; }
  .contact-card { padding: 2.5rem 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; }
  .btn { width: 100%; }
  .hero-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
