/* ============================================
   Rainier Rock & Dirt — Demo Site
   Built by [DEMO] — fictional company for showcase
   ============================================ */
:root {
  --green-950: #0c1a12;
  --green-900: #12291b;
  --green-800: #1a3a26;
  --green-700: #235233;
  --green-600: #2e6b42;
  --green-500: #3d8a56;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --amber-light: #fbbf24;
  --cream: #faf6ef;
  --stone: #e7e0d3;
  --ink: #1c1917;
  --gray: #78716c;
  --white: #ffffff;
  --red: #dc2626;
  --blue: #2563eb;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(12, 26, 18, 0.18);
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  font-weight: 700;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Demo ribbon ---------- */
.demo-ribbon {
  position: fixed; top: 14px; right: -44px; z-index: 999;
  transform: rotate(38deg);
  background: var(--amber);
  color: var(--green-950);
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.14em;
  padding: 7px 52px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  pointer-events: none;
  text-transform: uppercase;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 26, 18, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 48px; width: 48px; border-radius: 8px; }
.nav-logo .wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: var(--white); text-transform: uppercase; letter-spacing: 0.04em; line-height: 1;
}
.nav-logo .wordmark span { color: var(--amber); }
.nav-logo .tagline { font-size: 10px; color: var(--stone); letter-spacing: 0.18em; text-transform: uppercase; }
.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; }
.nav-links a {
  color: var(--stone); font-size: 14px; font-weight: 500;
  padding: 9px 14px; border-radius: 8px; transition: all .18s;
}
.nav-links a:hover { color: var(--amber-light); background: rgba(245,158,11,.08); }
.nav-links a.active { color: var(--amber); }
.nav-links a.btn-portal {
  background: var(--amber); color: var(--green-950); font-weight: 700;
  margin-left: 10px;
}
.nav-links a.btn-portal:hover { background: var(--amber-light); }
.nav-burger { display: none; background: none; border: 0; color: var(--white); font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  background: var(--green-950); overflow: hidden; color: var(--white);
}
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.55;
}
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12,26,18,.92) 15%, rgba(12,26,18,.45) 55%, rgba(12,26,18,.25) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 90px 0; max-width: 640px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.4);
  color: var(--amber-light); font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(44px, 7vw, 84px); color: var(--white); }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lede { font-size: 19px; color: var(--stone); margin: 22px 0 34px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; padding: 15px 28px;
  border-radius: 10px; border: 0; cursor: pointer; transition: all .18s;
}
.btn-primary { background: var(--amber); color: var(--green-950); }
.btn-primary:hover { background: var(--amber-light); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-light); }
.btn-dark { background: var(--green-800); color: var(--white); }
.btn-dark:hover { background: var(--green-700); }

.hero-stats {
  position: relative; z-index: 2;
  display: flex; gap: 0; margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat { padding: 22px 38px 0 0; margin-right: 38px; }
.hero-stat .num { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--amber); line-height: 1; }
.hero-stat .lbl { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-dark { background: var(--green-950); color: var(--white); }
.section-stone { background: var(--stone); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.kicker {
  color: var(--amber-dark); font-weight: 700; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px;
}
.section-dark .kicker { color: var(--amber); }
.section-head h2 { font-size: clamp(32px, 4.5vw, 52px); }
.section-head p { color: var(--gray); margin-top: 14px; font-size: 17px; }
.section-dark .section-head p { color: var(--stone); }

/* Cards grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: 0 4px 16px rgba(12,26,18,.07);
  border: 1px solid rgba(12,26,18,.06);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px; color: var(--amber-light);
}
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 15px; }

/* Photo cards */
.photo-card { border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.photo-card img { width: 100%; height: 340px; object-fit: cover; transition: transform .4s; }
.photo-card:hover img { transform: scale(1.04); }
.photo-card .overlay {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(12,26,18,.92));
  color: var(--white); padding: 46px 24px 20px;
}
.photo-card .overlay h3 { font-size: 24px; }
.photo-card .overlay p { font-size: 13px; color: var(--stone); }

/* Truck spec table */
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(12,26,18,.07); }
.spec-table th {
  background: var(--green-900); color: var(--amber-light);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em;
  font-size: 15px; text-align: left; padding: 14px 18px;
}
.spec-table td { padding: 14px 18px; border-bottom: 1px solid var(--stone); font-size: 14px; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table tr:hover td { background: rgba(245,158,11,.06); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.badge-green { background: #dcfce7; color: #15803d; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-gray { background: #e7e5e4; color: #57534e; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--green-900), var(--green-700));
  border-radius: 18px; padding: 56px; color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(245,158,11,.14);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); }
.cta-band p { color: var(--stone); margin-top: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--green-900); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 15px; border-radius: 9px;
  border: 1.5px solid #d6cfc0; background: var(--white);
  font: 15px var(--font-body); color: var(--ink); transition: border-color .18s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,.18);
}
.info-tile { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(12,26,18,.09); }
.info-tile:last-child { border-bottom: 0; }
.info-tile .ico { font-size: 22px; }
.info-tile b { display: block; font-size: 14px; }
.info-tile span { color: var(--gray); font-size: 14px; }

/* Footer */
.footer { background: var(--green-950); color: var(--stone); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer h4 { font-family: var(--font-display); text-transform: uppercase; color: var(--amber); font-size: 16px; letter-spacing: .08em; margin-bottom: 14px; }
.footer a { display: block; padding: 5px 0; font-size: 14px; color: var(--stone); }
.footer a:hover { color: var(--amber-light); }
.footer .fine { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: 12.5px; color: #9ca3af; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Toast for demo interactions */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(90px);
  background: var(--green-900); color: var(--white); padding: 14px 24px;
  border-radius: 10px; border-left: 4px solid var(--amber);
  box-shadow: var(--shadow); font-size: 14px; z-index: 1000;
  transition: transform .3s cubic-bezier(.2,.9,.3,1.2); max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-2, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--green-950); flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 26px; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { padding-right: 22px; margin-right: 22px; }
}
