/* ============================================================
   DB3 IT Solutions — site styles
   Palette:
     --ink    #1B2431  deep steel navy (text, header, footer)
     --steel  #46586E  slate (secondary text)
     --paper  #F4F6F8  cool steel-tinted background
     --card   #FFFFFF  cards / panels
     --gold   #E8A213  Pittsburgh gold (accent, CTAs)
     --line   #D7DDE4  hairlines / borders
     --ok     #2F8F5B  status green (diagnostic checks)
   ============================================================ */

:root {
  --ink: #1B2431;
  --steel: #46586E;
  --paper: #F4F6F8;
  --card: #FFFFFF;
  --gold: #E8A213;
  --gold-dark: #C4880D;
  --line: #D7DDE4;
  --ok: #2F8F5B;
  --radius: 10px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3 {
  font-family: "Archivo", "Public Sans", sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

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

/* mono eyebrow labels */
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  display: block;
  margin-bottom: 10px;
}
.eyebrow::before { content: "// "; color: var(--gold); }

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

.site-header {
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-name {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-name small {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9FB0C3;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  color: #E4E9EF;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 6px;
}

.site-nav a:hover { background: rgba(255, 255, 255, 0.08); }

.site-nav a.active {
  color: var(--gold);
}

.site-nav a.nav-cta {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.site-nav a.nav-cta:hover { background: #F5B32B; }

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

.hero { padding: 72px 0 64px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--steel);
  max-width: 46ch;
}

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

.btn {
  display: inline-block;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: #F5B32B; }

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

/* Signature element: diagnostic work-order card */

.workorder {
  background: var(--ink);
  color: #DDE5EE;
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.88rem;
  box-shadow: 0 12px 32px rgba(27, 36, 49, 0.25);
  border-top: 3px solid var(--gold);
}

.workorder-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #9FB0C3;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.workorder ul { list-style: none; margin: 0; padding: 0; }

.workorder li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.workorder .ok { color: #6FCF97; white-space: nowrap; }
.workorder .gold { color: var(--gold); white-space: nowrap; }

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

.section { padding: 56px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

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

/* contact page: form + sidebar */
.grid-contact {
  grid-template-columns: 1.5fr 1fr;
  align-items: start;
}

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

.section-alt .card { background: var(--paper); }

.card h3 { margin-top: 4px; }

.card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.card ul li {
  padding: 7px 0 7px 26px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.card ul li:last-child { border-bottom: none; }

.card ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  clip-path: polygon(0 40%, 40% 40%, 40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%);
  /* small plus mark */
}

.step-num {
  font-family: "IBM Plex Mono", monospace;
  color: var(--gold-dark);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

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

.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 52px 0;
  border-top: 3px solid var(--gold);
}

.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 { margin: 0; }
.cta-band p { margin: 6px 0 0; color: #B9C4D2; }

/* ---------------- Page intro ---------------- */

.page-intro {
  padding: 56px 0 8px;
}

.page-intro p { color: var(--steel); max-width: 62ch; font-size: 1.1rem; }

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

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

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

.field { margin-bottom: 18px; }

label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

label .req { color: var(--gold-dark); }

input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

input:hover, select:hover, textarea:hover { border-color: var(--steel); }

textarea { resize: vertical; min-height: 130px; }

.hint {
  font-size: 0.85rem;
  color: var(--steel);
  margin-top: 5px;
}

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

.site-footer {
  background: var(--ink);
  color: #B9C4D2;
  padding: 40px 0 28px;
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer a { color: #E4E9EF; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 28px;
  padding-top: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: #8B9BAE;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 860px) {
  .hero .wrap, .grid-2, .grid-3, .grid-contact, .site-footer .wrap {
    grid-template-columns: 1fr;
  }
  .hero { padding: 48px 0 40px; }
  .form-row { grid-template-columns: 1fr; }
}

/* small phones */
@media (max-width: 600px) {
  .section { padding: 40px 0; }
  .page-intro { padding: 40px 0 4px; }
  .hero { padding: 36px 0 32px; }
  .hero .wrap { gap: 32px; }
  .grid-2, .grid-3 { gap: 18px; }

  /* stacked, centered header with comfortable tap targets */
  .site-header .wrap {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    padding-bottom: 12px;
  }
  .brand { text-align: left; }
  .site-nav { justify-content: center; }
  .site-nav a { padding: 10px 12px; }

  /* full-width, easy-to-hit buttons */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn, .cta-band .btn { width: 100%; text-align: center; }
  .btn { padding: 14px 24px; }

  .cta-band { padding: 40px 0; }
  .cta-band .wrap { flex-direction: column; align-items: stretch; }

  .card { padding: 20px; }
  .form-card { padding: 22px 18px; }
  .workorder { padding: 18px 16px; font-size: 0.82rem; }
  .site-footer .wrap { gap: 24px; }
}
