:root {
  --bg: #0A0A08;
  --surface: #16130A;
  --text: #FAF7F2;
  --muted: #D6D3D1;
  --primary: #FACC15;
  --secondary: #DC2626;
  --accent: #16A34A;
  --border: rgba(250, 247, 242, 0.12);
  --clinical-blue: rgba(22, 163, 74, 0.15);
  --medical-trust: rgba(250, 247, 242, 0.06);
  --health-glow: rgba(22, 163, 74, 0.08);
}

*,
*::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;
  background: var(--bg);
  background-image:
    linear-gradient(165deg, var(--bg) 0%, #12100A 40%, var(--surface) 100%),
    radial-gradient(ellipse at 20% 0%, var(--health-glow) 0%, transparent 55%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 80px,
    var(--medical-trust) 80px,
    var(--medical-trust) 81px
  );
  pointer-events: none;
  z-index: 0;
}

.disclosure-banner {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  border-bottom: 1px solid rgba(250, 247, 242, 0.18);
  background: transparent;
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid rgba(250, 247, 242, 0.06);
  height: 58px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo-lockup img {
  display: block;
  flex-shrink: 0;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-desktop a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 10px;
  position: relative;
  transition: color 0.2s;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-desktop a:hover {
  color: var(--text);
}

.nav-desktop a:hover::after {
  transform: scaleX(1);
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

.nav-drawer {
  display: none;
  position: fixed;
  top: 58px;
  left: 0;
  width: 280px;
  height: calc(100vh - 58px);
  background: var(--surface);
  z-index: 99;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer a {
  display: block;
  padding: 14px 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.nav-drawer a:hover {
  color: var(--text);
  border-left-color: var(--accent);
  background: var(--clinical-blue);
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 58px 0 0 0;
  background: rgba(10, 10, 8, 0.6);
  z-index: 98;
}

.drawer-overlay.open {
  display: block;
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
}

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.footer-links h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-compliance {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--medical-trust);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.footer-compliance p {
  margin-bottom: 10px;
}

.footer-compliance p:last-child {
  margin-bottom: 0;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.footer-badges a {
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-badges a:hover {
  opacity: 1;
}

.footer-badges img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-company {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-updated {
  font-size: 0.75rem;
  color: var(--muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 8, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.modal-box h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

.modal-box p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
  border: none;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 10px 24px;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--muted);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 640px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.page-hero-compact {
  height: 120px;
  background: var(--surface);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  position: relative;
}

.page-hero-compact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--clinical-blue) 100%);
  pointer-events: none;
}

.page-hero-compact .page-hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.85;
  padding: 0 24px 8px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  white-space: nowrap;
  color: var(--text);
}

.page-subtitle-strip {
  height: 40px;
  background: rgba(22, 20, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--text);
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
  color: var(--text);
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 24px 0 10px;
  color: var(--text);
}

.legal-content p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-content ul {
  margin: 0 0 14px 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-content li {
  margin-bottom: 6px;
}

.contact-form {
  margin-top: 32px;
  padding: 28px;
  background: var(--medical-trust);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 16px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  color: var(--secondary);
  font-size: 0.82rem;
  margin: -10px 0 12px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  padding: 24px;
  background: var(--clinical-blue);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
  display: none;
}

.form-success.visible {
  display: block;
}

.redirect-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.redirect-page .ad-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.redirect-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 24px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.redirect-page p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 400px;
  margin-bottom: 12px;
}

.redirect-compliance {
  margin-top: 32px;
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.6;
}

.redirect-compliance a {
  color: var(--accent);
}

.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.error-page h1 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  .nav-drawer {
    display: block;
  }

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

  .page-hero-compact {
    height: 80px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 0 16px;
  }

  .nav-desktop a {
    font-size: 0.75rem;
    padding: 6px 6px;
  }
}
