/* CAMP Laboratory — clinical navy/teal theme */
:root {
  --navy: #0a2a4d;
  --navy-deep: #061c34;
  --teal: #0e7c86;
  --teal-dark: #0a6169;
  --teal-soft: #e7f3f4;
  --ink: #1d2b3a;
  --muted: #5d6f82;
  --bg: #ffffff;
  --bg-soft: #f3f7f9;
  --line: #d9e4ea;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(10, 42, 77, 0.08);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Billing banner ---------- */
.billing-banner {
  background: var(--navy-deep);
  color: #fff;
  font-size: 14.5px;
  text-align: center;
  padding: 10px 16px;
  letter-spacing: 0.02em;
}
.billing-banner strong { color: #7fd4d8; }
.billing-banner a { color: #7fd4d8; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.brand { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.02em;
}
.brand-logo { height: 78px; width: auto; display: block; }
.brand-text { line-height: 1.2; }
.brand-text .name { font-weight: 800; color: var(--navy); font-size: 19px; letter-spacing: 0.04em; }
.brand-text .sub { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px;
  padding: 12px 13px; border-radius: 6px; white-space: nowrap;
}
.main-nav a:hover { color: var(--teal-dark); background: var(--teal-soft); }
.main-nav a.active { color: var(--teal-dark); }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 16px;
  padding: 13px 26px; border-radius: 8px; border: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-outline {
  background: transparent; color: var(--teal-dark);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal-soft); }

.portal-btn {
  background: var(--navy); color: #fff !important;
  padding: 10px 18px !important; border-radius: 8px; font-size: 15px !important;
  white-space: nowrap;
}
.portal-btn:hover { background: var(--navy-deep) !important; }

.nav-toggle { display: none; background: none; border: none; font-size: 28px; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.35;
}
.hero-inner {
  position: relative;
  padding: 96px 24px 88px;
  max-width: 1140px; margin: 0 auto;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.01em;
  max-width: 760px;
}
.hero h1 .accent { color: #7fd4d8; }
.hero p.lede {
  font-size: 20px; color: #cfe3e8; max-width: 640px; margin: 18px 0 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: #7fd4d8; }
.hero .btn-outline:hover { background: rgba(127, 212, 216, 0.15); }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
  color: #fff; padding: 60px 24px 54px;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.01em; }
.page-hero p { color: #cfe3e8; font-size: 18px; margin-top: 10px; max-width: 720px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section h2 {
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--navy);
  letter-spacing: -0.01em; margin-bottom: 14px;
}
.section .kicker {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px;
  color: var(--teal-dark); font-weight: 800; margin-bottom: 8px;
}
.section > .wrap > p.lede, .lede { font-size: 19px; color: var(--muted); max-width: 760px; }

/* ---------- Action cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(10, 42, 77, 0.12); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--teal-soft); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.card h3 { font-size: 21px; color: var(--navy); font-weight: 750; }
.card p { color: var(--muted); font-size: 16px; flex: 1; }
.card a.card-link { color: var(--teal-dark); font-weight: 700; text-decoration: none; }
.card a.card-link:hover { text-decoration: underline; }

/* ---------- Two-column ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col img.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Full-width image band ---------- */
.img-band {
  height: 300px; background-size: cover; background-position: center;
  display: flex; align-items: flex-end; justify-content: center;
  position: relative;
}
.img-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 45%, rgba(6, 28, 52, 0.6));
}
.img-band span {
  position: relative; z-index: 1; color: #fff; font-size: 19px; font-style: italic;
  padding: 0 24px 26px; text-align: center; text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

/* ---------- Service blocks ---------- */
.service-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; margin-top: 28px; box-shadow: var(--shadow);
}
.service-block h3 { font-size: 24px; color: var(--navy); font-weight: 750; margin-bottom: 14px; }
.service-block ul { list-style: none; display: grid; gap: 10px; margin-top: 6px; }
.service-block ul li { padding-left: 30px; position: relative; font-size: 16.5px; }
.service-block ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 800;
}
.service-block p + p { margin-top: 12px; }

