@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #0f172a;
  --secondary-color: #2563eb;
  --accent-color: #f1f5f9;
  --text-color: #334155;
  --text-light: #64748b;
  --bg-color: #ffffff;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --font-base: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-base);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--primary-color);
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--primary-color);
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; margin-top: 1.5rem; }

p { margin-bottom: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background-color: var(--secondary-color);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #1d4ed8;
  color: #fff;
}
.btn-secondary {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--border-color);
  color: var(--primary-color);
}
.btn-nav {
  background-color: #fff;
  color: var(--primary-color);
  padding: 8px 16px;
  margin-left: 12px;
  border-radius: 6px;
  font-size: 0.85rem;
}
.btn-nav:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

/* Header */
.site-header {
  background-color: var(--primary-color);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-list a {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.85rem;
}

.nav-list a:hover {
  color: #fff;
  text-decoration: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  position: relative;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #fff;
  left: 0;
  transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Disclaimer Banner */
.disclaimer-banner {
  background-color: var(--warning-color);
  color: #fff;
  padding: 12px 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
}
.disclaimer-banner p { margin: 0; }

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('images/photo-1550751827-4bd374c3f58b.png');
  background-size: cover;
  background-position: center;
  background-color: var(--primary-color);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}
.hero h1 { 
  color: #fff;
  margin-bottom: 24px; 
}
.hero p {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 800px;
  margin: 0 auto 35px;
}
.hero .btn {
  margin: 0 10px 10px 0;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 30px;
  margin: 40px 0;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.card img {
  width: calc(100% + 48px);
  margin: -24px -24px 20px -24px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}
.card h3 { margin-top: 0; font-size: 1.25rem; }
.card-footer {
  margin-top: auto;
  padding-top: 20px;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 600px;
}
th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
th {
  background-color: var(--bg-light);
  font-weight: 600;
  color: var(--primary-color);
}
tr:last-child td { border-bottom: none; }
tr:hover { background-color: var(--bg-light); }

/* Filters */
.filter-group {
  margin: 30px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* FAQ Accordion */
.faq-accordion {
  margin: 30px 0;
}
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 12px;
  background: #fff;
}
.faq-btn {
  width: 100%;
  text-align: left;
  padding: 20px;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-family: inherit;
}
.faq-btn::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--secondary-color);
}
.faq-item.active .faq-btn::after {
  content: '-';
}
.faq-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fff;
}
.faq-content p { padding: 0 0 20px 0; margin: 0; color: var(--text-light); }
.faq-item.active .faq-content { max-height: 500px; }

/* Forms */
.form-group {
  margin-bottom: 20px;
}
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-color);
}
input, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: var(--font-base);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background-color: var(--bg-light);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  background-color: #fff;
}
textarea { resize: vertical; min-height: 150px; }
.form-error {
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}
input:invalid:not(:placeholder-shown) + .form-error,
textarea:invalid:not(:placeholder-shown) + .form-error {
  display: block;
}

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 60px 0 20px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h3, .footer-col h4 {
  color: #fff;
  margin-bottom: 20px;
  margin-top: 0;
  font-size: 1.25rem;
}
.footer-col p {
  color: #cbd5e1;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: #cbd5e1; }
.footer-col ul a:hover { color: #fff; }
.medical-disclaimer {
  font-size: 0.85rem;
  color: #94a3b8 !important;
  border-top: 1px solid #334155;
  padding-top: 15px;
  margin-top: 20px;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #334155;
  font-size: 0.95rem;
  color: #94a3b8;
}
.business-info p { margin-bottom: 5px; }
.business-info a { color: #cbd5e1; }
.business-info a:hover { color: #fff; }

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-top: 3px solid var(--secondary-color);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 24px;
  z-index: 9999;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-content h2 { font-size: 1.2rem; margin: 0; }
.cookie-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

/* Responsive */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 20px;
    display: none;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  }
  .main-nav.active { display: flex; }
  .nav-list {
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 20px;
  }
  .btn-nav { margin: 20px 0 0 0; width: 100%; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 2rem; }
  .footer-grid { gap: 30px; }
}

/* Article List */
.article-list { list-style: none; }
.article-list li { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.article-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.article-list h3 { margin: 0 0 8px 0; font-size: 1.25rem; }

/* Misc Content Blocks */
.content-box {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 8px;
  margin: 30px 0;
  border: 1px solid var(--border-color);
}