/* JointBreX — jointbrexorder.com — Styles */
:root {
  --jb-primary: #166534;
  --jb-primary-light: #22c55e;
  --jb-secondary: #0D9488;
  --jb-accent: #059669;
  --jb-dark: #111827;
  --jb-text: #374151;
  --jb-light: #f0fdf4;
  --jb-surface: #f8faf9;
  --jb-white: #ffffff;
  --jb-border: #e5e7eb;
  --jb-gradient: linear-gradient(135deg, var(--jb-primary), var(--jb-secondary));
  --jb-shadow: 0 4px 24px rgba(22,101,52,0.10);
  --jb-shadow-lg: 0 12px 40px rgba(22,101,52,0.15);
  --jb-radius: 12px;
  --jb-font-heading: 'Bitter', Georgia, serif;
  --jb-font-body: 'Cabin', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--jb-font-body);
  color: var(--jb-text);
  line-height: 1.7;
  background: var(--jb-white);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--jb-font-heading); color: var(--jb-dark); line-height: 1.3; }

a { color: var(--jb-primary); text-decoration: none; transition: color .25s; }
a:hover { color: var(--jb-secondary); }

img { max-width: 100%; height: auto; display: block; }

.jb-container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.jb-text-center { text-align: center; }
.jb-highlight { color: var(--jb-primary); }
.jb-section { padding: 4rem 0; }

/* ── Trust Strip ── */
.jb-trust-strip {
  background: var(--jb-gradient);
  color: #fff;
  text-align: center;
  padding: .55rem 1rem;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .02em;
}

/* ── Header ── */
.jb-header {
  background: var(--jb-white);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .3s;
}
.jb-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.10); }
.jb-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
}
.jb-logo {
  font-family: var(--jb-font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--jb-dark);
}
.jb-logo span { color: var(--jb-primary); }
.jb-nav-links { display: flex; gap: 1.5rem; }
.jb-nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--jb-text);
  transition: color .25s;
}
.jb-nav-links a:hover { color: var(--jb-primary); }
.jb-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--jb-gradient);
  color: #fff !important;
  padding: .7rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .25s, box-shadow .25s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.jb-cta-btn:hover { transform: translateY(-2px); box-shadow: var(--jb-shadow-lg); }
.jb-cta-pulse { animation: jbPulse 2s infinite; }
@keyframes jbPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,101,52,.4); }
  50% { box-shadow: 0 0 0 12px rgba(22,101,52,0); }
}
.jb-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 2px solid var(--jb-primary);
  color: var(--jb-primary) !important;
  padding: .65rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .25s;
}
.jb-cta-outline:hover { background: var(--jb-primary); color: #fff !important; }

/* ── Hamburger ── */
.jb-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.jb-hamburger span {
  width: 26px; height: 3px;
  background: var(--jb-dark);
  border-radius: 2px;
  transition: .3s;
}

/* ── Drawer ── */
.jb-drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
}
.jb-drawer-overlay.active { display: block; }
.jb-drawer {
  position: fixed;
  top: 0; right: -300px;
  width: 280px; height: 100%;
  background: var(--jb-white);
  z-index: 2001;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: right .3s;
  box-shadow: -4px 0 20px rgba(0,0,0,.1);
}
.jb-drawer.active { right: 0; }
.jb-drawer a {
  font-size: 1.05rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--jb-border);
  color: var(--jb-dark);
}
.jb-drawer-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--jb-dark);
}

