/* ============================================================
   RAVEN RESEARCH — shared.css
   Global styles for all pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

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

:root {
  --ink:       #0A0A0F;
  --purple:    #7B2FFF;
  --purple-lt: #9B5FFF;
  --purple-dk: #5510DD;
  --gold:      #7B2FFF;
  --paper:     #FFFFFF;
  --paper-dk:  #F4F3F8;
  --rule:      #E8E6F0;
  --blush-bg:  #F0EDFF;
  --green-bg:  #EDFAF3;
  --blue-bg:   #EDF4FF;

  --nav-h:     68px;
  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(10,10,15,.08);
  --shadow-md: 0 8px 40px rgba(10,10,15,.12);
  --shadow-lg: 0 16px 64px rgba(10,10,15,.15);
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

a { color: var(--purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple-dk); }

img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Layout ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Navigation ───────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--transition);
}
.site-nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -.3px;
  text-decoration: none;
  white-space: nowrap;
}
.logo-raven   { color: var(--ink); }
.logo-research{ color: var(--ink); font-weight: 400; }
.logo-dot     { color: var(--purple); margin-left: 3px; font-size: 12px; }

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 1;
}
.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 99px;
  transition: all var(--transition);
  text-decoration: none;
  opacity: .75;
}
.nav-links a:hover { background: var(--blush-bg); color: var(--purple); opacity: 1; }
.nav-links a.active { background: var(--blush-bg); color: var(--purple); opacity: 1; }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--purple);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.cart-btn:hover { background: var(--purple-dk); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(123,47,255,.3); }
.cart-count {
  background: #fff;
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover {
  background: var(--purple-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(123,47,255,.32);
  color: #fff;
}
.btn-secondary {
  background: var(--blush-bg);
  color: var(--purple);
  border: 1.5px solid var(--rule);
}
.btn-secondary:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--rule);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ── Product Card ─────────────────────────────────────── */
.product-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--purple);
}
.product-card-image {
  background: var(--blush-bg);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-card-image .vial-icon {
  font-size: 48px;
  color: var(--purple);
  opacity: .6;
}
.product-card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-card-cat {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple);
}
.product-card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.product-card-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  flex: 1;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.product-card-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.badge-purity {
  font-size: 10px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--green-bg);
  color: #18884A;
  padding: 3px 8px;
  border-radius: 99px;
}
.badge-new {
  background: var(--blush-bg);
  color: var(--purple);
}

/* ── Trust Bar ────────────────────────────────────────── */
.trust-bar {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 0;
  overflow: hidden;
}
.trust-bar-inner {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.trust-bar-item i { color: var(--purple-lt); font-size: 13px; }

/* ── Section headings ─────────────────────────────────── */
.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.section-sub {
  font-size: 16px;
  color: #555;
  margin-top: 10px;
  max-width: 560px;
}

/* ── Cards grid ───────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.65);
  padding: 64px 0 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.footer-logo .logo-research { font-weight: 400; }
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  margin-bottom: 14px;
}
.footer-compliance {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  line-height: 1.6;
}
.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--purple-lt); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-badges { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-badges span { display: flex; align-items: center; gap: 6px; }
.footer-badges i { color: var(--purple-lt); }

/* ── Form elements ────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123,47,255,.12);
}
select.form-control { appearance: none; }

/* ── Page hero (non-home pages) ───────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blush-bg) 0%, var(--paper-dk) 100%);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}
.page-hero p { font-size: 17px; color: #555; max-width: 540px; }

/* ── Accordion ────────────────────────────────────────── */
.accordion-item {
  border-bottom: 1px solid var(--rule);
}
.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: color var(--transition);
}
.accordion-btn:hover { color: var(--purple); }
.accordion-btn .acc-icon {
  color: var(--purple);
  font-size: 14px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.accordion-btn.open .acc-icon { transform: rotate(45deg); }
.accordion-body {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}
.accordion-body.open { max-height: 600px; padding-bottom: 20px; }

/* ── Utility ──────────────────────────────────────────── */
.text-purple { color: var(--purple); }
.text-muted  { color: #888; }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 16px 24px; gap: 4px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-inner { position: relative; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 56px 0; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }
}

/* ── Nav scroll & hamburger JS ────────────────────────── */
