/* ---------- Base ---------- */
:root {
  --color-bg: #faf8f4;
  --color-surface: #ffffff;
  --color-text: #201d18;
  --color-text-muted: #5c574d;
  --color-primary: #2f5233;      /* forest green */
  --color-primary-dark: #203a24;
  --color-accent: #d97b3f;       /* warm ember orange */
  --color-border: #e6e1d6;
  --radius: 10px;
  --max-width: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }

img { max-width: 100%; display: block; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }

.btn-secondary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary); color: #fff; }

.btn-subscribe {
  background: var(--color-accent);
  color: #fff;
  padding: 0.5em 1.1em;
}
.btn-subscribe:hover { background: #b8622c; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.logo span { color: var(--color-primary); }
.logo:hover { color: var(--color-text); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a:not(.btn) {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:not(.btn):hover { color: var(--color-primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4rem;
}
.hero-inner { max-width: 760px; }
.hero-sub {
  font-size: 1.1rem;
  max-width: 620px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ---------- Categories ---------- */
.categories { padding: 3rem 0; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(32, 29, 24, 0.08);
  border-color: var(--color-primary);
}
.category-icon {
  font-size: 1.75rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.category-card h3 { color: var(--color-text); margin-bottom: 0.35em; }
.category-card p { margin: 0; font-size: 0.92rem; }

/* ---------- Latest video ---------- */
.latest { padding: 3rem 0; }

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.latest-cta { margin-top: 1rem; font-weight: 600; }

/* ---------- About / Contact ---------- */
.about, .contact {
  padding: 3rem 0;
}
.about-inner, .contact-inner {
  max-width: 680px;
}
.contact .btn { margin-right: 1rem; margin-bottom: 0.5rem; }
.socials {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: 2rem;
}
.footer-inner p {
  margin: 0;
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Video grid (Top Videos + category pages) ---------- */
.top-videos { padding: 1rem 0 3rem; }
.section-sub {
  margin-top: -0.75rem;
  margin-bottom: 1.75rem;
  max-width: 620px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.video-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(32, 29, 24, 0.08);
  border-color: var(--color-primary);
}

.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 56.25%;
  background: #111;
}
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  background: rgba(20, 18, 14, 0.15);
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.play-badge::after {
  content: "▶";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 18, 14, 0.65);
}
.video-thumb:hover .play-badge {
  opacity: 1;
  background: rgba(20, 18, 14, 0.05);
}

.video-card-body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.video-card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}
.video-card-body h3 a { color: var(--color-text); }
.video-card-body h3 a:hover { color: var(--color-primary); }

.video-card-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.btn-sm {
  padding: 0.45em 0.9em;
  font-size: 0.85rem;
}

.shop-links {
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}
.shop-links li { margin-bottom: 0.25rem; }
.shop-links a { font-weight: 600; }

.amazon-disclosure {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  opacity: 0.8;
}

.view-all-link { margin-top: 2rem; text-align: center; }

/* ---------- Category listing pages ---------- */
.category-hero {
  padding: 3rem 0 1rem;
}
.breadcrumb {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.category-hero h1 { margin-bottom: 0.5rem; }
.category-hero p { max-width: 640px; }

.video-list { padding: 1.5rem 0 4rem; }

.page-disclosure {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.open { max-height: 400px; }
  .site-nav a { width: 100%; padding: 1rem 20px; border-top: 1px solid var(--color-border); }
  .site-nav a.btn { margin: 12px 20px; width: calc(100% - 40px); text-align: center; }

  .hero { padding: 3rem 0 2.5rem; }
}

@media (max-width: 520px) {
  .category-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
}
