/*
 * homepage-additions.css
 * The MicroEntrepreneur — Homepage Redesign CSS Additions
 * P009 | Finn (PKA) | 2026-04-23
 *
 * Source: DREW_p009_homepage_spec_DONE.md — Consolidated CSS Additions section
 *
 * Deployment: enqueued via functions.php (tme_enqueue_homepage_additions)
 * only on is_front_page(). Also registered in WordPress Additional CSS
 * for fallback if enqueueing path changes.
 *
 * Note on .wp-block-post-title a:
 *   The existing rule in Taylor's Additional CSS has font-weight: 400.
 *   Drew spec M4 requires font-weight: 600. The rule below overrides it.
 *   If Taylor's rule already has font-weight: 600, this rule is a no-op.
 *   Do NOT duplicate the full rule — this single-property override is
 *   intentional to avoid specificity conflicts.
 *
 * All token values reference :root variables from Taylor's design system
 * (TAYLOR_micro_entrepreneur_implementation_DONE.md, Step 12 Additional CSS).
 * ============================================================ */


/* ============================================================
   THE MICROENTREPRENEUR — Homepage Redesign Additions
   P009 | Drew, 2026-04-23
   ============================================================ */

/* Hero — verdict terms label */
.tme-hero-label {
  font-family: var(--tme-font-body);
  font-size: var(--tme-size-label);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tme-amber);
  margin-bottom: 20px;
  margin-top: 0;
}

/* Trust signal bar (between hero and evaluations) */
.tme-trust-bar {
  background-color: var(--tme-offwhite);
  border-top: 3px solid var(--tme-amber);
  border-bottom: 1px solid var(--tme-light-grey);
  padding: 20px 40px;
  text-align: center;
}

.tme-trust-bar p {
  font-family: var(--tme-font-body);
  font-size: 15px;
  color: var(--tme-secondary-grey);
  margin-bottom: 0;
  font-style: italic;
}

/* Homepage — Latest Evaluations section header */
/* P009-T061 Fix 3: padding-top 60px→40px, margin-bottom 32px→20px */
.tme-homepage-section-header {
  padding-top: 40px;
  margin-bottom: 20px;
}

.tme-homepage-section-header h2 {
  margin-bottom: 8px;
}

.tme-homepage-section-meta {
  font-family: var(--tme-font-body);
  font-size: var(--tme-size-meta);
  color: var(--tme-secondary-grey);
}

.tme-homepage-section-meta a {
  color: var(--tme-navy);
  text-decoration: none;
  font-weight: 600;
}

/* BUG-TME-CONTRAST-001 fix — navy on offwhite = 13.15:1 (WCAG AA pass) */
.tme-homepage-section-meta a:hover {
  color: var(--tme-navy);
  text-decoration: underline;
}

/* Homepage — See all evaluations link */
.tme-see-all-link {
  text-align: center;
  margin-top: 32px;
  padding-bottom: 60px;
}

.tme-see-all-link a {
  font-family: var(--tme-font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--tme-amber);
  text-decoration: none;
}

.tme-see-all-link a:hover {
  text-decoration: underline;
}

/* How We Work — step numbers */
.tme-how-we-work-step {
  font-family: var(--tme-font-heading);
  font-size: 36px;
  font-weight: 600;
  color: var(--tme-amber);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

/* How We Work — section transition border after reorder to position 4 */
.tme-how-we-work {
  border-top: 2px solid var(--tme-light-grey);
  /* Existing padding and other rules remain unchanged */
}

/* Homepage — Subscribe block */
.tme-homepage-subscribe {
  background-color: var(--tme-amber);
  padding: 64px 40px;
  text-align: center;
}

.tme-homepage-subscribe h2 {
  font-family: var(--tme-font-heading);
  font-size: var(--tme-size-h2);
  font-weight: 600;
  color: var(--tme-navy);
  margin-bottom: 12px;
}

.tme-homepage-subscribe p {
  font-size: 16px;
  color: var(--tme-navy);
  max-width: 480px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}

.tme-homepage-subscribe .tme-cta-end-form {
  max-width: 480px;
  margin: 0 auto;
}

/* Homepage subscribe — reassurance line */
.tme-homepage-subscribe-reassurance {
  font-family: var(--tme-font-body);
  font-size: 13px;
  color: rgba(28, 43, 58, 0.6);
  margin-top: 8px;
  margin-bottom: 0;
  text-align: center;
}

/* P009-T063: Eliminate white strip between nav header and hero — body.home only
   Root cause: GeneratePress applies padding: 40px to .separate-containers .inside-article
   (main.css line ~1231). Body class is 'separate-containers' with no full-width-content
   override, so .inside-article gets 40px padding on all sides including top.
   Fix: zero out padding-top on body.home only. padding-left/right/bottom left intact
   so interior pages and other layout regions are unaffected. */
body.home .inside-article {
    padding-top: 0;
}

/* ============================================================
   HOMEPAGE EVALUATION CARD GRID (PHP partial)
   Replaces Gutenberg Query Loop for homepage verdict-badge cards.
   Drew spec: DREW_p009_homepage_spec_DONE.md, Section 3, Gap 1.
   ============================================================ */

/* Outer wrapper — used for embedding the shortcode */
.tme-homepage-evaluations-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 2-column grid at desktop (≥768px), 1-column at mobile */
.tme-homepage-eval-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}

