/* Wisdom brand sheet — palette sampled from the logo (#c31919) and the project theme.
   Two font weights only, font-display swap, no framework. ~7 KB raw, gzips to ~2 KB. */

@font-face {
  font-family: "Calibre";
  src: url("/static/fonts/Calibre-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Calibre";
  src: url("/static/fonts/Calibre-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #c31919;
  --blue: #0b74c8;
  --navy: #0f1d2f;
  --ink: #152231;
  --ink-soft: #4d5d6e;
  --line: #e2e8f1;
  --surface: #f4f7fb;
  --paper: #ffffff;
  --radius: 10px;
  --max: 1140px;
  --space: clamp(1rem, 2.5vw, 2rem);
  --card-shadow: 0 2px 10px rgba(15, 29, 47, 0.06);
  --card-shadow-hover: 0 12px 26px rgba(15, 29, 47, 0.12);
  --font: "Calibre", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--space); }
main { padding: 2rem 0 3rem; }
section + section { margin-top: 2rem; }

h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2; margin: 0 0 1rem; color: var(--navy); }
h2 { font-size: 1.25rem; margin: 1.75rem 0 0.75rem; color: var(--navy); }
h3 { font-size: 1.05rem; margin: 1rem 0 0.5rem; }
p { margin: 0 0 1rem; max-width: 72ch; }
a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; background: var(--navy); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: var(--space); z-index: 20; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: .4rem; }

/* Header — white plate so the red wordmark reads correctly, red rule under it */
header.site { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 3px solid var(--red); padding: .75rem 0; box-shadow: 0 2px 10px rgba(15,29,47,.06); }
.hbar { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--navy); text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
nav.main { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
nav.main a { color: var(--navy); text-decoration: none; font-size: .92rem; font-weight: 600; padding: .35rem .1rem; }
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom: 2px solid var(--red); color: var(--red); }
.quote { color: #fff; background: var(--red); border-radius: 6px; padding: .45rem .85rem; font-size: .88rem; font-weight: 600; text-decoration: none; }
#nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--navy); border-radius: 6px; padding: .4rem .7rem; font: inherit; cursor: pointer; }

/* Breadcrumb */
.crumb { font-size: .86rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.crumb li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: #9aa5b1; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #17334f 55%, #1d4d73 100%); color: #fff; padding: 2.25rem 0; border-bottom: 4px solid var(--red); }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.85); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; align-items: center; }
.hero img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 24px 50px -22px rgba(0,0,0,.55); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.chips li { font-size: .8rem; padding: .4rem .85rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.8); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat strong { display: block; font-size: 1.35rem; color: var(--red); }
.stat span { font-size: .87rem; color: var(--ink-soft); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.card img { width: 100%; aspect-ratio: 4 / 3; height: auto; background: var(--surface); display: block; }
.card .body { padding: 1rem 1.15rem 1.2rem; }
.card h3 { margin: 0 0 .35rem; font-size: 1.02rem; }
.card p { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.flag { display: inline-block; font-size: .78rem; font-weight: 700; color: #fff; background: var(--blue); border-radius: 6px; padding: .2rem .6rem; margin-bottom: .5rem; }
.badge { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .75rem; font-size: .85rem; font-weight: 600; color: var(--blue); background: #fff; margin: 0 .35rem .35rem 0; }

/* Product page */
.product { display: grid; grid-template-columns: minmax(260px, 440px) 1fr; gap: 1.75rem; align-items: start; }
.product img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.models { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; margin: 0 0 1rem; font-size: .95rem; }
.models strong { color: var(--navy); }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .93rem; }
th, td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
th { background: var(--surface); color: var(--navy); font-weight: 600; }
tbody tr:nth-child(even) { background: #fafbfd; }

/* CTA */
.cta { margin: 1.75rem 0; padding: 1.25rem 1.4rem; background: var(--navy); color: #fff; border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cta p { margin: 0; color: rgba(255,255,255,.8); max-width: 55ch; }
.btn { display: inline-block; background: var(--red); color: #fff; text-decoration: none; padding: .7rem 1.15rem; border-radius: 6px; font-weight: 600; font-size: .95rem; border: 0; cursor: pointer; }
.btn:hover { background: #a81515; color: #fff; }
.btn.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.note { font-size: .86rem; color: var(--ink-soft); }

/* Form */
form.inquiry { max-width: 620px; }
.field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--navy); }
input, textarea, select { width: 100%; padding: .6rem .7rem; font: inherit; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
dl.contact dt { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 1rem; }
dl.contact dd { margin: .35rem 0 0; }
.qr { width: 180px; height: 180px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }

/* Footer */
footer.site { background: var(--navy); color: rgba(255,255,255,.78); padding: 2rem 0; font-size: .88rem; }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: .3rem; }
footer.site h3 { margin-top: 0; font-size: .95rem; color: #fff; }
footer.site a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
footer.site a:hover { color: var(--red); border-color: var(--red); }
footer.site strong { color: #fff; }

@media (max-width: 900px) {
  .hero-grid, .product { grid-template-columns: 1fr; }
  #nav-toggle { display: inline-block; }
  nav.main { display: none; width: 100%; }
  nav.main.open { display: flex; flex-direction: column; }
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { header.site, .cta, .btn, #nav-toggle { display: none; } body { font-size: 11pt; } a { color: #000; } }
