/* =============================
   WEIGHT LOSS BLOG — style.css
   Aesthetic: Editorial Wellness
   ============================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lora:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── CSS Variables ─────────────────────────── */
:root {
  --cream:     #faf7f2;
  --paper:     #f3ede3;
  --sand:      #e8ddd0;
  --sage:      #7a9e7e;
  --sage-dark: #4f7a54;
  --sage-light:#d4e6d5;
  --brown:     #5c4a38;
  --brown-mid: #8a6e57;
  --text:      #2e2118;
  --text-muted:#7a6a5a;
  --accent:    #c8834b;
  --white:     #ffffff;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(92,74,56,0.10);
  --shadow-sm: 0 2px 8px rgba(92,74,56,0.08);
}

/* ── Reset & Base ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Lora', Georgia, serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.85;
  min-height: 100vh;
}

/* ── Header ────────────────────────────────── */
header {
  background: var(--white);
  border-bottom: 2px solid var(--sand);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.site-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: -0.01em;
  line-height: 1.2;
  flex: 1;
}

.site-title span {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Language Switch Button */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 3px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(122,158,126,0.25);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.lang-btn:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79,122,84,0.30);
}

.lang-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Hero Banner ───────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--paper) 60%, var(--sand) 100%);
  padding: 64px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(200,131,75,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(122,158,126,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.2;
  max-width: 680px;
  margin: 0 auto 16px;
}

.hero-sub {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Layout ────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

/* ── Table of Contents (Sidebar) ───────────── */
.toc-wrap {
  position: sticky;
  top: 88px;
}

.toc {
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sand);
}

.toc ol {
  list-style: none;
  padding: 0;
  counter-reset: toc-count;
}

.toc ol li {
  counter-increment: toc-count;
  margin-bottom: 4px;
}

.toc ol li a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--brown-mid);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.toc ol li a::before {
  content: counter(toc-count);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--sage-light);
  color: var(--sage-dark);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 600;
}

.toc ol li a:hover {
  background: var(--sage-light);
  color: var(--sage-dark);
}

/* ── Article ───────────────────────────────── */
article { min-width: 0; }

/* Intro block */
.intro-block {
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin-bottom: 36px;
  font-style: italic;
  color: var(--brown-mid);
  box-shadow: var(--shadow-sm);
}

.intro-block p { margin: 0; font-size: 1rem; }

/* Sections */
.section {
  margin-bottom: 48px;
  scroll-margin-top: 90px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: var(--sage-light);
  border-radius: 10px;
  font-size: 1.1rem;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.25;
}

.section h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--sage-dark);
  letter-spacing: 0.03em;
  margin: 22px 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section h3::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.section p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 12px;
}

/* Divider under section heading */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, var(--sand), transparent);
  margin-bottom: 18px;
}

/* ── Lists ─────────────────────────────────── */
.do-list, .dont-list, .plain-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.do-list li, .dont-list li, .plain-list li {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem;
  padding: 8px 14px 8px 38px;
  border-radius: 8px;
  position: relative;
  line-height: 1.5;
}

.do-list li {
  background: #edf7ee;
  color: #2d5c32;
}
.do-list li::before {
  content: '✓';
  position: absolute;
  left: 12px;
  color: var(--sage-dark);
  font-weight: 700;
}

.dont-list li {
  background: #fdf0ea;
  color: #7a3a1e;
}
.dont-list li::before {
  content: '✕';
  position: absolute;
  left: 12px;
  color: var(--accent);
  font-weight: 700;
}

.plain-list li {
  background: var(--paper);
  color: var(--text);
  padding-left: 32px;
}
.plain-list li::before {
  content: '→';
  position: absolute;
  left: 12px;
  color: var(--sage);
}

/* ── Cards ─────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.card {
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.card-emoji { font-size: 1.4rem; margin-bottom: 8px; display: block; }
.card h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sage-dark);
  margin-bottom: 4px;
}
.card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ── Remedy Items ──────────────────────────── */
.remedy-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.remedy-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.remedy-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--sage);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
}

.remedy-content strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 3px;
}

.remedy-content p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Drinks Grid ───────────────────────────── */
.drinks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.drink-item {
  background: linear-gradient(135deg, var(--white), var(--paper));
  border: 1.5px solid var(--sand);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.drink-icon { font-size: 1.3rem; flex-shrink: 0; }
.drink-info strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brown);
}
.drink-info p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ── Comparison Block ──────────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

.compare-box {
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.compare-box.weight {
  background: #fff8f0;
  border: 1.5px solid #f0d0b0;
}

.compare-box.fat {
  background: #edf7ee;
  border: 1.5px solid #a8d4aa;
}

.compare-box h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.compare-box.weight h4 { color: var(--accent); }
.compare-box.fat h4 { color: var(--sage-dark); }

.compare-box p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.winner-tag {
  display: inline-block;
  background: var(--sage);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 50px;
  margin-top: 8px;
}

/* ── Mindset Tips ──────────────────────────── */
.mindset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mindset-tip {
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.mindset-tip .tip-icon {
  font-size: 1.3rem;
  margin-bottom: 8px;
  display: block;
}

.mindset-tip h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 5px;
}

.mindset-tip p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.80rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Right vs Wrong */
.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}

.comp-wrong {
  background: #fff0f0;
  border: 1px solid #f0c0c0;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: #8a3a3a;
}

.comp-right {
  background: #edf7ee;
  border: 1px solid #a8d4aa;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: #2d5c32;
}

.comp-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.7;
}

/* Daily Routine */
.routine-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.routine-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: 10px;
}

.routine-time {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white);
  background: var(--sage);
  padding: 4px 10px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.routine-item p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  margin: 0;
}

/* ── Callout Box ───────────────────────────── */
.callout {
  background: linear-gradient(135deg, var(--sage-light), #e8f5e9);
  border: 1.5px solid #b2d8b4;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.callout-icon { font-size: 1.5rem; flex-shrink: 0; }

.callout p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--sage-dark);
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

/* ── Golden Formula ────────────────────────── */
.formula-block {
  background: linear-gradient(135deg, var(--brown) 0%, #7a5a3a 100%);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.formula-pill {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 8px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}

.formula-plus {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  font-weight: 300;
}

/* ── Stat Banner ───────────────────────────── */
.stat-banner {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 130px;
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ── Footer ────────────────────────────────── */
footer {
  background: var(--brown);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 32px 24px;
}

footer p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
}

footer a {
  color: var(--sage-light);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover { text-decoration: underline; }

footer .footer-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.50);
  margin-top: 8px;
  font-style: italic;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 780px) {
  .container {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 28px;
  }

  .toc-wrap {
    position: static;
  }

  .toc {
    max-height: 260px;
    overflow-y: auto;
  }

  .card-grid,
  .compare-grid,
  .mindset-grid,
  .drinks-grid {
    grid-template-columns: 1fr;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 44px 20px 36px;
  }

  .hero h1 { font-size: 1.75rem; }

  .stat-banner { gap: 10px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; min-height: 60px; }
  .site-title { font-size: 1rem; }
  .lang-btn { padding: 8px 14px; font-size: 0.8rem; }
  .container { padding: 0 16px 60px; }
  .section h2 { font-size: 1.3rem; }
}
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.8);
    
}
.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0rem;
   
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
   
}

.nav h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--primary);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    font-size: clamp(0.875rem, 2vw, 1rem);
}