/* Hallmark · pre-emit critique: P4 H5 E4 S4 R5 V4 — Trapper home flow */
/* Shop-first rhythm on top of existing markup. */

body.to-home {
  --to-ink: #1c2418;
  --to-muted: #5c6b55;
  --to-paper: #f4f6f1;
  --to-forest: #2f5c2a;
  --to-forest-deep: #1e3d1c;
  --to-lime: #c8e86a;
  --to-on-forest: #ffffff;
  --to-on-lime: #1c2418;
  --to-line: rgba(28, 36, 24, 0.12);
  --to-font: "DM Sans", system-ui, sans-serif;
  --to-display: "Fraunces", Georgia, serif;
  font-family: var(--to-font);
  background: var(--to-paper);
  color: var(--to-ink);
  overflow-x: clip;
}

body.to-home .hero-section {
  min-height: min(78vh, 640px);
  background:
    linear-gradient(180deg, rgba(14, 28, 12, 0.55) 0%, rgba(14, 28, 12, 0.72) 100%),
    url("/assets/background.webp") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem;
}

body.to-home .hero-content {
  max-width: 40rem;
  margin: 0 auto;
}

body.to-home .hero-logo {
  width: min(160px, 42vw);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 0.65rem;
  margin: 0 auto 1.1rem;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

body.to-home .hero-title {
  font-family: var(--to-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
  text-transform: none;
  margin: 0;
  overflow-wrap: anywhere;
}

body.to-home .hero-subtitle {
  margin: 0.85rem auto 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

body.to-home .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

body.to-home .btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

body.to-home .btn-primary-hero {
  background: var(--to-lime);
  color: var(--to-on-lime) !important;
  border-color: var(--to-lime);
}

body.to-home .btn-secondary-hero {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45);
}

body.to-home .btn-secondary-hero:hover {
  border-color: #fff;
}

/* Hide above-fold ad (was injecting off-brand "Developer for Hire") */
body.to-home .ee-slot,
body.to-home > script[src*="backout.net/ad"] {
  display: none !important;
}

body.to-home .to-ad-slot {
  display: flex;
  justify-content: center;
  padding: 0.5rem 1rem 1.25rem;
}

body.to-home .to-ad-slot .ee-slot {
  display: block !important;
}

/* Trust strip replaces heavy feature cards */
body.to-home .features-section {
  padding: 1.25rem 0 0.5rem;
  background: transparent;
}

body.to-home .features-section .section-header {
  display: none;
}

body.to-home .features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

body.to-home .feature-card {
  background: #fff;
  border: 1px solid var(--to-line);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  box-shadow: none;
  text-align: left;
  min-width: 0;
}

body.to-home .feature-card .feature-icon {
  width: 2rem;
  height: 2rem;
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  background: color-mix(in srgb, var(--to-forest) 12%, transparent);
  color: var(--to-forest);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.to-home .feature-card h3 {
  font-family: var(--to-display);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: normal;
  margin: 0 0 0.25rem;
  color: var(--to-ink);
}

body.to-home .feature-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--to-muted);
  line-height: 1.4;
}

body.to-home .section-divider {
  display: none;
}

body.to-home .section-title {
  font-family: var(--to-display);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.02em;
  color: var(--to-ink);
}

body.to-home .section-subtitle {
  color: var(--to-muted);
}

body.to-home .categories-section,
body.to-home .products-section,
body.to-home .brands-section {
  padding: 2.25rem 0;
}

body.to-home .category-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--to-line);
  min-height: 180px;
}

body.to-home .category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.to-home .newsletter-section {
  background: var(--to-forest-deep);
  color: #fff;
  padding: 2.5rem 1rem;
  text-align: center;
}

body.to-home .newsletter-section h2 {
  font-family: var(--to-display);
  font-style: normal;
  font-weight: 600;
}

body.to-home .newsletter-btn {
  background: var(--to-lime);
  color: var(--to-on-lime) !important;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}

body.to-home .newsletter-input {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Free shipping pill: keep, but don't cover CTAs awkwardly on small screens */
@media (max-width: 767px) {
  body.to-home .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  body.to-home .hero-buttons .btn-hero {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  body.to-home .features-grid {
    grid-template-columns: 1fr;
  }
}
