:root {
  --bg: #0b0e14;
  --bg-soft: #121722;
  --card: #161c2b;
  --text-main: #f1f5f9;
  --text-muted: #9aa4b2;
  --accent: #e57c3a;
  --accent-hover: #f0935c;
  --border: rgba(255,255,255,0.08);
  --radius: 14px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */

header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(
    to bottom,
    rgba(10,10,15,0.85),
    rgba(10,10,15,0.35),
    rgba(10,10,15,0)
  );
  backdrop-filter: blur(6px);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px; /* Reduced from 28px */
  padding: 0;
  margin: 0;
}

nav a {
  font-size: 0.9rem; /* Slightly smaller to fit */
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

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

.btn-subscribe {
  background: #2b3348;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.btn-subscribe:hover {
  background: #3b4661;
}

/* ===== HERO ===== */

.hero {
min-height: 100vh;
  background:
    linear-gradient(
      to right,
      rgba(10,12,18,0.75) 0%,
      rgba(10,12,18,0.55) 40%,
      rgba(10,12,18,0.2) 70%,
      rgba(10,12,18,0.05) 100%
    ),
    url("../heros/hero-boondocking.jpg") center bottom / cover no-repeat;
}



.hero-content {
  max-width: 640px;
  padding-top: 80px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 520px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #111;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

/* ===== FEATURE CARDS ===== */

.features {
  padding: 80px 0 90px;
  background: linear-gradient(
    to bottom,
    rgba(10,12,18,0),
    rgba(10,12,18,1)
  );
}

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

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.card-image {
  height: 180px;
  background: #222;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.card h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
}

.card-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.center-cta {
  text-align: center;
  margin-top: 56px;
}

.center-cta a {
  background: #242c40;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

/* ===== SHARED / CONTENT PAGES ===== */

.page-header {
  padding: 140px 0 60px; /* More top padding for absolute header */
  background: linear-gradient(to bottom, var(--bg-soft), var(--bg));
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.page-content {
  max-width: 800px;
  margin: 0 auto 100px;
  padding: 0 24px;
}

.page-content h2 {
  font-size: 1.8rem;
  margin: 60px 0 24px;
  color: var(--accent);
}

.page-content p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 24px;
}

/* ===== PRODUCT GRID (Edge Injected) ===== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 50px 0;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-color: var(--accent);
}

.product-image {
  height: 200px;
  background: #222;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.product-meta {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.product-rating {
  color: #fbbf24;
  font-size: 0.95rem;
}

.product-rating .count {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 6px;
}

.product-features ul {
  padding-left: 0;
  list-style: none;
  margin: 0 0 24px;
}

.product-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 14px;
  position: relative;
}

.product-features li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.product-actions {
  margin-top: auto;
}

.btn-product-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.btn-product-cta:hover {
  background: var(--accent-hover);
}

.product-disclosure {
  text-align: center;
  margin-top: 12px;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ===== FOOTER ===== */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 50px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  background: var(--bg);
}

.affiliate-note {
  margin-top: 10px;
  font-size: 0.75rem;
  opacity: 0.75;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  header {
    position: relative;
    background: var(--bg); /* Solid background on mobile usually better */
  }

  .hero {
    min-height: 60vh;
  }
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 124, 58, 0.15);
}

button[type="submit"] {
  background: var(--accent);
  color: #111;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button[type="submit"]:hover {
  background: var(--accent-hover);
}

button[type="submit"]:active {
  transform: translateY(1px);
}
