/* =====================================================
   Decking Calculator — Main Stylesheet
   Aesthetic: Warm Natural Wood / Craftsman / Organic
   ===================================================== */

:root {
  /* Wood palette */
  --walnut:       #2c1810;
  --mahogany:     #4a2518;
  --cedar:        #7b3f20;
  --cedar-mid:    #9b5a35;
  --cedar-light:  #c4845a;
  --sand:         #e8d5b8;
  --linen:        #f5eede;
  --cream:        #fdf8f0;
  --white:        #ffffff;

  /* Neutrals */
  --ink:          #1c1208;
  --dark-text:    #2d1e0f;
  --mid-text:     #5a3d28;
  --muted-text:   #8a6b52;
  --border:       #ddd0bb;
  --border-light: #eee5d4;

  /* Accent */
  --gold:         #d4952a;
  --gold-light:   #e8b54a;
  --gold-dk:      #b87d1c;
  --green-accent: #4a6741;

  /* Surfaces */
  --bg-warm:      #faf6ee;
  --bg-card:      #ffffff;
  --bg-dark:      #2c1810;

  /* Radii & Shadows */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 2px 10px rgba(44,24,16,0.08);
  --shadow-md: 0 8px 32px rgba(44,24,16,0.12);
  --shadow-lg: 0 20px 60px rgba(44,24,16,0.18);
  --t: 0.22s ease;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Nunito', system-ui, sans-serif;
  --max-w: 1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--dark-text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
h1,h2,h3,h4 { line-height: 1.2; }

/* ────────────────────────────────────────────
   HEADER
──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--walnut);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 20px rgba(44,24,16,0.3);
}
.nav {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-icon { font-size: 1.5rem; }
.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  color: var(--sand); letter-spacing: 0.01em;
}
.logo-accent { color: var(--gold); }

.nav-links { list-style: none; display: flex; gap: 4px; }
.nav-link {
  color: rgba(232,213,184,0.7);
  text-decoration: none;
  font-size: 0.9rem; font-weight: 600;
  padding: 7px 18px; border-radius: 50px;
  transition: var(--t);
}
.nav-link:hover { color: var(--sand); background: rgba(255,255,255,0.08); }
.nav-link.active { color: var(--gold); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--sand); border-radius: 2px; transition: var(--t); }

/* ────────────────────────────────────────────
   HERO
──────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--walnut);
  padding: 88px 0 0;
}
/* Wood grain texture via CSS */
.hero-wood-grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(
      92deg,
      transparent 0px, transparent 14px,
      rgba(255,255,255,0.015) 14px, rgba(255,255,255,0.015) 15px
    ),
    repeating-linear-gradient(
      88deg,
      transparent 0px, transparent 28px,
      rgba(255,255,255,0.01) 28px, rgba(255,255,255,0.01) 29px
    );
}
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 15% 30%, rgba(212,149,42,0.12) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 90% 70%, rgba(74,38,24,0.4) 0%, transparent 55%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 680px;
  padding-bottom: 72px;
}
.hero-badge {
  display: inline-block;
  background: rgba(212,149,42,0.2); border: 1px solid rgba(212,149,42,0.4);
  color: var(--gold-light); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; padding: 5px 18px; border-radius: 50px; margin-bottom: 24px;
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  font-weight: 800; color: var(--sand); line-height: 1.0;
  margin-bottom: 22px; letter-spacing: -0.02em;
}
.hero-h1 em { color: var(--gold); font-style: italic; }
.hero-sub {
  color: rgba(232,213,184,0.68);
  font-size: 1.05rem; max-width: 520px;
  margin-bottom: 32px; font-weight: 300; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--walnut);
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.97rem; padding: 13px 28px; border-radius: 50px;
  text-decoration: none; border: none; cursor: pointer;
  transition: var(--t); box-shadow: 0 4px 20px rgba(212,149,42,0.35);
}
.btn-primary:hover {
  background: var(--gold-light); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,149,42,0.5);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(212,149,42,0.5); color: var(--gold-light);
  font-weight: 600; font-size: 0.97rem;
  padding: 12px 26px; border-radius: 50px; text-decoration: none;
  transition: var(--t);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(212,149,42,0.08); }

/* Hero stats bar */
.hero-stats-bar {
  position: relative; z-index: 1;
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(212,149,42,0.25);
}
.hero-stats-inner {
  display: flex; flex-wrap: wrap;
}
.hstat {
  flex: 1; min-width: 120px;
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 14px; border-right: 1px solid rgba(255,255,255,0.07);
}
.hstat:last-child { border-right: none; }
.hn { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.hl { font-size: 0.73rem; color: rgba(232,213,184,0.5); margin-top: 3px; text-align: center; text-transform: uppercase; letter-spacing: 0.06em; }

/* ────────────────────────────────────────────
   CALCULATOR SECTION
──────────────────────────────────────────── */
.calc-section { padding: 80px 0; background: var(--bg-warm); }

.section-kicker {
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cedar-mid); margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  font-weight: 700; color: var(--walnut); margin-bottom: 44px;
}

