/* Prosta Peak Authority Site - Premium Health Design
   Colors derived from product bottle: deep navy + cyan blue
   Clean, modern, trustworthy, non-spammy
*/

:root {
  --navy: #0B1F3A;
  --navy-dark: #071628;
  --cyan: #00A8E8;
  --cyan-light: #4FC3F7;
  --cyan-dark: #0088C2;
  --blue-grad-start: #0B1F3A;
  --blue-grad-end: #1A4A7A;
  --white: #FFFFFF;
  --off-white: #F7FAFC;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --success: #059669;
  --warning: #D97706;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(11, 31, 58, 0.08), 0 2px 4px -2px rgba(11, 31, 58, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(11, 31, 58, 0.12), 0 8px 10px -6px rgba(11, 31, 58, 0.08);
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1120px;
  --header-h: 72px;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo span { color: var(--cyan); }

.nav-main { display: flex; align-items: center; gap: 1.75rem; }
.nav-main a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--gray-700);
}
.nav-main a:hover { color: var(--navy); }
.nav-main a.btn-primary {
  color: white;
}
.nav-main a.btn-primary:hover {
  color: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(0, 168, 232, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 168, 232, 0.45);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: white; }

.btn-lg { padding: 0.95rem 1.85rem; font-size: 1.05rem; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.3s;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 45%, #12355A 100%);
  color: white;
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 55%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(0,168,232,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  color: var(--cyan-light);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--cyan-light);
}

.hero-lead {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 540px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  opacity: 0.85;
}
.hero-trust span { display: flex; align-items: center; gap: 0.4rem; }

.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-wrap img {
  max-width: 289px; /* reduced ~15% from 340px */
  width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 40px rgba(0,0,0,0.35));
}

/* ========== SECTIONS ========== */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--gray-50); }
.section-title {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,168,232,0.12), rgba(0,168,232,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--cyan-dark);
  font-size: 1.35rem;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); border: 1px solid var(--gray-200); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
th {
  background: var(--navy);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: var(--gray-50); }

/* CTA blocks */
.cta-block {
  background: linear-gradient(135deg, var(--navy) 0%, #12355A 100%);
  color: white;
  border-radius: var(--radius);
  padding: 2.75rem;
  text-align: center;
  margin: 3rem 0;
}
.cta-block h2 { color: white; margin-bottom: 0.75rem; }
.cta-block p { opacity: 0.9; margin-bottom: 1.5rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* Quick answer box */
.quick-answer {
  background: linear-gradient(90deg, rgba(0,168,232,0.08), rgba(0,168,232,0.03));
  border-left: 4px solid var(--cyan);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0 2rem;
  font-size: 1.05rem;
}

/* TOC */
.toc {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.toc h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-600); margin-bottom: 0.85rem; }
.toc ol { counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 0.45rem; }
.toc li a { color: var(--gray-700); font-size: 0.95rem; }
.toc li a::before { content: counter(toc) ". "; color: var(--cyan-dark); font-weight: 600; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
}
.breadcrumbs a { color: var(--gray-600); }
.breadcrumbs span { margin: 0 0.4rem; }

/* Content prose */
.prose { max-width: 720px; }
.prose h2 {
  font-size: 1.55rem;
  font-weight: 750;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
}
.prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 1.75rem 0 0.75rem;
}
.prose p { margin-bottom: 1.15rem; }
.prose ul, .prose ol { margin: 1rem 0 1.25rem 1.25rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--gray-900); }

/* FAQ */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  background: white;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q:hover { background: var(--gray-50); }
.faq-a {
  padding: 0 1.25rem 1.25rem;
  color: var(--gray-700);
  display: none;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }

/* Disclosure */
.affiliate-note {
  font-size: 0.8rem;
  color: var(--gray-500);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand { color: white; font-weight: 700; font-size: 1.15rem; margin-bottom: 0.75rem; }
.footer-brand span { color: var(--cyan-light); }
.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--cyan-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* Sticky mobile CTA */
.mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--gray-200);
  padding: 0.75rem 1rem;
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.mobile-sticky .btn { width: 100%; }

/* Last updated / attribution */
.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 1.5rem 0 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-200);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-image-wrap img { max-width: 260px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-main { display: none; }
  .nav-toggle { display: block; }
  .nav-main.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: white;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    gap: 1rem;
    box-shadow: var(--shadow-lg);
  }
}

@media (max-width: 640px) {
  .section { padding: 3rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-sticky { display: block; }
  body { padding-bottom: 70px; }
  .hero { padding: 3rem 0 3.5rem; }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Pricing packages image */
.pricing-image-wrap {
  margin: 2rem auto;
  max-width: 720px;
  text-align: center;
}
.pricing-image-wrap a {
  display: block;
}
.pricing-image-wrap img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-image-wrap a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}
