/* ICCS — Infection Control Consulting Services
   Brand colors pulled from logo: navy #364fcb, teal #49c1e6 */

:root {
  --navy: #364fcb;
  --navy-dark: #283a99;
  --teal: #49c1e6;
  --teal-light: #eaf8fd;
  --ink: #1a2233;
  --gray: #5b6472;
  --bg-light: #f7f9fc;
  --white: #ffffff;
  --border: #e3e8f0;
  --radius: 10px;
  --max-width: 1140px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px 16px;
}
@media (max-width: 1180px) {
  .header-inner { justify-content: flex-start; }
  .brand { order: 1; margin-right: auto; }
  .header-cta { order: 2; }
  nav.main-nav { order: 3; width: 100%; }
  nav.main-nav ul { justify-content: center; }
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 42px; width: auto; }
.brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-dark);
  line-height: 1.2;
}
.brand-text span {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--gray);
}
nav.main-nav ul {
  display: flex;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: var(--ink);
  font-size: 0.89rem;
  font-weight: 600;
  white-space: nowrap;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--navy); text-decoration: none; }
.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--teal-light); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 64px 0;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 14px;
  font-weight: 800;
  line-height: 1.25;
}
.hero p.subhead {
  font-size: 1.15rem;
  color: var(--teal-light);
  margin: 0 0 24px;
  max-width: 640px;
}
.hero .btn-primary { background: var(--teal); color: var(--navy-dark); }
.hero .btn-primary:hover { background: #2fb0d6; }
.hero .btn-outline { color: var(--white); border-color: var(--white); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.12); }

/* Page header (non-home pages) */
.page-header {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.page-header h1 { margin: 0 0 8px; color: var(--navy-dark); font-size: 2rem; }
.page-header p { margin: 0; color: var(--gray); max-width: 640px; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--bg-light); }
h2 {
  color: var(--navy-dark);
  font-size: 1.6rem;
  margin: 0 0 18px;
}
h3 { color: var(--navy-dark); font-size: 1.15rem; margin: 0 0 8px; }

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.stat-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.stat-box .num { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.stat-box .label { font-size: 0.85rem; color: var(--gray); margin-top: 4px; }

/* Cards / grids */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-top: 0; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 800;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  background: var(--white);
}
.faq-item h3 { margin: 0 0 8px; font-size: 1.02rem; }
.faq-item p { margin: 0; color: var(--gray); }

/* Badge row */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.badge {
  background: var(--teal-light);
  color: var(--navy-dark);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: #d6def5;
  padding: 40px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
footer.site-footer h4 { color: var(--white); font-size: 0.95rem; margin: 0 0 12px; }
footer.site-footer a { color: #d6def5; }
footer.site-footer a:hover { color: var(--teal); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 0.8rem;
  color: #9fb0db;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 14px;
  max-width: 560px;
}
.contact-form label { font-weight: 600; font-size: 0.88rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}
.contact-form textarea { min-height: 110px; resize: vertical; }

/* Bio layout */
.bio-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.bio-photo {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: var(--teal-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
@media (max-width: 640px) {
  .bio-layout { grid-template-columns: 1fr; }
  .header-inner {
    padding: 12px 16px;
  }
  .brand {
    width: 100%;
  }
  .header-cta {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  nav.main-nav {
    display: block;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  nav.main-nav ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    min-width: max-content;
  }
  nav.main-nav a {
    display: block;
    padding: 8px 10px;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--white);
  color: var(--navy-dark);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.skip-link:focus {
  left: 8px;
}
