/* ServMEDD — servmedd.com. Navy #0b2545, teal #0e7c86, gold #c9a45c. */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --ink: #1b2433;
  --muted: #5b6575;
  --line: #e3e7ee;
  --bg-alt: #f5f7fa;
  --teal: #0e7c86;
  --teal-light: #5fd3c8;
  --gold: #c9a45c;
  --radius: 10px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 48px); margin: 0 auto; }
.container.narrow { width: min(820px, 100% - 48px); }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: var(--sans); transition: background .2s, color .2s, border-color .2s, transform .2s; padding: .75em 1.4em; font-size: 1rem; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .5em 1.1em; font-size: .9rem; }
.btn-lg { padding: .95em 1.8em; font-size: 1.05rem; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #0a646c; }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(11, 37, 69, .25); }
.btn-ghost:hover { border-color: var(--navy); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.text-link { font-weight: 600; text-decoration: none; font-size: .95rem; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(11, 37, 69, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand-logo { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { white-space: nowrap; color: var(--navy); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--teal); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Hero */
.hero { padding: 96px 0 56px; background:
  radial-gradient(900px 420px at 92% -10%, rgba(14, 124, 134, .10), transparent 60%),
  radial-gradient(700px 380px at -10% 110%, rgba(201, 164, 92, .10), transparent 60%); }
.hero-inner { max-width: 940px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--teal); margin-bottom: 1.4em; }
.hero h1 em { font-style: italic; color: var(--teal); }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 760px; margin: 1.2em 0 2em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-pillars { list-style: none; padding: 0; margin: 72px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.hero-pillars li { padding: 22px 18px 4px 0; font-family: var(--serif); font-size: 1.1rem; color: var(--navy); font-weight: 600; }
.hero-pillars span { display: block; font-family: var(--sans); color: var(--gold); font-size: .8rem; letter-spacing: .1em; font-weight: 700; margin-bottom: 6px; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #d7dfeb; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--teal); margin-bottom: 1em; }
.kicker::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 12px; }
.section-dark .kicker { color: var(--teal-light); }
.section-sub { font-size: 1.1rem; color: var(--muted); }
.section-dark .section-sub { color: #b8c4d6; }

.checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checks li { position: relative; padding-left: 22px; margin-bottom: .55em; font-size: .96rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--gold); }

/* Consulting */
.practice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.practice-card { padding: 40px 40px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.practice-card:hover { background: var(--bg-alt); }
.practice-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.practice-num { display: block; font-weight: 700; color: var(--gold); letter-spacing: .1em; font-size: .85rem; margin-bottom: 14px; }
.practice-card h3 { font-size: 1.6rem; }
.practice-lede { color: var(--muted); font-size: 1.02rem; }

/* Pathway */
.pathway { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.pathway-step { position: relative; padding: 36px 24px 8px 0; border-top: 2px solid rgba(255, 255, 255, .18); }
.pathway-step::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--teal-light); box-shadow: 0 0 0 5px rgba(95, 211, 200, .18); }
.pathway-step:last-child::before { background: var(--gold); box-shadow: 0 0 0 5px rgba(201, 164, 92, .22); }
.pathway-stage { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.pathway-step h3 { font-size: 1.15rem; }
.pathway-step p { font-size: .95rem; color: #b8c4d6; }

/* Clients */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.client-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); border-top: 3px solid var(--teal); }
.client-card h3 { font-size: 1.12rem; }
.client-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Specialist services */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { display: flex; flex-direction: column; padding: 28px 26px 22px; background: #fff; border-radius: var(--radius); border-top: 3px solid var(--gold); box-shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 10px 30px rgba(11, 37, 69, .05); }
.service-card h3 { font-size: 1.12rem; }
.service-card p { color: var(--muted); font-size: .95rem; flex: 1; }

/* Technology */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tech-card { background: #fff; padding: 36px 32px 20px; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 10px 30px rgba(11, 37, 69, .06); }
.tech-card > p { color: var(--muted); }

/* REDCap */
.redcap-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.redcap-copy { position: sticky; top: 110px; }
.redcap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.redcap-item { padding: 26px; background: var(--bg-alt); border-radius: var(--radius); border-left: 3px solid var(--teal); }
.redcap-item h3 { font-size: 1.1rem; }
.redcap-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; padding: 22px 22px 22px 64px; position: relative; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.steps strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 1.08rem; }
.steps span { color: var(--muted); font-size: .92rem; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.why-item h3 { font-size: 1.15rem; padding-top: 18px; border-top: 2px solid var(--gold); }
.why-item p { color: var(--muted); font-size: .96rem; }

/* About */
.about-inner { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: start; }
.about-inner > div > p:not(.kicker) { font-size: 1.08rem; }
.leader-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.leader { display: flex; align-items: center; gap: 18px; }
.leader-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; flex-shrink: 0; }
.leader h3 { margin: 0; font-size: 1.3rem; }
.leader p { margin: 0; color: var(--muted); }

/* Form */
.inquiry-form { background: #fff; color: var(--ink); padding: 40px; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: .7em .85em; border: 1px solid #cfd6e1; border-radius: 8px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 124, 134, .15); }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-status { margin: 0; font-weight: 500; }
.form-status.success { color: #137a3e; }
.form-status.error { color: #b42318; }
.form-fine { margin: 18px 0 0; font-size: .85rem; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Footer */
.site-footer { background: #071a31; color: #9fb0c6; padding: 64px 0 32px; font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-logo { height: 36px; width: auto; margin-bottom: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-start; }
.footer-nav a { color: #d7dfeb; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-legal { padding-top: 24px; font-size: .82rem; }
.footer-legal p { margin: 0 0 .6em; max-width: 900px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-pillars { grid-template-columns: repeat(3, 1fr); }
  .pathway { grid-template-columns: 1fr; }
  .pathway-step { border-top: 0; border-left: 2px solid rgba(255, 255, 255, .18); padding: 0 0 28px 32px; }
  .pathway-step::before { top: 4px; left: -8px; }
  .client-grid, .why-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; }
  .redcap-inner, .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .redcap-copy { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
}
@media (max-width: 680px) {
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 40px; }
  .hero-pillars { grid-template-columns: 1fr 1fr; }
  .practice-grid, .client-grid, .why-grid, .service-grid, .redcap-grid, .steps, .form-row { grid-template-columns: 1fr; }
  .practice-card { padding: 30px 24px; }
  .inquiry-form { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
