/* =========================================================
   US-CyaBags.com — shared stylesheet
   Independent editorial site. Not affiliated with 5th & Glow.
   ========================================================= */

:root {
  /* Palette */
  --navy: #132A46;
  --navy-deep: #0C1E33;
  --ivory: #FAF6EC;
  --ivory-soft: #F3EEE1;
  --teal: #2F6F68;
  --teal-deep: #21504B;
  --slate: #5C6570;
  --slate-light: #8B93A0;
  --border: #E3DDCC;
  --white: #FFFFFF;
  --text: #1C2430;
  --muted: #5C6570;
  --cta: #B5542A;
  --cta-dark: #96431F;
  --good: #2F6F68;
  --caution: #9A6B12;
  --caution-bg: #FBF1DC;

  /* Layout */
  --content-width: 780px;
  --page-width: 1220px;

  /* Type scale (clamp: mobile -> desktop) */
  --fs-h1: clamp(2.25rem, 1.7rem + 2.3vw, 3.5rem);
  --fs-hero-intro: clamp(1.2rem, 1.05rem + 0.6vw, 1.4375rem);
  --fs-h2: clamp(1.8125rem, 1.5rem + 1.3vw, 2.625rem);
  --fs-h3: clamp(1.4375rem, 1.25rem + 0.8vw, 1.875rem);
  --fs-h4: clamp(1.25rem, 1.1rem + 0.5vw, 1.4375rem);
  --fs-body: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --fs-card: 1.125rem;
  --fs-table: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --fs-faq-q: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  --fs-faq-a: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --fs-nav: clamp(1.125rem, 1.08rem + 0.2vw, 1.125rem);
  --fs-button: 1.125rem;
  --fs-breadcrumb: 1rem;
  --fs-byline: clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);
  --fs-footer-h: 1.125rem;
  --fs-footer: clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);
  --fs-disclosure: 1rem;
  --fs-caption: 0.9375rem;

  --section-space: clamp(3.2rem, 2.6rem + 3vw, 6rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-deep); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--cta); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 0.6em;
}
h1 { font-size: var(--fs-h1); line-height: 1.12; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { font-size: var(--fs-body); margin: 0 0 22px; max-width: 72ch; }
ul, ol { font-size: var(--fs-body); line-height: 1.65; padding-left: 1.3em; margin: 0 0 22px; }
li { margin-bottom: 8px; }
li:last-child { margin-bottom: 0; }

.container { max-width: var(--page-width); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--content-width); }

section { padding: var(--section-space) 0; }
section + section { border-top: 1px solid var(--border); }

.eyebrow {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 14px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Top disclosure bar ---------- */
.disclosure-bar {
  background: var(--navy-deep);
  color: var(--ivory-soft);
  font-size: var(--fs-disclosure);
  padding: 10px 0;
  line-height: 1.5;
}
.disclosure-bar .container { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.disclosure-bar strong { color: var(--white); }
.disclosure-bar a { color: var(--ivory-soft); text-decoration: underline; }
.disclosure-bar a:hover { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--navy); }

.main-nav { display: none; }
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: var(--fs-nav);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--cta); }

.header-cta {
  display: none;
}

