/* RBIT Systems — single shared stylesheet. System font stack, no external fonts, no JS dependencies. */

:root {
  --ink: #101828;
  --body: #344054;
  --muted: #667085;
  --accent: #1d4ed8;
  --accent-dark: #1e40af;
  --accent-soft: #eff4ff;
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: #e4e7ec;
  --radius: 10px;
  --maxw: 68rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 750; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand:hover { text-decoration: none; }

.brand .tile {
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand .sub { color: var(--accent); font-weight: 650; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

@media (max-width: 34rem) {
  .site-nav { gap: 0.9rem; }
  .site-nav .btn { padding: 0.45rem 0.85rem; }
}

.site-nav a { color: var(--body); font-weight: 500; font-size: 0.98rem; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.btn:hover { background: var(--accent-dark); text-decoration: none; }

.btn-lg { padding: 0.8rem 1.5rem; font-size: 1.05rem; }

/* Sections */

.hero { padding: 4.5rem 0 3.5rem; }
.hero p.lead { font-size: 1.2rem; max-width: 44rem; color: var(--body); }
.hero .actions { margin-top: 1.8rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.hero .actions .alt { font-weight: 550; }

.section { padding: 3.25rem 0; }
.section.surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-intro { max-width: 44rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.1rem;
  margin-top: 1.8rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
}

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--body); font-size: 0.98rem; margin-bottom: 0.7rem; }
.card a { font-weight: 550; font-size: 0.95rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; margin-top: 1.6rem; }
.steps .step h3 { display: flex; align-items: baseline; gap: 0.55rem; }
.steps .num {
  color: var(--accent);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.cred { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 1.4rem; }
.cred div strong { display: block; color: var(--ink); font-size: 1.05rem; }
.cred div span { color: var(--muted); font-size: 0.95rem; }

/* Services page */

.service-group { padding: 2.4rem 0 0.6rem; }
.service-group h2 { scroll-margin-top: 1.5rem; }
.service-group ul { margin: 0.8rem 0 1rem; padding-left: 1.2rem; }
.service-group li { margin-bottom: 0.45rem; }
.service-group .blurb { max-width: 46rem; }

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 44rem) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.contact-aside h3 { margin-bottom: 0.4rem; }
.contact-aside p { font-size: 0.98rem; }

form .field { margin-bottom: 1.05rem; }

label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.3rem; font-size: 0.98rem; }
label .opt { color: var(--muted); font-weight: 450; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
}

input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

textarea { min-height: 9rem; resize: vertical; }

form .consent { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 1.05rem; }
form .consent input[type="checkbox"] { flex: none; width: 1rem; height: 1rem; margin-top: 0.25rem; accent-color: var(--accent); }
form .consent label { margin-bottom: 0; font-weight: 450; font-size: 0.9rem; line-height: 1.55; color: var(--muted); }

.hp { position: absolute; left: -9999px; top: -9999px; }

.form-note { color: var(--muted); font-size: 0.9rem; }

.notice {
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.98rem;
}

.notice.ok { background: #ecfdf3; border: 1px solid #abefc6; color: #085d3a; }
.notice.err { background: #fef3f2; border: 1px solid #fecdca; color: #912018; }

/* CTA band */

.cta-band { text-align: left; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band p { margin: 0; color: var(--body); max-width: 38rem; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 0 2.6rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer .container { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-footer a { color: var(--body); }
.site-footer .fine { margin-top: 0.4rem; }

/* Prose pages (about) */

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; }
