:root {
  --bg: #f5f5f3;
  --bg-alt: #ffffff;
  --accent: #3baf7a;
  --accent-soft: rgba(59, 175, 122, 0.12);
  --accent-deep: #1f8f5f;
  --accent-gold: #d6a44b;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-subtle: rgba(148, 163, 184, 0.4);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition-fast: 180ms ease-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #eef3f0 0, #f9fafb 35%, #f3f4f6 100%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* BASE LAYOUTS */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden; /* Allow vertical scroll, hide horizontal overflow */
}

.page-camping,
.page-home-garage,
.page-offgrid {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, #eef3f0 0, #f9fafb 35%, #f3f4f6 100%);
}

/* SOFT BACKGROUND SHAPES */

.bg-orb {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.bg-orb--green {
  background: radial-gradient(circle, #8fe0b5, transparent 70%);
  top: -180px;
  left: -140px;
}

.bg-orb--blue {
  background: radial-gradient(circle, #bfdbfe, transparent 70%);
  bottom: -220px;
  right: -180px;
}

.bg-orb--sand {
  background: radial-gradient(circle, #f7d6a0, transparent 70%);
  bottom: -220px;
  right: -180px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

/* ======================
   HEADER: STORE (index.html)
   ====================== */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: conic-gradient(
    from 160deg,
    #3baf7a,
    #2dd4bf,
    #c4f1be,
    #fcd34d,
    #3baf7a
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(34, 197, 94, 0.45);
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: radial-gradient(circle at top, #f9fafb, #e5e7eb 55%, #d1d5db 100%);
}

.logo-mark span {
  position: relative;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #047857;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.nav a {
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
}

.nav a:hover {
  color: var(--text-main);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transition: width var(--transition-fast);
}

.nav a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ======================
   HEADER: CATEGORY PAGES
   ====================== */

.site-header {
  width: 100%;
  border-bottom: 1px solid rgba(209, 213, 219, 0.8);
  background: rgba(249, 250, 251, 0.96);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #bbf7d0, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.35);
}

.brand-text {
  letter-spacing: -0.03em;
}

.main-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.main-nav a {
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}

.main-nav a:hover {
  color: var(--text-main);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transition: width var(--transition-fast);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--accent-deep);
}

/* BUTTONS & PILLS */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 11px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.btn-outline {
  border-radius: var(--radius-pill);
  padding: 8px 17px;
  font-size: 13px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  cursor: pointer;
  transition: background var(--transition-fast), border var(--transition-fast),
    transform 140ms ease-out, box-shadow 140ms ease-out;
}

.btn-outline.small {
  font-size: 12px;
  padding: 6px 14px;
}

.btn-outline:hover {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 1);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.btn-primary {
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  color: #ecfdf5;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent));
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 140ms ease-out, box-shadow 140ms ease-out,
    filter 140ms ease-out;
}

.btn-primary span {
  font-size: 18px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 22px 50px rgba(34, 197, 94, 0.45);
}

.btn-primary-link {
  display: inline-flex;
}

/* secondary button for category pages */
.btn-secondary {
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--accent-deep);
  background: #ffffff;
  color: var(--accent-deep);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition-fast), color var(--transition-fast),
    box-shadow 140ms.ease-out, transform 140ms ease-out;
}

.btn-secondary:hover {
  background: var(--accent-deep);
  color: #ecfdf5;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

/* MOBILE NAV (STORE) */

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.9);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  background: var(--text-main);
  border-radius: 99px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--text-main);
  border-radius: 99px;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
}

.mobile-nav a {
  font-size: 14px;
  color: var(--text-muted);
}

.mobile-nav a:hover {
  color: var(--text-main);
}

/* ======================
   HERO: STORE (index.html)
   ====================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 28px 0 46px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-kicker-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #bbf7d0, #4ade80);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #064e3b;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.3rem, 3.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-title span {
  background: linear-gradient(120deg, var(--accent-deep), var(--accent));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 18px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-note {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 430px;
}

/* HERO RIGHT CARD (legacy, still used on other pages if needed) */

.hero-card {
  border-radius: 24px;
  padding: 18px 18px 16px;
  background: radial-gradient(circle at top left, #ffffff, #e5f4ea);
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: var(--shadow-soft);
  max-width: 360px;
}

/* HERO IMAGE VARIANT (store hero image) */

.hero-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #020617;
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-image-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.86);
  color: #ecfdf5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-image-caption span {
  font-size: 12px;
}

