/* ============================================================
   DATCO GROUP — datcogroup.ca
   Black / white brand, hi-vis yellow accent used sparingly.
   No build step — plain CSS.
   ============================================================ */

:root {
  --ink: #0b0b0c;          /* near-black */
  --ink-soft: #17181a;     /* dark section panels */
  --paper: #ffffff;
  --paper-soft: #f4f4f2;   /* light grey section */
  --line: #e3e3e0;         /* hairlines on light */
  --line-dark: #2a2b2e;    /* hairlines on dark */
  --muted: #5c5e63;        /* body grey on light */
  --muted-dark: #a5a7ad;   /* body grey on dark */
  --accent: #ffd400;       /* hi-vis yellow */
  --max: 1180px;
  --radius: 10px;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* ---------- Type ---------- */

h1, h2, h3 { line-height: 1.08; }

.display {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 400; /* Archivo Black is a single heavy weight */
}

h1.display { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2.display { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3.display { font-size: clamp(1.1rem, 2vw, 1.35rem); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--accent);
  flex: none;
}

.lead { font-size: 1.12rem; color: var(--muted); }

.on-dark { color: var(--paper); }
.on-dark .lead, .on-dark p { color: var(--muted-dark); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border: 2px solid var(--ink);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.on-dark .btn-solid { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.on-dark .btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.on-dark .btn-ghost { color: var(--paper); border-color: var(--paper); }
.on-dark .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* ---------- Header ---------- */

.topbar {
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  color: var(--muted-dark);
  font-size: 0.78rem;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.topbar a { color: var(--paper); text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar .flag { color: var(--paper); font-weight: 600; }

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }

.logo img {
  height: 34px;
  width: auto;
  filter: invert(1); /* black wordmark → white on the dark header */
}

.logo .tag {
  color: var(--muted-dark);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border-left: 1px solid var(--line-dark);
  padding-left: 14px;
  white-space: nowrap;
}

nav.main { display: flex; align-items: center; gap: 4px; }

nav.main > ul {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

nav.main a {
  display: block;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
}

nav.main a:hover, nav.main a[aria-current="page"] { color: var(--accent); }

/* Dropdown */
.has-drop { position: relative; }

.has-drop > a::after {
  content: " ▾";
  font-size: 0.7em;
}

.drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-top: 2px solid var(--accent);
  list-style: none;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.has-drop:hover .drop,
.has-drop:focus-within .drop,
.has-drop.open .drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drop a { padding: 10px 18px; font-size: 0.8rem; }

.nav-cta { margin-left: 10px; }

.nav-cta a {
  border: 2px solid var(--paper);
  padding: 9px 18px;
}

.nav-cta a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--paper);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 920px) {
  .logo .tag { display: none; }
  .nav-toggle { display: block; }

  nav.main {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    display: none;
    padding: 10px 0 20px;
  }

  nav.main.open { display: block; }

  nav.main > ul { flex-direction: column; align-items: stretch; gap: 0; }
  nav.main a { padding: 13px 28px; }

  .drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    border-left: 2px solid var(--accent);
    margin: 0 28px;
    display: none;
  }

  .has-drop.open .drop { display: block; }
  .nav-cta { margin: 12px 28px 0; }
  .nav-cta a { display: inline-block; }

  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.hero .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,11,12,0.92) 25%, rgba(11,11,12,0.45) 70%, rgba(11,11,12,0.25));
}

.hero .wrap {
  position: relative;
  padding-top: clamp(90px, 14vh, 170px);
  padding-bottom: clamp(90px, 14vh, 170px);
  max-width: var(--max);
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  padding: 7px 14px;
  margin-bottom: 26px;
}

.hero h1 { max-width: 14ch; margin-bottom: 22px; }

.hero .lead { max-width: 52ch; margin-bottom: 36px; color: #d6d7da; }

.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero.short .wrap {
  padding-top: clamp(70px, 9vh, 120px);
  padding-bottom: clamp(70px, 9vh, 120px);
}

/* ---------- Sections ---------- */

section { padding: clamp(64px, 9vw, 110px) 0; }

section.tight { padding: clamp(44px, 6vw, 70px) 0; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { margin-top: 16px; }

.dark { background: var(--ink); }
.soft { background: var(--paper-soft); }

/* ---------- Cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

@media (max-width: 920px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(11, 11, 12, 0.12);
}

.card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink);
}

.card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.card .body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.card .body p { color: var(--muted); font-size: 0.97rem; flex: 1; }

.card .more {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
  align-self: flex-start;
  padding-bottom: 3px;
}

/* Value tiles */
.tile {
  border-top: 4px solid var(--accent);
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 28px;
}

.tile h3 { margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 0.97rem; }

.dark .tile {
  background: var(--ink-soft);
  border-color: var(--line-dark);
  border-top-color: var(--accent);
}

.dark .tile p { color: var(--muted-dark); }

/* ---------- Feature (image + text) ---------- */

.feature-img {
  border: 1px solid var(--line);
}

.dark .feature-img { border-color: var(--line-dark); }

.feature-img img { width: 100%; height: 100%; object-fit: cover; }

.checklist {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.checklist.cols {
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
}

@media (max-width: 700px) {
  .checklist.cols { grid-template-columns: 1fr; }
}

.checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 0.96rem;
  color: var(--muted);
}

.on-dark .checklist li, .dark .checklist li { color: var(--muted-dark); }

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--accent);
}

/* ---------- Stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-dark);
}

@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

.stat {
  padding: 30px 26px;
  border-right: 1px solid var(--line-dark);
}

.stat:last-child { border-right: 0; }

@media (max-width: 700px) {
  .stat { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .stat:last-child { border-bottom: 0; }
}

.stat .num {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--paper);
  margin-bottom: 6px;
}

.stat p { font-size: 0.9rem; }

/* ---------- Accordion ---------- */

.accordion { border-top: 1px solid var(--line); }

.acc-item { border-bottom: 1px solid var(--line); }

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 24px 4px;
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.15s;
}

