/* H & B Medical Solutions, Inc. — site styles
   Palette taken from the logo: globe blues + ribbon silvers */
:root {
  --navy: #0b2a5b;
  --blue: #1f57b5;
  --blue-bright: #2f74d6;
  --sky: #e7f0fb;
  --silver: #c9ced6;
  --silver-light: #f3f5f8;
  --ink: #1d2433;
  --muted: #5a6577;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(11, 42, 91, 0.10);
  --max: 1140px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: "Merriweather", Georgia, serif; color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tint { background: var(--silver-light); }
.section__intro { max-width: 720px; margin: 0 auto 40px; text-align: center; color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }

/* Top bar + header */
.topbar { background: var(--navy); color: #dfe7f5; font-size: .9rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }

.site-header { background: var(--white); border-bottom: 1px solid var(--silver); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 72px; }
.brand span { font-family: "Merriweather", Georgia, serif; font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.2; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; align-items: center; }
.nav li { white-space: nowrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 1px solid var(--silver); border-radius: 6px; padding: 8px 12px; font-size: 1rem; cursor: pointer; color: var(--navy); }

/* Buttons */
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--navy); }
.btn--ghost { border-color: var(--white); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.nav .btn { padding: 10px 20px; color: var(--white); }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(47,116,214,.45), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, #143f86 60%, var(--blue) 100%);
  color: var(--white);
  padding: 96px 0;
}
.hero h1 { color: var(--white); }
.hero p { font-size: 1.2rem; color: #dce6f6; max-width: 640px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero--page { padding: 64px 0; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -48px; position: relative; }
.stat { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; text-align: center; border-top: 4px solid var(--blue); }
.stat strong { display: block; font-family: "Merriweather", Georgia, serif; font-size: 1.8rem; color: var(--navy); }
.stat span { color: var(--muted); }
a.stat { display: block; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
a.stat:hover { box-shadow: 0 10px 30px rgba(11, 42, 91, 0.18); transform: translateY(-3px); }
#divisions { scroll-margin-top: 90px; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--silver); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.card__icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0; }
.card ul { color: var(--muted); padding-left: 20px; margin: 10px 0 0; }

/* Split layout */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.panel { background: var(--sky); border-radius: var(--radius); padding: 36px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 700; }

/* CTA band */
.cta { background: linear-gradient(135deg, var(--blue), var(--navy)); color: var(--white); text-align: center; padding: 64px 0; }
.cta h2 { color: var(--white); }
.cta p { color: #dce6f6; max-width: 620px; margin: 0 auto 24px; }

/* Forms */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--silver); border-radius: 8px; font: inherit; background: var(--white);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue-bright); border-color: transparent; }
.form textarea { min-height: 120px; resize: vertical; }
.notice { background: #fff7e6; border: 1px solid #f1d39a; border-radius: 8px; padding: 12px 14px; font-size: .92rem; color: #6b4e12; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 18px; }
.contact-list strong { display: block; color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy); color: #c6d2e8; padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: var(--white); font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 20px; font-size: .85rem; text-align: center; }

/* Responsive */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--silver); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; }
  .nav li a { display: block; padding: 12px 0; }
  .nav .btn { text-align: center; margin-top: 8px; }
  .site-header .container { position: relative; }
}
@media (max-width: 760px) {
  .topbar .container { justify-content: center; }
  .topbar .hide-sm { display: none; }
  .stats, .grid--3, .grid--2, .form__row, .footer-grid { grid-template-columns: 1fr; }
  .stats { margin-top: -32px; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 80px; }
  .container { padding: 0 16px; }
}
