/*
Theme Name: VidaPlenaLab
Theme URI: https://www.vidaplenalab.com.br
Author: VidaPlenaLab
Author URI: https://www.vidaplenalab.com.br
Description: Tema oficial do VidaPlenaLab — Ciência aplicada para uma vida saudável. Blog minimalista e elegante focado em sono, bem-estar, equilíbrio mental e tecnologia para saúde.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vidaplenalab
Tags: blog, wellness, health, minimal, responsive, custom-header, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* =============================================
   CSS CUSTOM PROPERTIES — DESIGN TOKENS
   ============================================= */
:root {
  /* Brand Colors — Light Mode: Off-white + Elegant Green */
  --color-bg:           #f5f7f4;
  --color-surface:      #ffffff;
  --color-surface-2:    #eef2ee;
  --color-border:       rgba(44, 90, 60, 0.10);
  --color-primary:      #2c7a4b;
  --color-primary-dim:  #235f3a;
  --color-accent:       #4aab6d;
  --color-accent-soft:  rgba(44, 122, 75, 0.09);
  --color-text:         #1a2e1f;
  --color-text-muted:   #6b806e;
  --color-text-soft:    #3d5445;
  --color-hero-overlay: rgba(10, 22, 14, 0.62);

  /* Typography */
  --font-display:  'DM Serif Display', 'Georgia', serif;
  --font-body:     'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* Spacing Scale */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  9rem;

  /* Layout */
  --container-max:  1200px;
  --container-wide: 1400px;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-base: 350ms;
  --duration-slow: 600ms;

  /* Shadows */
  --shadow-card:  0 2px 16px rgba(44,90,60,0.10), 0 1px 4px rgba(44,90,60,0.06);
  --shadow-glow:  0 0 40px rgba(44,122,75,0.14);
  --shadow-hero:  0 0 80px rgba(44,122,75,0.10);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--duration-fast) var(--ease-smooth); }
a:hover { color: var(--color-accent); }
a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

p { color: var(--color-text-soft); margin-bottom: var(--space-sm); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: var(--space-md); }

/* =============================================
   UTILITY CLASSES
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container--wide {
  max-width: var(--container-wide);
  padding-inline: var(--space-lg);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-3xl);
}

.section--sm {
  padding-block: var(--space-2xl);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 52ch;
}

.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center .section-subtitle { margin-inline: auto; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: all var(--duration-base) var(--ease-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--color-accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(44,122,75,0.30);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--color-text);
  transform: translateY(-2px);
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: all var(--duration-base) var(--ease-smooth);
}

.site-header.scrolled {
  background: rgba(245, 247, 244, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.65rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-text) !important;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.site-logo img {
  height: 38px;
  width: auto;
  border-radius: var(--radius-sm);
}

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), #2d9c80);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

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

.site-nav a {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.site-nav a:hover,
.site-nav a.current-menu-item {
  color: var(--color-text);
  background: rgba(255,255,255,0.06);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: '↓';
  font-size: 0.7rem;
  margin-left: 4px;
  opacity: 0.6;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--shadow-card);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  white-space: nowrap;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-text);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-smooth);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-hero-overlay);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(44,122,75,0.12) 0%, transparent 70%),
    linear-gradient(180deg, rgba(10,22,14,0.35) 0%, rgba(10,22,14,0.15) 40%, rgba(10,22,14,0.72) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) var(--space-lg);
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(44,122,75,0.18);
  border: 1px solid rgba(44,122,75,0.35);
  border-radius: var(--radius-xl);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: #a8f0c0;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  backdrop-filter: blur(8px);
  animation: fadeInDown 0.8s var(--ease-smooth) both;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: var(--space-md);
  color: #fff;
  letter-spacing: -0.04em;
  animation: fadeInUp 0.9s var(--ease-smooth) 0.1s both;
}

.hero h1 .highlight {
  color: var(--color-primary);
  font-style: italic;
}

.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  animation: fadeInUp 0.9s var(--ease-smooth) 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  animation: fadeInUp 0.9s var(--ease-smooth) 0.3s both;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-lg);
  justify-content: center;
  animation: fadeInUp 0.9s var(--ease-smooth) 0.4s both;
}

.hero-rating .stars { color: #f4c430; letter-spacing: 1px; }

.hero-scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s var(--ease-smooth) 1s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.3));
  animation: scrollPulse 2s ease-in-out infinite;
}

/* =============================================
   STATS STRIP
   ============================================= */
