/* ===========================================================
   PrimeBiome — main.css
   Shared component stylesheet (header, footer, buttons, cards, sections)
   =========================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--coral-dark); }
button { font-family: inherit; cursor: pointer; border: none; }
h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-dark);
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.8rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 0.6rem; }
p  { margin-bottom: 1rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Announcement Bar ---------- */
.announce-bar {
  background: linear-gradient(90deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 9px 16px;
  font-weight: 500;
  letter-spacing: .2px;
}
.announce-bar a { color: #fff; text-decoration: underline; font-weight: 700; }
.announce-bar a:hover { color: #fff; opacity: .85; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--ink-dark);
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--coral); }
.logo-mark {
  width: 36px;
  height: 36px;
  position: relative;
  flex-shrink: 0;
}
.logo-mark::before,
.logo-mark::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.logo-mark::before { background: var(--sky); top: 0; left: 0; }
.logo-mark::after  { background: var(--pink); bottom: 0; right: 0; mix-blend-mode: multiply; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }

.mobile-menu-btn {
  display: none;
  background: transparent;
  font-size: 24px;
  color: var(--ink-dark);
  padding: 6px 10px;
}

/* ---------- Buttons ---------- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 50px;
  letter-spacing: .3px;
  box-shadow: 0 6px 20px rgba(217, 100, 122, .35);
  transition: all .2s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(217, 100, 122, .5);
}
.btn-cta:active { transform: translateY(0); }
.btn-cta-lg { padding: 18px 40px; font-size: 18px; }
.btn-cta-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Footer (identical on every page) ---------- */
.footer {
  background: var(--ink-dark);
  color: #d0d0d0;
  padding: 60px 0 24px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr 1fr 1fr;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-col h4 {
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; line-height: 1.45; }
.footer-col a {
  color: #b8b8b8;
  font-size: 14px;
  transition: color .18s ease;
}
.footer-col a:hover { color: var(--coral); }
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand-row .logo-mark { width: 32px; height: 32px; }
.footer-brand-row .logo-mark::before,
.footer-brand-row .logo-mark::after { width: 20px; height: 20px; }
.footer-brand-name {
  font-family: 'Fraunces', serif;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}
.footer-tagline { color: #999; line-height: 1.55; font-size: 13.5px; }
.footer-contact-item { color: #b8b8b8; word-break: break-word; }
.footer-disclaimer {
  max-width: 1200px;
  margin: 38px auto 0;
  padding: 22px 24px 0;
  border-top: 1px solid #333;
  font-size: 12.5px;
  color: #888;
  line-height: 1.6;
}
.footer-copy {
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 0 24px;
  text-align: center;
  color: #777;
  font-size: 13px;
}

/* ---------- AI Answer Block ---------- */
.ai-answer {
  background: linear-gradient(135deg, #eaf4fb 0%, #f5e8eb 100%);
  border-left: 4px solid var(--sky-deep);
  padding: 22px 26px;
  border-radius: 10px;
  margin: 24px 0;
}
.ai-answer p { margin-bottom: 0; color: #2c2c2c; }
.ai-answer strong { color: var(--ink-dark); display: block; margin-bottom: 6px; font-size: 1.05em; }

/* ---------- Section base ---------- */
section { padding: 70px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}
.section-head p { color: #555; font-size: 17px; }

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 32px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px 48px;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .3px;
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }

/* ---------- Card base ---------- */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  border: 1px solid var(--border);
  transition: all .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

/* ---------- Generic 2-col & grids ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ---------- Mobile Sticky CTA Bar ---------- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 12px 16px;
  z-index: 90;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .12);
  border-top: 1px solid var(--border);
}
.mobile-sticky-cta .btn-cta { width: 100%; padding: 14px; font-size: 15px; }

/* ---------- Floating popup (social proof) ---------- */
.social-proof-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 95;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, .15);
  padding: 14px 18px 14px 14px;
  display: none;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  animation: slideInLeft .35s ease;
  border: 1px solid var(--border);
}
.social-proof-popup .sp-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky) 0%, var(--pink) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 15px;
}
.social-proof-popup .sp-text { font-size: 13px; line-height: 1.4; color: #333; }
.social-proof-popup .sp-text strong { display: block; color: var(--ink-dark); }
.social-proof-popup .sp-text .sp-time { color: #999; font-size: 11.5px; margin-top: 2px; display: block; }
.social-proof-popup .sp-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: transparent;
  color: #aaa;
  font-size: 18px;
  width: 22px;
  height: 22px;
  line-height: 1;
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---------- Exit Intent Popup ---------- */
.exit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.exit-popup {
  background: #fff;
  border-radius: 18px;
  max-width: 460px;
  width: 100%;
  padding: 40px 32px 36px;
  text-align: center;
  position: relative;
  animation: popIn .35s ease;
}
.exit-popup h3 { color: var(--coral); font-size: 1.9rem; margin-bottom: 12px; }
.exit-popup p { color: #555; margin-bottom: 22px; }
.exit-popup .ep-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  font-size: 26px;
  color: #aaa;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  section { padding: 50px 0; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 70px; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .container { padding: 0 18px; }
  .nav-wrap { padding: 0 18px; }
  section { padding: 42px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .card { padding: 22px; }
  .ai-answer { padding: 18px 20px; }
  .btn-cta-lg { padding: 14px 28px; font-size: 16px; }
}
