/* ============================================================
   Prime Axis Labs — Shared Stylesheet v2
   Brand: Royal Midnight #1E3A6B | Bone Cream #F0EAE0 | Gold #C9A84C
   Layout: simplepeptide.com-style e-commerce (announcement bar → sticky white header → dark 3-col footer)
   ============================================================ */

:root {
  --midnight:      #1E3A6B;
  --midnight-d:    #152c52;
  --midnight-dark: #0D1B2E;
  --midnight-l:    #2a4f8f;
  --cream:         #F0EAE0;
  --cream-d:       #e4dccf;
  --white:         #ffffff;
  --text:          #1a1a2e;
  --text-muted:    #5a5a7a;
  --accent:        #c9a84c;
  --accent-d:      #b8963e;
  --success:       #2e7d52;
  --border:        rgba(30, 58, 107, 0.15);
  --shadow-sm:     0 2px 8px rgba(30, 58, 107, 0.08);
  --shadow-md:     0 4px 20px rgba(30, 58, 107, 0.12);
  --shadow-lg:     0 8px 40px rgba(30, 58, 107, 0.16);
  --radius:        8px;
  --radius-lg:     16px;
  --font-serif:    Georgia, 'Times New Roman', serif;
  --font-sans:     -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--midnight); text-decoration: none; }
a:hover { color: var(--midnight-l); }

/* ---- Typography ---- */
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.25; color: var(--midnight); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--text-muted); }

/* ---- Layout ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
  background: var(--midnight);
  color: var(--cream);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}
.announcement-bar span {
  opacity: 0.5;
  margin: 0 0.6rem;
}

/* ============================================================
   SITE HEADER (sticky white, logo-left / nav-center / cta-right)
   ============================================================ */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(30, 58, 107, 0.1);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Logo */
.header-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--midnight);
  letter-spacing: 0.04em;
}
.header-logo-name .logo-accent { color: var(--accent); }
.header-logo-tagline {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Nav (center) */
.header-nav {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0 auto;
}
.header-nav a {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  transition: all 0.2s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--midnight);
  background: rgba(30, 58, 107, 0.07);
}

/* CTA button (right) */
.header-cta {
  flex-shrink: 0;
}

/* Hamburger toggle */
.header-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  order: 3;
}
.header-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--midnight);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ---- Keep legacy nav class working (used nowhere new, safety shim) ---- */
nav { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.btn-primary {
  background: var(--midnight);
  color: var(--cream);
  border-color: var(--midnight);
}
.btn-primary:hover {
  background: var(--midnight-l);
  border-color: var(--midnight-l);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--accent);
  color: var(--midnight);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-d);
  border-color: var(--accent-d);
  color: var(--midnight);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--midnight);
  border-color: var(--midnight);
}
.btn-outline:hover {
  background: var(--midnight);
  color: var(--cream);
}
.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(240, 234, 224, 0.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--cream);
  color: var(--cream);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--midnight);
  color: var(--cream);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0D1B2E 0%, #1E3A6B 55%, #2a4f8f 100%);
  opacity: 0.95;
}
.hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.07);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--cream);
  margin-bottom: 1.25rem;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}
.hero h1 .hero-accent { color: var(--accent); }
.hero p {
  color: rgba(240, 234, 224, 0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-disclaimer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(240, 234, 224, 0.12);
  font-size: 0.77rem;
  color: rgba(240, 234, 224, 0.45);
  letter-spacing: 0.03em;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--midnight-d);
  padding: 1.1rem 0;
  border-bottom: 2px solid var(--accent);
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(240, 234, 224, 0.8);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trust-item svg { flex-shrink: 0; color: var(--accent); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 520px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.75rem;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 58, 107, 0.25);
}
.product-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(201, 168, 76, 0.1);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  width: fit-content;
}
.product-card h3 { font-size: 1.1rem; color: var(--midnight); }
.product-card .amount { font-size: 0.84rem; color: var(--text-muted); }
.product-card .desc { font-size: 0.875rem; color: var(--text-muted); flex: 1; line-height: 1.55; }
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.product-price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--midnight);
}
.coa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--success);
  letter-spacing: 0.03em;
}

/* ============================================================
   ABOUT / FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.feature-item { text-align: center; }
.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(30, 58, 107, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.feature-item h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.feature-item p  { font-size: 0.875rem; }

/* ============================================================
   LEGAL STRIP
   ============================================================ */