/* ======================
   SECTIONS (STORE)
   ====================== */

.section {
  margin-top: 56px;   /* more space between blocks */
  padding-top: 8px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px; /* a bit more breathing room */
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 440px;
}

/* Give some sections a subtle card background feel on the store landing */
.section:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 24px 18px 26px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.04);
}

/* PRINCIPLES / CATEGORY GRID */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  font-size: 13px;
}

.feature-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
  transition: transform 140ms ease-out, box-shadow 140ms ease-out;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 18px;
}

.feature-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.feature-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* STORIES + EMAIL GRID */

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
}

.test-card {
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.test-quote {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.test-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.test-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at top, var(--accent), var(--accent-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #ecfdf5;
}

.test-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* EMAIL CARD */

.email-card {
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  background: linear-gradient(145deg, #ffffff, #ecfdf5);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  font-size: 13px;
}

.email-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.email-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.email-row {
  display: flex;
  gap: 8px;
}

.input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  padding: 8px 12px;
  background: #ffffff;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
}

.input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.btn-small {
  border-radius: 999px;
  padding: 8px 14px;
  border: none;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent));
  color: #ecfdf5;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.email-note {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============
   MailerLite embedded form styling
   ============ */

.ml-embedded {
  width: 100%;
}

/* Force MailerLite container to match your typography and width */
.ml-embedded form,
.ml-embedded .ml-form-embedContainer,
.ml-embedded .ml-form-embedBody,
.ml-embedded .ml-form-embedWrapper {
  width: 100% !important;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif !important;
}

/* Inputs (email, name, etc.) */
.ml-embedded input[type="email"],
.ml-embedded input[type="text"],
.ml-embedded input[type="tel"],
.ml-embedded input[type="url"] {
  width: 100% !important;
  border-radius: 999px !important;
  border: 1px solid rgba(148, 163, 184, 0.9) !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  background: #ffffff !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Submit button */
.ml-embedded button[type="submit"],
.ml-embedded .primary,
.ml-embedded .button {
  border-radius: 999px !important;
  padding: 8px 16px !important;
  border: none !important;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent)) !important;
  color: #ecfdf5 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  white-space: nowrap;
}

/* Labels & headings inside MailerLite form */
.ml-embedded label {
  font-size: 12px;
  color: var(--text-muted);
}

.ml-embedded h3,
.ml-embedded h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

/* ======================
   CATEGORY PAGES: HERO + PRODUCTS
   ====================== */

.page-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  max-width: 720px;
  margin: 0.2rem auto;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.page-hero .hero-meta {
  font-size: 0.85rem;
}

/* Different vibe per category */

.page-camping .page-hero {
  background: radial-gradient(circle at top, #dcfce7 0, transparent 65%);
}

.page-home-garage .page-hero {
  background: radial-gradient(circle at top, #e0f2fe 0, transparent 65%);
}

.page-offgrid .page-hero {
  background: radial-gradient(circle at top, #fef3c7 0, transparent 65%);
}

.section.alt {
  background: #f5f7f4;
}

/* PRODUCT GRID & CARDS */

.product-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.25rem;
}

.product-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.4rem 1.5rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-highlights {
  margin: 0.75rem 0 1rem;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-highlights li {
  margin-bottom: 0.25rem;
}

/* ======================
   FOOTERS
   ====================== */

.footer {
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  margin-top: 32px;
  padding-top: 16px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Category pages footer */

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  background: rgba(249, 250, 251, 0.98);
}

.site-footer .container {
  padding: 14px 20px 18px;
  max-width: 1200px;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ======================
   RESPONSIVE
   ====================== */

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card,
  .hero-image-wrapper {
    max-width: 420px;
    margin: 0 auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .section-header {
    flex-direction: column;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    padding-inline: 16px;
  }

  .main-nav {
    display: none; /* desktop-only nav on category pages for now */
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }

  .email-row {
    flex-direction: column;
  }

  .page-hero {
    padding: 2.4rem 0 1.6rem;
  }

  /* Make MailerLite button span full width on small screens */
  .ml-embedded button[type="submit"],
  .ml-embedded .primary,
  .ml-embedded .button {
    width: 100% !important;
    display: inline-flex !important;
    justify-content: center;
  }
}
