/* ============================================
   Executive Resource Landing Pages
   Shared stylesheet for supplements, eating,
   fitness, and peptides guides
   ============================================ */

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

:root {
  --navy:      #02111E;
  --navy-2:    #071E3C;
  --navy-3:    #0A1628;
  --navy-4:    #0F2040;
  --blue:      #74ACDA;
  --blue-lt:   #CEE4EF;
  --blue-dim:  rgba(116,172,218,.08);
  --blue-line: rgba(116,172,218,.20);
  --gold:      #c9a84c;
  --gold-lt:   #e2c47a;
  --gold-line: rgba(201,168,76,.20);
  --white:     #f0eee9;
  --off:       #a8adb8;
  --dim:       #4a5568;
  --line:      rgba(240,238,233,.06);
  --f-display: 'Bebas Neue', sans-serif;
  --f-serif:   'DM Serif Display', Georgia, serif;
  --f-body:    'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .028;
  pointer-events: none;
  z-index: 999;
}

/* ─────────────────────── NAV ─────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.5rem;
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(2,17,30,.92);
  backdrop-filter: blur(20px);
  border-color: var(--line);
}
.nav-logo {
  font-family: var(--f-display);
  font-size: 1.35rem;
  letter-spacing: .12em;
  color: var(--white);
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--f-body);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--off);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  color: var(--navy) !important;
  background: var(--blue);
  padding: .5rem 1.35rem;
  font-weight: 700 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--blue-lt) !important; }

/* ─────────────────────── MAIN LAYOUT ─────────────────────── */
.resource-page {
  padding-top: 64px;
  min-height: calc(100vh - 64px);
}

.resource-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Ambient glow */
.resource-container::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(116,172,218,.055) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ─────────────────────── LEFT INFO ─────────────────────── */
.resource-info { position: relative; z-index: 1; }

.resource-category {
  font-family: var(--f-body);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.resource-category::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: block;
}

.resource-title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.resource-title em {
  font-family: var(--f-serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gold);
  font-size: .85em;
}

.resource-subtitle {
  font-size: 1.05rem;
  color: var(--off);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

/* PDF Preview mockup */
.resource-preview { margin-bottom: 2.5rem; }
.preview-mockup {
  background: linear-gradient(180deg, var(--navy-4) 0%, var(--navy-3) 100%);
  border: 1px solid var(--gold-line);
  border-top: 3px solid var(--gold);
  padding: 2.25rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  max-width: 340px;
}
.preview-mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(201,168,76,.05) 100%);
  pointer-events: none;
}
.preview-label {
  font-family: var(--f-body);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
}
.preview-title {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: .8rem;
}
.preview-author {
  font-size: .68rem;
  color: var(--dim);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Bullets */
.resource-bullets {
  list-style: none;
  margin-bottom: 2.5rem;
}
.resource-bullets li {
  font-size: .95rem;
  color: var(--off);
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  line-height: 1.5;
}
.resource-bullets li::before {
  content: '→';
  color: var(--gold);
  flex-shrink: 0;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
}

/* Author block */
.resource-author {
  padding: 1.25rem;
  background: var(--navy-3);
  border-left: 2px solid var(--gold);
}
.author-line {
  font-size: .85rem;
  color: var(--white);
  margin-bottom: .35rem;
}
.author-desc {
  font-size: .78rem;
  color: var(--off);
  line-height: 1.55;
}

/* ─────────────────────── RIGHT FORM ─────────────────────── */
.resource-form-side {
  background: var(--navy-3);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  padding: 2.5rem 2rem;
  position: sticky;
  top: 100px;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.form-badge {
  display: inline-block;
  font-family: var(--f-body);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--blue);
  padding: .35rem .9rem;
  margin-bottom: 1.25rem;
}

.form-heading {
  font-family: var(--f-display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: .75rem;
}

.form-desc {
  font-size: .88rem;
  color: var(--off);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.resource-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

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

.form-field { display: flex; flex-direction: column; gap: .35rem; }

.form-field label {
  font-family: var(--f-body);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
}

.form-field input {
  width: 100%;
  background: var(--navy-2);
  border: 1px solid var(--blue-line);
  color: var(--white);
  font-family: var(--f-body);
  font-size: .95rem;
  padding: .85rem 1rem;
  outline: none;
  transition: border-color .2s, background .2s;
}
.form-field input:focus {
  border-color: var(--blue);
  background: var(--navy);
}
.form-field input::placeholder { color: var(--dim); }

.resource-submit {
  width: 100%;
  background: var(--blue);
  color: var(--navy);
  font-family: var(--f-body);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 1.1rem 1rem;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  margin-top: .5rem;
}
.resource-submit:hover {
  background: var(--blue-lt);
  transform: translateY(-2px);
}
.resource-submit:active { transform: translateY(0); }

.form-privacy {
  font-size: .7rem;
  color: var(--dim);
  text-align: center;
  margin-top: .5rem;
  line-height: 1.55;
}

/* ─────────────────────── TRUST STRIP ─────────────────────── */
.trust-strip {
  border-top: 1px solid var(--line);
  padding: 3rem 3rem;
  text-align: center;
  background: var(--navy-2);
  position: relative;
  z-index: 1;
}
.trust-eyebrow {
  font-family: var(--f-body);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}
.trust-eyebrow::before, .trust-eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--blue);
  display: block;
}
.trust-text {
  font-size: .9rem;
  color: var(--off);
  letter-spacing: .04em;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─────────────────────── FOOTER ─────────────────────── */
footer {
  position: relative;
  z-index: 1;
  background: var(--navy);
  border-top: 1px solid var(--line);
  padding: 2rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-brand span { color: var(--blue); }
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--f-body);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--blue); }
.footer-copy { font-size: .64rem; color: var(--dim); }

