/*
 * TreibholzDeko.de – Global Stylesheet
 * =====================================
 * Design System: Natural, warm, handcrafted, organic
 * Fonts: Playfair Display (headings) + Lato 300/400/700 (body)
 * No framework – pure CSS with CSS custom properties
 *
 * Table of Contents:
 *  1. CSS Variables & Reset
 *  2. Base & Typography
 *  3. Grain Overlay
 *  4. Navigation
 *  5. Buttons
 *  6. Hero Section
 *  7. Section Shared Styles
 *  8. Category Cards
 *  9. Article Cards (Grid)
 * 10. Article Page (Single Article Layout)
 * 11. Breadcrumb
 * 12. Affiliate Banner & Notice
 * 13. Product Cards
 * 14. Sidebar
 * 15. Tag Badges
 * 16. Pagination
 * 17. Footer
 * 18. Utility Classes
 * 19. Animations
 * 20. Responsive (max-width: 900px)
 */

/* ============================================================
   1. CSS VARIABLES & RESET
   ============================================================ */

:root {
  --sand:       #f5f0e8;
  --bark:       #6b4f3a;   /* Primary – headings, key elements */
  --driftwood:  #9c7e65;   /* Secondary */
  --moss:       #5a6e4a;   /* Accent green */
  --cream:      #fdf9f3;   /* Page background */
  --dark:       #2c2016;   /* Body text */
  --accent:     #c8a97a;   /* Gold accent */
  --light-moss: #e8ede4;
  --muted:      #7a6b5c;   /* Muted text */
  --border:     rgba(107, 79, 58, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}


/* ============================================================
   2. BASE & TYPOGRAPHY
   ============================================================ */

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--dark);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--bark);
  line-height: 1.2;
}

a {
  color: var(--bark);
  transition: color 0.3s;
}

a:hover {
  color: var(--moss);
}

p {
  line-height: 1.8;
}

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

/* ============================================================
   3. GRAIN OVERLAY
   ============================================================ */

/* Subtle noise texture over the entire page for organic feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}


/* ============================================================
   4. NAVIGATION
   ============================================================ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(253, 249, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--bark);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.nav-logo span {
  color: var(--moss);
  font-style: italic;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav ul a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.3s;
}

nav ul a:hover,
nav ul a[aria-current="page"] {
  color: var(--bark);
}

/* Mobile hamburger – shown only on small screens */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bark);
  transition: transform 0.3s, opacity 0.3s;
}


/* ============================================================
   5. BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--bark);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background: var(--dark);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--bark);
  color: var(--bark);
  margin-left: 1rem;
}

.btn-outline:hover {
  background: var(--bark);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
}

.btn-light:hover {
  background: var(--cream);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-moss {
  background: var(--moss);
  color: var(--cream);
}

.btn-moss:hover {
  background: #4a5c3a;
  color: var(--cream);
  transform: translateY(-2px);
}


/* ============================================================
   6. HERO SECTION (index.html)
   ============================================================ */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px; /* nav height offset */
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem 5rem 6rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1.5rem;
  font-family: 'Lato', sans-serif;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  line-height: 1.15;
  color: var(--bark);
  margin-bottom: 1.8rem;
}

.hero-title em {
  font-style: italic;
  color: var(--moss);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 3rem;
  line-height: 1.8;
  font-weight: 300;
}

.hero-image {
  position: relative;
  background: var(--light-moss);
  overflow: hidden;
}

.hero-image-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #c8b99a 0%, #9c7e65 40%, #5a6e4a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-decorative {
  font-family: 'Playfair Display', serif;
  font-size: 10rem;
  color: rgba(255, 255, 255, 0.12);
  font-style: italic;
  user-select: none;
  line-height: 1;
}

.hero-badge {
  position: absolute;
  bottom: 3rem;
  left: -1.5rem;
  background: var(--cream);
  padding: 1.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.hero-badge strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--bark);
}

.hero-badge span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
}

/* Page hero – used on inner pages (not full height) */
.page-hero {
  background: var(--sand);
  padding: 7rem 6rem 4rem;
  border-bottom: 1px solid var(--border);
}

.page-hero .hero-eyebrow {
  animation: none;
}

.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  color: var(--bark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
}


/* ============================================================
   7. SECTION SHARED STYLES
   ============================================================ */

section {
  padding: 6rem;
}

