
/* =====================
   CSS VARIABLES
   ===================== */
:root {
  --cream: #FAF6EF;
  --warm-white: #FFFDF9;
  --sage: #7A9E7E;
  --sage-dark: #4E7452;
  --sage-light: #EBF3EC;
  --terracotta: #C4836A;
  --terracotta-light: #F5EAE5;
  --dusty-rose: #C9A8A8;
  --brown: #2E1A0E;
  --warm-gray: #6B5B52;
  --mid-gray: #9E8E86;
  --border: #E8DFD5;
  --shadow: rgba(46, 26, 14, 0.08);
  --shadow-md: rgba(46, 26, 14, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--brown);
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--terracotta); }

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--brown);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1.2rem; color: var(--warm-gray); }
p:last-child { margin-bottom: 0; }

strong { color: var(--brown); font-weight: 600; }

/* =====================
   LAYOUT
   ===================== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* =====================
   NAVIGATION
   ===================== */
.nav {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brown);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-icon {
  width: 32px; height: 32px;
  background: var(--sage);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

.nav__links a:hover { color: var(--sage-dark); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  width: 24px; height: 2px;
  background: var(--brown);
  border-radius: 2px;
  display: block;
  transition: 0.3s;
}

/* =====================
   HERO
   ===================== */
.hero {
  background: linear-gradient(135deg, #F5EFE6 0%, #EBF3EC 50%, #F5EAE5 100%);
  padding: 80px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(122,158,126,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(196,131,106,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__eyebrow {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 16px;
}

.hero__title {
  max-width: 720px;
  margin: 0 auto 20px;
}

.hero__title em {
  font-style: italic;
  color: var(--terracotta);
}

.hero__subtitle {
  font-size: 1.12rem;
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--warm-gray);
}

.hero__cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--sage-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(78,116,82,0.3);
}

.btn--primary:hover {
  background: #3d5e41;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78,116,82,0.4);
}

.btn--secondary {
  background: var(--warm-white);
  color: var(--brown);
  border: 1.5px solid var(--border);
}

.btn--secondary:hover {
  background: var(--terracotta-light);
  color: var(--terracotta);
  border-color: var(--dusty-rose);
  transform: translateY(-2px);
}

/* =====================
   SECTION STYLES
   ===================== */
.section { padding: 72px 0; }
.section--alt { background: var(--warm-white); }
.section--sage { background: var(--sage-light); }

.section__header {
  text-align: center;
  margin-bottom: 52px;
}

.section__header p {
  max-width: 520px;
  margin: 12px auto 0;
  font-size: 1.05rem;
}

.section__tag {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
  background: var(--sage-light);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

/* =====================
   CARDS
   ===================== */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card-grid--2 { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }

.card {
  background: var(--warm-white);
  border-radius: 18px;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px var(--shadow);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow-md);
  border-color: var(--sage);
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card__tag {
  font-family: 'Nunito', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card p { font-size: 0.95rem; margin-bottom: 16px; }

.card__link {
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sage-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card__link:hover { color: var(--terracotta); }

/* =====================
   ARTICLE CARD
   ===================== */
.article-card {
  background: var(--warm-white);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow-md);
}

.article-card__body { padding: 28px; }
.article-card__category {
  font-family: 'Nunito', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 10px;
}

.article-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.article-card p { font-size: 0.92rem; }
.article-card__meta {
  margin-top: 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  color: var(--mid-gray);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =====================
   RESOURCE LIST
   ===================== */
.resource-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--warm-white);
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  transition: all 0.25s;
}

.resource-item:hover {
  border-color: var(--sage);
  box-shadow: 0 4px 16px var(--shadow);
  transform: translateX(4px);
}

.resource-item__icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: var(--sage-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}

.resource-item__body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.resource-item__body p { font-size: 0.92rem; margin-bottom: 8px; }

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge--free { background: var(--sage-light); color: var(--sage-dark); }
.badge--paid { background: var(--terracotta-light); color: var(--terracotta); }
.badge--affiliate { background: #FFF3E0; color: #B06000; }

/* =====================
   ARTICLE PAGE
   ===================== */
.article-hero {
  background: linear-gradient(135deg, #F5EFE6, #EBF3EC);
  padding: 60px 24px 50px;
  text-align: center;
}

.article-hero__category {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 14px;
}

.article-hero__meta {
  margin-top: 20px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  color: var(--mid-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.article-body {
  padding: 60px 24px;
}

.article-body h2 { margin: 2rem 0 1rem; }
.article-body h3 { margin: 1.6rem 0 0.8rem; }
.article-body p { margin-bottom: 1.4rem; }
.article-body ul, .article-body ol { margin: 0 0 1.4rem 1.5rem; color: var(--warm-gray); }
.article-body li { margin-bottom: 0.5rem; }

.article-body blockquote {
  margin: 2rem 0;
  padding: 24px 28px;
  background: var(--sage-light);
  border-left: 4px solid var(--sage);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--brown);
}

.article-body .callout {
  background: var(--terracotta-light);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 2rem 0;
  border: 1px solid rgba(196,131,106,0.2);
}

.article-body .callout strong { color: var(--terracotta); }

/* =====================
   AFFILIATE LINK BOX
   ===================== */
.affiliate-box {
  background: linear-gradient(135deg, var(--sage-light), #F5EFE6);
  border: 1.5px solid var(--sage);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.affiliate-box__icon { font-size: 2rem; flex-shrink: 0; }
.affiliate-box h4 { margin-bottom: 6px; color: var(--sage-dark); }
.affiliate-box p { font-size: 0.92rem; margin-bottom: 12px; }

/* =====================
   TABLE OF CONTENTS
   ===================== */
.toc {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 2rem;
}

.toc h4 { margin-bottom: 12px; font-size: 0.95rem; color: var(--mid-gray); text-transform: uppercase; letter-spacing: 0.05em; font-family: 'Nunito', sans-serif; }
.toc ol { margin-left: 1.2rem; }
.toc li { margin-bottom: 6px; }
.toc a { font-size: 0.95rem; color: var(--sage-dark); font-family: 'Nunito', sans-serif; }

/* =====================
   FOOTER
   ===================== */
.footer {
  background: var(--brown);
  color: rgba(255,255,255,0.7);
  padding: 56px 24px 32px;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.footer__tagline { font-size: 0.92rem; line-height: 1.7; }

.footer__heading {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer__links a:hover { color: var(--sage); }

.footer__bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__disclaimer {
  max-width: 1100px;
  margin: 0 auto 24px;
  font-size: 0.8rem;
  line-height: 1.6;
  padding: 16px 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* =====================
   BREADCRUMB
   ===================== */
.breadcrumb {
  padding: 14px 24px;
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  color: var(--mid-gray);
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb a { color: var(--sage-dark); }
.breadcrumb a:hover { color: var(--terracotta); }

/* =====================
   CRISIS BANNER
   ===================== */
.crisis-banner {
  background: var(--terracotta-light);
  border: 1px solid rgba(196,131,106,0.3);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 2rem;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.crisis-banner__icon { font-size: 1.4rem; flex-shrink: 0; }
.crisis-banner p { font-size: 0.92rem; margin: 0; }
.crisis-banner strong { color: var(--terracotta); }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 65px; left: 0; right: 0;
    background: var(--warm-white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    z-index: 99;
  }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .card-grid--2 { grid-template-columns: 1fr; }
  .article-hero { padding: 40px 20px 36px; }
  .affiliate-box { flex-direction: column; }
}

/* =====================
   FADE-IN ANIMATION
   ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.6s ease forwards; }
.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; animation-name: fadeInUp; animation-duration: 0.6s; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; animation-name: fadeInUp; animation-duration: 0.6s; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards; animation-name: fadeInUp; animation-duration: 0.6s; }

/* FAQ Section */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 8px;
  cursor: pointer;
}
.faq-answer {
  font-size: 0.95rem;
  color: var(--warm-gray);
  margin: 0;
  line-height: 1.75;
}

/* Article hero image */
.article-hero {
  position: relative;
  overflow: hidden;
}
.article-hero__img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .article-hero__img { height: 200px; }
}

/* Prev/Next navigation */
.prevnext {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 48px;
}
.prevnext__inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.prevnext__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  max-width: 45%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  transition: all 0.2s ease;
}
.prevnext__link:hover {
  border-color: var(--sage);
  background: var(--sage-light);
}
.prevnext__link--next { margin-left: auto; text-align: right; }
.prevnext__label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sage);
}
.prevnext__title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.4;
}
@media (max-width: 600px) {
  .prevnext__inner { flex-direction: column; }
  .prevnext__link { max-width: 100%; }
  .prevnext__link--next { text-align: left; margin-left: 0; }
}