/* Individual card */
.tme-homepage-eval-card {
  background-color: #ffffff; /* intentional white lift against --tme-offwhite */
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); /* P009-T061 Fix 2: border replaced with shadow */
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.tme-homepage-eval-card:hover {
  box-shadow: 0 4px 16px rgba(28, 43, 58, 0.10);
}

/* Full card is the clickable link */
/* P009-T061 Fix 3: padding reduced 24px→20px to match evaluations page cards */
.tme-homepage-eval-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  gap: 10px;
}

.tme-homepage-eval-card__link:focus-visible {
  outline: 2px solid var(--tme-amber);
  outline-offset: 2px;
}

/* Card title — IBM Plex Serif, 600 weight per Drew M4 */
.tme-homepage-eval-card__title {
  font-family: var(--tme-font-heading);
  font-size: 20px;
  font-weight: 600; /* Drew M4 — 600 weight, IBM Plex Serif 600 already loaded */
  color: var(--tme-navy);
  line-height: var(--tme-lh-heading);
  margin: 0;
}

.tme-homepage-eval-card:hover .tme-homepage-eval-card__title {
  color: var(--tme-amber);
}

/* Card excerpt — P009-T061 Fix 2: colour corrected from secondary-grey to body-dark */
.tme-homepage-eval-card__excerpt {
  font-family: var(--tme-font-body);
  font-size: var(--tme-size-meta);
  color: var(--tme-body-dark);
  line-height: 1.6;
  margin: 0;
}

/* Card date — P009-T061 Fix 2 */
.tme-homepage-eval-card__date {
  font-family: var(--tme-font-body);
  font-size: 12px;
  color: var(--tme-secondary-grey);
  letter-spacing: 0.5px;
  margin: 0;
}

/* Card tags — P009-T061 Fix 2 */
.tme-homepage-eval-card__tags {
  font-family: var(--tme-font-body);
  font-size: 12px;
  color: var(--tme-secondary-grey);
  letter-spacing: 0.5px;
  margin: 0;
  margin-top: auto;
  padding-top: 8px;
}

/* Verdict badge positioning inside homepage card — badge is first element */
.tme-homepage-eval-card__link .tme-verdict-outcome-badge {
  align-self: flex-start;
  margin-bottom: 4px;
}

/* ============================================================
   EXISTING RULE EDIT — .wp-block-post-title a font-weight
   Drew M4: change font-weight from 400 to 600.
   This rule overrides Taylor's existing rule. IBM Plex Serif 600
   is already loaded — no new font weight needed.
   ============================================================ */
.wp-block-post-title a {
  font-weight: 600;
}

/* ============================================================
   MOBILE RESPONSIVE ADDITIONS
   ============================================================ */

@media (max-width: 768px) {
  .tme-trust-bar {
    padding: 16px 24px;
  }

  .tme-homepage-subscribe {
    padding: 48px 24px;
  }

  .tme-homepage-section-header {
    padding-top: 40px;
  }

  /* Homepage eval grid: 1 column on mobile (<768px) */
  .tme-homepage-eval-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tme-homepage-evaluations-section {
    padding: 0 16px;
  }
}