.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.8rem;
  font-family: 'Lato', sans-serif;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--bark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-intro {
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.section-center {
  text-align: center;
}

.section-center .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.bg-sand {
  background: var(--sand);
}

.bg-cream {
  background: var(--cream);
}


/* ============================================================
   8. CATEGORY CARDS
   ============================================================ */

.categories {
  background: var(--sand);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.cat-card {
  background: var(--cream);
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: var(--dark);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

/* Animated bottom border on hover */
.cat-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--moss);
  transition: width 0.4s;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  color: var(--dark);
}

.cat-card:hover::before {
  width: 100%;
}

.cat-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  display: block;
}

.cat-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--bark);
  margin-bottom: 0.6rem;
}

.cat-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.cat-count {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

/* Category header – used inside kategorie/*.html pages */
.category-header {
  background: var(--sand);
  padding: 7rem 6rem 4rem;
  border-bottom: 1px solid var(--border);
}

.category-header .section-eyebrow {
  margin-bottom: 0.5rem;
}

.category-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  color: var(--bark);
  margin-bottom: 1rem;
}

.category-header p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
}


/* ============================================================
   9. ARTICLE CARDS (grid / overview pages)
   ============================================================ */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.article-card {
  text-decoration: none;
  color: var(--dark);
  transition: transform 0.3s;
  display: block;
}

.article-card:hover {
  transform: translateY(-4px);
  color: var(--dark);
}

.article-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--sand), var(--driftwood));
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.article-card:hover .article-thumb img {
  transform: scale(1.04);
}

.article-thumb-label {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.article-tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.6rem;
  font-family: 'Lato', sans-serif;
}

.article-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--bark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.article-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  font-family: 'Lato', sans-serif;
}


/* ============================================================
   10. ARTICLE PAGE (single article layout)
   ============================================================ */

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 5rem;
  padding: 5rem 6rem;
  padding-top: 6rem;
  max-width: 1280px;
  margin: 0 auto;
}

.article-content {
  /* Main article text column */
}

/* Affiliate notice at the top of each article with affiliate links */
.affiliate-notice-article {
  background: var(--sand);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.affiliate-notice-article a {
  color: var(--bark);
}

.article-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--bark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--bark);
  margin: 2.5rem 0 1rem;
}

.article-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--bark);
  margin: 2rem 0 0.8rem;
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--dark);
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  line-height: 1.85;
}

.article-content li {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.article-content img {
  width: 100%;
  height: auto;
  margin: 2rem 0;
}

/* Step blocks for DIY instructions */
.step-block {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--sand);
}

.step-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bark);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
}

.step-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--bark);
  margin-bottom: 0.4rem;
}

.step-content p {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Materials list / supply box */
.materials-box {
  background: var(--light-moss);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.materials-box h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--bark);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.materials-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.materials-box li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(90, 110, 74, 0.15);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.materials-box li:last-child {
  border-bottom: none;
}

.materials-box li::before {
  content: '✓';
  color: var(--moss);
  font-weight: 700;
  font-size: 0.8rem;
}

/* Published date & reading time line */
.article-byline {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-byline time {
  color: var(--accent);
}

/* AI content disclosure */
.ai-disclosure {
  background: var(--sand);
  padding: 0.8rem 1.2rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}


/* ============================================================
   11. BREADCRUMB
   ============================================================ */

.breadcrumb {
  padding: 1rem 6rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  margin-top: 64px; /* nav height offset */
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 0.3rem;
  color: var(--accent);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--bark);
}

.breadcrumb [aria-current="page"] {
  color: var(--bark);
  font-weight: 400;
}


/* ============================================================
   12. AFFILIATE BANNER & NOTICE
   ============================================================ */

.affiliate-banner {
  background: var(--bark);
  color: var(--cream);
  padding: 5rem 6rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.affiliate-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.affiliate-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.affiliate-notice {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
}


/* ============================================================
   13. PRODUCT CARDS
   ============================================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--cream);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.product-thumb {
  aspect-ratio: 4 / 3;
  background: var(--sand);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-badge {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.5rem;
  display: block;
  font-family: 'Lato', sans-serif;
}

.product-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--bark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.product-info p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--bark);
  margin-bottom: 1rem;
}

.product-price .price-note {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  font-style: normal;
}

/* Affiliate link – always rel="noopener nofollow" target="_blank" */
.product-link {
  display: block;
  text-align: center;
  padding: 0.75rem;
  background: var(--bark);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s;
}

.product-link:hover {
  background: var(--dark);
  color: var(--cream);
}


/* ============================================================
   14. SIDEBAR
   ============================================================ */

.sidebar {
  /* Sticky sidebar for article pages */
}

.sidebar-widget {
  background: var(--sand);
  padding: 2rem;
  margin-bottom: 2rem;
}

.sidebar-widget h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--bark);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(107, 79, 58, 0.07);
  font-size: 0.88rem;
}

