/* ============================================================
   PRATTMED.COM — Shared Stylesheet
   Design: Editorial Medical — authoritative, clean, trustworthy
   Fonts: Playfair Display (headings) + Source Serif 4 (body)
   ============================================================ */

@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&display=swap');

:root {
  --navy: #0d2137;
  --navy-mid: #1a3a5c;
  --teal: #0e7c6e;
  --teal-light: #e6f4f2;
  --teal-mid: #128a7a;
  --gold: #b8882a;
  --gold-light: #fdf7ed;
  --text: #1c1c1e;
  --text-mid: #3d3d3f;
  --text-light: #6e6e73;
  --text-xlight: #9a9a9f;
  --border: #e5e5ea;
  --border-light: #f0f0f5;
  --white: #ffffff;
  --bg: #f9f9fb;
  --bg-warm: #faf9f7;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow: 0 3px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --max: 1160px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-mid); }

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

/* ---- HEADER ---- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-dot { color: var(--teal); }
.logo-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-left: 2px;
  align-self: flex-end;
  padding-bottom: 3px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  color: rgba(255,255,255,0.72);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all .15s;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.09);
}
.nav-categories-btn {
  background: var(--teal) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 7px 16px !important;
}
.nav-categories-btn:hover { background: var(--teal-mid) !important; }
.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 8px; }
.hamburger span { width: 20px; height: 2px; background: rgba(255,255,255,0.8); border-radius: 2px; transition: all .2s; }
.mobile-nav {
  display: none;
  background: var(--navy-mid);
  padding: 12px 24px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: block; }

/* ---- BREADCRUMB ---- */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
}
.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--teal); }
.breadcrumb-sep { color: var(--border); }

/* ---- HERO ---- */
.hero {
  background: var(--navy);
  padding: 72px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 80%, rgba(14,124,110,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14,124,110,0.2);
  border: 1px solid rgba(14,124,110,0.4);
  color: #5dd4c6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 18px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 em { color: #5dd4c6; font-style: normal; }
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.68);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 26px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all .15s;
  text-decoration: none;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-mid); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-mid); color: var(--white); }

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
}
.trust-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
}
.trust-icon {
  width: 20px;
  height: 20px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-icon svg { width: 10px; height: 10px; }

/* ---- SECTION LAYOUTS ---- */
.section { max-width: var(--max); margin: 0 auto; padding: 56px 24px; }
.section-sm { max-width: var(--max); margin: 0 auto; padding: 36px 24px; }
.section-head { margin-bottom: 32px; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 10px;
}
.section-desc { font-size: 16px; color: var(--text-light); max-width: 600px; line-height: 1.65; font-weight: 300; }

/* ---- CATEGORY CARDS ---- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .18s;
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.cat-icon {
  width: 44px;
  height: 44px;
  background: var(--teal-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.cat-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.cat-count { font-size: 12px; color: var(--text-light); }
.cat-arrow { color: var(--teal); font-size: 16px; margin-top: auto; }

/* ---- FEATURE BLOCKS ---- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
}
.feature-num {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 10px;
}
.feature-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.feature-text { font-size: 14px; color: var(--text-light); line-height: 1.65; font-weight: 300; }

/* ---- DISCLAIMER BOX ---- */
.disclaimer-box {
  background: var(--gold-light);
  border: 1px solid #e8d09a;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}
.disclaimer-box strong {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
}

/* ---- DIVIDER SECTION ---- */
.divider-section {
  background: var(--teal-light);
  border-top: 1px solid #c5e3df;
  border-bottom: 1px solid #c5e3df;
  padding: 48px 24px;
  text-align: center;
}
.divider-section h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--navy);
  margin-bottom: 12px;
}
.divider-section p { font-size: 16px; color: var(--text-mid); max-width: 500px; margin: 0 auto 24px; font-weight: 300; }

/* ---- CONTENT PAGE LAYOUT ---- */
.page-hero {
  background: var(--navy);
  padding: 52px 24px 48px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 42px);
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.65); max-width: 520px; margin: 0 auto; font-weight: 300; }

.content-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}
.content-body h2 {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--navy);
  margin: 36px 0 12px;
}
.content-body h3 { font-size: 17px; color: var(--text); margin: 24px 0 8px; font-weight: 600; }
.content-body p { margin-bottom: 16px; color: var(--text-mid); font-weight: 300; line-height: 1.8; }
.content-body ul { margin: 0 0 16px 20px; }
.content-body li { margin-bottom: 6px; color: var(--text-mid); font-weight: 300; }
.content-body a { color: var(--teal); }

/* ---- CATEGORY PAGE ---- */
.cat-page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); padding: 52px 24px; text-align: center; }
.cat-page-hero .cat-page-icon { font-size: 48px; margin-bottom: 16px; }
.cat-page-hero h1 { font-family: var(--font-head); font-size: clamp(26px, 4vw, 40px); color: var(--white); margin-bottom: 12px; }
.cat-page-hero p { font-size: 16px; color: rgba(255,255,255,0.65); max-width: 500px; margin: 0 auto; font-weight: 300; }

/* Supplement slots — shown when subdomains exist */
.supplements-section { display: none; } /* hidden until activated */
.supplements-section.active { display: block; }

/* Products data container — JS reads this */
#supplements-data { display: none; }

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--navy);
  padding: 36px 24px;
}
.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-val {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: #5dd4c6;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,0.55); }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 52px 24px 28px;
  border-top: 3px solid var(--teal);
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-about {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  max-width: 280px;
  font-weight: 300;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.62);
  margin-bottom: 9px;
  transition: color .12s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal { font-size: 11px; color: rgba(255,255,255,0.38); line-height: 1.7; max-width: 680px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.35); white-space: nowrap; }

/* ---- UTILITIES ---- */
.bg-white { background: var(--white); }
.bg-warm { background: var(--bg-warm); }
.bordered-top { border-top: 1px solid var(--border); }
.bordered-bottom { border-bottom: 1px solid var(--border); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 52px 20px 48px; }
  .trust-inner { gap: 16px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-about { max-width: 100%; }
}