.legal-strip {
  background: rgba(30, 58, 107, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  text-align: center;
}
.legal-strip p { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   FOOTER — Dark 3-column layout
   ============================================================ */
footer {
  background: var(--midnight-dark);
  color: rgba(240, 234, 224, 0.6);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(240, 234, 224, 0.08);
}
footer h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  color: rgba(240, 234, 224, 0.6);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cream); }
.footer-contact-item {
  display: block;
  font-size: 0.875rem;
  color: rgba(240, 234, 224, 0.6);
  margin-bottom: 0.6rem;
  line-height: 1.6;
}
.footer-contact-item a {
  color: rgba(240, 234, 224, 0.6);
  font-size: 0.875rem;
}
.footer-contact-item a:hover { color: var(--cream); }
.footer-contact-label {
  font-size: 0.72rem;
  color: rgba(240, 234, 224, 0.35);
  letter-spacing: 0.04em;
  margin-top: 1rem;
}
.footer-bottom {
  padding: 1.75rem 0 2rem;
  border-top: none;
}
.footer-legal-block {
  font-size: 0.78rem;
  color: rgba(240, 234, 224, 0.35);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 900px;
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(240, 234, 224, 0.25);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-section { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
label .req { color: #e53e3e; margin-left: 2px; }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--midnight);
  box-shadow: 0 0 0 3px rgba(30, 58, 107, 0.1);
}
textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.35rem; }

/* Product checkboxes in order form */
.product-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.product-check-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  background: var(--white);
}
.product-check-item:hover { border-color: var(--midnight); background: rgba(30, 58, 107, 0.02); }
.product-check-item.selected {
  border-color: var(--midnight);
  background: rgba(30, 58, 107, 0.05);
}
.product-check-item input[type="checkbox"] { display: none; }
.product-check-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  width: 100%;
}
.product-check-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.product-check-amount { font-size: 0.78rem; color: var(--text-muted); }
.product-check-price { font-size: 0.95rem; font-weight: 700; color: var(--midnight); flex-shrink: 0; }
.product-check-qty {
  display: none;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  align-items: center;
  gap: 0.5rem;
}
.product-check-qty.visible { display: flex; }
.product-check-qty label { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0; white-space: nowrap; }
.product-check-qty input[type="number"] {
  width: 70px;
  padding: 0.3rem 0.5rem;
  font-size: 0.9rem;
}

/* Order summary */
.order-summary {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.order-summary h3 { font-size: 1rem; margin-bottom: 1rem; }
.summary-items { list-style: none; font-size: 0.875rem; }
.summary-items li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.summary-items li:last-child { border-bottom: none; }
.summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--midnight);
}
#summary-empty { color: var(--text-muted); font-size: 0.875rem; font-style: italic; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--midnight);
  padding: 3.5rem 0 3rem;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0D1B2E 0%, #1E3A6B 100%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--cream); font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.page-hero p { color: rgba(240, 234, 224, 0.7); max-width: 500px; }
.breadcrumb { margin-bottom: 1rem; font-size: 0.8rem; }
.breadcrumb a { color: rgba(240, 234, 224, 0.5); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: rgba(240, 234, 224, 0.35); margin: 0 0.4rem; }
.breadcrumb .current { color: var(--accent); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--midnight);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(30, 58, 107, 0.03); }
.faq-question svg { flex-shrink: 0; transition: transform 0.25s; color: var(--accent); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-item.open .faq-answer { max-height: 500px; }

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
.thanks-card {
  max-width: 580px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.thanks-icon {
  width: 72px;
  height: 72px;
  background: rgba(46, 125, 82, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}
.cashapp-box {
  background: var(--midnight);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.cashapp-handle {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--accent);
  font-weight: 700;
}
.cashapp-label { font-size: 0.78rem; color: rgba(240, 234, 224, 0.6); text-transform: uppercase; letter-spacing: 0.05em; }
.steps-list { text-align: left; margin: 1.5rem 0; }
.step-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 24px;
  height: 24px;
  background: var(--midnight);
  color: var(--cream);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  /* Header mobile */
  .site-header { position: relative; }
  .header-inner { flex-wrap: wrap; position: relative; }
  .header-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--midnight-dark);
    padding: 1rem 1.25rem;
    gap: 0.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 200;
  }
  .header-nav.open { display: flex; }
  .header-nav a {
    color: rgba(240, 234, 224, 0.85);
    padding: 0.6rem 0.9rem;
  }
  .header-nav a:hover,
  .header-nav a.active {
    color: var(--cream);
    background: rgba(255, 255, 255, 0.08);
  }
  .header-toggle { display: block; }
  .header-cta { display: none; }

  /* Hero */
  .hero { padding: 4rem 0 3.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: left; }

  /* Thank you */
  .thanks-card { padding: 2rem 1.5rem; }

  /* Products about grid */
  .about-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 1rem; }
  .announcement-bar { font-size: 0.65rem; }
}