.sidebar-widget ul li:last-child {
  border-bottom: none;
}

.sidebar-widget ul a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.3s;
}

.sidebar-widget ul a:hover {
  color: var(--bark);
}

/* Product recommendation box in sidebar */
.sidebar-product {
  text-decoration: none;
  display: block;
  color: var(--dark);
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-product:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-product-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--cream);
  overflow: hidden;
}

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

.sidebar-product-info {
  flex: 1;
}

.sidebar-product-info span {
  font-size: 0.82rem;
  color: var(--bark);
  line-height: 1.4;
  display: block;
  margin-bottom: 0.3rem;
}

.sidebar-product-info small {
  font-size: 0.72rem;
  color: var(--moss);
  letter-spacing: 0.05em;
}


/* ============================================================
   15. TAG BADGES
   ============================================================ */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.tag-bark {
  background: var(--sand);
  color: var(--bark);
  border: 1px solid var(--border);
}

.tag-bark:hover {
  background: var(--bark);
  color: var(--cream);
}

.tag-moss {
  background: var(--light-moss);
  color: var(--moss);
  border: 1px solid rgba(90, 110, 74, 0.2);
}

.tag-moss:hover {
  background: var(--moss);
  color: var(--cream);
}


/* ============================================================
   16. PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 4rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--dark);
  border: 1px solid var(--border);
  transition: background 0.3s, color 0.3s;
}

.pagination a:hover {
  background: var(--bark);
  color: var(--cream);
  border-color: var(--bark);
}

.pagination .active {
  background: var(--bark);
  color: var(--cream);
  border-color: var(--bark);
}


/* ============================================================
   17. FOOTER
   ============================================================ */

footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 6rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

footer p {
  font-size: 0.85rem;
  line-height: 1.7;
}

footer h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-family: 'Lato', sans-serif;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.6rem;
}

footer ul a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* AI content notice in footer */
.footer-ai-note {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.5rem;
}


/* ============================================================
   18. UTILITY CLASSES
   ============================================================ */

.text-center { text-align: center; }
.text-bark   { color: var(--bark); }
.text-moss   { color: var(--moss); }
.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mt-5 { margin-top: 5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* Visually hidden (for screen readers) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}


/* ============================================================
   19. ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero entrance animations (index.html only) */
.hero .hero-eyebrow { animation: fadeUp 0.8s ease both; }
.hero .hero-title   { animation: fadeUp 0.8s 0.15s ease both; }
.hero .hero-sub     { animation: fadeUp 0.8s 0.30s ease both; }
.hero .hero-text .btn,
.hero .hero-text div { animation: fadeUp 0.8s 0.45s ease both; }


/* ============================================================
   20. RESPONSIVE (max-width: 900px)
   ============================================================ */

@media (max-width: 900px) {

  /* Navigation */
  nav {
    padding: 1rem 1.5rem;
  }

  nav ul {
    display: none; /* Hidden – toggle needed for mobile menu */
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 40vh;
  }

  .hero-text {
    padding: 3rem 2rem;
  }

  .page-hero {
    padding: 6rem 2rem 3rem;
  }

  /* Sections */
  section {
    padding: 4rem 2rem;
  }

  .article-layout {
    grid-template-columns: 1fr;
    padding: 4rem 2rem;
    gap: 3rem;
  }

  /* Grids */
  .cat-grid,
  .articles-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Affiliate banner */
  .affiliate-banner {
    grid-template-columns: 1fr;
    padding: 4rem 2rem;
  }

  /* Breadcrumb */
  .breadcrumb {
    padding: 0.8rem 1.5rem;
    margin-top: 60px;
  }

  /* Footer */
  footer {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Category header */
  .category-header {
    padding: 6rem 2rem 3rem;
  }

  /* Buttons */
  .btn-outline {
    margin-left: 0;
    margin-top: 0.8rem;
    display: inline-block;
  }
}

@media (max-width: 600px) {
  .cat-grid,
  .articles-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  nav {
    padding: 0.9rem 1.2rem;
  }
}