.menu-toggle {
  background: var(--navy);
  color: var(--ivory);
  border: none;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (min-width: 1000px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .header-cta { display: inline-flex; }
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.mobile-nav a {
  display: block;
  padding: 14px 20px;
  color: var(--ivory);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a:hover { color: var(--cta); }
.mobile-nav .mobile-cta { padding: 18px 20px 22px; }
@media (min-width: 1000px) { .mobile-nav { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: var(--fs-button);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.3;
  text-align: center;
}
.btn-primary { background: var(--cta); color: var(--white); }
.btn-primary:hover { background: var(--cta-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--ivory); }
.btn-block { width: 100%; }
@media (max-width: 640px) {
  .btn-mobile-full { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-bottom: clamp(3rem, 2.4rem + 2.5vw, 5rem);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}
.hero-intro {
  font-size: var(--fs-hero-intro);
  color: var(--text);
  max-width: 60ch;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 0 26px;
  font-size: var(--fs-byline);
  color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-media {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}
.hero-media img { margin: 0 auto; max-height: 360px; width: auto; }
.hero-media figcaption { font-size: var(--fs-caption); color: var(--muted); margin-top: 14px; }

/* ---------- Scrolling product highlights ---------- */
.ticker-strip {
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}
.ticker-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}
.ticker-group span {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.ticker-group span::after {
  content: "\2022";
  margin-left: 56px;
  color: var(--teal-light);
}
@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-group[aria-hidden="true"] { display: none; }
}

.section-image-below {
  max-width: 460px;
  margin: 38px auto 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.section-image-below img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 600px;
  margin: 0 auto;
}

/* ---------- Evidence status chips ---------- */
.evidence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.evidence-manufacturer { background: #FBF1DC; border-color: #E4C87F; color: #7A5A0B; }
.evidence-ingredient { background: #EAF2F1; border-color: #BFDAD6; color: #21504B; }
.evidence-independent { background: #EAF0F6; border-color: #BFD3E6; color: #1F4670; }
.evidence-pending { background: #F1EFEC; border-color: #D9D3C6; color: #5C6570; }
.evidence-verified { background: #E9F4EA; border-color: #B9DCC0; color: #2A6B36; }

/* ---------- Verdict / quick-answer card ---------- */
.verdict-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 6px solid var(--teal);
  border-radius: 12px;
  padding: 28px 30px;
}
.verdict-card h2 { margin-bottom: 14px; }
.verdict-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
@media (min-width: 700px) {
  .verdict-grid { grid-template-columns: repeat(3, 1fr); }
}
.verdict-item {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.verdict-item .label { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--teal-deep); margin-bottom: 6px; display: block; }
.verdict-item p { font-size: var(--fs-card); margin: 0; }

/* ---------- Fact table ---------- */
.fact-table { width: 100%; border-collapse: collapse; font-size: var(--fs-table); background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.fact-table tr { border-bottom: 1px solid var(--border); }
.fact-table tr:last-child { border-bottom: none; }
.fact-table th, .fact-table td { text-align: left; padding: 14px 18px; vertical-align: top; }
.fact-table th { width: 34%; color: var(--slate); font-weight: 600; background: var(--ivory-soft); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
table.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-table); min-width: 560px; background: var(--white); }
table.data-table caption { caption-side: top; text-align: left; font-weight: 600; padding-bottom: 10px; }
table.data-table th, table.data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.data-table thead th { background: var(--navy); color: var(--ivory); font-weight: 600; }
table.data-table tbody tr:nth-child(even) { background: var(--ivory-soft); }

/* ---------- Two column / grid helpers ---------- */
.grid-2 { display: grid; gap: 24px; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.card h3 { font-size: var(--fs-h4); margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card p { font-size: var(--fs-card); }

/* Pros & cons */
.pros-cons { display: grid; gap: 20px; }
@media (min-width: 760px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-cons .card ul { list-style: none; padding: 0; margin: 0; }
.pros-cons .card li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-card); }
.pros-cons .icon { flex-shrink: 0; margin-top: 3px; }
.pros .icon { color: var(--good); }
.cons .icon { color: var(--cta-dark); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 16px; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step p { margin: 6px 0 0; font-size: var(--fs-card); }
.step h4 { margin-bottom: 0; font-size: 1.1875rem; }

/* ---------- Price component ---------- */
.price-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
}
.price-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.price-checked {
  font-size: var(--fs-byline);
  color: var(--muted);
}
.price-checked strong { color: var(--navy); }
.price-rows { display: grid; gap: 14px; margin-bottom: 20px; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--ivory-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.price-row .qty { font-weight: 700; color: var(--navy); font-size: 1.1875rem; }
.price-row .per-bottle { font-size: var(--fs-byline); color: var(--muted); }
.price-row .amount { font-size: 1.375rem; font-weight: 700; color: var(--navy); }
.price-conditions { font-size: var(--fs-byline); color: var(--muted); margin-top: 4px; }
.price-conditions li { margin-bottom: 6px; }

.pricing-selector {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 38px);
}
.offer-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.offer-summary .headline-price {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
}
.offer-summary .shipping-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
}
.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid #a7d4b0;
  border-radius: 999px;
  background: #edf8ef;
  color: #216a32;
  font-size: 0.95rem;
  font-weight: 700;
}
.stock-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f8a43;
}
.package-heading {
  margin: 26px 0 14px;
  font-size: 1.25rem;
  color: var(--navy);
}
.package-options {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}
.package-option {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  background: var(--ivory-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.package-option:hover,
.package-option:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 8px 22px rgba(25, 52, 65, 0.1);
  transform: translateY(-1px);
  color: var(--text);
}
.package-option.featured { border-color: var(--teal); background: #f3faf8; }
.package-title { display: block; font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.package-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.package-rate { font-weight: 700; color: var(--teal-deep); }
.package-save { display: block; margin-top: 3px; font-size: 0.95rem; color: var(--muted); }
.package-total { font-size: 1.35rem; font-weight: 700; color: var(--navy); text-align: right; }
.pricing-selector .price-conditions { margin: 0 0 22px; }

@media (max-width: 640px) {
  .package-option { grid-template-columns: 1fr auto; }
  .package-option > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .package-total { grid-column: 2; grid-row: 1; }
}

/* ---------- Contextual CTA block ---------- */
.cta-block {
  background: var(--navy);
  color: var(--ivory);
  border-radius: 16px;
  padding: 34px 32px;
  text-align: center;
}
.cta-block h2, .cta-block h3 { color: var(--white); }
.cta-block p { color: var(--ivory-soft); max-width: 62ch; margin-left: auto; margin-right: auto; }
.cta-block .btn-secondary { border-color: var(--ivory); color: var(--ivory); }
.cta-block .btn-secondary:hover { background: var(--ivory); color: var(--navy); }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 50px 18px 20px;
  font-size: var(--fs-faq-q);
  font-weight: 600;
  color: var(--navy);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--teal-deep);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 20px 20px; font-size: var(--fs-faq-a); color: var(--text); }
.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { font-weight: 600; }

/* ---------- Medical caution box ---------- */
.caution-box {
  background: var(--caution-bg);
  border: 1px solid #E4C87F;
  border-left: 6px solid var(--caution);
  border-radius: 10px;
  padding: 20px 22px;
}
.caution-box p { margin: 0 0 10px; font-size: var(--fs-card); }
.caution-box p:last-child { margin-bottom: 0; }
.caution-box strong { color: #7A5A0B; }

/* ---------- Comparison table wrap already covered ---------- */

/* ---------- Sources ---------- */
.sources-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sources-list li { font-size: var(--fs-byline); border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.sources-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sources-list .src-name { font-weight: 600; color: var(--navy); display: block; }

/* ---------- Update history ---------- */
.update-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.update-list li { font-size: var(--fs-byline); color: var(--muted); }
.update-list .date { font-weight: 700; color: var(--navy); margin-right: 8px; }

/* ---------- Image blocks ---------- */
.img-frame {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
figure { margin: 0; }
figcaption { font-size: var(--fs-caption); color: var(--muted); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--ivory-soft); }
.site-footer .container { padding-top: var(--section-space); padding-bottom: 40px; }
.footer-grid { display: grid; gap: 32px; margin-bottom: 40px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); } }
.footer-col h4 { color: var(--white); font-size: var(--fs-footer-h); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ivory-soft); font-size: var(--fs-footer); text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-brand p { color: var(--ivory-soft); font-size: var(--fs-footer); max-width: 42ch; }
.footer-disclosure {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 24px;
  font-size: var(--fs-disclosure);
  color: var(--slate-light);
  line-height: 1.6;
}
.footer-disclosure p { max-width: none; color: inherit; font-size: inherit; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: var(--fs-disclosure);
  color: var(--slate-light);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small-note { font-size: var(--fs-byline); color: var(--muted); }
.section-head { max-width: var(--content-width); margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

@media (max-width: 767px) {
  body { font-size: 18px; }
  .container { padding-left: 18px; padding-right: 18px; }
}
