/* BTB IT website. Static pages, system fonts only: the site loads nothing from third-party servers. */

:root {
  --navy: #1b2440;
  --gold: #f2b33d;
  --bg: #ffffff;
  --bg-alt: #f4f5f8;
  --text: #1b2440;
  --muted: #4a5468;
  --border: #e1e4eb;
  --link: #2f55a8;
  --link-hover: #1b2440;
  --card: #ffffff;
  --hero-bg: #1b2440;
  --hero-text: #ffffff;
  --hero-muted: #c9cfdd;
  --focus: #2f55a8;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11172a;
    --bg-alt: #1b2440;
    --text: #eef1f7;
    --muted: #b7bfd0;
    --border: #2c365a;
    --link: #f2b33d;
    --link-hover: #ffd27a;
    --card: #1b2440;
    --hero-bg: #0b1020;
    --hero-text: #ffffff;
    --hero-muted: #c9cfdd;
    --focus: #f2b33d;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 24px;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 12px;
  z-index: 10;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Logo: light and dark SVG files (assets/img), switched by <picture> to match the system theme. */
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  height: 32px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 2px;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover {
  color: var(--text);
  border-bottom-color: var(--border);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

/* Hero */

.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 56px 0 64px;
}

.hero .lead {
  color: var(--hero-muted);
  font-size: 1.2rem;
  max-width: 40rem;
}

.hero a:not(.btn) {
  color: var(--gold);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.page-head {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 32px;
}

.page-head .lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 44rem;
  margin: 0;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: #ffc75c;
  color: var(--navy);
}

.btn-secondary {
  border-color: currentColor;
  color: var(--hero-text);
}

.btn-secondary:hover {
  color: var(--gold);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text);
  color: var(--text);
}

/* Sections */

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-intro {
  color: var(--muted);
  max-width: 44rem;
  margin-bottom: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card h3 {
  margin-bottom: 0.4em;
}

.product {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.product-logo {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
}

.product-body {
  flex: 1 1 18rem;
  min-width: 0;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  margin-bottom: 10px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

.checklist li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.5em;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7em;
  height: 0.7em;
  border-radius: 3px;
  background: var(--gold);
}

.shot {
  margin: 0;
}

.shot img {
  border-radius: 12px;
  border: 1px solid var(--border);
}

.shot figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 1.6em;
}

.prose h2:first-child {
  margin-top: 0;
}

.table-box {
  overflow-x: auto;
  margin: 0 0 1em;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 28rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 700;
}

dl.facts {
  display: grid;
  grid-template-columns: minmax(8rem, max-content) 1fr;
  gap: 8px 20px;
  margin: 0;
}

dl.facts dt {
  font-weight: 700;
}

dl.facts dd {
  margin: 0;
}

@media (max-width: 520px) {
  dl.facts {
    grid-template-columns: 1fr;
  }

  dl.facts dd {
    margin-bottom: 8px;
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0 0 0.5em;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}
