/* ===================================================================
   MTEC IT Specialists — Site Stylesheet
   Design language: "systems status" — proactive monitoring made visual.
   =================================================================== */

:root {
  /* Color */
  --bg: #F5F6F3;
  --bg-dark: #121821;
  --surface: #FFFFFF;
  --surface-dark: #1B232D;
  --text: #16202B;
  --text-dark: #EDEFF2;
  --text-muted: #5B6672;
  --text-muted-dark: #93A0AC;
  --accent: #2F9E7A;
  --accent-soft: #E4F2EC;
  --accent-2: #D98E3F;
  --border: #E2E5E0;
  --border-dark: #2B3542;

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --max-w: 1140px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0; color: var(--text-muted); }

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

/* -------------------- status tag / signature element -------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(47, 158, 122, 0.25);
  border-radius: 100px;
  padding: 6px 14px;
}

.tag.on-dark {
  color: #7FE0BB;
  background: rgba(127, 224, 187, 0.08);
  border-color: rgba(127, 224, 187, 0.28);
}

.tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(127, 224, 187, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 158, 122, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(47, 158, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 158, 122, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .tag .dot, .node-pulse, * { animation-duration: 0.001ms !important; }
}

.data-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.data-row span { white-space: nowrap; }
.data-row span::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
}

/* -------------------- header -------------------- */

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.logo .logo-mark { color: var(--accent); flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  color: var(--text-muted-dark);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text-dark); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.call-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dark);
  border: 1px solid var(--border-dark);
  border-radius: 100px;
  padding: 8px 16px;
  transition: border-color .15s ease, background .15s ease;
}
.call-pill:hover { border-color: var(--accent); background: rgba(47,158,122,0.1); }

.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--text-dark);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 66px; left: 0; right: 0; background: var(--bg-dark);
    flex-direction: column; gap: 0; border-bottom: 1px solid var(--border-dark);
    max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 16px 28px; border-top: 1px solid var(--border-dark); }
  .nav-toggle { display: block; }
  .call-pill { display: none; }
}

/* -------------------- buttons -------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #0C1712; }
.btn-primary:hover { background: #37AF88; }

.btn-ghost { border-color: var(--border-dark); color: var(--text-dark); }
.btn-ghost:hover { border-color: var(--accent); }

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

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* -------------------- hero -------------------- */

.hero {
  background: var(--bg-dark);
  color: var(--text-dark);
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}

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

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}

.hero h1 { color: var(--text-dark); margin: 18px 0 20px; }
.hero p.lead { color: var(--text-muted-dark); font-size: 1.08rem; max-width: 480px; margin-bottom: 30px; }

/* network node graphic */
.node-line { stroke: #2B3542; stroke-width: 1.4; }
.node-dot { fill: #3A4654; }
.node-dot.active { fill: var(--accent); }
.node-pulse {
  transform-origin: center;
  animation: node-pulse 2.6s ease-in-out infinite;
}
@keyframes node-pulse {
  0%, 100% { r: 5; opacity: 1; }
  50% { r: 7; opacity: 0.75; }
}

/* -------------------- page hero (non-home top banners) -------------------- */

.page-hero {
  background: var(--bg-dark);
  color: var(--text-dark);
  padding: 64px 0 56px;
}
.page-hero h1 { color: var(--text-dark); margin-top: 16px; }
.page-hero p { color: var(--text-muted-dark); max-width: 560px; margin-top: 14px; }

/* -------------------- trust strip -------------------- */

.trust-strip {
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}
.trust-strip .data-row { justify-content: center; }

/* -------------------- cards / grid -------------------- */

.grid {
  display: grid;
  gap: 24px;
}
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}

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

.card .icon {
  width: 40px; height: 40px;
  color: var(--accent);
  margin-bottom: 18px;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

.section-head {
  max-width: 620px;
  margin-bottom: 44px;
}
.section-head h2 { margin: 14px 0 12px; }
.section-head p { font-size: 1.02rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* -------------------- about stats -------------------- */

.stat-chip {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
}
.stat-chip .num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.stat-chip .label { font-size: 0.92rem; color: var(--text); }

/* -------------------- testimonials -------------------- */

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial p.quote {
  color: var(--text);
  font-size: 1rem;
  font-style: normal;
}
.testimonial .who {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.rating { color: var(--accent); letter-spacing: 2px; }

/* -------------------- cta band -------------------- */

.cta-band {
  background: var(--bg-dark);
  color: var(--text-dark);
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--text-dark); max-width: 480px; }

/* -------------------- contact -------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.info-item .k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.info-item .v { font-size: 1.02rem; color: var(--text); }

form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 220px;
  margin-top: 24px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* -------------------- footer -------------------- */

footer.site {
  background: var(--bg-dark);
  color: var(--text-muted-dark);
  padding: 48px 0 28px;
  margin-top: 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-links { display: flex; gap: 24px; font-size: 0.9rem; }
.footer-links a:hover { color: var(--text-dark); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  padding-top: 20px;
  font-family: var(--font-mono);
}

/* -------------------- visible focus -------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
