/* =========================================================
   SODAFIT — Blog Stylesheet
   Extends the main brand design system
   ========================================================= */

:root {
  --color-green-900: #0d3320;
  --color-green-800: #155235;
  --color-green-700: #1e6e48;
  --color-green-600: #228b57;
  --color-green-500: #2aab6b;
  --color-green-400: #3ec87e;
  --color-green-300: #72dda0;
  --color-green-200: #a8edbe;
  --color-green-100: #e6f7ee;
  --color-green-50: #f0faf4;

  --color-neutral-900: #111827;
  --color-neutral-800: #1f2937;
  --color-neutral-700: #374151;
  --color-neutral-600: #4b5563;
  --color-neutral-500: #6b7280;
  --color-neutral-400: #9ca3af;
  --color-neutral-300: #d1d5db;
  --color-neutral-200: #e5e7eb;
  --color-neutral-100: #f3f4f6;
  --color-neutral-50: #f9fafb;
  --color-white: #ffffff;

  --grad-hero: linear-gradient(135deg, #0d3320 0%, #1e6e48 40%, #155235 70%, #0f4028 100%);
  --grad-cta: linear-gradient(135deg, #155235 0%, #2aab6b 100%);

  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.07);
  --shadow-green: 0 8px 32px rgba(42,171,107,0.25);

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;

  --container-max: 1200px;
  --article-max: 780px;
}

/* -------------------------
   Reset & Base
   ------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--color-neutral-800);
  background-color: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

a {
  color: var(--color-green-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-green-500); }
a:focus-visible {
  outline: 3px solid var(--color-green-400);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* -------------------------
   Layout
   ------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* -------------------------
   HEADER / NAV
   ------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 51, 32, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}
.logo-soda { color: var(--color-white); letter-spacing: -0.02em; }
.logo-fit  { color: var(--color-green-400); letter-spacing: -0.02em; }
.logo-leaf { font-size: 1rem; margin-left: 2px; }

.main-nav { flex: 1; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
}
.nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 0.5rem 0.25rem;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-green-400);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}
.nav-link:hover { color: var(--color-white); }
.nav-link:hover::after { transform: scaleX(1); }

.header-cta {
  background: var(--grad-cta);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-green);
}
.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(42,171,107,0.35);
  color: var(--color-white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-nav {
  background: var(--color-green-900);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-list { padding: 0 1.5rem; }
.mobile-nav-list li { border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-nav-link {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.8rem 0;
  text-decoration: none;
}
.mobile-nav-link:hover { color: var(--color-green-300); }
.mobile-cta {
  display: block;
  margin: 1rem 0 0.5rem;
  text-align: center;
  background: var(--grad-cta);
  color: var(--color-white);
  font-weight: 700;
  padding: 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
}

/* -------------------------
   BLOG HERO HEADER
   ------------------------- */
.blog-hero {
  background: var(--grad-hero);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(62,200,126,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(42,171,107,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-green-300); }
.breadcrumb-sep { color: rgba(255,255,255,0.35); }

.blog-hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-green-300);
  margin-bottom: 1rem;
  display: block;
}

.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.blog-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}
.blog-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}
.blog-hero-meta-item svg { width: 14px; height: 14px; opacity: 0.7; }

/* -------------------------
   ARTICLE LAYOUT
   ------------------------- */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0 5rem;
}

.article-body {
  min-width: 0;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--color-neutral-900);
  margin: 2.5rem 0 1rem;
  line-height: 1.25;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-neutral-800);
  margin: 1.75rem 0 0.75rem;
}

.article-body p {
  font-size: 1.05rem;
  color: var(--color-neutral-700);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.article-body ul, .article-body ol {
  list-style: none;
  margin: 0 0 1.25rem 0;
  padding: 0;
}

.article-body ul li, .article-body ol li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  color: var(--color-neutral-700);
  line-height: 1.75;
}

.article-body ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-green-500);
  font-weight: 700;
  font-size: 0.9rem;
  top: 0.05rem;
}

.article-body ol {
  counter-reset: ol-counter;
}
.article-body ol li {
  counter-increment: ol-counter;
}
.article-body ol li::before {
  content: counter(ol-counter) ".";
  position: absolute;
  left: 0;
  color: var(--color-green-600);
  font-weight: 700;
  font-size: 0.9rem;
}

