/* ============================================
   THE PREPPER'S PLAN — Main Stylesheet
   Clean & Modern Outdoor Brand Aesthetic
   ============================================ */

:root {
  --forest:   #1B3A2D;
  --forest-light: #264D3B;
  --amber:    #D4870A;
  --amber-light: #F0A030;
  --offwhite: #F7F5F0;
  --sage:     #A8BFB0;
  --sage-light: #E8EDE9;
  --slate:    #4A5568;
  --slate-light: #718096;
  --dark:     #111815;
  --white:    #FFFFFF;
  --border:   #DDE3DD;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:   8px;
  --radius-lg: 16px;
  --shadow:   0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,135,10,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-outline:hover {
  background: var(--forest);
  color: var(--white);
}
.btn-nav {
  background: var(--amber);
  color: var(--white);
  padding: 9px 20px;
  font-size: 0.875rem;
}
.btn-nav:hover { background: var(--amber-light); }
.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s;
}
.btn-sm:hover { background: var(--forest-light); }

/* ---- HEADER / NAV ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--forest);
}
.main-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.main-nav a:hover { color: var(--forest); }
.main-nav a:hover::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--forest);
  margin-left: auto;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 24px 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.mobile-nav a {
  padding: 0.6rem 0;
  font-weight: 500;
  color: var(--slate);
  border-bottom: 1px solid var(--sage-light);
}
.mobile-nav.open { display: flex; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(212,135,10,0.12) 0%, transparent 60%),
    linear-gradient(135deg, #0D2218 0%, #1B3A2D 50%, #254D38 100%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7.5rem);
  line-height: 0.95;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.ticker-wrap {
  display: inline-block;
  position: relative;
  color: var(--amber);
  min-width: 280px;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-cta .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.hero-cta .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.hero-trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.35);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- HERO: two-column layout w/ logo visual ---- */
.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-flex .hero-content {
  flex: 1 1 480px;
}
.hero-visual {
  position: relative;
  z-index: 2;
  flex: 0 1 320px;
  text-align: center;
}
.hero-visual img {
  width: 100%;
  max-width: 320px;
  height: auto;
}

/* ---- ALERT BANNER ---- */
.alert-banner {
  background: var(--amber);
  color: var(--white);
  padding: 12px 0;
  font-size: 0.9rem;
  font-weight: 500;
}
.alert-banner .container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-icon { font-size: 1.1rem; }
.alert-banner a { text-decoration: underline; color: var(--white); font-weight: 700; }

/* ---- SECTION COMMONS ---- */
.section { padding: 96px 0; }
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.03em;
  color: var(--forest);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.section-sub {
  font-size: 1rem;
  color: var(--slate);
  max-width: 620px;
  margin-bottom: 3rem;
  line-height: 1.7;
}
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-header-row .section-title { margin-bottom: 0; }

/* ---- CATEGORIES ---- */
.categories { background: var(--offwhite); }
.categories .section-title { margin-bottom: 3rem; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all 0.25s ease;
  border: 1px solid var(--border);
  display: block;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.category-card:hover::before { transform: scaleX(1); }
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.5rem;
}
.card-body p {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
}
.card-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--amber);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

/* ---- FEATURED GUIDE ---- */
.featured-guide { background: var(--white); }
.featured-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: center;
}
.featured-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--forest);
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.featured-text p {
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.guide-highlights {
  margin-bottom: 2rem;
}
.guide-highlights li {
  padding: 0.4rem 0;
  color: var(--slate);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--sage-light);
}
.guide-highlights li:last-child { border-bottom: none; }

/* Checklist Card */
.checklist-card {
  background: var(--forest);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--white);
}
.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.checklist-title {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.checklist-badge {
  background: var(--amber);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.checklist-items li {
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-left: 1.5rem;
  position: relative;
}
.checklist-items li::before {
  content: '○';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.3);
}
.checklist-items li.checked { color: rgba(255,255,255,0.95); }
.checklist-items li.checked::before {
  content: '✓';
  color: var(--amber);
}

/* ---- RECENT POSTS ---- */
.recent-posts { background: var(--offwhite); }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: all 0.25s;
  position: relative;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.post-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.post-tag.winter { background: #EEF3FF; color: #3B5FBF; }
.post-tag.car    { background: #FFF4E6; color: #B35C00; }
.post-tag.home   { background: #EDFAF3; color: #1B6E3F; }
.post-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.post-card h3 a:hover { color: var(--amber); }
.post-card p {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--slate-light);
}
.post-meta a {
  font-weight: 600;
  color: var(--amber);
}

/* ---- GEAR PICKS ---- */
.gear-picks { background: var(--white); }
.gear-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.gear-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
}
.gear-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-3px);
}
.gear-img {
  background: var(--sage-light);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.gear-info { padding: 1.25rem; }
.gear-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  display: block;
  margin-bottom: 0.4rem;
}
.gear-info h4 {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.5rem;
}
.gear-info p {
  font-size: 0.825rem;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.gear-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.gear-price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--forest);
}

/* ---- NEWSLETTER ---- */
.newsletter {
  background: var(--forest);
  color: var(--white);
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 5rem;
  align-items: start;
}
.newsletter-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.newsletter-text p {
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.newsletter-perks li {
  padding: 0.4rem 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.newsletter-perks li:last-child { border-bottom: none; }
.newsletter-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.newsletter-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
  margin-top: 1rem;
}
.newsletter-form label:first-child { margin-top: 0; }
.newsletter-form input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--font-body);
  margin-bottom: 0.25rem;
  transition: border-color 0.2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--amber);
}
.newsletter-form button { margin-top: 1.25rem; }
.form-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-top: 0.75rem;
}
.signup-success {
  text-align: center;
  padding: 2rem 0;
}
.success-icon {
  width: 64px; height: 64px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--white);
  margin: 0 auto 1rem;
}
.signup-success h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.signup-success p { color: rgba(255,255,255,0.7); }

/* ---- COMMUNITY ---- */
.community { background: var(--offwhite); }
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.community-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
}
.community-card p {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.community-card p::before { content: '"'; color: var(--amber); font-size: 1.5rem; font-style: normal; }
.community-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-avatar {
  width: 42px; height: 42px;
  background: var(--forest);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.community-author strong { display: block; font-size: 0.9rem; color: var(--forest); }
.community-author span { font-size: 0.8rem; color: var(--slate-light); }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
}
.footer-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-top: 1rem;
  color: rgba(255,255,255,0.45);
}
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.social-links a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  transition: all 0.2s;
}
.social-links a:hover {
  background: var(--amber);
  color: var(--white);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.affiliate-note { font-style: italic; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .gear-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-inner { grid-template-columns: 1fr; gap: 3rem; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .main-nav, .btn-nav { display: none; }
  .nav-toggle { display: block; }
  .category-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .gear-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .hero-headline { font-size: clamp(3rem, 12vw, 5rem); }
  .hero-cta { flex-direction: column; }
  .hero-trust { flex-direction: column; gap: 0.5rem; }
  .hero-visual { display: none; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}