/* ── Hero ── */
.jb-hero {
  background: var(--jb-light);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.jb-hero-particles {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.jb-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.jb-hero-badge {
  display: inline-block;
  background: var(--jb-gradient);
  color: #fff;
  padding: .45rem 1.2rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.jb-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.jb-hero-sub {
  font-size: 1.08rem;
  margin-bottom: 1.2rem;
  color: var(--jb-text);
}
.jb-hero-checks {
  list-style: none;
  margin-bottom: 1.5rem;
}
.jb-hero-checks li {
  padding: .3rem 0;
  font-size: .95rem;
}
.jb-hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.jb-hero-trust-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.jb-hero-trust-row img { width: 55px; height: 55px; }
.jb-hero-img { text-align: center; }
.jb-hero-img img { max-width: 480px; margin: 0 auto; }

/* ── Proof Bar ── */
.jb-proof-bar {
  background: var(--jb-dark);
  color: #fff;
  padding: 1.5rem 0;
}
.jb-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.jb-proof-num {
  display: block;
  font-family: var(--jb-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--jb-primary-light);
}
.jb-proof-item span:last-child { font-size: .85rem; opacity: .9; }

/* ── What Is ── */
.jb-section-badge {
  display: inline-block;
  background: var(--jb-light);
  color: var(--jb-primary);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: .8rem;
}
.jb-what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}
.jb-what-text p { margin-bottom: 1rem; }
.jb-what-img img { border-radius: var(--jb-radius); }

/* ── How Steps ── */
.jb-how-img-wrap { text-align: center; margin: 2rem 0; }
.jb-how-img-wrap img { max-width: 800px; margin: 0 auto; border-radius: var(--jb-radius); }
.jb-how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.jb-step-card {
  background: var(--jb-surface);
  padding: 1.5rem;
  border-radius: var(--jb-radius);
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.jb-step-card:hover { transform: translateY(-4px); box-shadow: var(--jb-shadow); }
.jb-step-num {
  font-family: var(--jb-font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--jb-primary);
  margin-bottom: .5rem;
}

/* ── Ingredients ── */
.jb-ingr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.jb-ingr-card {
  background: var(--jb-surface);
  padding: 2rem 1.5rem;
  border-radius: var(--jb-radius);
  transition: transform .3s, box-shadow .3s;
}
.jb-ingr-card:hover { transform: translateY(-4px); box-shadow: var(--jb-shadow); }
.jb-ingr-icon { font-size: 2.5rem; margin-bottom: .75rem; }

/* ── Benefits ── */
.jb-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.jb-benefit-card {
  background: var(--jb-white);
  border: 1px solid var(--jb-border);
  padding: 2rem 1.5rem;
  border-radius: var(--jb-radius);
  transition: transform .3s, box-shadow .3s;
}
.jb-benefit-card:hover { transform: translateY(-4px); box-shadow: var(--jb-shadow); border-color: var(--jb-primary-light); }
.jb-benefit-icon { font-size: 2.5rem; margin-bottom: .75rem; }

/* ── Comparison ── */
.jb-compare-table-wrap { overflow-x: auto; margin-top: 2rem; }
.jb-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.jb-compare-table th, .jb-compare-table td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--jb-border);
}
.jb-compare-table th { background: var(--jb-dark); color: #fff; font-weight: 600; }
.jb-compare-hl { background: var(--jb-light) !important; font-weight: 600; }

/* ── Reviews ── */
.jb-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.jb-review-card {
  background: var(--jb-white);
  border: 1px solid var(--jb-border);
  padding: 1.8rem;
  border-radius: var(--jb-radius);
  transition: box-shadow .3s;
}
.jb-review-card:hover { box-shadow: var(--jb-shadow); }
.jb-review-stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: .75rem; }
.jb-review-text { font-style: italic; margin-bottom: 1rem; font-size: .95rem; }
.jb-review-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.jb-review-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.jb-review-author strong { display: block; }
.jb-review-author span { font-size: .8rem; color: #6b7280; }

/* ── Pricing ── */
.jb-pricing { background: var(--jb-light); }
.jb-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  align-items: start;
}
.jb-price-card {
  background: var(--jb-white);
  border: 2px solid var(--jb-border);
  border-radius: var(--jb-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform .3s;
}
.jb-price-card:hover { transform: translateY(-4px); }
.jb-price-popular {
  border-color: var(--jb-primary);
  position: relative;
  transform: scale(1.04);
  box-shadow: var(--jb-shadow-lg);
}
.jb-price-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--jb-gradient);
  color: #fff;
  padding: .35rem 1.2rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.jb-price-label {
  font-family: var(--jb-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .75rem;
  color: var(--jb-primary);
}
.jb-price-card img { margin: 0 auto 1rem; max-height: 180px; }
.jb-price-bottles { font-size: 1.2rem; font-weight: 700; color: var(--jb-dark); }
.jb-price-supply { font-size: .85rem; color: #6b7280; margin-bottom: .5rem; }
.jb-price-amount {
  font-family: var(--jb-font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--jb-primary);
}
.jb-price-amount span { font-size: 1rem; font-weight: 400; color: var(--jb-text); }
.jb-price-shipping { font-size: .85rem; margin: .5rem 0; }
.jb-price-bonus {
  font-size: .85rem;
  color: var(--jb-accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.jb-pricing-trust {
  text-align: center;
  margin-top: 1.5rem;
}
.jb-pricing-trust img { display: inline-block; margin: 0 auto; }
.jb-pricing-trust p { font-size: .85rem; color: #6b7280; margin-top: .5rem; }

/* ── Bonuses ── */
.jb-bonuses-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin: 2rem 0;
}
.jb-bonus-card {
  background: var(--jb-surface);
  padding: 1.5rem 1rem;
  border-radius: var(--jb-radius);
  text-align: center;
  transition: transform .3s;
}
.jb-bonus-card:hover { transform: translateY(-4px); }
.jb-bonus-card img { max-height: 180px; margin: 0 auto 1rem; }
.jb-bonus-card h3 { font-size: .95rem; }
.jb-bonus-card p { font-size: .82rem; color: #6b7280; }
.jb-bonus-value {
  text-align: center;
  font-size: 1.1rem;
  margin: 1rem 0;
}

/* ── Guarantee ── */
.jb-guarantee { background: var(--jb-light); }
.jb-guarantee-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.jb-guarantee-inner img { flex-shrink: 0; }
.jb-guarantee-text h2 { margin-bottom: 1rem; }
.jb-guarantee-text p { margin-bottom: 1rem; }

/* ── FAQ ── */
.jb-faq-list { max-width: 800px; margin: 2rem auto 0; }
.jb-faq-item {
  border-bottom: 1px solid var(--jb-border);
}
.jb-faq-q {
  width: 100%;
  padding: 1.2rem 0;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--jb-dark);
  font-family: var(--jb-font-body);
}
.jb-faq-icon {
  font-size: 1.4rem;
  transition: transform .3s;
  color: var(--jb-primary);
}
.jb-faq-item.active .jb-faq-icon { transform: rotate(45deg); }
.jb-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
}
.jb-faq-item.active .jb-faq-a {
  max-height: 400px;
  padding-bottom: 1.2rem;
}
.jb-faq-a p { font-size: .95rem; line-height: 1.7; }

/* ── Science ── */
.jb-science-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.jb-science-card {
  background: var(--jb-surface);
  padding: 2rem 1.5rem;
  border-radius: var(--jb-radius);
  border-left: 4px solid var(--jb-primary);
}

/* ── Who It's For ── */
.jb-who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.jb-who-card {
  background: var(--jb-surface);
  border-radius: var(--jb-radius);
  overflow: hidden;
  transition: transform .3s;
}
.jb-who-card:hover { transform: translateY(-4px); }
.jb-who-card img { width: 100%; height: 300px; object-fit: cover; }
.jb-who-card h3, .jb-who-card p { padding: 0 1.5rem; }
.jb-who-card h3 { padding-top: 1.2rem; margin-bottom: .5rem; }
.jb-who-card p { padding-bottom: 1.5rem; font-size: .95rem; }

/* ── Final CTA ── */
.jb-final-cta {
  background: var(--jb-gradient);
  color: #fff;
  padding: 4rem 0;
}
.jb-final-cta h2 { color: #fff; font-size: 2rem; margin-bottom: 1rem; }
.jb-final-cta p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 1.5rem; }
.jb-final-cta .jb-cta-btn { background: #fff; color: var(--jb-primary) !important; }
.jb-final-cta-row { margin-bottom: 1rem; }
.jb-final-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.jb-final-badges img { width: 45px; height: 45px; }

/* ── Blog Teaser ── */
.jb-blog-teaser { background: var(--jb-surface); }
.jb-blog-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.jb-blog-teaser-card {
  background: var(--jb-white);
  padding: 1.5rem;
  border-radius: var(--jb-radius);
  border: 1px solid var(--jb-border);
  transition: box-shadow .3s;
}
.jb-blog-teaser-card:hover { box-shadow: var(--jb-shadow); }
.jb-blog-teaser-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.jb-blog-teaser-card p { font-size: .88rem; color: #6b7280; }

/* ── AEO ── */
.jb-aeo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.jb-aeo-card {
  background: var(--jb-surface);
  padding: 1.5rem;
  border-radius: var(--jb-radius);
  border-left: 4px solid var(--jb-secondary);
}

/* ── Footer ── */
.jb-footer {
  background: var(--jb-dark);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
}
.jb-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.jb-footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.jb-footer-col p { font-size: .88rem; line-height: 1.6; }
.jb-footer-col a {
  display: block;
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  padding: .25rem 0;
  transition: color .25s;
}
.jb-footer-col a:hover { color: var(--jb-primary-light); }
.jb-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 2rem;
  text-align: center;
  font-size: .8rem;
}
.jb-footer-bottom p { margin-bottom: .5rem; }

/* ── Sticky Bar ── */
.jb-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--jb-dark);
  padding: .7rem 1rem;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.jb-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.jb-sticky-inner span { color: #fff; font-size: .88rem; font-weight: 500; }
.jb-sticky-inner a {
  background: var(--jb-primary-light);
  color: #fff !important;
  padding: .5rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
}

/* ── Sub Pages ── */
.jb-sub-page { padding: 3rem 0; }
.jb-sub-page h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.jb-sub-page h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; }
.jb-sub-page p { margin-bottom: 1rem; }
.jb-sub-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.jb-sub-page li { margin-bottom: .4rem; }

/* ── Reveal Animation ── */
.jb-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.jb-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO ANIMATION: Cartilage Shield Pulse ── */
.jb-shield-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(22,101,52,.15);
  pointer-events: none;
  animation: jbShieldPulse 4s ease-out infinite;
}
@keyframes jbShieldPulse {
  0% { transform: scale(0.3); opacity: .6; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ── RESPONSIVE 920px ── */
@media (max-width: 920px) {
  .jb-nav-links { display: none; }
  .jb-hamburger { display: flex; }
  .jb-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .jb-hero-img { order: -1; }
  .jb-hero-img img { max-width: 320px; }
  .jb-hero-checks { text-align: left; display: inline-block; }
  .jb-hero-ctas { justify-content: center; }
  .jb-hero-trust-row { justify-content: center; }
  .jb-proof-grid { grid-template-columns: repeat(2, 1fr); }
  .jb-what-grid { grid-template-columns: 1fr; }
  .jb-how-steps { grid-template-columns: repeat(2, 1fr); }
  .jb-ingr-grid { grid-template-columns: repeat(2, 1fr); }
  .jb-benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .jb-reviews-grid { grid-template-columns: 1fr; }
  .jb-pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .jb-price-popular { transform: none; }
  .jb-bonuses-grid { grid-template-columns: repeat(3, 1fr); }
  .jb-guarantee-inner { flex-direction: column; text-align: center; }
  .jb-science-grid { grid-template-columns: 1fr; }
  .jb-who-grid { grid-template-columns: 1fr; }
  .jb-blog-teaser-grid { grid-template-columns: 1fr; }
  .jb-aeo-grid { grid-template-columns: 1fr; }
  .jb-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .jb-sticky-bar { display: block; }
}

/* ── RESPONSIVE 480px ── */
@media (max-width: 480px) {
  .jb-hero h1 { font-size: 1.7rem; }
  .jb-proof-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .jb-proof-num { font-size: 1.2rem; }
  .jb-how-steps { grid-template-columns: 1fr; }
  .jb-ingr-grid { grid-template-columns: 1fr; }
  .jb-benefits-grid { grid-template-columns: 1fr; }
  .jb-bonuses-grid { grid-template-columns: repeat(2, 1fr); }
  .jb-footer-grid { grid-template-columns: 1fr; }
  .jb-section { padding: 2.5rem 0; }
}

/* ── RESPONSIVE 380px ── */
@media (max-width: 380px) {
  .jb-hero h1 { font-size: 1.45rem; }
  .jb-hero-badge { font-size: .72rem; }
  .jb-cta-btn { padding: .6rem 1.2rem; font-size: .85rem; }
  .jb-bonuses-grid { grid-template-columns: 1fr; }
}
