/* ============================================================
   PNEI CERTIFICATION — Precision Naturalism Design System
   Brand source: peptidecertified.org
   ============================================================ */

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

/* ── TOKENS ── */
:root {
  --bg:          #f7f8f9;
  --parchment:   #f6f3ec;
  --border:      #efeae0;
  --navy:        #16243a;
  --text:        #222222;
  --muted:       #5f5e5a;
  --stone:       #888780;
  --teal:        #3f7d74;
  --teal-dark:   #2e5e57;
  --gold:        #c2a155;
  --gold-dark:   #9a7b3f;
  --red:         #b03a2e;

  --font-display: 'Spectral', Georgia, serif;
  --font-body:    Georgia, 'Times New Roman', serif;
  --font-ui:      'Inter', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { color: var(--text); font-size: 1.0625rem; }

.label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--stone);
}

/* ── LAYOUT ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 2rem; }
.container--wide   { max-width: 1320px; margin: 0 auto; padding: 0 2rem; }

/* ── GOLD RULE ── */
.gold-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1rem 0;
}
.gold-rule--center { margin: 1rem auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.875rem 2.25rem;
  border: none;
  cursor: pointer;
  transition: all 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--teal);
  color: var(--parchment);
}
.btn--primary:hover { background: var(--teal-dark); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--parchment); }

.btn--gold {
  background: var(--gold);
  color: var(--navy);
}
.btn--gold:hover { background: var(--gold-dark); color: var(--parchment); }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 249, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.nav__logo span {
  font-family: var(--font-ui);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: block;
  margin-top: -2px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav__links a {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 160ms;
}
.nav__links a:hover { color: var(--navy); }
.nav__cta { margin-left: 1.5rem; }

/* ── HERO ── */
.hero {
  padding: 7rem 0 6rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(194,161,85,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero__eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.hero__title {
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: italic;
  color: var(--teal);
}
.hero__body {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero__visual {
  position: relative;
}
.hero__visual-card {
  background: var(--parchment);
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
}
.hero__visual-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.hero__stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.hero__stat {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.hero__stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hero__stat-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--stone);
  letter-spacing: 0.05em;
}

/* ── SECTION BASICS ── */
section { padding: 6rem 0; }
.section--parchment { background: var(--parchment); }
.section--navy {
  background: var(--navy);
  color: var(--parchment);
}
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: var(--parchment); }
.section--navy p { color: rgba(246,243,236,0.75); }
.section--navy .label { color: var(--gold); }
.section--navy .gold-rule { background: var(--gold); }

.section__header { margin-bottom: 4rem; }
.section__header--center { text-align: center; }
.section__header--center .gold-rule { margin: 1rem auto; }

/* ── AXIS GRID ── */
.axis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.axis-card {
  background: var(--bg);
  padding: 2rem;
  transition: background 200ms;
}
.axis-card:hover { background: var(--parchment); }
.axis-card__number {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.axis-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.axis-card__body {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── PEPTIDE CARDS ── */
.peptide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.peptide-card {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  padding: 2rem;
  transition: transform 200ms var(--ease-out), box-shadow 200ms;
}
.peptide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(22,36,58,0.08);
}
.peptide-card__name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.peptide-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.peptide-card__body {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.peptide-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--stone);
}

/* ── PULL QUOTE ── */
.pull-quote {
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem;
  background: var(--parchment);
  margin: 2rem 0;
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
}
.pull-quote cite {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 0.75rem;
  font-style: normal;
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--navy);
  padding: 5rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--parchment); margin-bottom: 1rem; }
.cta-band p { color: rgba(246,243,236,0.7); margin-bottom: 2.5rem; font-size: 1.125rem; }

/* ── ARTICLE GRID ── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 200ms var(--ease-out), box-shadow 200ms;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(22,36,58,0.08);
}
.article-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--parchment);
}
.article-card__body { padding: 1.5rem; }
.article-card__cat {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.article-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.article-card__excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  padding: 4rem 0 2.5rem;
  color: rgba(246,243,236,0.6);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--parchment);
  margin-bottom: 0.25rem;
}
.footer__brand-sub {
  font-family: var(--font-ui);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer__desc {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer__col-title {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer__links a {
  font-size: 0.875rem;
  color: rgba(246,243,236,0.55);
  transition: color 160ms;
}
.footer__links a:hover { color: var(--parchment); }
.footer__bottom {
  border-top: 1px solid rgba(246,243,236,0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: rgba(246,243,236,0.35);
}
.footer__disclaimer {
  max-width: 540px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(246,243,236,0.3);
  margin-top: 1rem;
}

/* ── ABOUT SECTION ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.about-portrait {
  position: relative;
}
.about-portrait::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold);
  z-index: -1;
}
.about-portrait img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
}
.credential-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.credential-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.credential-list li::before {
  content: '—';
  color: var(--gold);
  font-family: var(--font-mono);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── ANIMATIONS ── */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding: 4rem 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  section { padding: 4rem 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stat-grid { grid-template-columns: 1fr 1fr; }
}
