/* MWC Software: one stylesheet for the whole site.
   Colors and fonts follow the original HighendWP theme. */

:root {
  --accent: #ed6162;
  --accent-dark: #bb2f30;
  --accent-text: #c8393a;      /* accent dark enough for small text on white */
  --btn: #d0393b;              /* button red: white text passes WCAG AA */
  --btn-shadow: #9a2526;
  --ink: #222222;
  --body: #444a50;
  --muted: #6b7178;
  --line: #e6e6e6;
  --soft: #f6f6f6;
  --header: #1f2226;
  --footer: #3d4045;
  --footer-bar: #43474d;
  --footer-text: #c3c6ca;
  --max: 1140px;
  --radius: 4px;
  --font: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: #fff;
}

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

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); text-transform: uppercase; letter-spacing: .04em; }
h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 1.1em; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  border-bottom: 3px solid var(--accent);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px;
}
.logo { display: block; padding: 10px 0; }
.logo img { width: 176px; height: auto; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius);
  color: #fff; font: 700 .8rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase;
  padding: 11px 14px; cursor: pointer;
}
.nav-toggle-bars { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; vertical-align: middle; margin-right: 8px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav a {
  display: block; padding: 10px 16px;
  color: #fff; text-decoration: none;
  font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

@media (max-width: 720px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--header); border-bottom: 3px solid var(--accent); }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 6px 0 12px; }
  .site-nav a { padding: 14px 20px; border-bottom: 0; border-left: 3px solid transparent; }
  .site-nav a[aria-current="page"] { border-left-color: var(--accent); }
  .logo img { width: 150px; }
  /* Without JavaScript the links simply wrap under the logo. */
  html:not(.js) .site-header .container { flex-wrap: wrap; padding-bottom: 6px; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; padding: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  background: var(--btn);
  box-shadow: 0 3px 0 0 var(--btn-shadow);
  color: #fff;
  font: 700 .8125rem/1.4 var(--font);
  letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { color: #fff; background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 0 0 var(--btn-shadow); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--btn-shadow); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero (home) and page banners ---------- */
.hero, .page-banner {
  position: relative;
  color: #fff;
  background: #15171a url("images/hero-server-room.webp") center / cover no-repeat;
}
.hero::before, .page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,20,23,.88) 0%, rgba(18,20,23,.7) 55%, rgba(18,20,23,.45) 100%);
}
.hero > .container, .page-banner > .container { position: relative; }
.hero { padding: clamp(80px, 14vw, 170px) 0; }
.hero h1 { color: #fff; max-width: 17em; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 38em; color: #e9eaec; margin-bottom: 2em; }
.hero-lead span { display: block; }

.page-banner { padding: clamp(56px, 9vw, 96px) 0; }
.page-banner h1 { color: #fff; margin: 0; }
.page-banner .eyebrow { color: var(--accent); }

.eyebrow {
  display: block;
  font-size: .8125rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: .5em;
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 46em; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.rule { width: 48px; height: 3px; background: var(--accent); border: 0; margin: 0 0 1.4rem; }
.center .rule { margin-left: auto; margin-right: auto; }

.lead { font-size: 1.15rem; color: var(--ink); }
.prose { max-width: 48em; }

.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex; flex-direction: column;
}
.card p { flex: 1; }
.card .btn { align-self: flex-start; }
.card-icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 16px; }

/* ---------- Process ---------- */
.process {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  counter-reset: step;
}
.process li { position: relative; text-align: center; padding: 0 8px; }
.process li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 64px; height: 64px; margin: 0 auto 16px;
  border: 2px solid var(--accent); border-radius: 50%;
  color: var(--accent-text); font-weight: 900; font-size: 1.4rem; background: #fff;
}
.process h3 { margin-bottom: .3em; }
.process p { color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .process li:not(:last-child)::after {
    content: ""; position: absolute; top: 32px; left: calc(50% + 40px); right: calc(-50% + 30px);
    border-top: 2px dashed #d9d9d9;
  }
}

/* ---------- Team profile ---------- */
.profile { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .profile { grid-template-columns: 300px 1fr; } }
.profile-photo img { width: 100%; max-width: 300px; border-radius: var(--radius); border-bottom: 4px solid var(--accent); }
.profile-name { margin-bottom: 0; }
.profile-role { color: var(--accent-text); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .875rem; margin-bottom: 1.2em; }
.tags { list-style: none; margin: .4em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: .875rem; color: var(--ink); }

/* ---------- Contact ---------- */
.contact { background: var(--header); color: #d9dbde; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--accent); }
.contact-email {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; color: #fff; text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 4px; word-break: break-all;
}
.contact-email:hover { color: var(--accent); }
.contact-email svg { width: 28px; height: 28px; flex: none; color: var(--accent); }

/* ---------- Clients ---------- */
.logo-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.logo-grid li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; padding: 18px; aspect-ratio: 1;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.logo-grid li:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.logo-grid img { width: 100%; max-width: 200px; }

/* ---------- CTA band ---------- */
.cta { background: var(--accent); color: #fff; padding: 44px 0; }
.cta .container { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta p { margin: 0; font-size: 1.25rem; font-weight: 700; }
.cta .btn { background: #fff; color: var(--accent-dark); box-shadow: 0 3px 0 0 var(--accent-dark); }
.cta .btn:hover { background: var(--ink); color: #fff; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: clamp(80px, 14vw, 160px) 0; }
.not-found .big { font-size: clamp(4rem, 16vw, 8rem); font-weight: 900; color: var(--accent); line-height: 1; margin: 0 0 .1em; }
.not-found .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--footer-text); font-size: .95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.site-footer img { width: 150px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .8125rem; font-weight: 700; }
.footer-bar { background: var(--footer-bar); font-size: .875rem; }
.footer-bar .container { padding-top: 16px; padding-bottom: 16px; }
.footer-bar p { margin: 0; }

/* ---------- Utilities ---------- */
.h3-like { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .06em; }
.h3-like .eyebrow { margin-bottom: .2em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