.calc-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}

.calc-panel {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 36px;
  box-shadow: var(--shadow-sm);
}

.panel-group-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted-text);
  padding-bottom: 8px; border-bottom: 1.5px solid var(--border-light); margin-bottom: 16px;
}

/* Form fields */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.8rem; font-weight: 700; color: var(--mid-text);
  letter-spacing: 0.03em;
}
input[type="number"], select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 0.94rem;
  color: var(--dark-text); background: var(--cream);
  transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none; appearance: none;
}
input[type="number"]:focus, select:focus {
  outline: none; border-color: var(--cedar-mid);
  box-shadow: 0 0 0 3px rgba(155,90,53,0.12);
  background: var(--white);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a6b52' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px; cursor: pointer;
  background-color: var(--cream);
}

.btn-calc {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--walnut); color: var(--sand);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border: none; border-radius: var(--r-md);
  cursor: pointer; transition: var(--t); margin-top: 12px; letter-spacing: 0.02em;
}
.btn-calc:hover { background: var(--cedar); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-reset {
  width: 100%; background: none; border: 1.5px solid var(--border);
  color: var(--muted-text); font-family: var(--font-body);
  font-size: 0.88rem; padding: 10px; border-radius: var(--r-sm);
  cursor: pointer; transition: var(--t); margin-top: 14px;
}
.btn-reset:hover { border-color: var(--cedar-mid); color: var(--mid-text); }
.calc-disclaimer { font-size: 0.76rem; color: var(--muted-text); margin-top: 10px; line-height: 1.5; }

/* Results */
.results-empty { text-align: center; padding: 52px 24px; color: var(--muted-text); }
.empty-icon { font-size: 3.5rem; margin-bottom: 14px; opacity: 0.4; }
.results-empty p { font-size: 0.93rem; line-height: 1.6; }
.hidden { display: none !important; }

.results-hero-nums {
  display: flex; align-items: center;
  background: var(--walnut); border-radius: var(--r-lg);
  overflow: hidden; margin-bottom: 22px;
}
.rhn-item { flex: 1; text-align: center; padding: 24px 16px; }
.rhn-big { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--gold); }
.rhn-lbl { display: block; font-size: 0.73rem; color: rgba(232,213,184,0.5); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 4px; }
.rhn-divider { width: 1px; height: 60px; background: rgba(255,255,255,0.1); flex-shrink: 0; }

.results-table-wrap { overflow-x: auto; margin-bottom: 20px; }
.results-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.results-table th {
  background: var(--bg-warm); color: var(--muted-text);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em;
  padding: 9px 12px; text-align: left; border-bottom: 2px solid var(--border);
}
.results-table td { padding: 9px 12px; border-bottom: 1px solid var(--border-light); color: var(--mid-text); }
.results-table tr.tr-highlight td { background: rgba(212,149,42,0.07); font-weight: 700; color: var(--cedar); }
.results-table tr.tr-total td { background: var(--walnut); color: var(--sand); font-weight: 700; border-bottom: none; }

.cost-breakdown {
  background: var(--bg-warm); border: 1px solid var(--border-light);
  border-radius: var(--r-md); padding: 18px 20px;
}
.cb-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-text); margin-bottom: 12px; }
.cb-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border-light); font-size: 0.87rem; color: var(--mid-text); }
.cb-row:last-child { border-bottom: none; }
.cb-row.cb-total { font-weight: 700; color: var(--dark-text); border-top: 2px solid var(--border); margin-top: 4px; padding-top: 12px; }

/* ────────────────────────────────────────────
   HOW IT WORKS
──────────────────────────────────────────── */
.how-section { padding: 80px 0; background: var(--walnut); }
.how-section .section-kicker { color: rgba(212,149,42,0.7); }
.how-section .section-title { color: var(--sand); }
.steps-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 18px;
}
.step-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg); padding: 28px 22px; transition: var(--t);
}
.step-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(212,149,42,0.4); transform: translateY(-3px); }
.step-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--gold); display: block; margin-bottom: 12px; }
.step-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--sand); margin-bottom: 10px; }
.step-card p { font-size: 0.86rem; color: rgba(232,213,184,0.6); line-height: 1.65; }