/* ─────────────────────── RESPONSIVE ─────────────────────── */
@media (max-width: 1024px) {
  nav { padding: 0 2rem; }
  .resource-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 2rem;
  }
  .resource-form-side { position: static; }
  .preview-mockup { max-width: 100%; }
}

@media (max-width: 768px) {
  nav { padding: 0 1.5rem; height: 56px; }
  .nav-links li:not(:last-child) { display: none; }
  .resource-page { padding-top: 56px; }
  .resource-container { padding: 2rem 1.25rem; }
  .resource-form-side { padding: 2rem 1.5rem; }
  .trust-strip { padding: 2.5rem 1.5rem; }
  footer { padding: 2rem 1.5rem; flex-direction: column; text-align: center; }
}

/* ─────────────────────── VARIANT: GOLD ACCENT ─────────────────────── */
body.gold-variant .resource-form-side { border-top-color: var(--gold); }
body.gold-variant .form-badge { background: var(--gold); }
body.gold-variant .form-field label { color: var(--gold); }
body.gold-variant .form-field input { border-color: var(--gold-line); }
body.gold-variant .form-field input:focus { border-color: var(--gold); }
body.gold-variant .resource-submit { background: var(--gold); }
body.gold-variant .resource-submit:hover { background: var(--gold-lt); }
body.gold-variant .trust-eyebrow { color: var(--gold); }
body.gold-variant .trust-eyebrow::before,
body.gold-variant .trust-eyebrow::after { background: var(--gold); }
body.gold-variant .footer-brand span { color: var(--gold); }
body.gold-variant .footer-links a:hover { color: var(--gold); }

/* Guide Cover Images */
.guide-cover {
  margin-bottom: 32px;
  text-align: center;
}

.guide-cover img {
  max-width: 280px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.cover-credit {
  margin-top: 16px;
  font-size: 14px;
  color: var(--off);
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .guide-cover img {
    max-width: 220px;
  }
}

/* Replace mockup with actual cover */
.resource-preview {
  margin: 32px 0;
  text-align: center;
}

.guide-cover-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .guide-cover-image {
    max-width: 320px;
  }
}
