/* glp1medication.us.com - GLP-1 Medication Side Effects & Natural Alternatives */
/* Color Palette: Clinical slate/blue for medication sections, warm green/earth for natural alternatives */

:root {
  --slate-dark: #334155;
  --slate-mid: #475569;
  --slate-light: #64748b;
  --slate-pale: #f1f5f9;
  --green-dark: #2d6a4f;
  --green-mid: #40916c;
  --green-light: #52b788;
  --green-pale: #d8f3dc;
  --earth-warm: #d4a373;
  --earth-light: #faedcd;
  --warn-red: #dc2626;
  --warn-red-light: #fef2f2;
  --warn-red-border: #fecaca;
  --warn-amber: #d97706;
  --warn-amber-light: #fffbeb;
  --warn-amber-border: #fde68a;
  --text-primary: #1b1b1b;
  --text-secondary: #4a4a4a;
  --text-light: #6b6b6b;
  --bg-white: #ffffff;
  --bg-off: #f8f9fa;
  --border-light: #e0e0e0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  background: var(--bg-white);
}

a {
  color: var(--slate-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--green-mid);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Nav --- */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--slate-dark);
}

.site-logo span {
  color: var(--slate-light);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--green-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate-mid) 50%, var(--slate-light) 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 660px;
  margin: 0 auto 32px;
  opacity: 0.92;
}

.hero .cta-btn {
  display: inline-block;
  background: var(--green-dark);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.hero .cta-btn:hover {
  background: #1b4332;
  transform: translateY(-1px);
  color: #fff;
}

/* --- Section Defaults --- */
.section {
  padding: 72px 24px;
}

.section-alt {
  background: var(--slate-pale);
}

.section-natural {
  background: var(--green-pale);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--slate-dark);
}

.section-title-green {
  color: var(--green-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 660px;
  margin: 0 auto 48px;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--slate-dark);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card ul {
  color: var(--text-secondary);
  font-size: 0.93rem;
  padding-left: 20px;
  margin-top: 8px;
}

.card ul li {
  margin-bottom: 4px;
}

/* --- Warning Cards --- */
.card-warn {
  border-left: 4px solid var(--warn-red);
  background: var(--warn-red-light);
}

.card-warn h3 {
  color: var(--warn-red);
}

.card-caution {
  border-left: 4px solid var(--warn-amber);
  background: var(--warn-amber-light);
}

.card-caution h3 {
  color: #92400e;
}

/* --- Natural Alternative Cards --- */
.card-natural {
  border-left: 4px solid var(--green-mid);
  background: #f0faf4;
}

.card-natural h3 {
  color: var(--green-dark);
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
}

.comparison-table td {
  padding: 14px 20px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
}

.comparison-table thead th {
  background: var(--slate-dark);
  color: #fff;
}

.comparison-table .col-med {
  background: var(--warn-red-light);
}

.comparison-table .col-nat {
  background: #f0faf4;
}

.comparison-table tbody tr:hover {
  background: var(--bg-off);
}

.source-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 16px;
  font-style: italic;
}

/* --- Product Highlight --- */
.product-highlight {
  background: linear-gradient(135deg, var(--earth-light) 0%, var(--green-pale) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.product-highlight h3 {
  font-size: 1.6rem;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.product-highlight p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 24px;
}

.ingredient-list {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.ingredient-tag {
  background: var(--bg-white);
  border: 1px solid var(--green-light);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-dark);
}

.badge {
  display: inline-block;
  background: var(--green-dark);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

/* --- Drug List --- */
.drug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto 32px;
}

.drug-tag {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: center;
}

.drug-tag .drug-brand {
  font-weight: 600;
  font-size: 1rem;
  color: var(--slate-dark);
}

.drug-tag .drug-generic {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 2px;
}

.drug-tag .drug-type {
  font-size: 0.75rem;
  color: var(--slate-light);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- FAQ --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.faq-answer {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Disclaimer Banner --- */
.disclaimer-banner {
  background: var(--earth-light);
  border-left: 4px solid var(--earth-warm);
  padding: 20px 24px;
  margin: 48px auto;
  max-width: var(--max-width);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Article Cards --- */
.article-list {
  max-width: var(--max-width);
  margin: 0 auto;
}

.article-card {
  display: block;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}

.article-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--slate-dark);
}

.article-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Footer --- */
.site-footer {
  background: var(--slate-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
}

.footer-bottom a {
  color: rgba(255,255,255,0.85);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    padding: 56px 20px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 48px 20px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .product-highlight {
    padding: 32px 20px;
  }

  .ingredient-list {
    gap: 10px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .drug-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .drug-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--slate-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
  top: 0;
  color: #fff;
}

a:focus-visible,
button:focus-visible,
.cta-btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .hero .cta-btn:hover {
    transform: none;
  }
}
