/* Aevivo Longevity · Editorial design system v2 */

:root {
  --bg: #EFE8DA;
  --bg-warm: #E9E0CE;
  --paper: #F5EFE3;
  --ink: #2C2D27;
  --ink-soft: #54564E;
  --ink-mute: #8A887D;
  --line: #C9BFA8;
  --line-soft: #DDD4BE;
  --olive: #565A45;
  --olive-deep: #44483A;
  --olive-tint: rgba(86,90,69,0.08);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }
.container-form { max-width: 720px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(46px, 6.4vw, 88px); line-height: 1.02; }
h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }
h4 { font-size: 19px; line-height: 1.3; }
em { font-style: italic; color: var(--olive); font-weight: 400; }

p { font-weight: 350; color: var(--ink-soft); }
.lede { font-size: 18px; line-height: 1.7; color: var(--ink-soft); font-weight: 350; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 32px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--olive);
  cursor: pointer;
  transition: all .25s ease;
  background: transparent;
  color: var(--olive);
  border-radius: 999px;
  line-height: 1;
  text-decoration: none;
}
.btn-fill {
  background: linear-gradient(180deg, #797D62 0%, #5A5E45 48%, #3F4231 100%);
  color: #F2EEE2;
  border-color: #3F4231;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 1px 2px rgba(44,45,39,0.18);
}
.btn-fill:hover {
  background: linear-gradient(180deg, #5A5E45 0%, #424632 50%, #2F3225 100%);
  border-color: #2F3225;
}
.btn-ghost:hover { background: var(--olive-tint); }
.btn-sm { padding: 10px 22px; font-size: 9.5px; letter-spacing: 2.2px; }
.btn-block { display: flex; width: 100%; padding: 16px 32px; }

/* RUO bar */
.ruo-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 110;
  background: var(--ink);
  color: #F2EEE2;
  padding: 9px 20px;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  font-weight: 500;
}
.ruo-bar .ruo-main { color: #D6CCB0; }
.ruo-bar .ruo-sep { color: rgba(214,204,176,0.35); margin: 0 12px; }
.ruo-bar .ruo-sub { color: rgba(245,239,227,0.65); letter-spacing: .5px; text-transform: none; font-weight: 400; }
@media (max-width: 700px) { .ruo-bar .ruo-sep, .ruo-bar .ruo-sub { display: none; } }

/* Nav */
.nav {
  position: fixed; top: 36px; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled, .nav.solid {
  background: rgba(239,232,218,0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  max-width: none; margin: 0;
  padding: 18px clamp(28px, 5vw, 80px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.nav-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px;
  border: 1.2px solid var(--ink);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--ink); line-height: 1; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--sans); font-size: 15px; letter-spacing: 4.5px; font-weight: 500; color: var(--ink); }
.brand-name .clinical { color: var(--olive); margin-left: 6px; }
.brand-tagline { font-family: var(--sans); font-size: 8px; letter-spacing: 3px; color: var(--ink-soft); margin-top: 5px; font-weight: 500; }

.nav-links { display: flex; gap: 32px; justify-content: center; }
.nav-links a {
  font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase;
  font-weight: 500; color: var(--ink-soft);
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; gap: 14px; justify-content: flex-end; align-items: center; }
.nav-right a.text-link { font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); }
.nav-right a.text-link:hover { color: var(--ink); }
.wa-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.wa-btn:hover { background: #128C7E; }
.wa-btn svg { width: 16px; height: 16px; fill: #FFFFFF; }
@media (max-width: 1100px) {
  .nav-links, .nav-right a.text-link { display: none; }
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-right { grid-column: 2; }
}

/* Page hero (smaller than home hero) */
.page-hero {
  padding: 180px clamp(32px,5vw,80px) 80px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-hero .container { max-width: 1100px; }
.page-hero .eyebrow { display: block; margin-bottom: 18px; }
.page-hero h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.05;
  margin-bottom: 22px;
}
.page-hero h1 em { color: var(--olive); }
.page-hero .lede { max-width: 720px; }

/* Sections */
section { padding: 100px 0; position: relative; }
@media (max-width: 700px) { section { padding: 72px 0; } }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .eyebrow { display: block; margin-bottom: 22px; }
.section-head h2 { margin-bottom: 22px; }

/* Forms */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(28px, 4vw, 48px);
  max-width: 720px;
  margin: 0 auto;
}
.form-row { margin-bottom: 18px; }
.form-row.two {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 600px) { .form-row.two { grid-template-columns: 1fr; } }
.form-row.three {
  display: grid; grid-template-columns: 140px 1fr 1fr; gap: 12px;
}
@media (max-width: 600px) { .form-row.three { grid-template-columns: 1fr; } }
.form-label {
  display: block;
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  font-family: var(--sans); font-size: 14px;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-mute); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--olive); }
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-help {
  font-size: 12px; color: var(--ink-mute);
  margin-top: 6px; line-height: 1.5;
}
.form-checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 13px; line-height: 1.55; color: var(--ink-soft); font-weight: 350;
  cursor: pointer;
}
.form-checkbox-row input[type="checkbox"] {
  margin-top: 3px; width: 16px; height: 16px;
  accent-color: var(--olive); flex-shrink: 0;
}
.form-tag-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px;
}
.form-tag {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px; color: var(--ink-soft); font-weight: 400;
  transition: all .2s;
}
.form-tag:hover { border-color: var(--olive); color: var(--ink); }
.form-tag input[type="checkbox"] {
  accent-color: var(--olive);
}
.form-tag input[type="checkbox"]:checked + span { color: var(--ink); font-weight: 500; }

