/* corvidis.com — one stylesheet for every page. Navy + gold like SurgiNest; light and dark. */
:root {
  --navy: #15284b; --navy-2: #1f3a68; --gold: #c9a14a; --gold-soft: #f4ead3;
  --bg: #ffffff; --bg-2: #f5f7fb; --text: #1a202c; --muted: #4a5568; --faint: #718096; --line: #e2e8f0;
  --card: #ffffff; --ok: #2f855a; --err: #c53030;
  --radius: 14px; --max: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1424; --bg-2: #121b30; --text: #e7ecf5; --muted: #b3bed1; --faint: #8794ab; --line: #24304a;
    --card: #141e35; --gold-soft: #2a2414; --navy-2: #9fb6e0;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--navy-2); }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* header */
header.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: .2px; }
.brand img { width: 34px; height: 34px; }
nav.main { display: flex; gap: 20px; align-items: center; }
nav.main a { text-decoration: none; color: var(--muted); font-size: 15px; }
nav.main a:hover { color: var(--text); }
.btn { display: inline-block; background: var(--navy); color: #fff !important; text-decoration: none; border: 0; border-radius: 10px; padding: 11px 18px; font: 600 15px/1.2 inherit; cursor: pointer; }
.btn:hover { background: #0f1f3b; }
.btn.ghost { background: transparent; color: var(--text) !important; border: 1px solid var(--line); }
.btn.gold { background: var(--gold); color: #1a1a1a !important; }
@media (max-width: 720px) { nav.main a:not(.btn) { display: none; } }

/* hero */
.hero { background: radial-gradient(1200px 400px at 80% -10%, rgba(201,161,74,.18), transparent), linear-gradient(180deg, var(--bg-2), var(--bg)); padding: 72px 0 56px; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 10px 0 16px; letter-spacing: -.5px; }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-2); }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 10px; letter-spacing: -.3px; }
.sub { color: var(--muted); max-width: 720px; margin: 0 0 28px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 6px 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { font-size: 24px; }
.split { display: grid; gap: 28px; grid-template-columns: 1.1fr .9fr; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding: 6px 0 6px 28px; position: relative; color: var(--muted); }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.pill { display: inline-block; background: var(--gold-soft); color: var(--text); border-radius: 999px; padding: 3px 10px; font-size: 13px; margin: 0 6px 6px 0; }
.product { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.product .mark { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 20px; }

/* form */
form.contact { display: grid; gap: 12px; }
form.contact label { font-size: 14px; font-weight: 600; display: grid; gap: 6px; }
form.contact input, form.contact select, form.contact textarea { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
form.contact textarea { min-height: 140px; resize: vertical; }
.row2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 13px; color: var(--faint); }
.msg { border-radius: 10px; padding: 10px 12px; font-size: 15px; display: none; }
.msg.ok { display: block; background: rgba(47,133,90,.12); color: var(--ok); }
.msg.err { display: block; background: rgba(197,48,48,.1); color: var(--err); }

/* legal pages */
.doc { max-width: 760px; padding: 48px 0 64px; }
.doc h1 { font-size: 36px; } .doc h2 { font-size: 22px; margin-top: 32px; } .doc p, .doc li { color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--faint); text-decoration: none; margin-right: 16px; }
footer a:hover { color: var(--text); }
.prods .prod { text-decoration: none; color: inherit; display: grid; gap: 10px; align-content: start; }
a.card.prod:hover { border-color: var(--gold); }
.prods { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.prods .pill { justify-self: start; }
