/* RiccaNET IT Solutions - site styles. No external fonts, no scripts. */
:root {
  --brand: #d43b27;
  --brand-dark: #a92c1c;
  --ink: #222;
  --muted: #666;
  --line: #e3e3e3;
  --soft: #f6f6f6;
  --footer: #262626;
  --max: 1140px;
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}

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

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: #fff; padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky; top: 0; z-index: 5;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 24px; min-height: 76px; padding-top: 8px; padding-bottom: 8px;
}
.logo img { display: block; width: 230px; }

.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: .04em; padding: 6px 0; display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.nav .support img { width: 24px; }
.status-pill {
  display: inline-flex !important; align-items: center; gap: 6px;
  color: #fff !important; border: 0 !important;
  border-radius: 4px; padding: 3px 10px !important; font-size: 12px !important;
  background: #6c757d;               /* grey: unknown */
}
.status-pill.status-up { background: #2e7d32; }
.status-pill.status-degraded { background: #e0a000; color: #222 !important; }
.status-pill.status-down { background: #c62828; }
.status-pill:hover { filter: brightness(.9); }
.status-icon { width: 14px; height: 14px; flex: none; }

/* Banner */
.banner {
  min-height: 320px;
  background: #ddd url("/images/banner_768.jpg") no-repeat center bottom / cover;
}
@media (min-width: 1200px) { .banner { background-image: url("/images/banner_1200.jpg"); } }
@media (min-width: 1440px) { .banner { background-image: url("/images/banner_1440.jpg"); } }

.logos { background: var(--brand); padding: 14px 20px; }
.logos ul {
  max-width: 1400px; margin: 0 auto; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-evenly; gap: 14px 20px;
}
.logos li { display: flex; align-items: center; height: 46px; }
.logos img { display: block; height: 25px; width: auto; }
.logos img.mid { height: 28px; }
.logos img.tall { height: 42px; }
@media (max-width: 640px) {
  .logos ul { gap: 10px 22px; }
  .logos li { height: 34px; }
  .logos img { height: 18px; }
  .logos img.mid { height: 21px; }
  .logos img.tall { height: 30px; }
}

.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;
}

/* Content */
main { display: block; }
.page-title { background: var(--soft); border-bottom: 1px solid var(--line); padding: 34px 0; }
.page-title h1 { margin: 0; font-size: 30px; line-height: 1.2; }
.section { padding: 44px 0; }
.section h2 { font-size: 26px; margin: 0 0 18px; }
.center { text-align: center; }
.lede { max-width: 820px; margin: 0 auto; }
.heading-rule::after {
  content: ""; display: block; width: 40px; height: 2px; background: var(--ink); margin: 18px auto 0;
}

.services {
  display: grid; gap: 34px 24px; margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.services li { text-align: center; }
.services img { width: 80px; height: 80px; display: block; margin: 0 auto 12px; }
.services h2 { font-size: 17px; font-weight: 600; margin: 0; line-height: 1.35; }
.services a { color: var(--ink); text-decoration: none; }
.services a:hover h2 { color: var(--brand); }

.with-sidebar { display: grid; gap: 40px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 800px) { .with-sidebar { grid-template-columns: 1fr; } }
.sidebar ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sidebar li { border-bottom: 1px solid var(--line); }
.sidebar a { display: block; padding: 10px 4px; color: var(--ink); text-decoration: none; }
.sidebar a:hover, .sidebar a[aria-current="page"] { color: var(--brand); }

.steps { padding-left: 1.3em; }
.steps > li { margin-bottom: 18px; }
.downloads {
  display: grid; gap: 18px; margin: 16px 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}
.downloads a {
  display: block; text-align: center; text-decoration: none; color: var(--muted);
  font-size: 14px; padding: 14px 8px; border: 1px solid var(--line); border-radius: 6px;
}
.downloads a:hover { border-color: var(--brand); color: var(--brand); }
.downloads img { width: 50px; height: 50px; display: block; margin: 0 auto 8px; }

.contact-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contact-grid dl { margin: 0; }
.contact-grid dt { font-weight: 700; margin-top: 14px; }
.contact-grid dt:first-child { margin-top: 0; }
.contact-grid dd { margin: 0; }
.button {
  display: inline-block; background: var(--brand); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 4px; font-weight: 600;
}
.button:hover { background: var(--brand-dark); color: #fff; }

/* Footer */
.site-footer { background: var(--footer); color: #bbb; text-align: center; padding: 36px 0; font-size: 14px; }
.site-footer h2 { color: #fff; font-size: 18px; margin: 0 0 6px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: #ddd; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; }
  .nav { justify-content: center; gap: 2px 16px; }
  .page-title h1 { font-size: 25px; }
  .banner { min-height: 180px; }
}
