/* =========================================================
   ZenoPeps Blog — shared stylesheet
   Edit the CSS variables below to re-theme the entire site.
   ========================================================= */

:root {
  --ink: #0f172a;        /* main text */
  --ink-soft: #475569;   /* secondary text */
  --muted: #64748b;      /* tertiary text */
  --bg: #ffffff;         /* page background */
  --bg-soft: #f8fafc;    /* section background */
  --line: #e2e8f0;       /* borders/dividers */
  --accent: #0d9488;     /* teal accent — buttons, links */
  --accent-dark: #0f766e;
  --accent-soft: #ccfbf1;
  --radius: 12px;
  --max-width: 1120px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* Buttons inside the nav must keep their own text color —
   otherwise the ".nav-links a" rule above (higher specificity
   than ".btn-primary" alone) overrides it and the button text
   becomes hard to read. */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #fff;
}

.nav-links a.btn-outline,
.nav-links a.btn-outline:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  background: radial-gradient(circle at 15% 0%, var(--accent-soft), transparent 55%),
              radial-gradient(circle at 100% 20%, #e0f2fe, transparent 45%),
              var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 24px 72px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 12px; letter-spacing: -0.01em; }
.section-title p { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ---------- Cards / grid ---------- */

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}

.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Blog list ---------- */

.post-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }

.post-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.post-card h3 { color: var(--ink); margin: 0 0 8px; font-size: 1.15rem; line-height: 1.35; }
.post-card p { color: var(--ink-soft); margin: 0 0 14px; font-size: 0.95rem; }
.post-card .read-more { color: var(--accent-dark); font-weight: 600; font-size: 0.9rem; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(135deg, var(--ink), #1e293b);
  color: #fff;
  border-radius: 20px;
  padding: 52px;
  text-align: center;
}

.cta-banner h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-banner p { color: #cbd5e1; max-width: 520px; margin: 0 auto 26px; }

.cta-banner .btn-primary {
  background: var(--accent);
}

/* In-article CTA box */
.article-cta {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 40px 0;
}

.article-cta p { margin: 0 0 14px; }
.article-cta strong { display: block; margin-bottom: 6px; font-size: 1.05rem; }

/* ---------- Article ---------- */

.article-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 24px;
  text-align: center;
}

.article-header .post-tag { margin-bottom: 18px; }
.article-header h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 16px; }
.article-header .meta { color: var(--muted); font-size: 0.9rem; }

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 72px;
  font-size: 1.05rem;
}

.article-body h2 { font-size: 1.4rem; margin: 44px 0 16px; letter-spacing: -0.01em; }
.article-body h3 { font-size: 1.15rem; margin: 32px 0 12px; }
.article-body p { margin: 0 0 18px; color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; color: var(--ink); }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  margin: 24px 0;
  padding: 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}

.disclaimer-box {
  margin-top: 44px;
  padding: 18px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Prominent callout for regulatory-status notes (e.g. approved-drug or
   investigational-drug status) — visually distinct from the standard
   gray disclaimer box so it can't be skimmed past. */
.regulatory-note {
  margin: 28px 0 40px;
  padding: 18px 22px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #c2410c;
  border-radius: var(--radius);
  color: #7c2d12;
  font-size: 0.92rem;
}

.regulatory-note strong { display: block; margin-bottom: 6px; font-size: 1rem; }

.checklist { list-style: none; padding-left: 0; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  border: 2px solid var(--accent);
  border-radius: 4px;
}

/* ---------- Simple page (about/contact/legal) ---------- */

.page-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 8px;
  text-align: center;
}

.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); margin: 0 0 14px; }
.page-header p { color: var(--ink-soft); }

.page-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 72px;
}

.page-body h2 { font-size: 1.25rem; margin: 36px 0 14px; }
.page-body p { margin: 0 0 16px; color: var(--ink); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--ink-soft); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--accent-dark); }

.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 340px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Mobile nav ---------- */

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links .btn { width: 100%; padding: 12px 0; }
  .nav-links .btn { width: fit-content; margin-top: 10px; }
}
