/* ══════════════════════════════════════════════════════════════
   HOME.CSS — MyNestrova Homepage
   Loaded ONLY on index.html, after shared.css.

   Contains everything that was previously inline in index.html's
   <style> block, MINUS the rules now living in shared.css
   (reset, html scroll-behavior, img base rule, and the 8 color
   tokens verified identical to main.css: --cream --warm --sand
   --sage --ink --muted --light --white).

   NOTE: --r-lg, --shadow, --shadow-hover, and the font tokens
   below are intentionally homepage-specific names/values and were
   NOT merged into shared.css, because main.css uses the same
   concept with different names or values (see Phase 1 analysis).
   Do not rename these without also updating main.css + blog pages.
   ══════════════════════════════════════════════════════════════ */

/* ── Homepage-only tokens (not yet standardized against main.css) ── */
:root {
  --terracotta: #c47b5a;
  --terra-dark: #9e5c3e;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow:       0 2px 20px rgba(30,26,23,.08);
  --shadow-hover: 0 8px 40px rgba(30,26,23,.14);
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── Utility ── */
.container { width: min(1140px, 100% - 3rem); margin-inline: auto; }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(196,123,90,.1);
  padding: 4px 10px;
  border-radius: 20px;
}
.btn-primary {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--terra-dark); transform: translateY(-1px); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--terracotta);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: 40px;
  border: 1.5px solid var(--terracotta);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-outline:hover { background: var(--terracotta); color: var(--white); }
.section-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,247,242,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}
.nav-logo span { color: var(--terracotta); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--terracotta); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-pin {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); transition: color .2s;
}
.nav-pin:hover { color: #e60023; }
.nav-pin svg { width: 16px; height: 16px; fill: currentColor; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: all .3s; }
.mobile-menu {
  display: none; flex-direction: column;
  background: var(--cream); border-top: 1px solid var(--sand); padding: 20px 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 24px; font-size: 15px; color: var(--muted); transition: color .2s; }
.mobile-menu a:hover { color: var(--terracotta); }

/* ── Hero ── */
.hero { padding: 80px 0 60px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); }
.hero-eyebrow span { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); }
.hero-title { font-family: var(--font-display); font-size: clamp(38px, 5.5vw, 62px); font-weight: 600; line-height: 1.08; color: var(--ink); margin-bottom: 22px; }
.hero-title em { font-style: italic; color: var(--terracotta); }
.hero-subtitle { font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 36px; max-width: 440px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--sand); }
.hero-stat-num { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--ink); }
.hero-stat-label { font-size: 12px; color: var(--light); margin-top: 2px; }
.hero-images { position: relative; height: 540px; }
.hero-img-main { position: absolute; top: 0; right: 0; width: 78%; height: 480px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-hover); }
.hero-img-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-accent { position: absolute; bottom: 0; left: 0; width: 50%; height: 260px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-hover); border: 4px solid var(--cream); }
.hero-img-accent img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; top: 50%; right: -16px; transform: translateY(-50%); background: var(--white); border-radius: var(--r-md); padding: 14px 18px; box-shadow: var(--shadow-hover); display: flex; align-items: center; gap: 10px; min-width: 170px; }
.hero-badge-icon { width: 38px; height: 38px; background: rgba(196,123,90,.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.hero-badge-text { font-size: 12px; font-weight: 500; color: var(--ink); }
.hero-badge-sub { font-size: 11px; color: var(--light); }

/* ── Trust bar ── */
.trust-bar { background: var(--warm); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); padding: 18px 0; }
.trust-bar-inner { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 400; }
.trust-item strong { color: var(--ink); font-weight: 500; }
.trust-dot { color: var(--sand); font-size: 20px; }

/* ── Categories ── */
.categories { padding: 80px 0; }
.categories-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card { background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; cursor: pointer; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cat-card-img { width: 100%; height: 180px; object-fit: cover; }
.cat-card-body { padding: 16px 18px 20px; }
.cat-card-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); margin: 6px 0 4px; }
.cat-card-count { font-size: 12px; color: var(--light); }
.cat-card-arrow { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--terracotta); margin-top: 10px; }

/* ── Featured posts ── */
.featured { padding: 20px 0 80px; }
.featured-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.posts-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 24px; }

/* ── Post card base ── */
.post-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* ── Image wrap — position:relative so absolute children stay inside it ── */
.post-card-img-wrap {
  position: relative;
  overflow: hidden;
  display: block;
  line-height: 0; /* removes any inline gap under the image */
}
.post-card-img {
  width: 100%;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}
.post-card:hover .post-card-img { transform: scale(1.04); }
.post-card--large .post-card-img { height: 300px; }
.post-card--small .post-card-img { height: 190px; }

/* ── NEW POST badge — top-left, inside image wrap ── */
.post-badge-new {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  line-height: 1.4;
}

/* ── Pinterest Save pill — top-right, inside image wrap ── */
.post-pin-save {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background: #fff;
  color: #333;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  transition: box-shadow .2s, transform .15s;
  line-height: 1.4;
}
.post-pin-save:hover { box-shadow: 0 4px 16px rgba(0,0,0,.25); transform: translateY(-1px); }
.post-pin-save svg { width: 14px; height: 14px; fill: #e60023; flex-shrink: 0; }

/* ── Small card hover-reveal Pinterest pin btn ── */
.pin-btn {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  background: #e60023;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: opacity .2s;
  text-decoration: none;
  line-height: 1.4;
}
.post-card-img-wrap:hover .pin-btn { opacity: 1; }
.pin-btn svg { width: 13px; height: 13px; fill: white; }

/* ── Post card body ── */
.post-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }

