/*
Theme Name: Peptide Clinic
Theme URI: https://peptideclinic.us/
Text Domain: peptide-clinic
*/

/* =========================================================
   PEPTIDE CLINIC — CLINICAL EDITORIAL
   A serious, authoritative aesthetic for a peptide-focused clinic.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter+Tight:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Palette: warm paper, deep ink, oxidized copper accent */
  --paper: #f4f0e8;
  --paper-deep: #ebe5d8;
  --paper-soft: #f9f6ef;
  --ink: #1a1a1a;
  --ink-soft: #2b2a28;
  --ink-muted: #5a564e;
  --rule: #c9c2b2;
  --rule-soft: #d9d3c3;
  --accent: #8c3b2e;      /* oxidized red / dried iodine */
  --accent-deep: #5f2820;
  --moss: #4a5a3e;         /* secondary, for evidence/nature cues */
  --gold: #b89355;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-w: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ----- Typography ----- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 { font-size: clamp(2.75rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
h4 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { max-width: 62ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ink-muted);
}

.serif-italic { font-family: var(--font-display); font-style: italic; }

/* ----- Layout helpers ----- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
}

.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.section--ink {
  background: var(--ink);
  color: var(--paper);
}
.section--ink .eyebrow { color: var(--paper-deep); }
.section--ink .eyebrow::before { background: var(--paper-deep); }

.section--accent {
  background: var(--accent);
  color: var(--paper);
}

.section--paper-deep { background: var(--paper-deep); }

.rule {
  height: 1px;
  background: var(--rule);
  border: none;
  margin: 0;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(10px);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo__mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo__mark::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 1.5px;
  background: var(--ink);
}
.logo__mark::after {
  content: '';
  position: absolute;
  width: 1.5px;
  height: 14px;
  background: var(--ink);
}

.logo__small {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-top: 2px;
  font-weight: 400;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav__links a {
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--accent); }
.nav__links a.active { color: var(--accent); }
.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent);
}

.nav__cta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.7rem 1.3rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  transition: all 0.2s;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.nav__cta:hover { background: var(--accent); border-color: var(--accent); }

.nav__burger { display: none; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.95rem 1.75rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.02em;
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--on-dark { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--on-dark:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

.btn::after {
  content: '→';
  font-family: var(--font-display);
  transition: transform 0.25s;
}
.btn:hover::after { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: all 0.2s;
}
.link-arrow:hover { color: var(--accent); gap: 0.7rem; }

/* =========================================================
   HERO (Homepage)
   ========================================================= */
.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  padding: 4rem 0 6rem;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4rem;
  align-items: end;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.hero__meta {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  font-size: clamp(3rem, 8.5vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 44ch;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__side {
  border-left: 1px solid var(--rule);
  padding-left: 2.5rem;
  padding-bottom: 1rem;
}

.hero__quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.3;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.hero__cite {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Ornamental circle */
.hero__ornament {
  position: absolute;
  right: -6rem;
  top: 20%;
  width: 420px;
  height: 420px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
}
.hero__ornament::before {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px solid var(--rule-soft);
  border-radius: 50%;
}
.hero__ornament::after {
  content: '';
  position: absolute;
  inset: 60px;
  border: 1px dashed var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: rotate 80s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }

@media (max-width: 900px) { .hero__ornament { display: none; } }

/* =========================================================
   POSITIONING / VALUE PROPS
   ========================================================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.pillar {
  padding: 3rem 2rem;
  border-right: 1px solid var(--rule);
  position: relative;
}
.pillar:last-child { border-right: none; }

.pillar__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
}

.pillar h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.pillar p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--rule); }
  .pillar:last-child { border-bottom: none; }
}

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.section__head {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: end;
}
@media (max-width: 900px) {
  .section__head { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2.5rem; }
}

.section__head h2 { letter-spacing: -0.025em; }
.section__head h2 em { font-style: italic; color: var(--accent); font-weight: 300; }

.section__lede {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

/* =========================================================
   GOALS GRID (Problem-first entry)
   ========================================================= */
.goals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.goal {
  padding: 2.5rem 1.75rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  position: relative;
}
.goal:nth-child(4n) { border-right: none; }
.goal:hover { background: var(--paper-soft); }
.goal:hover .goal__arrow { transform: translate(4px, -4px); }

.goal__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.goal h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.goal p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: auto;
}

.goal__arrow {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  transition: transform 0.25s;
}

@media (max-width: 900px) {
  .goals { grid-template-columns: repeat(2, 1fr); }
  .goal { border-right: 1px solid var(--rule) !important; }
  .goal:nth-child(2n) { border-right: none !important; }
}
@media (max-width: 500px) {
  .goals { grid-template-columns: 1fr; }
  .goal { border-right: none !important; }
}

/* =========================================================
   FEATURED PEPTIDES TABLE
   ========================================================= */
.peptide-table {
  width: 100%;
  border-top: 1px solid var(--ink);
  border-collapse: collapse;
}

.peptide-table thead tr {
  border-bottom: 1px solid var(--rule);
}

.peptide-table th {
  text-align: left;
  padding: 1rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.peptide-table td {
  padding: 1.75rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.peptide-table tr { transition: background 0.2s; }
.peptide-table tbody tr:hover { background: var(--paper-soft); }

.peptide-table .peptide-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.peptide-table .peptide-alt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}

.peptide-table .peptide-desc {
  color: var(--ink-muted);
  font-size: 0.92rem;
  max-width: 40ch;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--rule);
  color: var(--ink-muted);
  white-space: nowrap;
}
.tag--accent { border-color: var(--accent); color: var(--accent); }
.tag--moss { border-color: var(--moss); color: var(--moss); }
.tag--filled { background: var(--ink); color: var(--paper); border-color: var(--ink); }

@media (max-width: 700px) {
  .peptide-table thead { display: none; }
  .peptide-table td { display: block; border-bottom: none; padding: 0.3rem 0; }
  .peptide-table tr { display: block; border-bottom: 1px solid var(--rule); padding: 1.5rem 0; }
}

/* =========================================================
   PROCESS STEPS
   ========================================================= */
.process {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  counter-reset: step;
}
.process::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
}

.process__step {
  padding: 0 1rem;
  counter-increment: step;
  position: relative;
}

.process__step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.process__step h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.process__step p {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .process { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
  .process::before { display: none; }
}

/* =========================================================
   EDUCATION / ARTICLES
   ========================================================= */
.articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article {
  border-top: 1px solid var(--ink);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.article__cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.article h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.article p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.article__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
}

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

/* =========================================================
   BIG CALLOUT / CTA SECTION
   ========================================================= */
.callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) {
  .callout { grid-template-columns: 1fr; gap: 2rem; }
}

.callout h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}
.callout h2 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

