/*
Theme Name: HairLossJourney
Theme URI: https://hairlossjourney.com
Description: Custom theme for HairLossJourney.com — evidence-based hair loss affiliate site.
Version: 1.0.0
Author: Alex
*/

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

:root {
  color-scheme: only light;
  --bg:        #F9F7F4;
  --surface:   #FFFFFF;
  --ink:       #1C1A18;
  --ink-mid:   #4A4540;
  --ink-light: #7A7570;
  --border:    #E8E4DF;
  --sage:      #4A7C6F;
  --sage-soft: #EAF3F0;
  --amber:     #B85C1A;
  --amber-soft:#FDF0E8;
  --slate:     #3A4F6B;
  --slate-soft:#EBF0F7;
  --red:       #C0001A;
  --red-soft:  #FDEDF0;
  --gold:      #8B6914;
  --gold-soft: #FBF5E4;
}

html,body { background: #F9F7F4 !important; color: #1C1A18 !important; }
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  font-size: 15px;
}

a { color: var(--sage); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ── NAV ── */
nav.site-nav {
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink) !important;
  letter-spacing: -.01em;
  text-decoration: none;
}
.nav-logo span { color: var(--sage) !important; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mid) !important;
  text-decoration: none;
  letter-spacing: .01em;
}
.nav-links a:hover { color: var(--sage) !important; }
.nav-cta {
  background: var(--sage) !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
}

/* ── HERO ── */
.hero {
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--border);
  padding: 72px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: center;
}
@media(max-width:700px){ .hero { grid-template-columns: 1fr; padding: 48px 20px; } }

.hero-eyebrow {
  font-family: 'Fira Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage) !important;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(32px,5vw,50px);
  line-height: 1.15;
  font-weight: 600;
  color: var(--ink) !important;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero h1 em { font-style: italic; color: var(--sage) !important; }
.hero-sub {
  font-size: 16px;
  color: var(--ink-mid) !important;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 420px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--sage) !important;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: inline-block;
  text-decoration: none;
}
.btn-secondary {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: inline-block;
  text-decoration: none;
}

/* Journey Card */
.journey-card {
  background: var(--surface) !important;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.journey-title {
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink) !important;
  margin-bottom: 16px;
}
.journey-step { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
  font-family: 'Fira Mono', monospace;
}
.step-dot.done   { background: var(--sage) !important;   color: #fff !important; }
.step-dot.active { background: var(--amber) !important;  color: #fff !important; }
.step-dot.next   { background: var(--border) !important; color: var(--ink-light) !important; }
.step-text { font-size: 13px; color: var(--ink-mid) !important; line-height: 1.5; }
.step-text strong { display: block; color: var(--ink) !important; font-size: 13px; margin-bottom: 1px; }

/* ── CONTAINER ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── SECTION HEADER ── */
.sec-header { padding: 56px 0 32px; }
.sec-eyebrow {
  font-family: 'Fira Mono', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sage) !important;
  margin-bottom: 8px;
}
.sec-title {
  font-family: 'Lora', serif;
  font-size: clamp(22px,4vw,32px);
  font-weight: 600;
  color: var(--ink) !important;
  line-height: 1.25;
  letter-spacing: -.01em;
}

/* ── TOPIC GRID ── */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-bottom: 56px;
}
@media(max-width:700px){ .topic-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:420px){ .topic-grid { grid-template-columns: 1fr; } }

.topic-card {
  background: var(--surface) !important;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  transition: box-shadow .15s;
}
.topic-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); text-decoration: none; }
.topic-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 12px;
}
.topic-icon.sage  { background: var(--sage-soft) !important; }
.topic-icon.amber { background: var(--amber-soft) !important; }
.topic-icon.slate { background: var(--slate-soft) !important; }
.topic-icon.gold  { background: var(--gold-soft) !important; }
.topic-icon.red   { background: var(--red-soft) !important; }
.topic-label { font-size: 13px; font-weight: 700; color: var(--ink) !important; margin-bottom: 4px; }
.topic-desc  { font-size: 12px; color: var(--ink-light) !important; line-height: 1.5; }

/* ── POST GRID (Home) ── */
.posts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}
@media(max-width:700px){ .posts-grid { grid-template-columns: 1fr; } }

.post-card-main {
  background: var(--surface) !important;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: box-shadow .15s;
}
.post-card-main:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); text-decoration: none; }
.post-card-img {
  height: 200px;
  background: linear-gradient(135deg, #4A7C6F 0%, #2D5A50 100%) !important;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.post-card-body { padding: 24px; }

.post-card-side { display: flex; flex-direction: column; gap: 14px; }
.post-card-small {
  background: var(--surface) !important;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  display: block;
  transition: box-shadow .15s;
}
.post-card-small:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); text-decoration: none; }

.article-tag {
  font-family: 'Fira Mono', monospace;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sage) !important;
  margin-bottom: 8px;
  display: block;
}
.article-title-card {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink) !important;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.article-title-small {
  font-family: 'Lora', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink) !important;
  line-height: 1.35;
  margin-bottom: 6px;
}
.article-excerpt { font-size: 13px; color: var(--ink-mid) !important; line-height: 1.65; }
.article-excerpt-small { font-size: 12px; color: var(--ink-mid) !important; line-height: 1.6; }
.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  font-size: 11px;
  color: var(--ink-light) !important;
  font-family: 'Fira Mono', monospace;
}