.stats-strip {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-right: 1px solid var(--color-border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =============================================
   LATEST POSTS / BLOG GRID
   ============================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.posts-grid--featured {
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto;
}

.posts-grid--featured .post-card:first-child {
  grid-row: span 2;
}

.post-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--duration-base) var(--ease-smooth);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: rgba(79,195,161,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.post-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--color-surface-2);
}

.post-card--large .post-card__image {
  aspect-ratio: 4/3;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.post-card:hover .post-card__image img {
  transform: scale(1.04);
}

.post-card__category {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--color-bg);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(79,195,161,0.2);
}

.post-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 0.75rem;
}

.post-card__date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.post-card__read-time {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.post-card__read-time::before {
  content: '·';
}

.post-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  line-height: 1.35;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.post-card--large .post-card__title {
  font-size: 1.5rem;
}

.post-card:hover .post-card__title {
  color: var(--color-primary);
}

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.post-card__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.post-card__author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.post-card__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.post-card__link::after {
  content: '→';
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.post-card:hover .post-card__link::after {
  transform: translateX(3px);
}

/* =============================================
   CATEGORIES SECTION
   ============================================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  display: block;
  color: var(--color-text) !important;
  border: 1px solid var(--color-border);
}

.category-card__bg {
  position: absolute;
  inset: 0;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.category-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card:hover .category-card__bg {
  transform: scale(1.06);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,17,23,0.2) 0%, rgba(13,17,23,0.85) 100%);
  transition: background var(--duration-base) var(--ease-smooth);
}

.category-card:hover .category-card__overlay {
  background: linear-gradient(180deg, rgba(13,17,23,0.1) 0%, rgba(13,17,23,0.92) 100%);
}

.category-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
}

.category-card__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.category-card__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.category-card__count {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.category-card__tag {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: rgba(79,195,161,0.15);
  border: 1px solid rgba(79,195,161,0.3);
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
}

/* =============================================
   ABOUT / MISSION SECTION
   ============================================= */
.about-section {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual__main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about-visual__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-visual__badge {
  position: absolute;
  bottom: -var(--space-md);
  right: -var(--space-md);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  box-shadow: var(--shadow-card);
}

.about-visual__badge-icon {
  font-size: 2rem;
}

.about-visual__badge-text strong {
  display: block;
  font-size: 1.3rem;
  color: var(--color-primary);
  font-family: var(--font-display);
}

.about-visual__badge-text span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.about-content .section-label { margin-bottom: var(--space-sm); }
.about-content .section-title { margin-bottom: var(--space-md); }

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.about-pillar {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  transition: border-color var(--duration-fast) var(--ease-smooth);
}

.about-pillar:hover {
  border-color: rgba(79,195,161,0.2);
}

.about-pillar__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.about-pillar__text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.about-pillar__text span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* =============================================
   TESTIMONIAL
   ============================================= */
.testimonial-section {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border-block: 1px solid var(--color-border);
}

.testimonial-wrap {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.testimonial-stars { font-size: 1.3rem; color: #f4c430; letter-spacing: 3px; margin-bottom: var(--space-md); }

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-quote::before { content: '"'; color: var(--color-primary); }
.testimonial-quote::after  { content: '"'; color: var(--color-primary); }

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.testimonial-author__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.testimonial-author__role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* =============================================
   NEWSLETTER SECTION
   ============================================= */
.newsletter-section {
  background: var(--color-surface-2);
  border-block: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(44,122,75,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.newsletter-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 5/4;
  position: relative;
}

.newsletter-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsletter-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,195,161,0.1), transparent);
  border-radius: var(--radius-xl);
}

.newsletter-content .section-title { margin-bottom: var(--space-sm); }

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-lg);
}

.newsletter-input {
  flex: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 0.85rem 1.25rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--duration-fast) var(--ease-smooth);
  outline: none;
}

.newsletter-input::placeholder { color: var(--color-text-muted); }

.newsletter-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79,195,161,0.12);
}

.newsletter-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