/* ── Large card meta row ── */
.post-card-meta-large {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.post-card-meta-large .meta-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.post-card-meta-large .meta-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--light);
  flex-shrink: 0;
}
.post-card-meta-large .meta-date,
.post-card-meta-large .meta-read {
  font-size: 12px;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── Card titles ── */
.post-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin: 8px 0 10px;
}
.post-card-title em { font-style: italic; color: var(--terracotta); }
.post-card--small .post-card-title { font-size: 15px; margin-top: 6px; }

/* ── Small card meta row ── */
.post-card-meta {
  font-size: 12px;
  color: var(--light);
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.post-card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; flex: 1; }
.post-read-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
  margin-top: 12px;
}
.post-card:hover .post-read-link { gap: 8px; }

/* ── Pinterest CTA strip ── */
.pinterest-strip {
  background: #fff0eb;
  border: 1.5px solid rgba(196,123,90,.2);
  border-radius: var(--r-lg);
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 80px;
}
.pinterest-strip-left { display: flex; align-items: center; gap: 18px; }
.pin-icon-circle { width: 52px; height: 52px; background: #e60023; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pin-icon-circle svg { width: 26px; height: 26px; fill: white; }
.pinterest-strip-text h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.pinterest-strip-text p { font-size: 14px; color: var(--muted); }
.btn-pinterest {
  display: inline-flex; align-items: center; gap: 8px;
  background: #e60023; color: white; font-size: 14px; font-weight: 500;
  padding: 13px 24px; border-radius: 40px; border: none; cursor: pointer;
  transition: background .2s, transform .15s; text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.btn-pinterest:hover { background: #c4001f; transform: translateY(-1px); }
.btn-pinterest svg { width: 16px; height: 16px; fill: white; }

/* ── Style quiz ── */
.quiz-section {
  background: var(--ink); border-radius: var(--r-lg); padding: 60px 48px;
  margin: 0 0 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.quiz-title { font-family: var(--font-display); font-size: clamp(26px, 3.5vw, 38px); font-weight: 600; color: var(--cream); line-height: 1.2; margin-bottom: 14px; }
.quiz-title em { color: var(--terracotta); font-style: italic; }
.quiz-subtitle { font-size: 15px; color: var(--light); line-height: 1.7; margin-bottom: 28px; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz-option {
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--r-sm); padding: 14px 16px; cursor: pointer;
  transition: all .2s; display: flex; align-items: center; gap: 10px;
}
.quiz-option:hover, .quiz-option.selected { background: rgba(196,123,90,.15); border-color: var(--terracotta); }
.quiz-option-icon { font-size: 20px; }
.quiz-option-label { font-size: 13px; font-weight: 500; color: var(--cream); }
.quiz-result { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); padding: 24px; }
.quiz-result-img { width: 100%; height: 220px; border-radius: var(--r-sm); object-fit: cover; margin-bottom: 18px; }
.quiz-result-style { font-family: var(--font-display); font-size: 20px; color: var(--cream); font-weight: 600; margin-bottom: 6px; }
.quiz-result-desc { font-size: 13px; color: var(--light); line-height: 1.6; margin-bottom: 16px; }

/* ── Top picks ── */
.picks-section { padding: 0 0 80px; }
.picks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pick-card { background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.pick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.pick-card-img { width: 100%; height: 200px; object-fit: cover; }
.pick-card-body { padding: 18px 20px 22px; }
.pick-card-title { font-size: 15px; font-weight: 500; color: var(--ink); margin: 8px 0 6px; line-height: 1.4; }
.pick-card-footer { display: flex; align-items: center; justify-content: space-between; }
.pcard-price { font-size: 13px; color: var(--muted); font-weight: 500; }
.btn-amazon {
  display: inline-flex; align-items: center; gap: 6px;
  background: #ff9900; color: var(--ink); font-size: 12px; font-weight: 500;
  padding: 8px 14px; border-radius: 20px; border: none; cursor: pointer;
  transition: background .2s; text-decoration: none; white-space: nowrap;
}
.btn-amazon:hover { background: #e88a00; }

/* ── Footer ── */
footer { background: var(--ink); color: var(--cream); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand-logo { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.footer-brand-logo span { color: var(--terracotta); }
.footer-brand-desc { font-size: 14px; color: var(--light); line-height: 1.7; margin-bottom: 20px; max-width: 280px; }
.footer-social { display: flex; gap: 12px; }
.footer-social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: background .2s; color: var(--cream); text-decoration: none; }
.footer-social-btn:hover { background: var(--terracotta); }
.footer-social-btn svg { width: 16px; height: 16px; fill: currentColor; }
.footer-col-title { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--light); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(253,247,242,.7); transition: color .2s; }
.footer-links a:hover { color: var(--terracotta); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom-text { font-size: 13px; color: var(--light); }
.footer-affiliate-disc { font-size: 12px; color: rgba(253,247,242,.4); max-width: 500px; line-height: 1.5; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .post-card--large { grid-column: span 2; }
  .post-card--large .post-card-img { height: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-images { height: 320px; }
  .hero-img-main { width: 80%; height: 300px; }
  .hero-img-accent { width: 55%; height: 190px; }
  .hero-badge { display: none; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .categories-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .featured-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card--large { grid-column: auto; }
  .post-card--large .post-card-img { height: 240px; }
  .pinterest-strip { flex-direction: column; align-items: flex-start; padding: 28px; }
  .quiz-section { grid-template-columns: 1fr; padding: 36px 28px; gap: 32px; }
  .quiz-options { grid-template-columns: 1fr; }
  .picks-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { gap: 16px; }
  .trust-dot { display: none; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 34px; }
  .hero-btns { flex-direction: column; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ── Fade-in animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up-2 { animation-delay: .12s; }
.fade-up-3 { animation-delay: .24s; }
.fade-up-4 { animation-delay: .36s; }