/* ── COMPARE TABLE ── */
.compare-section {
  background: var(--surface) !important;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 56px;
  overflow-x: auto;
}
.compare-title {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink) !important;
  margin-bottom: 4px;
}
.compare-sub { font-size: 13px; color: var(--ink-light) !important; margin-bottom: 24px; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-light) !important;
  border-bottom: 2px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}
.compare-table td {
  font-size: 13px;
  color: var(--ink-mid) !important;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .drug-name { font-weight: 700; color: var(--ink) !important; }
.badge-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 9px;
  font-family: 'Fira Mono', monospace;
}
.badge-pill.best { background: var(--sage-soft) !important;  color: var(--sage) !important; }
.badge-pill.high { background: var(--amber-soft) !important; color: var(--amber) !important; }
.badge-pill.mid  { background: var(--gold-soft) !important;  color: var(--gold) !important; }
.badge-pill.low  { background: var(--slate-soft) !important; color: var(--slate) !important; }

/* ── ALEX BANNER ── */
.alex-banner {
  background: linear-gradient(135deg, #EAF3F0 0%, #F0EDF9 100%) !important;
  border: 1px solid #C8DDD9;
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 56px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
@media(max-width:600px){ .alex-banner { flex-direction: column; } }
.alex-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sage) !important;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.alex-quote-mark {
  font-family: 'Lora', serif;
  font-size: 48px;
  color: var(--sage) !important;
  line-height: .8;
  margin-bottom: 8px;
  opacity: .4;
}
.alex-text {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink) !important;
  line-height: 1.65;
  margin-bottom: 10px;
}
.alex-sig { font-size: 12px; color: var(--ink-light) !important; font-family: 'Fira Mono', monospace; }

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--sage) !important;
  border-radius: 14px;
  padding: 40px 32px;
  margin-bottom: 56px;
  text-align: center;
}
.newsletter h2 {
  font-family: 'Lora', serif;
  font-size: 24px;
  font-weight: 600;
  color: #fff !important;
  margin-bottom: 8px;
}
.newsletter p { font-size: 14px; color: rgba(255,255,255,.85) !important; margin-bottom: 24px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 11px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}
.newsletter-form button {
  background: #B85C1A !important;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

/* ── FOOTER ── */
footer.site-footer {
  background: var(--ink) !important;
  color: rgba(255,255,255,.6) !important;
  padding: 32px 24px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}
footer.site-footer .footer-logo {
  font-family: 'Lora', serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff !important;
  margin-bottom: 8px;
  display: block;
}
footer.site-footer span { color: var(--sage) !important; }

/* ── AFFILIATE DISCLOSURE ── */
.disclosure {
  background: var(--amber-soft) !important;
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  padding: 10px 16px;
  margin-bottom: 32px;
  font-size: 12px;
  color: var(--amber) !important;
  font-family: 'Fira Mono', monospace;
}

/* ── SINGLE ARTICLE ── */
.article-header {
  max-width: 760px;
  margin: 48px auto 32px;
  padding: 0 24px;
}
.article-header .article-tag { margin-bottom: 12px; }
.article-header h1 {
  font-family: 'Lora', serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.article-byline {
  font-size: 12px;
  color: var(--ink-light);
  font-family: 'Fira Mono', monospace;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.article-body p {
  margin-bottom: 1.4em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-mid);
}
.article-body h2 {
  font-family: 'Lora', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin: 2em 0 .6em;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.article-body h3 {
  font-family: 'Lora', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin: 1.6em 0 .5em;
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}
.article-body blockquote {
  background: var(--sage-soft);
  border-left: 3px solid var(--sage);
  border-radius: 0 8px 8px 0;
  padding: 12px 18px;
  margin: 1.5em 0;
  font-size: 13px;
  color: var(--ink-mid);
  font-family: 'Fira Mono', monospace;
  line-height: 1.6;
}
.article-body ul, .article-body ol {
  margin: 1em 0 1.4em 1.5em;
}
.article-body li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-mid);
  margin-bottom: .3em;
}
.article-body strong { color: var(--ink); }
.article-body a { color: var(--sage); }
.article-body a:hover { text-decoration: underline; }

/* Article tables */
.article-body table,
.article-body .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14px;
}
.article-body th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-light);
  border-bottom: 2px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  background: var(--bg);
}
.article-body td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-mid);
  vertical-align: top;
}
.article-body tr:last-child td { border-bottom: none; }
.article-body figure.wp-block-table { overflow-x: auto; margin: 1.5em 0; }

/* Disclaimer */
.disclaimer {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  font-size: 12px !important;
  color: var(--ink-light) !important;
  margin-top: 2em;
}

/* Related Articles */
.related-articles {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 48px;
}
.related-articles h2 {
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.related-articles ul { list-style: none; margin: 0; padding: 0; }
.related-articles li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.related-articles li:last-child { border-bottom: none; }
.related-articles a { color: var(--sage); font-weight: 500; }
.related-articles a:hover { text-decoration: underline; }

/* ── PAGE ── */
.page-body {
  max-width: 760px;
  margin: 48px auto 80px;
  padding: 0 24px;
}
.page-body h1 {
  font-family: 'Lora', serif;
  font-size: clamp(26px,4vw,38px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -.02em;
}
.page-body p   { font-size: 16px; line-height: 1.8; color: var(--ink-mid); margin-bottom: 1.4em; }
.page-body h2  { font-family: 'Lora', serif; font-size: 22px; color: var(--ink); margin: 1.8em 0 .6em; }

/* ── UTILITY ── */
hr { border: none; border-top: 1px solid var(--border); margin: 0; }
