@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* ═══════════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════════ */
:root {
  --sand: #E8D5B0;
  --desert: #C4A265;
  --terracotta: #C1623F;
  --rust: #9B3A1E;
  --dusk: #2C1A0E;
  --midnight: #1A0F07;
  --cream: #F7F0E3;
  --warm-white: #FDF8F0;
  --gold: #D4A843;
  --sage: #8B9E7A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--warm-white);
  color: var(--dusk);
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 5%;
  background: rgba(26,15,7,0.92);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 600;
  color: var(--cream); text-decoration: none;
  letter-spacing: 0.03em;
}
.nav-back {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(247,240,227,0.7);
  text-decoration: none; transition: color 0.2s;
}
.nav-back:hover { color: var(--gold); }

/* ═══════════════════════════════════════════
   BLOG HERO — full-width image with text over it
═══════════════════════════════════════════ */
.blog-hero {
  position: relative;
  width: 100%;
  height: 520px;              /* fixed height so image always shows */
  margin-top: 64px;           /* clear fixed nav */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 6% 3.5rem;
}

/* The cover photo — true background, perfectly centered */
.blog-hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 0;
}

/* Gradient overlay so text is readable */
.blog-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,15,7,0.20) 0%,
    rgba(26,15,7,0.55) 45%,
    rgba(26,15,7,0.88) 100%
  );
  z-index: 1;
}

/* Suppress the old ::after pseudo-element */
.blog-hero::after { display: none; }

/* Text content sits above everything */
.blog-hero > *:not(.blog-hero-bg) {
  position: relative;
  z-index: 2;
}

/* Hero text styles */
.blog-eyebrow {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.75rem; display: block;
}
.blog-hero-meta {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.blog-tag-hero {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dusk);
  background: var(--gold); padding: 0.28rem 0.7rem; border-radius: 2px;
}
.blog-date, .blog-read-time {
  font-size: 0.78rem; color: rgba(247,240,227,0.55);
}
.blog-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300; color: var(--cream);
  line-height: 1.1; margin-bottom: 1rem;
  max-width: 780px;
}
.blog-hero h1 em { font-style: italic; color: var(--gold); }
.blog-intro {
  font-size: 1rem; font-weight: 300; line-height: 1.75;
  color: rgba(247,240,227,0.82);
  max-width: 680px;
}

/* ═══════════════════════════════════════════
   BLOG LAYOUT — two-column desktop
═══════════════════════════════════════════ */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 4% 5rem;
  align-items: start;
}

/* ── Main content column ── */
.blog-body {
  min-width: 0; /* prevent grid blowout */
}
.blog-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem; font-weight: 400; color: var(--dusk);
  margin: 2.75rem 0 0.9rem; line-height: 1.2;
}
.blog-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-weight: 400; color: var(--dusk);
  margin: 2rem 0 0.65rem;
}
.blog-body p {
  font-size: 0.96rem; font-weight: 300; line-height: 1.85;
  color: rgba(44,26,14,0.75); margin-bottom: 1.1rem;
}
.blog-body ul, .blog-body ol {
  margin: 0.25rem 0 1.4rem 1.2rem;
}
.blog-body li {
  font-size: 0.92rem; font-weight: 300; line-height: 1.75;
  color: rgba(44,26,14,0.73); margin-bottom: 0.45rem;
}
.blog-body strong { font-weight: 600; color: var(--dusk); }
.blog-body a { color: var(--terracotta); text-decoration: underline; }
.blog-body a:hover { color: var(--rust); }

/* Tip / Warning boxes */
.tip-box {
  background: var(--sand); border-left: 3px solid var(--gold);
  padding: 1.2rem 1.5rem; border-radius: 0 4px 4px 0;
  margin: 1.5rem 0;
}
.tip-box p { margin-bottom: 0; color: var(--dusk); font-size: 0.91rem; }
.tip-box strong { color: var(--rust); }
.warning-box {
  background: rgba(193,98,63,0.08); border-left: 3px solid var(--terracotta);
  padding: 1.2rem 1.5rem; border-radius: 0 4px 4px 0;
  margin: 1.5rem 0;
}
.warning-box p { margin-bottom: 0; font-size: 0.91rem; }

/* Scam cards */
.scam-card {
  background: #fff; border: 1px solid rgba(44,26,14,0.08);
  border-radius: 4px; padding: 1.5rem; margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(44,26,14,0.05);
}
.scam-card h3 { margin-top: 0; font-size: 1.1rem; }
.scam-label {
  display: inline-block; font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.18rem 0.45rem; border-radius: 2px; margin-bottom: 0.45rem;
}
.scam-label.red  { background: rgba(193,98,63,0.14); color: var(--rust); }
.scam-label.green{ background: rgba(139,158,122,0.18); color: #4a6b38; }

/* CTA box inside article */
.blog-cta-box {
  background: var(--dusk); border-radius: 4px;
  padding: 2.5rem; margin: 3rem 0; text-align: center;
}
.blog-cta-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem; font-weight: 300; color: var(--cream); margin-bottom: 0.65rem;
}
.blog-cta-box p {
  font-size: 0.86rem; color: rgba(247,240,227,0.62); margin-bottom: 1.4rem;
}
.btn-cta {
  display: inline-block; font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  color: var(--dusk); background: var(--gold);
  padding: 0.85rem 1.9rem; border-radius: 2px; transition: background 0.2s;
}
.btn-cta:hover { background: var(--sand); }

