/* CL Services landing page (index.html). Phone first, one column,
   ClinicLogs emerald on warm paper. Shares only the self-hosted Barlow fonts with the programme. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/barlow-condensed-700.woff2") format("woff2"); }
:root {
  --paper: #F7F4EE;
  --surface: #FFFFFF;
  --ink: #17201C;
  --muted: #5C6762;
  --line: #E2DDD3;
  --brand: #065F46;
  --brand-ink: #FFFFFF;
  --brand-soft: #E3F1EB;
  --err: #B42318;
  --tap: 48px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--body); }
img { display: inline-block; vertical-align: middle; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; line-height: 1.1; }
.col { max-width: 640px; margin-inline: auto; padding-inline: 20px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 5; background: rgba(247, 244, 238, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .col { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; }
.top-cta { font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--brand); min-height: 40px; display: inline-flex; align-items: center; }

/* Hero */
.hero { padding-block: 48px 32px; }
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 11vw, 64px); letter-spacing: -.01em; }
.lede { margin: 18px 0 28px; font-size: 19px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 26px; border: 0; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font: 600 17px/1 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.btn:focus-visible, .top-cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.fine { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* Sections */
.block { padding-block: 48px 0; }
h2 { font-family: var(--display); font-weight: 700; font-size: 32px; margin-bottom: 20px; }
h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.block p { margin: 0; }

.services { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.services li { counter-increment: s; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.services li::before { content: "0" counter(s); display: block; margin-bottom: 10px; font: 700 15px/1 var(--display); color: var(--brand); }
.services p, .work p { color: var(--muted); }

.work { padding: 20px 0; border-top: 1px solid var(--line); }
.work:first-of-type { border-top: 0; padding-top: 0; }
.tags { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 5px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 600; }

.steps { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.steps li::marker { font-weight: 600; color: var(--brand); }

/* Contact */
.contact { padding-bottom: 8px; }
.sub { color: var(--muted); margin-bottom: 20px !important; }
#lead { display: grid; gap: 18px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.f { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.f > span, .f legend { font-weight: 600; font-size: 16px; padding: 0; }
.f em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 4px; }
.f legend { margin-bottom: 8px; }
input, textarea { width: 100%; min-height: var(--tap); padding: 11px 14px; border: 1.5px solid #B9B3A7; border-radius: 10px; background: var(--surface); color: var(--ink); font: 17px/1.4 var(--body); }
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input::placeholder, textarea::placeholder { color: #8E968F; }
.f .invalid { border-color: var(--err); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 15px; cursor: pointer; }
.chips input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { margin: 0; padding: 10px 14px; border-radius: 10px; background: #FDECEA; color: var(--err); font-size: 15px; }
#lead .btn { width: 100%; }
.done { padding: 24px 20px; border-radius: 16px; background: var(--brand-soft); }
.done:focus { outline: none; }
.done p { color: var(--muted); }

.foot { padding-block: 40px; color: var(--muted); font-size: 14px; }
.foot p { margin: 0; display: flex; align-items: center; gap: 8px; }

@media (min-width: 760px) {
  .hero { padding-block: 88px 48px; }
  .block { padding-top: 72px; }
  .services li { padding: 24px; }
}
