/* MeaslesFAQ.com - Global Styles */
:root {
  --blue: #1a73b5;
  --blue-light: #e8f4fd;
  --blue-dark: #0d4f7a;
  --green: #2e8b57;
  --green-light: #e8f5ee;
  --red: #d32f2f;
  --red-light: #fde8e8;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #868e96;
  --gray-700: #495057;
  --gray-900: #212529;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 8px;
  --max-width: 1100px;
}

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---- NAV ---- */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 60px;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 1.25rem; list-style: none; }
.nav-links a { color: var(--gray-700); font-size: .95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--gray-700); }

/* ---- AD PLACEHOLDERS ---- */
.ad-slot {
  display: none; /* Hidden until real AdSense code is ready */
  background: var(--gray-100);
  border: 1px dashed var(--gray-300);
  text-align: center;
  padding: 1rem;
  color: var(--gray-500);
  font-size: .85rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.ad-slot-header { max-width: var(--max-width); margin: 0 auto; padding: .75rem 1rem; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 3rem 1rem;
  text-align: center;
}
.hero h1 { font-size: 2.2rem; margin-bottom: .75rem; font-weight: 700; }
.hero p { font-size: 1.15rem; opacity: .9; max-width: 640px; margin: 0 auto .5rem; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.hero-stat {
  background: rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  min-width: 140px;
}
.hero-stat .number { font-size: 2rem; font-weight: 700; display: block; }
.hero-stat .label { font-size: .85rem; opacity: .85; }

/* ---- LAYOUT ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 2rem 1rem; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}
.content-main { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.card h2 { font-size: 1.35rem; color: var(--blue-dark); margin-bottom: .75rem; }
.card h3 { font-size: 1.1rem; color: var(--gray-900); margin-bottom: .5rem; }

/* ---- QUICK LINKS ---- */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.quick-link {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.quick-link:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; }
.quick-link .icon { font-size: 2rem; margin-bottom: .5rem; }
.quick-link .title { font-weight: 600; color: var(--blue-dark); display: block; }
.quick-link .desc { font-size: .85rem; color: var(--gray-500); margin-top: .25rem; }

/* ---- ALERT BAR ---- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: .95rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.alert-red { background: var(--red-light); border-left: 4px solid var(--red); color: #7a1a1a; }
.alert-blue { background: var(--blue-light); border-left: 4px solid var(--blue); color: var(--blue-dark); }
.alert-green { background: var(--green-light); border-left: 4px solid var(--green); color: #1a5c35; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--gray-200); padding: 1rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--gray-900);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  line-height: 1.5;
}
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--blue); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a { display: none; padding-top: .75rem; color: var(--gray-700); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ---- TABLE ---- */
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th {
  background: var(--blue);
  color: var(--white);
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 60px;
}
.data-table td { padding: .65rem 1rem; border-bottom: 1px solid var(--gray-200); }
.data-table tr:hover td { background: var(--blue-light); }
.data-table .cases-high { color: var(--red); font-weight: 600; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---- CLINIC FINDER ---- */
.finder-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  text-align: center;
  max-width: 500px;
  margin: 0 auto 2rem;
}
.finder-box h2 { margin-bottom: .5rem; }
.finder-box p { color: var(--gray-500); margin-bottom: 1rem; }
.finder-input-group {
  display: flex;
  gap: .5rem;
}
.finder-input-group input {
  flex: 1;
  padding: .75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
}
.finder-input-group input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,115,181,.15); }
.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; color: var(--white); }
.btn-green { background: var(--green); }
.btn-green:hover { background: #246e46; }

.clinic-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.clinic-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
}
.clinic-card h3 { margin-bottom: .5rem; color: var(--blue-dark); }
.clinic-card p { font-size: .9rem; color: var(--gray-500); margin-bottom: 1rem; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 2rem 1rem;
  margin-top: 3rem;
  font-size: .9rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1.25rem; list-style: none; }
.footer-links a { color: var(--gray-300); }
.footer-links a:hover { color: var(--white); }

/* ---- PAGE HEADER ---- */
.page-header {
  background: var(--blue);
  color: var(--white);
  padding: 2rem 1rem;
  text-align: center;
}
.page-header h1 { font-size: 1.8rem; }
.page-header p { opacity: .85; margin-top: .5rem; }

/* ---- LEGAL ---- */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { margin-top: 2rem; margin-bottom: .5rem; color: var(--blue-dark); font-size: 1.2rem; }
.legal-content p, .legal-content li { color: var(--gray-700); margin-bottom: .75rem; }
.legal-content ul { padding-left: 1.5rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .hero h1 { font-size: 1.6rem; }
  .hero-stats { gap: 1rem; }
  .hero-stat { min-width: 120px; padding: .75rem 1rem; }
  .hero-stat .number { font-size: 1.5rem; }
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1rem; border-bottom: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .finder-input-group { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}
