@import url('https://fonts.googleapis.com/css2?family=Young+Serif&family=Geist:wght@400;500;600;700;800&display=swap');

:root {
  --color-bg: #fafaf9;
  --color-bg-2: #f3ede3;
  --color-bg-white: #ffffff;
  --color-bg-rgb: 250, 250, 249;
  --color-bg-white-rgb: 255, 255, 255;
  --color-text: #2b1d12;
  --color-text-secondary: #6b5642;
  --color-text-muted: #a89880;

  --color-accent: #ecac0f;
  --color-accent-2: #06e15c;
  --color-accent-3: #4745e2;
  --color-accent-warm: #e7ba2c;
  --color-accent-soft: #f1ede3;
  --color-accent-2-soft: #e2f2e8;
  --color-accent-3-soft: #e4e4f0;
  --color-accent-warm-soft: #f1eee4;

  --color-border: #e6dccb;
  --color-border-light: #f0e8d8;
  --color-surface: rgba(154, 52, 18, 0.03);
  --color-surface-hover: rgba(154, 52, 18, 0.07);

  --color-footer-bg: #2b1d12;
  --color-footer-text: #f3ede3;
  --color-footer-muted: #b9a890;
  --color-footer-link: #d7c8b0;
  --color-footer-border: rgba(243, 237, 227, 0.12);
  --color-footer-social-bg: rgba(243, 237, 227, 0.08);
  --color-footer-social-border: rgba(243, 237, 227, 0.14);

  --font-heading: 'Young Serif', 'Georgia', serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(154, 52, 18, 0.06), 0 1px 3px rgba(43, 29, 18, 0.05);
  --shadow-md: 0 4px 10px rgba(154, 52, 18, 0.08);
  --shadow-lg: 0 12px 28px rgba(154, 52, 18, 0.10);
  --shadow-xl: 0 22px 44px rgba(43, 29, 18, 0.14);
}

/* ── Plaid micro-pattern — header only ───────────────────────────────────── */
.site-header {
  background:
    repeating-linear-gradient(0deg,
      rgba(154, 52, 18, 0.06) 0 1px,
      transparent 1px 14px),
    repeating-linear-gradient(90deg,
      rgba(154, 52, 18, 0.06) 0 1px,
      transparent 1px 14px),
    repeating-linear-gradient(0deg,
      rgba(154, 52, 18, 0.10) 0 2px,
      transparent 2px 56px),
    repeating-linear-gradient(90deg,
      rgba(154, 52, 18, 0.10) 0 2px,
      transparent 2px 56px),
    rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 2px solid #9a3412;
}

