/*
 * bonehealth.ca — style-v2.css
 * "Warm Clinical" aesthetic override
 * Loads after the inline styles in index.html — overrides specific elements
 */

/* ── Root overrides ─────────────────────────────────────────────────────── */
:root {
  --primary:       #6b8f71;   /* muted sage */
  --primary-light: #85a98b;
  --accent:        #eef2ee;   /* very light sage tint */
  --text:          #2c3e50;   /* dark slate */
  --muted:         #5d6d7e;
  --border:        #dde3dd;
  --bg:            #faf8f5;   /* warm white */
  --amber:         #c8922a;   /* CTA / highlight */
  --amber-light:   #f5e9d3;
  --white:         #faf8f5;
}

/* ── Typography ─────────────────────────────────────────────────────────── */
body {
  font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

a {
  color: var(--amber);
}
a:hover {
  color: #a5741e;
}

/* ── Nav — quieter, no green ────────────────────────────────────────────── */
nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}

.nav-logo {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
}
.nav-links a:hover {
  color: var(--amber);
  text-decoration: none;
}

/* ── Hero — quiet intro, not a pitch ────────────────────────────────────── */
.hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 40px 20px 36px;
  text-align: left;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}

.hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 0 20px;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.hero-nav a {
  font-size: 13px;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 3px;
  text-decoration: none;
  background: var(--white);
  transition: border-color 0.15s, color 0.15s;
}
.hero-nav a:hover {
  border-color: var(--amber);
  color: var(--amber);
  text-decoration: none;
}

/* ── Section titles ─────────────────────────────────────────────────────── */
.section-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 28px;
}

/* ── Featured card — subdued strip, not a card ──────────────────────────── */
.featured-card {
  background: var(--amber-light);
  border: 1px solid #e8cfa0;
  border-radius: 4px;
  padding: 24px 28px;
  margin-bottom: 40px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  box-shadow: none;
}

.featured-card h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.featured-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 14px;
}

.featured-card .featured-emoji {
  font-size: 40px;
  flex-shrink: 0;
  opacity: 0.75;
  margin-top: 2px;
}

/* ── CTA button — amber, no radius overkill ─────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  padding: 9px 20px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  letter-spacing: 0.01em;
}
.btn:hover {
  background: #a5741e;
  text-decoration: none;
  color: #fff;
}

/* ── Article cards — flat, no floating shadow ───────────────────────────── */
.article-card {
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  box-shadow: none;
  transition: border-color 0.15s;
}
.article-card:hover {
  box-shadow: none;
  border-color: var(--amber);
}

.card-tag {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 2px;
  font-size: 11px;
  padding: 2px 7px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.card-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
}
.card-title a {
  color: var(--text);
}
.card-title a:hover {
  color: var(--amber);
}

.card-read-more {
  color: var(--amber);
  font-size: 13px;
  font-weight: 600;
}

/* ── Topic grid — index-style, not dashboard ────────────────────────────── */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.topic-item {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 14px 12px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.15s;
}
.topic-item:hover {
  background: var(--amber-light);
  border-color: var(--amber);
  text-decoration: none;
}
.topic-item .topic-emoji {
  display: inline;
  font-size: 20px;
  flex-shrink: 0;
  margin-bottom: 0;
}

/* ── Comparison / data tables ───────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  margin: 1.5rem 0;
}
th {
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f5f3ef; }

/* ── Disclaimer ─────────────────────────────────────────────────────────── */
.disclaimer {
  background: var(--amber-light);
  border: 1px solid #ddb96a;
  border-radius: 3px;
  font-size: 13px;
  color: #6b4c1e;
  padding: 12px 16px;
  margin: 36px 0 0;
  font-family: 'Source Sans 3', system-ui, sans-serif;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  background: #f0ede8;
  border-top: 1px solid var(--border);
  margin-top: 56px;
}
.footer-inner {
  color: var(--muted);
  font-size: 13px;
}
.footer-links a {
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--amber);
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .hero { padding: 28px 16px; }
  .hero h1 { font-size: 20px; }
  .featured-card { flex-direction: column; gap: 12px; }
  .featured-card .featured-emoji { font-size: 32px; }
  .topic-item { font-size: 13px; }
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Responsive grid fixes ── */
.topic-grid {
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 900px)  { .topic-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px)  { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
