/* Colours taken from the Numetis Consulting logo / letterhead. */
:root {
  --slate: #2b403b;      /* logo symbol and "NUMETIS" */
  --slate-deep: #22332f;
  --red: #e24231;        /* "CONSULTING", letterhead labels */
  --red-text: #c9321f;   /* same red, darkened for small text on white (AA) */
  --blue: #3e83ea;
  --yellow: #f3b807;
  --ink: #1f2a27;
  --muted: #5b6b66;
  --line: #e2e7e5;
  --bg: #f7f8f7;
  --paper: #ffffff;
  --on-slate: #c5d1cd;
  --max: 68rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Aptos, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--red-text); }
a:hover { color: var(--slate); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header: white, like the letterhead, with the three logo dots as a stripe */
.site-header {
  background:
    linear-gradient(90deg, var(--blue) 0 33.33%, var(--yellow) 33.33% 66.66%, var(--red) 66.66% 100%) top / 100% 4px no-repeat,
    var(--paper);
  padding-top: 4px;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 24px; padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 800; font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--slate);
}
.brand img { height: 42px; width: auto; display: block; }
.brand span { color: var(--red); }
.brand:hover { color: var(--slate); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.nav a { color: var(--slate); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding-bottom: 2px; }
.nav a:hover { color: var(--red-text); }
.nav a[aria-current="page"] { color: var(--red-text); border-bottom: 2px solid var(--red); }

/* Hero */
.hero { background: var(--slate); color: #fff; padding: 56px 0 72px; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.2; margin: 0 0 18px; max-width: 40rem; }
.hero p { color: var(--on-slate); font-size: 1.12rem; max-width: 38rem; margin: 0 0 28px; }
.page-hero { background: var(--slate); color: #fff; padding: 40px 0 48px; }
.page-hero h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.2; }
.page-hero p { margin: 0; color: var(--on-slate); max-width: 40rem; font-size: 1.06rem; }

.dots { display: inline-flex; gap: 6px; margin-bottom: 18px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: var(--blue); }
.dots i:nth-child(2) { background: var(--yellow); }
.dots i:nth-child(3) { background: var(--red); }

.btn {
  display: inline-block; background: var(--red-text); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 6px; font-weight: 700;
}
.btn:hover { background: #a92816; color: #fff; }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,0.6); color: #fff; margin-left: 10px; }
.btn.ghost:hover { background: rgba(255,255,255,0.08); }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 12px; color: var(--slate); }
h3 { font-size: 1.12rem; margin: 0 0 8px; color: var(--slate); }
.lead { color: var(--muted); max-width: 42rem; margin: 0 0 32px; font-size: 1.05rem; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 24px;
}
section.alt .card { background: var(--bg); }
.card p { margin: 0 0 12px; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 700; text-decoration: none; }

/* Service tags cycle through the logo's dot colours */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 12px;
}
.tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.grid .card:nth-child(4n+1) .tag::before { background: var(--blue); }
.grid .card:nth-child(4n+2) .tag::before { background: var(--yellow); }
.grid .card:nth-child(4n+3) .tag::before { background: var(--red); }
.grid .card:nth-child(4n+4) .tag::before { background: var(--slate); }

.two-col { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 48rem) { .two-col { grid-template-columns: 1fr; gap: 24px; } }

ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
ul.checks li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 6px;
  border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg);
}

ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
ol.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
ol.steps li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--red-text); font-weight: 800; margin-bottom: 6px; }
ol.steps li strong { color: var(--slate); }
ol.steps li p { margin: 0; color: var(--muted); }

.cta {
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--red);
  border-radius: 10px; padding: 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between;
}
section.alt .cta { background: var(--bg); }
.cta h2 { margin: 0 0 4px; }
.cta p { margin: 0; color: var(--muted); }

/* Company details, laid out like the letterhead's red labels */
dl.details { display: grid; grid-template-columns: 11rem 1fr; gap: 8px 20px; margin: 0; }
dl.details dt { color: var(--red-text); font-weight: 700; }
dl.details dd { margin: 0; }
@media (max-width: 34rem) { dl.details { grid-template-columns: 1fr; gap: 0; } dl.details dd { margin-bottom: 12px; } }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 32px; font-size: 1.3rem; }
.prose h2:first-child { margin-top: 0; }

/* Footer */
.site-footer { background: var(--slate-deep); color: var(--on-slate); font-size: 0.9rem; padding: 36px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.site-footer strong { color: #fff; }
.site-footer p { margin: 0 0 4px; }

@media (max-width: 34rem) {
  .btn.ghost { margin: 10px 0 0; }
  section { padding: 44px 0; }
  .brand { font-size: 0.95rem; }
  .brand img { height: 36px; }
}

/* Footer columns and copyright line */
.site-footer .copyright { display: block; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; }

/* Technology chips */
ul.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
ul.chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: 0.92rem; color: var(--slate); font-weight: 600; }

/* FAQ */
.faq { max-width: 48rem; }
.faq h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.faq h2:first-child { margin-top: 0; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--slate); list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 1.3rem; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* Lists inside cards (maintenance plans) */
.card ul.checks { margin-top: 12px; }
.card ul.checks li { color: var(--ink); }

/* Six service cards read better as two rows of three */
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }

/* Boxed statement, e.g. the crypto scope disclaimer */
.card.notice { border-left: 5px solid var(--yellow); }
.card.notice p { color: var(--ink); }

/* Language switcher */
.langs { display: flex; gap: 2px; font-size: 0.8rem; font-weight: 700; }
.langs a { color: var(--muted); text-decoration: none; padding: 3px 7px; border-radius: 4px; letter-spacing: 0.04em; }
.langs a:hover { color: var(--red-text); }
.langs a[aria-current="page"] { color: #fff; background: var(--slate); }
@media (min-width: 60rem) { .site-header .nav { margin-left: auto; } }
@media (max-width: 59.99rem) {
  .site-header .langs { order: 2; }
  .site-header .nav { order: 3; width: 100%; }
}
@media (max-width: 34rem) {
  .site-header .wrap { column-gap: 6px; }
  .brand { gap: 8px; font-size: 0.9rem; letter-spacing: 0.02em; }
  .langs a { padding: 3px 5px; }
}
@media (max-width: 34rem) {
  .site-header .wrap { padding-left: 16px; padding-right: 16px; }
  .brand img { height: 30px; }
  .langs { font-size: 0.75rem; }
  .langs a { padding: 3px 4px; }
}