.announcement-bar {
  background: #2b1d12;
  color: #fafaf9;
  letter-spacing: 0.4px;
}
.announcement-bar strong { color: #ecac0f; }

.logo-text {
  color: #9a3412;
  letter-spacing: -0.2px;
}

.nav-link.active {
  color: #9a3412;
  background: rgba(154, 52, 18, 0.10);
}

/* ── Hero — cabin warmth ─────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse at 80% 110%, rgba(231, 186, 44, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 15% -10%, rgba(154, 52, 18, 0.10) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fafaf9 100%);
  text-align: center;
}
.hero-content { text-align: center; }
.hero-actions { justify-content: center; }
.hero-subtitle { max-width: 560px; margin-left: auto; margin-right: auto; }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(154, 52, 18, 0.07) 1px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.55;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 70%, transparent 100%);
}

.hero-badge {
  color: #9a3412;
  background: #f3ede3;
  border: 1px solid rgba(154, 52, 18, 0.22);
}

.hero-title { color: #2b1d12; }

/* ── Buttons — maple primary ─────────────────────────────────────────────── */
.btn-primary {
  background: #9a3412;
  color: #fff;
  box-shadow: 0 4px 14px rgba(154, 52, 18, 0.30);
}
.btn-primary:hover {
  background: #7c2a0e;
  box-shadow: 0 8px 22px rgba(154, 52, 18, 0.36);
  filter: none;
}

.btn-outline {
  border: 1.5px solid #9a3412;
  color: #9a3412;
  background: #fff;
}
.btn-outline:hover {
  background: rgba(154, 52, 18, 0.06);
  color: #9a3412;
}

.btn-cta {
  background: #9a3412;
  box-shadow: 0 2px 8px rgba(154, 52, 18, 0.22);
}
.btn-cta:hover {
  background: #7c2a0e;
  filter: none;
  box-shadow: 0 6px 16px rgba(154, 52, 18, 0.28);
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.product-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e6dccb;
  box-shadow: 0 1px 2px rgba(43, 29, 18, 0.04);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(154, 52, 18, 0.35);
  box-shadow: 0 14px 30px rgba(154, 52, 18, 0.12);
}
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-brand { color: #9a3412; }
.card-title a:hover { color: #9a3412; }

.card-badge {
  background: #9a3412;
  letter-spacing: 0.5px;
}

/* ── Section headings ────────────────────────────────────────────────────── */
.section-title { color: #2b1d12; }

/* ── Categories ──────────────────────────────────────────────────────────── */
.category-card { background: #ffffff; border: 1px solid #e6dccb; }
.category-card:hover {
  border-color: #9a3412;
  box-shadow: 0 10px 24px rgba(154, 52, 18, 0.10);
}

/* ── Newsletter ──────────────────────────────────────────────────────────── */
.newsletter-section {
  background:
    repeating-linear-gradient(45deg,
      rgba(154, 52, 18, 0.04) 0 1px,
      transparent 1px 18px),
    #f3ede3;
  border-top: 1px solid #e6dccb;
  border-bottom: 1px solid #e6dccb;
}
.newsletter-form input { border: 1px solid #d8c9b0; background: #fff; }
.newsletter-form input:focus { border-color: #9a3412; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-section { background: #e2f2e8; }
.faq-item[open] { border-color: #06e15c; }
.faq-item[open] .faq-question::after { color: #06914a; }

/* ── Testimonials ────────────────────────────────────────────────────────── */
.testimonials-section { background: #e4e4f0; }
.testimonial-avatar { background: #e4e4f0; color: #4745e2; }

/* ── Top Picks & Guide ───────────────────────────────────────────────────── */
.top-picks-section { background: #f1eee4; }
.top-pick-rank { color: #b8881a; }
.guide-card:hover { border-color: #e7ba2c; }
.guide-number { background: #e7ba2c; color: #2b1d12; }

/* ── Stats — maple gradient ──────────────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, #9a3412 0%, #c2410c 50%, #ecac0f 100%);
}

/* ── Widgets ─────────────────────────────────────────────────────────────── */
.delivery-widget {
  background: #f3ede3;
  border: 1px solid #e6dccb;
}
.delivery-item svg { color: #9a3412; }

.pros-cons-widget {
  background: #f3ede3;
  border: 1px solid #e6dccb;
}

.price-history-section {
  background: #ffffff;
  border: 1px solid #e6dccb;
  box-shadow: 0 4px 14px rgba(43, 29, 18, 0.05);
}
.chart-bar {
  background: linear-gradient(180deg, #f1ede3 0%, #9a3412 100%);
}
.chart-bar-current {
  background: linear-gradient(180deg, #e7ba2c 0%, #9a3412 100%);
  box-shadow: 0 0 14px rgba(154, 52, 18, 0.32);
}
.chart-note {
  color: #9a3412;
  background: rgba(154, 52, 18, 0.08);
}

.user-reviews-section {
  background: #ffffff;
  border: 1px solid #e6dccb;
}
.review-avatar { background: #9a3412; }
.review-card { background: #f3ede3; border-color: #e6dccb; }

.social-proof-popup {
  background: #ffffff;
  border: 1px solid #e6dccb;
  box-shadow: 0 14px 32px rgba(43, 29, 18, 0.18);
}
.popup-icon { background: #9a3412; }

/* ── Filters / Pagination ────────────────────────────────────────────────── */
.filter-btn { background: #fff; border-color: #e6dccb; }
.filter-btn:hover { border-color: #9a3412; color: #9a3412; }
.filter-btn.active {
  background: #9a3412;
  color: #fff;
  border-color: #9a3412;
}
.page-num.active {
  background: #9a3412;
  border-color: #9a3412;
}

/* ── Brand showcase ──────────────────────────────────────────────────────── */
.brand-initial {
  background: linear-gradient(135deg, #9a3412, #ecac0f);
}

/* ── Trending ────────────────────────────────────────────────────────────── */
.trending-rank { color: #9a3412; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.social-links a:hover {
  background: #9a3412;
  border-color: #9a3412;
  color: #fff;
}

/* ── Decorative cabin seam — subtle horizontal stitch above sections ─────── */
.section + .section { position: relative; }
.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 2px;
  background: repeating-linear-gradient(90deg, #9a3412 0 6px, transparent 6px 12px);
  border-radius: 2px;
  opacity: 0.55;
}

/* ── Card hover micro-interaction ────────────────────────────────────────── */
@keyframes maple-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge { animation: maple-fade-in 0.6s ease both; }

@media (max-width: 768px) {
  .hero::before { background-size: 16px 16px; opacity: 0.35; }
  .site-header { background-size: auto, auto, auto, auto, auto; }
}