/* Cafecito Medical: shared styles. Navy, cream, and a clinical teal. */
:root {
  --navy: #0f2a44;
  --navy-2: #1d3f63;
  --teal: #0f8a7e;
  --teal-soft: #e3f3f1;
  --cream: #faf7f1;
  --paper: #ffffff;
  --ink: #1b2430;
  --muted: #5b6878;
  --line: #e4e0d6;
  --gold: #b7862b;
  --red: #b4432f;
  --red-soft: #f8e7e3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 42, 68, .06), 0 8px 24px rgba(15, 42, 68, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 17px; }
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.1rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 241, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--navy); text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); display: grid; place-items: center; color: #fff; font-size: 18px; }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav-links a:hover, .nav-links a.on { color: var(--teal); }
@media (max-width: 760px) { .nav-links { gap: 12px; } .nav-links a { font-size: .85rem; } .nav .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-direction: column; align-items: flex-start; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--navy-2); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: #fff; }
.btn.teal { background: var(--teal); border-color: var(--teal); }
.btn.small { padding: 7px 14px; font-size: .85rem; }

/* Sections */
section { padding: 72px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--teal); margin-bottom: 10px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 720px; }
.hero { padding: 84px 0 56px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card.dark { background: var(--navy); color: #e8eef5; border-color: var(--navy); }
.card.dark h3, .card.dark h2 { color: #fff; }
.card.teal { background: var(--teal-soft); border-color: #bfe3de; }

.stat { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.card.dark .stat { color: #fff; }
.stat-label { color: var(--muted); font-size: .9rem; }
.card.dark .stat-label { color: #b8c6d6; }

.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.navy { background: var(--navy); color: #dfe7f0; border: 0; }
.band.navy h2, .band.navy h3 { color: #fff; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; border-top: 2px solid var(--navy); }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }

/* Lists */
ul.check, ul.cross { list-style: none; padding: 0; margin: 0 0 1em; }
ul.check li, ul.cross li { padding-left: 28px; position: relative; margin-bottom: 8px; }
ul.check li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
ul.cross li::before { content: "\2715"; position: absolute; left: 0; color: var(--red); font-weight: 800; }
ol.steps { padding-left: 1.3em; }
ol.steps li { margin-bottom: 8px; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--teal-soft); color: var(--teal); }
.pill.gold { background: #f6ecd6; color: var(--gold); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.navy { background: #e3eaf3; color: var(--navy); }

.callout { border-left: 4px solid var(--teal); background: var(--teal-soft); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 20px 0; }
.callout.warn { border-color: var(--gold); background: #fbf4e4; }
.callout.risk { border-color: var(--red); background: var(--red-soft); }

.timeline { position: relative; padding-left: 26px; border-left: 2px solid var(--line); }
.timeline .t { position: relative; margin-bottom: 22px; }
.timeline .t::before { content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); border: 2px solid var(--cream); }
.timeline .t .when { font-size: .8rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; }

footer { padding: 40px 0; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }

.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.spacer { height: 24px; }

/* Forms */
label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #d3cdbf; border-radius: 10px; font: inherit; font-size: .95rem; background: #fff; color: var(--ink); }
input[type=range] { padding: 0; accent-color: var(--teal); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field { margin-bottom: 14px; }

@media print {
  .nav, .no-print, footer { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  section { padding: 24px 0; }
  .card { box-shadow: none; break-inside: avoid; }
}