.article-body a {
  color: var(--color-green-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.article-body a:hover { color: var(--color-green-500); }

/* -------------------------
   CALLOUT / HIGHLIGHT BOX
   ------------------------- */
.callout {
  background: var(--color-green-50);
  border-left: 4px solid var(--color-green-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.callout p { margin: 0; font-size: 1rem; color: var(--color-green-800); }
.callout-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-green-600);
  margin-bottom: 0.5rem;
  display: block;
}

/* -------------------------
   STAT CARDS
   ------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
}
.stat-card {
  background: linear-gradient(145deg, #ffffff 0%, #f0faf4 100%);
  border: 1px solid var(--color-green-100);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-card-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-green-600);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-card-label {
  font-size: 0.8rem;
  color: var(--color-neutral-500);
  font-weight: 500;
}

/* -------------------------
   IN-ARTICLE CTA BANNER
   ------------------------- */
.article-cta {
  background: var(--grad-hero);
  border-radius: var(--radius-xl);
  padding: 2rem 2rem;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.article-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(62,200,126,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.article-cta-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-green-300);
  display: block;
  margin-bottom: 0.6rem;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  margin: 0 0 0.75rem;
}
.article-cta p {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-white);
  color: var(--color-green-800);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  color: var(--color-green-700);
}

/* -------------------------
   SIDEBAR
   ------------------------- */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 88px;
}

.sidebar-widget {
  background: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.sidebar-widget-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-neutral-500);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-green-100);
}

.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 0.4rem; }
.toc-list a {
  font-size: 0.88rem;
  color: var(--color-neutral-600);
  text-decoration: none;
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.toc-list a:hover {
  background: var(--color-green-50);
  color: var(--color-green-700);
  padding-left: 0.85rem;
}

.sidebar-cta {
  background: var(--grad-hero);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.sidebar-cta-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-green-300);
  display: block;
  margin-bottom: 0.5rem;
}
.sidebar-cta h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-white);
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.sidebar-cta p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.sidebar-btn {
  display: block;
  background: var(--color-white);
  color: var(--color-green-800);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-base);
}
.sidebar-btn:hover {
  transform: translateY(-2px);
  color: var(--color-green-700);
}

.related-links-list { list-style: none; padding: 0; margin: 0; }
.related-links-list li { margin-bottom: 0.6rem; }
.related-links-list a {
  font-size: 0.88rem;
  color: var(--color-green-700);
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.4;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-neutral-100);
  transition: color var(--transition-fast);
}
.related-links-list a::before {
  content: '→';
  font-size: 0.8rem;
  color: var(--color-green-400);
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.related-links-list a:hover { color: var(--color-green-500); }

/* -------------------------
   RELATED POSTS GRID (bottom)
   ------------------------- */
.related-posts-section {
  background: var(--color-neutral-50);
  border-top: 1px solid var(--color-neutral-200);
  padding: 4rem 0;
}
.related-posts-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-neutral-900);
  margin-bottom: 2rem;
  text-align: center;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.related-post-card {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-base);
  text-decoration: none;
  display: block;
}
.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-green-200);
}
.related-post-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-green-600);
  background: var(--color-green-50);
  border: 1px solid var(--color-green-100);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.related-post-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-neutral-900);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.related-post-card p {
  font-size: 0.85rem;
  color: var(--color-neutral-500);
  line-height: 1.5;
  margin: 0;
}
.related-post-arrow {
  color: var(--color-green-500);
  font-size: 1.1rem;
  margin-top: 0.75rem;
  display: block;
}

/* -------------------------
   BLOG HUB INDEX
   ------------------------- */
.blog-hub-hero {
  background: var(--grad-hero);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.blog-hub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(62,200,126,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hub-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-green-300);
  margin-bottom: 1rem;
  display: block;
}
.hub-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  max-width: 760px;
  margin: 0 auto 1.25rem;
}
.hub-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.blog-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 4rem 0 5rem;
}

.blog-hub-card {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.blog-hub-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-green-200);
}
.blog-hub-card-badge {
  background: var(--grad-hero);
  padding: 1.75rem 1.5rem 1.25rem;
  position: relative;
}
.blog-hub-card-badge-text {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green-300);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.75rem;
}
.blog-hub-card-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,255,255,0.12);
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  line-height: 1;
}
.blog-hub-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-hub-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-neutral-900);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}
.blog-hub-card-excerpt {
  font-size: 0.88rem;
  color: var(--color-neutral-500);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}
.blog-hub-card-meta {
  font-size: 0.78rem;
  color: var(--color-neutral-400);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pillar-badge {
  background: var(--color-green-100);
  color: var(--color-green-700);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-green-200);
}

/* -------------------------
   FOOTER
   ------------------------- */
.site-footer {
  background: var(--color-neutral-900);
  color: rgba(255,255,255,0.65);
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--color-green-300); }
.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.32);
  max-width: 680px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* -------------------------
   RESPONSIVE
   ------------------------- */
@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    position: static;
  }
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  .blog-hero { padding: 3rem 0 2rem; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .blog-hub-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