/* ---------- Doctors ---------- */
.doctor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.doctor-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.doctor-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff; font-size: 30px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.doctor-photo {
  width: 150px; height: 150px; border-radius: 50%;
  object-fit: cover; object-position: top center;
  border: 4px solid var(--teal-light);
  margin-bottom: 18px;
}
.doctor-card h3 { font-size: 24px; color: var(--navy); font-weight: 750; }
.doctor-card .role { color: var(--teal-dark); font-weight: 700; font-size: 15.5px; margin: 4px 0 14px; }
.doctor-card .cert { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.doctor-card .cert strong { color: var(--ink); }
.doctor-card p { font-size: 16.5px; color: var(--ink); }
.doctor-card p + p { margin-top: 12px; }

.team-section { margin-top: 72px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.team-card h3 { font-size: 19px; color: var(--navy); font-weight: 750; }
.team-card .role { color: var(--teal-dark); font-weight: 700; font-size: 14.5px; margin: 4px 0 8px; }
.team-card p { font-size: 15px; color: var(--ink); }
.team-card a { color: var(--teal-dark); font-weight: 600; }
.team-lead { border-left: 4px solid var(--teal); }
.photo-note {
  margin-top: 18px; font-size: 14px; color: var(--muted); font-style: italic;
  border-top: 1px dashed var(--line); padding-top: 14px;
}

/* ---------- Forms ---------- */
.form-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; margin-top: 28px; box-shadow: var(--shadow);
}
.form-block h3 { font-size: 24px; color: var(--navy); font-weight: 750; margin-bottom: 8px; }
.form-block .form-intro { color: var(--muted); margin-bottom: 24px; font-size: 16.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 15px; color: var(--navy); }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 8px;
  padding: 12px 14px; background: #fbfdfd; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 124, 134, 0.15);
}
.field textarea { min-height: 110px; resize: vertical; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.check-item {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 14px;
  font-size: 15.5px; cursor: pointer; background: #fbfdfd;
}
.check-item input { width: 18px; height: 18px; accent-color: var(--teal); }
.check-item input[type="number"] { width: 64px; margin-left: auto; }
.form-note {
  background: #fff8e6; border: 1px solid #f0d98a; border-radius: 8px;
  padding: 14px 18px; font-size: 15px; color: #7a5c00; margin: 20px 0;
}
.form-note strong { color: #5c4500; }
.form-actions { margin-top: 24px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.honeypot { position: absolute; left: -9999px; }

/* ---------- Contact info ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; align-items: start; }
.info-card {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px;
}
.info-card h3 { font-size: 22px; margin-bottom: 16px; color: #7fd4d8; }
.info-card p { margin-bottom: 10px; font-size: 16.5px; }
.info-card a { color: #7fd4d8; }
.info-card .hours { margin-top: 18px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 16px; font-size: 15.5px; }

/* ---------- For patients ---------- */
.bill-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px; margin-top: 32px; box-shadow: var(--shadow); text-align: center;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.bill-box h2 { margin-bottom: 16px; }
.bill-box p { color: var(--muted); font-size: 17.5px; margin-bottom: 14px; text-align: left; }
.bill-cta { margin: 28px 0 18px; }
.bill-phone { font-size: 18px; font-weight: 700; color: var(--navy); }
.gw-note {
  margin-top: 32px; padding: 24px 28px; background: var(--teal-soft);
  border-left: 4px solid var(--teal); border-radius: 0 8px 8px 0;
}
.gw-note p { margin-top: 8px; }
.gw-note p:first-child { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9cdd8; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; letter-spacing: 0.04em; }
.site-footer p, .site-footer a { font-size: 15px; color: #b9cdd8; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #7fd4d8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14); margin-top: 36px; padding-top: 22px;
  font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .cards, .doctor-grid, .team-grid, .two-col, .info-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 16px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .portal-btn { text-align: center; }
  .section { padding: 52px 0; }
  .form-block { padding: 28px 22px; }
}
