/* ============================================
   CanadaPeptideReviews.com — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  --navy:       #0d1f2d;
  --deep-teal:  #0a4a5e;
  --teal:       #127a8a;
  --mint:       #3dbfae;
  --gold:       #c9993a;
  --gold-light: #e8c068;
  --cream:      #f7f4ef;
  --warm-white: #fdfcfa;
  --text:       #1a2733;
  --muted:      #5a6e7d;
  --border:     #dce4e8;
  --red:        #c0392b;
  --green:      #1a7a4a;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-mono:    'DM Mono', monospace;

  --radius: 6px;
  --shadow: 0 2px 16px rgba(13,31,45,0.10);
  --shadow-lg: 0 8px 40px rgba(13,31,45,0.16);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.75;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 0.75rem; }
h4 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
p { margin-bottom: 1.2rem; }
a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--deep-teal); }
strong { font-weight: 600; }
ul, ol { padding-left: 1.6rem; margin-bottom: 1.2rem; }
li { margin-bottom: 0.4rem; }

/* ---- Header ---- */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--mint), var(--teal));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-display); font-size: 1.1rem; color: #fff; font-weight: 700; }
.logo-sub  { font-size: 0.65rem; color: var(--mint); letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-mono); }

/* ---- Nav ---- */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
  color: #c8d8e4;
  text-decoration: none;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,0.08); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 500 !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--gold-light) !important; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--deep-teal) 60%, #0d4a5a 100%);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-block;
  background: rgba(61,191,174,0.2);
  border: 1px solid var(--mint);
  color: var(--mint);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 620px; margin: 0 auto 2rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: #fff; color: #fff; text-decoration: none; }
.btn-teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-teal:hover { background: var(--deep-teal); border-color: var(--deep-teal); color: #fff; text-decoration: none; }
.btn-lg { padding: 1rem 2.4rem; font-size: 0.95rem; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.main-content { min-width: 0; }
.sidebar { position: sticky; top: 80px; }

/* ---- Table of Contents ---- */
.toc {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.5rem;
}
.toc-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toc ol { padding-left: 1.2rem; margin: 0; }
.toc li { margin-bottom: 0.3rem; font-size: 0.9rem; }
.toc a { color: var(--teal); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---- Sidebar widgets ---- */
.sidebar-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h3 { font-size: 1rem; margin: 0 0 0.8rem; }
.sidebar-card .btn { width: 100%; text-align: center; display: block; }
.rating-row { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.rating-row:last-child { border-bottom: none; }
.stars { color: var(--gold); }
.score { font-family: var(--font-mono); font-weight: 500; color: var(--navy); }

/* ---- Info boxes ---- */
.info-box {
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box.green  { background: #edf7f1; border-left: 4px solid var(--green); }
.info-box.blue   { background: #eaf3f8; border-left: 4px solid var(--teal); }
.info-box.gold   { background: #fdf6e8; border-left: 4px solid var(--gold); }
.info-box.red    { background: #fdf0ef; border-left: 4px solid var(--red); }
.info-box-title  { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.6rem; font-weight: 500; }
.info-box.green  .info-box-title { color: var(--green); }
.info-box.blue   .info-box-title { color: var(--teal); }
.info-box.gold   .info-box-title { color: #8a6420; }
.info-box.red    .info-box-title { color: var(--red); }

/* ---- Trust badges ---- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.trust-item {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.trust-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--mint));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.trust-text h4 { font-size: 0.88rem; margin: 0 0 0.2rem; }
.trust-text p  { font-size: 0.8rem; color: var(--muted); margin: 0; line-height: 1.4; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead { background: var(--navy); color: #fff; }
thead th { padding: 0.8rem 1rem; text-align: left; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; }
tbody tr:nth-child(even) { background: var(--cream); }
tbody td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.check { color: var(--green); font-weight: 700; }
.cross { color: var(--red); font-weight: 700; }
.partial { color: var(--gold); }

/* ---- Featured product card ---- */
.product-hero {
  background: linear-gradient(135deg, var(--navy), var(--deep-teal));
  border-radius: 10px;
  padding: 2rem;
  color: #fff;
  margin: 2rem 0;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}
.product-hero-img {
  width: 120px;
  height: 140px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}
.product-hero-info { flex: 1; min-width: 200px; }
.product-hero h3 { color: #fff; margin: 0 0 0.5rem; font-size: 1.4rem; }
.product-hero .price { font-family: var(--font-mono); font-size: 1.2rem; color: var(--mint); margin: 0.5rem 0; }
.badge-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.8rem 0; }
.badge {
  background: rgba(61,191,174,0.2);
  border: 1px solid var(--mint);
  color: var(--mint);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge.gold { background: rgba(201,153,58,0.2); border-color: var(--gold); color: var(--gold-light); }

/* ---- Section dividers ---- */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ---- Comparison section ---- */
.comp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.comp-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.comp-card-header {
  padding: 1rem 1.2rem;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.comp-card-header.featured { background: linear-gradient(90deg, var(--deep-teal), var(--teal)); }
.comp-card-body { padding: 1rem 1.2rem; }
.comp-row { display: flex; justify-content: space-between; align-items: center; padding: 0.45rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.comp-row:last-child { border-bottom: none; }
.comp-row .label { color: var(--muted); }

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--deep-teal), var(--navy));
  border-radius: 10px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
  margin: 3rem 0 2rem;
}
.cta-banner h2 { color: #fff; margin: 0 0 0.8rem; font-size: 1.6rem; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }

/* ---- Study table ---- */
.study-table thead { background: var(--deep-teal); }
.highlight-row td { font-weight: 600; background: #edf7f1 !important; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: #8aa0b0;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-about .logo-name { font-size: 1rem; margin-bottom: 0.5rem; display: block; }
.footer-about p { font-size: 0.83rem; line-height: 1.6; }
.footer-links h4 { color: #fff; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8rem; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: #8aa0b0; text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--mint); }
.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}
.disclaimer-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 2rem 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}
.disclaimer-box strong { color: var(--text); }

/* ---- Page header (sub-pages) ---- */
.page-header {
  background: linear-gradient(160deg, var(--navy) 0%, var(--deep-teal) 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  color: #fff;
}
.page-header h1 { color: #fff; margin-bottom: 0.6rem; }
.page-header p { color: rgba(255,255,255,0.75); max-width: 620px; margin: 0 auto; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.8rem 0;
  margin-bottom: 0.5rem;
}
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; }

/* ---- Article meta ---- */
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
  padding: 0.8rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.meta-item { display: flex; align-items: center; gap: 0.3rem; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
  .main-nav.open { display: flex; }
  .hamburger { display: block; }
  .header-inner { position: relative; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .product-hero { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.highlight { background: linear-gradient(120deg, rgba(61,191,174,0.15) 0%, rgba(61,191,174,0.05) 100%); padding: 0 3px; border-radius: 3px; }