/* ────────────────────────────────────────────
   REFERENCE TABLE
──────────────────────────────────────────── */
.ref-section { padding: 80px 0; background: var(--linen); }
.ref-table-wrap { overflow-x: auto; margin-top: 12px; }
.ref-table {
  width: 100%; border-collapse: collapse; font-size: 0.89rem;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.ref-table th {
  background: var(--walnut); color: var(--sand);
  padding: 13px 18px; text-align: left;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em;
}
.ref-table td { padding: 12px 18px; border-bottom: 1px solid var(--border-light); color: var(--mid-text); background: var(--white); }
.ref-table tr.tr-highlight td { background: rgba(212,149,42,0.06); }
.ref-table tr:last-child td { border-bottom: none; }

/* ────────────────────────────────────────────
   FAQ
──────────────────────────────────────────── */
.faq-section { padding: 80px 0; background: var(--bg-warm); }
.faq-inner { max-width: 800px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.faq-item {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-md); overflow: hidden; transition: var(--t);
}
.faq-item[open] { border-color: var(--cedar-mid); box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 17px 22px; font-weight: 700; font-size: 0.96rem; color: var(--dark-text);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--cedar-mid); flex-shrink: 0; margin-left: 12px; }
.faq-item[open] summary::after { content: '−'; }
.faq-ans { padding: 0 22px 17px; font-size: 0.92rem; color: var(--mid-text); line-height: 1.7; border-top: 1px solid var(--border-light); padding-top: 14px; }

/* ────────────────────────────────────────────
   BLOG CTA
──────────────────────────────────────────── */
.blog-cta-section { padding: 80px 0; background: var(--cedar); }
.blog-cta-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bca-left h2 { font-family: var(--font-display); font-size: clamp(1.5rem,3.5vw,2.2rem); color: var(--white); font-weight: 700; margin-bottom: 14px; }
.bca-left p { color: rgba(255,255,255,0.72); font-size: 0.97rem; margin-bottom: 26px; line-height: 1.7; }
.bca-card {
  display: block; text-decoration: none;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-xl); padding: 32px; transition: var(--t);
}
.bca-card:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.bca-card-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--gold-light); margin-bottom: 10px; }
.bca-card h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); font-weight: 700; margin-bottom: 10px; }
.bca-card p { color: rgba(255,255,255,0.62); font-size: 0.88rem; margin-bottom: 16px; line-height: 1.6; }
.bca-readmore { color: var(--gold-light); font-weight: 700; font-size: 0.9rem; }

/* ────────────────────────────────────────────
   FOOTER
──────────────────────────────────────────── */
.site-footer { background: var(--walnut); padding: 56px 0 0; }
.footer-wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { color: rgba(232,213,184,0.5); font-size: 0.85rem; line-height: 1.65; max-width: 280px; margin-top: 12px; }
.footer-col h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(232,213,184,0.5); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(232,213,184,0.55); text-decoration: none; font-size: 0.87rem; transition: var(--t); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.footer-bottom p { color: rgba(232,213,184,0.3); font-size: 0.8rem; text-align: center; }

/* ────────────────────────────────────────────
   BLOG PAGE
──────────────────────────────────────────── */
.blog-body { background: var(--cream); }

.blog-hero { position: relative; background: var(--mahogany); padding: 56px 0 68px; overflow: hidden; }
.blog-hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(
      92deg, transparent 0px, transparent 18px,
      rgba(255,255,255,0.015) 18px, rgba(255,255,255,0.015) 19px
    );
}
.blog-hero-overlay::after {
  content: '';
  position: absolute; right: -60px; bottom: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(212,149,42,0.12) 0%, transparent 65%);
}
.blog-hero-content { position: relative; z-index: 1; }

.breadcrumb { font-size: 0.8rem; color: rgba(232,213,184,0.45); margin-bottom: 20px; }
.breadcrumb a { color: rgba(232,213,184,0.5); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { margin: 0 6px; }

.blog-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.blog-tag { background: rgba(212,149,42,0.25); color: var(--gold-light); font-size: 0.73rem; font-weight: 700; letter-spacing: 0.07em; padding: 4px 12px; border-radius: 4px; }
.blog-date, .blog-read { color: rgba(232,213,184,0.45); font-size: 0.8rem; }

.blog-h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3rem); color: var(--sand);
  max-width: 720px; margin-bottom: 18px; line-height: 1.1;
}
.blog-h1 em { color: var(--gold); font-style: italic; }
.blog-lead { color: rgba(232,213,184,0.68); font-size: 1rem; max-width: 640px; margin-bottom: 28px; line-height: 1.72; font-weight: 300; }
.inline-cta {
  display: inline-block; background: var(--gold); color: var(--walnut);
  font-weight: 700; font-size: 0.93rem; padding: 11px 24px; border-radius: 50px;
  text-decoration: none; transition: var(--t);
}
.inline-cta:hover { background: var(--gold-light); transform: translateY(-2px); }