/* Photo break */
.photo-break {
  width: 100%;
  height: 60vh;
  min-height: 380px;
  max-height: 680px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: end;
}
.photo-break::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,45,39,0.55) 0%, rgba(44,45,39,0.05) 50%, rgba(44,45,39,0) 100%);
  pointer-events: none;
}
.photo-break-caption { position: relative; z-index: 2; color: #F5EFE3; padding: 60px 0; }
.photo-break-caption .eyebrow { color: rgba(245,239,227,0.75); }
.photo-break-caption h3 {
  color: #F5EFE3;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  max-width: 720px;
  margin-top: 18px;
}
.photo-break-caption h3 em { color: #D6CCB0; font-style: italic; }

/* Footer */
footer {
  background: var(--ink); color: rgba(245,239,227,0.7);
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-mark {
  width: 28px; height: 28px;
  border: 1px solid #F5EFE3;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 16px; color: #F5EFE3; font-weight: 500;
}
.footer-brand-name { font-size: 14px; letter-spacing: 4px; text-transform: uppercase; color: #F5EFE3; font-weight: 500; }
.footer-brand-name .clinical { color: #D6CCB0; margin-left: 4px; }
.footer-mission { font-size: 13.5px; line-height: 1.7; max-width: 320px; }
.footer-col h5 { font-family: var(--sans); font-size: 10.5px; letter-spacing: 2.4px; text-transform: uppercase; color: #D6CCB0; margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; font-size: 13px; padding: 4px 0; }
.footer-col a:hover { color: #F5EFE3; }
.footer-disclaimer {
  border-top: 1px solid rgba(245,239,227,0.14);
  padding-top: 22px; margin-bottom: 18px;
  font-size: 11.5px; line-height: 1.75; color: rgba(245,239,227,0.55); max-width: 980px;
}
.footer-disclaimer .h {
  color: #D6CCB0; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  font-size: 10.5px; margin-bottom: 8px; display: block;
}
.footer-disclaimer p { margin-bottom: 8px; color: rgba(245,239,227,0.55); font-weight: 350; }
.footer-disclaimer p:last-child { margin-bottom: 0; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 11.5px; color: rgba(245,239,227,0.45);
}

/* Long-form prose pages (privacy / terms / compliance) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(26px, 2.8vw, 36px); margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: clamp(20px, 2.2vw, 26px); margin: 36px 0 14px; }
.prose p { font-size: 16px; line-height: 1.8; color: var(--ink-soft); margin-bottom: 16px; font-weight: 350; }
.prose ul, .prose ol { margin: 0 0 18px 26px; }
.prose li { font-size: 16px; line-height: 1.8; color: var(--ink-soft); margin-bottom: 8px; font-weight: 350; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--olive); border-bottom: 1px solid var(--olive); }
.prose .meta {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500; margin-bottom: 36px;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Compact divider */
.dv { height: 1px; background: var(--line); margin: 0; }

/* Pep card (re-used on catalog) */
.pep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .pep-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pep-grid { grid-template-columns: 1fr; } }
.pep-card {
  background: var(--paper);
  display: flex; flex-direction: column;
  overflow: hidden; border-radius: 4px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pep-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(44,45,39,0.12); }
.pep-card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.pep-card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.pep-card-name {
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  color: var(--ink); line-height: 1.15; margin-bottom: 6px;
}
.pep-card-name em { color: var(--olive); font-style: italic; }
.pep-card-spec { font-size: 11.5px; color: var(--ink-mute); margin-bottom: 12px; letter-spacing: 0.2px; }
.pep-card-desc { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); font-weight: 350; margin-bottom: 18px; flex: 1; }
.pep-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--line-soft);
}
.pep-card-price { font-family: var(--serif); font-size: 13px; color: var(--olive); line-height: 1.3; font-style: italic; }
.pep-card-link {
  font-size: 9.5px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--olive); font-weight: 600;
  border-bottom: 1px solid var(--olive); padding-bottom: 3px;
}

.pep-cat-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px; margin-bottom: 32px;
}
.pep-cat-head h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; line-height: 1.15; }
.pep-cat-head .pep-cat-num {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--olive); font-weight: 600; flex-shrink: 0;
}