.newsletter-trust::before {
  content: '🔒';
  font-size: 0.85rem;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand .site-logo {
  margin-bottom: var(--space-sm);
  display: inline-flex;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 28ch;
  line-height: 1.65;
}

.footer-socials {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted) !important;
  font-size: 0.9rem;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.footer-social-link:hover {
  background: var(--color-accent-soft);
  border-color: rgba(79,195,161,0.3);
  color: var(--color-primary) !important;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.footer-col ul { list-style: none; padding: 0; }

.footer-col ul li { margin-bottom: 0.65rem; }

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 400;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.footer-col ul li a:hover { color: var(--color-primary); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer-bottom-links a:hover { color: var(--color-primary); }

/* =============================================
   SINGLE POST
   ============================================= */
.post-header {
  padding-top: calc(80px + var(--space-xl));
  padding-bottom: var(--space-xl);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.post-header .post-category {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-accent-soft);
  border: 1px solid rgba(79,195,161,0.2);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-md);
}

.post-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: var(--space-md);
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.post-featured-image {
  width: 100%;
  max-width: 900px;
  margin: 0 auto var(--space-xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/7;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-xl);
  align-items: start;
  max-width: var(--container-max);
  margin-inline: auto;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-body h2, .post-body h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.post-body h2 { font-size: 1.7rem; }
.post-body h3 { font-size: 1.35rem; }

.post-body p { margin-bottom: var(--space-md); color: var(--color-text-soft); }

.post-body a { color: var(--color-primary); border-bottom: 1px solid rgba(79,195,161,0.3); }
.post-body a:hover { border-bottom-color: var(--color-primary); }

.post-body blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-text);
  font-style: italic;
}

.post-body img {
  border-radius: var(--radius-md);
  width: 100%;
}

.post-body ul, .post-body ol {
  margin-bottom: var(--space-md);
  color: var(--color-text-soft);
}

.post-body li { margin-bottom: 0.5rem; }

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.post-tag {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-xl);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.post-tag:hover {
  border-color: rgba(79,195,161,0.3);
  color: var(--color-primary);
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar { position: sticky; top: 100px; }

.widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.widget-title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.widget ul { list-style: none; padding: 0; }
.widget ul li { border-bottom: 1px solid var(--color-border); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-smooth);
}
.widget ul li a:hover { color: var(--color-primary); }

/* =============================================
   ARCHIVE PAGE
   ============================================= */
.archive-header {
  padding-top: calc(80px + var(--space-xl));
  padding-bottom: var(--space-xl);
  text-align: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.archive-header h1 { margin-bottom: var(--space-sm); }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding: var(--space-xl) 0;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-xl) 0;
}

.pagination a,
.pagination span {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-surface);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .current { background: var(--color-primary); border-color: var(--color-primary); color: #0d1117; }

/* =============================================
   COMMENTS
   ============================================= */
.comments-area {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.comment-list { list-style: none; padding: 0; }

.comment {
  padding: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-sm);
}

.comment-meta { margin-bottom: var(--space-sm); }
.comment-author b { color: var(--color-text); }
.comment-body p { font-size: 0.95rem; }

#respond { margin-top: var(--space-lg); }
#respond h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}

.comment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
  transition: border-color var(--duration-fast) var(--ease-smooth);
  outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--color-primary);
}

.comment-form textarea { min-height: 120px; resize: vertical; }

.comment-form input[type="submit"] {
  width: auto;
  background: var(--color-primary);
  color: #0d1117;
  font-weight: 600;
  cursor: pointer;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-xl);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* Reveal on scroll (JS-powered) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid--featured { grid-template-columns: 1fr; }
  .posts-grid--featured .post-card:first-child { grid-row: auto; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .about-visual { order: -1; }
  .newsletter-wrap { grid-template-columns: 1fr; }
  .newsletter-image { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--color-border); }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 768px) {
  :root {
    --space-3xl: 5rem;
    --space-2xl: 3.5rem;
  }

  .menu-toggle { display: flex; }

  .site-nav, .header-cta {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 60px;
    background: rgba(245,247,244,0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-xl);
    z-index: 999;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
  }

  .site-nav.open, .header-cta.open { display: flex; }
  .site-nav a { font-size: 1.2rem; padding: 0.75rem 1.5rem; }

  .hero h1 { font-size: 2.4rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-actions .btn { justify-content: center; }

  .posts-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .newsletter-form { flex-direction: column; }
  .newsletter-input { width: 100%; }

  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }

  .container { padding-inline: var(--space-md); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .post-header h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.8rem; }
}

/* =============================================
   PRINT
   ============================================= */
@media print {
  .site-header, .site-footer, .sidebar, .newsletter-section { display: none; }
  body { background: white; color: black; }
  .post-body { color: black; }
}