/* Blog layout */
.blog-main { padding: 64px 0 88px; background: var(--cream); }
.blog-layout { display: grid; grid-template-columns: 1fr 330px; gap: 52px; align-items: start; }

/* Article */
.blog-article { min-width: 0; }

.toc {
  background: var(--linen); border-left: 4px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 22px 26px; margin-bottom: 46px;
}
.toc-label { font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cedar); margin-bottom: 12px; }
.toc-list { padding-left: 18px; }
.toc-list li { margin-bottom: 7px; }
.toc-list a { color: var(--cedar-mid); font-size: 0.88rem; text-decoration: none; font-weight: 500; }
.toc-list a:hover { color: var(--gold); text-decoration: underline; }

.art-section { margin-bottom: 56px; }
.art-section h2 {
  font-family: var(--font-display); font-size: 1.65rem; font-weight: 700;
  color: var(--walnut); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--border-light);
}
.art-section h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--cedar); margin: 22px 0 10px; }
.art-section p { color: var(--mid-text); font-size: 0.96rem; line-height: 1.78; margin-bottom: 14px; }
.art-section a { color: var(--cedar-mid); text-decoration: underline; }
.art-section a:hover { color: var(--cedar); }

.art-list { list-style: none; padding: 0; margin: 14px 0; }
.art-list li { padding: 10px 0 10px 24px; position: relative; border-bottom: 1px solid var(--border-light); font-size: 0.93rem; color: var(--mid-text); line-height: 1.65; }
.art-list li::before { content: '▸'; position: absolute; left: 0; color: var(--gold); }
.art-list li strong { color: var(--dark-text); }

.art-callout {
  background: rgba(212,149,42,0.08); border-left: 4px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 16px 20px;
  font-size: 0.91rem; color: var(--mid-text); line-height: 1.65; margin: 22px 0;
}
.art-callout strong { color: var(--dark-text); }
.art-callout a { color: var(--cedar-mid); }

.art-formula {
  background: var(--walnut); border-radius: var(--r-md); padding: 24px; margin: 22px 0;
}
.formula-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.formula-main { font-family: 'Courier New', monospace; font-size: 0.95rem; color: var(--sand); line-height: 1.55; }
.formula-note { font-size: 0.8rem; color: rgba(232,213,184,0.5); margin-top: 10px; }
.formula-note a { color: var(--gold-light); }

.art-cta {
  background: var(--linen); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px; margin: 28px 0; text-align: center;
}
.art-cta p { font-size: 0.95rem; color: var(--mid-text); }

/* Article tags */
.art-tags { margin-top: 52px; padding-top: 24px; border-top: 2px solid var(--border-light); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.at-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-text); }
.at-tag { background: var(--linen); border: 1px solid var(--border); color: var(--muted-text); font-size: 0.79rem; padding: 4px 12px; border-radius: 4px; }

/* Sidebar */
.blog-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.sidebar-widget {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
}
.sw-dark { background: var(--walnut); border-color: var(--walnut); }
.sw-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--dark-text); margin-bottom: 10px; }
.sw-dark .sw-title { color: var(--sand); }
.sidebar-widget p { font-size: 0.85rem; color: var(--mid-text); margin-bottom: 14px; line-height: 1.55; }
.sw-dark p { color: rgba(232,213,184,0.55); }

.sw-facts { list-style: none; }
.sw-facts li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border-light); font-size: 0.84rem; }
.sw-facts li span { color: var(--muted-text); }
.sw-facts li strong { color: var(--dark-text); }

.sw-links { list-style: none; }
.sw-links li { margin-bottom: 8px; }
.sw-links a { color: var(--cedar-mid); font-size: 0.87rem; text-decoration: none; }
.sw-links a:hover { color: var(--cedar); text-decoration: underline; }

/* ────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}
@media (max-width: 768px) {
  .calc-wrap { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .blog-cta-wrap { grid-template-columns: 1fr; gap: 28px; }
  .footer-wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-stats-inner { gap: 0; }
  .hstat { min-width: 100px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .nav-links {
    position: fixed; top: 62px; left: 0; right: 0;
    background: var(--walnut); flex-direction: column;
    padding: 16px 24px; gap: 4px;
    transform: translateY(-110%); transition: transform 0.3s ease;
    border-bottom: 2px solid var(--gold);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
}
@media (max-width: 480px) {
  .hero { padding: 60px 0 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .calc-panel { padding: 24px 18px; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge   { animation: fadeUp 0.5s ease both 0.05s; }
.hero-h1      { animation: fadeUp 0.5s ease both 0.15s; }
.hero-sub     { animation: fadeUp 0.5s ease both 0.25s; }
.hero-ctas    { animation: fadeUp 0.5s ease both 0.35s; }