.callout p {
  opacity: 0.8;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer__brand h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer__brand p {
  opacity: 0.7;
  max-width: 38ch;
  font-size: 0.95rem;
}

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0.7;
  font-weight: 500;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__col a {
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.footer__col a:hover { opacity: 1; color: var(--gold); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   PAGE HEADER (interior pages)
   ========================================================= */
.page-head {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--rule);
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}
.breadcrumbs a { color: var(--ink-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 0.5rem; opacity: 0.5; }

.page-head__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: end;
}
@media (max-width: 900px) { .page-head__grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.page-head h1 {
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.page-head h1 em { font-style: italic; color: var(--accent); font-weight: 300; }

.page-head__lede {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* =========================================================
   LONG-FORM PROSE
   ========================================================= */
.prose {
  max-width: 72ch;
  margin: 0 auto;
}

.prose h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: none;
}

.prose ul, .prose ol {
  margin: 0 0 1.5rem 1.25rem;
  color: var(--ink-soft);
}
.prose li { margin-bottom: 0.5rem; line-height: 1.6; }

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
}

.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.25;
  font-style: italic;
  letter-spacing: -0.01em;
  padding: 3rem 0;
  margin: 3rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}

/* =========================================================
   PROGRAM CARDS
   ========================================================= */
.programs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.program {
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s;
}
.program:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.program__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.program h3 {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.program__desc {
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.program__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.75rem;
}
.program__spec-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 0.3rem;
}
.program__spec-val { font-size: 0.95rem; font-weight: 500; }

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

/* =========================================================
   FORMS
   ========================================================= */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 720px;
}

.form__field { display: flex; flex-direction: column; }
.form__field--full { grid-column: 1 / -1; }

.form label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.form input, .form select, .form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  color: var(--ink);
  transition: border 0.2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form textarea { resize: vertical; min-height: 120px; }

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

/* =========================================================
   TWO-COL INFO SPLIT (for process, trust page)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--rule);
}
.split:last-of-type { border-bottom: none; }

.split__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.split h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.split p {
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 60ch;
  margin-bottom: 1rem;
}
.split ul { margin-left: 1.1rem; color: var(--ink-soft); }
.split ul li { margin-bottom: 0.4rem; line-height: 1.55; }

@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 1rem; } }

/* =========================================================
   PEPTIDE PROFILE PAGE
   ========================================================= */
.peptide-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--rule);
}

.peptide-hero__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: end;
}
@media (max-width: 900px) { .peptide-hero__grid { grid-template-columns: 1fr; } }

.peptide-hero__aka {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.peptide-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.peptide-hero__summary {
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.peptide-stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-left: 1px solid var(--rule);
  padding-left: 2rem;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.stat__val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

/* =========================================================
   UTILS
   ========================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }

.text-muted { color: var(--ink-muted); }
.text-accent { color: var(--accent); }

/* Scroll reveal (optional) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.reveal.d1 { animation-delay: 0.1s; }
.reveal.d2 { animation-delay: 0.2s; }
.reveal.d3 { animation-delay: 0.3s; }
.reveal.d4 { animation-delay: 0.4s; }

/* Sticky sub-nav for peptide library */
.sub-nav {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 0;
  position: sticky;
  top: 64px;
  z-index: 50;
}
.sub-nav__inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sub-nav a { white-space: nowrap; color: var(--ink-muted); }
.sub-nav a:hover, .sub-nav a.active { color: var(--accent); }


/* WordPress helpers */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
.current-menu-item > a,
.current_page_item > a,
.current-menu-ancestor > a { color: var(--accent); }
.page-content > *:first-child { margin-top: 0; }
.page-content > *:last-child { margin-bottom: 0; }