/* ── Sidebar column ── */
.blog-sidebar {
  position: sticky;
  top: 90px; /* clear nav */
}
.sidebar-widget {
  background: #fff;
  border: 1px solid rgba(44,26,14,0.08);
  border-radius: 4px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 16px rgba(44,26,14,0.05);
}
.sidebar-widget h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 400; color: var(--dusk);
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(44,26,14,0.08);
}
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 0.6rem; }
.sidebar-links a {
  font-size: 0.84rem; font-weight: 300; color: rgba(44,26,14,0.7);
  text-decoration: none; line-height: 1.4;
  transition: color 0.2s; display: block;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(44,26,14,0.05);
}
.sidebar-links a:hover { color: var(--terracotta); }
.sidebar-cta-box {
  background: var(--dusk); border-radius: 4px;
  padding: 1.75rem; text-align: center;
}
.sidebar-cta-box p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 300; color: var(--cream);
  margin-bottom: 1.1rem; line-height: 1.4;
}
.sidebar-cta-box .btn-cta { display: block; width: 100%; }

/* ═══════════════════════════════════════════
   RELATED POSTS
═══════════════════════════════════════════ */
.related-posts {
  background: var(--cream);
  padding: 4rem 4%;
}
.related-posts-inner {
  max-width: 1160px; margin: 0 auto;
}
.related-posts h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 300; color: var(--dusk);
  margin-bottom: 2rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.related-card {
  background: #fff; border-radius: 4px; padding: 1.4rem;
  border: 1px solid rgba(44,26,14,0.08); text-decoration: none;
  display: block; transition: box-shadow 0.2s, transform 0.2s;
}
.related-card:hover { box-shadow: 0 6px 24px rgba(44,26,14,0.1); transform: translateY(-2px); }
.related-card .r-tag {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--terracotta);
  margin-bottom: 0.45rem; display: block;
}
.related-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-weight: 400; color: var(--dusk); line-height: 1.3;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: var(--midnight); padding: 2.5rem 5%;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
footer p { font-size: 0.78rem; color: rgba(247,240,227,0.3); }
footer a { font-size: 0.78rem; color: var(--gold); text-decoration: none; font-weight: 500; }
footer a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.blog-hero > *:not(.blog-hero-bg) { animation: fadeUp 0.9s ease both; }
.blog-eyebrow { animation-delay: 0s; }
.blog-hero-meta { animation-delay: 0.08s; }
.blog-hero h1 { animation-delay: 0.15s; }
.blog-intro { animation-delay: 0.22s; }

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr 260px;
    gap: 3rem;
    padding: 3.5rem 4% 4rem;
  }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
═══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Nav */
  nav { padding: 1rem 5%; }
  .nav-logo { font-size: 1.2rem; }

  /* Hero */
  .blog-hero {
    height: 380px;
    margin-top: 56px;
    padding: 2rem 5% 2.5rem;
  }
  .blog-hero h1 { font-size: clamp(1.75rem, 5.5vw, 2.4rem); }
  .blog-intro { font-size: 0.9rem; line-height: 1.65; }

  /* Layout — stack sidebar below content */
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 5% 3.5rem;
  }

  /* Sidebar resets */
  .blog-sidebar { position: static; }

  /* Related posts */
  .related-posts { padding: 3rem 5%; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
═══════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Hero */
  .blog-hero {
    height: 300px;
    margin-top: 52px;
    padding: 1.5rem 5% 2rem;
  }
  .blog-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .blog-intro { display: none; } /* hide long intro on very small screens */
  .blog-hero-meta { gap: 0.6rem; }

  /* Body */
  .blog-body h2 { font-size: 1.45rem; margin: 2rem 0 0.65rem; }
  .blog-body h3 { font-size: 1.15rem; }
  .blog-body p  { font-size: 0.88rem; }
  .blog-body li { font-size: 0.85rem; }

  /* Boxes */
  .tip-box, .warning-box { padding: 1rem 1.1rem; }
  .scam-card { padding: 1rem; }
  .blog-cta-box { padding: 1.75rem 1.25rem; }

  /* Related */
  .related-grid { grid-template-columns: 1fr; }

  /* Footer */
  footer { flex-direction: column; align-items: flex-start; padding: 2rem 5%; }
}