.acc-trigger:hover { color: var(--muted); }

.acc-trigger .icon {
  flex: none;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.18s, transform 0.25s, border-color 0.18s, color 0.18s;
}

.acc-trigger[aria-expanded="true"] .icon {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(45deg);
}

.acc-trigger[aria-expanded="true"] { color: var(--ink); }

.acc-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.acc-panel-inner { padding: 4px 4px 30px; }

.acc-panel-inner > p { color: var(--muted); max-width: 70ch; }

/* ---------- Tabs ---------- */

.tabs { }

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 2px solid var(--line-dark);
  margin-bottom: 34px;
}

.tab-btn {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  padding: 14px 18px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.tab-btn:hover { color: var(--paper); }

.tab-btn[aria-selected="true"] {
  color: var(--paper);
  border-bottom-color: var(--accent);
}

.tab-panel[hidden] { display: none; }

.tab-panel h3 { margin-bottom: 12px; }

.tab-panel p { max-width: 72ch; }

@media (max-width: 700px) {
  .tablist {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tablist::-webkit-scrollbar { display: none; }
  .tab-btn { white-space: nowrap; }
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--accent);
  color: var(--ink);
}

.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: clamp(44px, 6vw, 70px);
  padding-bottom: clamp(44px, 6vw, 70px);
}

.cta-band h2 { max-width: 22ch; }

.cta-band .btn { border-color: var(--ink); }
.cta-band .btn-solid { background: var(--ink); color: var(--paper); }
.cta-band .btn-solid:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; }

.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input, .field textarea, .field select {
  font-family: var(--body);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
}

.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--ink);
}

.field textarea { min-height: 140px; resize: vertical; }

/* ---------- Contact info list ---------- */

.info-list { list-style: none; display: grid; gap: 22px; }

.info-list .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.info-list a { text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.info-list a:hover { border-bottom: 2px solid var(--accent); }

/* ---------- Footer ---------- */

footer.site {
  background: var(--ink);
  color: var(--muted-dark);
  border-top: 4px solid var(--accent);
  font-size: 0.92rem;
}

footer.site .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: clamp(50px, 7vw, 80px) 0 40px;
}

@media (max-width: 920px) {
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  footer.site .cols { grid-template-columns: 1fr; }
}

footer.site img.foot-logo {
  height: 40px;
  width: auto;
  filter: invert(1);
  margin-bottom: 16px;
}

footer.site .foot-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 18px;
}

footer.site h4 {
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

footer.site ul { list-style: none; display: grid; gap: 10px; }

footer.site a { color: var(--muted-dark); text-decoration: none; }
footer.site a:hover { color: var(--accent); }

footer.site .legal {
  border-top: 1px solid var(--line-dark);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

/* ---------- Spec table ---------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  width: 34%;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-soft);
}

.spec-table td { color: var(--muted); }

.spec-table tr:first-child th,
.spec-table tr:first-child td { border-top: 2px solid var(--ink); }

.dark .spec-table th {
  background: var(--ink-soft);
  color: var(--paper);
  border-color: var(--line-dark);
}

.dark .spec-table td { color: var(--muted-dark); border-color: var(--line-dark); }
.dark .spec-table tr:first-child th,
.dark .spec-table tr:first-child td { border-top-color: var(--accent); }

@media (max-width: 640px) {
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td {
    display: block;
    width: 100%;
  }
  .spec-table th { border-bottom: 0; padding-bottom: 8px; }
  .spec-table td { padding-top: 0; }
  .spec-table tr:first-child td { border-top: 0; }
}

/* Format chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.chip {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.dark .chip, .on-dark .chip {
  background: var(--ink-soft);
  border-color: var(--line-dark);
  color: var(--paper);
}

/* ---------- Numbered process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  counter-reset: step;
}

.dark .steps, .on-dark .steps { border-color: var(--line-dark); }

@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 34px 30px;
  border-right: 1px solid var(--line);
  counter-increment: step;
}

.dark .step, .on-dark .step { border-color: var(--line-dark); }

.step:last-child { border-right: 0; }

@media (max-width: 860px) {
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .dark .step, .on-dark .step { border-bottom-color: var(--line-dark); }
  .step:last-child { border-bottom: 0; }
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.96rem; }
.dark .step p, .on-dark .step p { color: var(--muted-dark); }

/* ---------- Credential grid (safety) ---------- */

.cred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (max-width: 780px) { .cred-grid { grid-template-columns: 1fr; } }

.cred {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 26px 26px;
  background: var(--paper);
}

.cred h3 { margin-bottom: 8px; font-size: 1.05rem; }
.cred p { color: var(--muted); font-size: 0.95rem; }

.cred .status {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: var(--paper-soft);
  border: 1px dashed var(--muted);
  color: var(--muted);
}

/* Editor note — visible only to whoever is filling the page in.
   Delete the .todo blocks (and this rule) once real content is in. */
.todo {
  background: repeating-linear-gradient(
    45deg, #fffbe6, #fffbe6 12px, #fff6cc 12px, #fff6cc 24px
  );
  border: 2px dashed #c9a800;
  padding: 20px 22px;
  margin: 26px 0;
  color: #5c4b00;
  font-size: 0.92rem;
}

.todo strong { display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; }
.todo ul { margin: 10px 0 0 20px; }
.todo li { margin-bottom: 5px; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .acc-panel { transition: none; }
}
