/*
  MJC Business IT stylesheet
  Colors, font, and spacing are set once in :root below. Change them there.
*/

@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #FFFFFF;
  --alt: #F3F6FA;
  --navy: #102A43;
  --blue: #1D4ED8;
  --blue-dark: #1E40AF;
  --slate: #334155;
  --line: #D9E1EA;
  --line-strong: #B6C3D1;
  --field-border: #64748B;
  --footer-text: #D9E2EC;
  --error: #B42318;
  --error-bg: #FEF3F2;
  --success: #166534;
  --success-bg: #F0FDF4;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

@media (min-width: 48rem) {
  html {
    scroll-padding-top: 5.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

p,
li,
dd,
td {
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-dark);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

main:focus {
  outline: none;
}

svg {
  max-width: 100%;
}

.nowrap {
  white-space: nowrap;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

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

@media (min-width: 48rem) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
  }
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.875rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

a.wordmark:hover {
  color: var(--navy);
}

.wordmark-tag {
  padding: 0.3rem 0.45rem 0.28rem;
  border-radius: 4px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-nav {
  order: 2;
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding-block: 0.625rem;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* On very small phones the hero's own "Request IT Help" button is right below,
   so the header copy is dropped to keep the header on two tidy rows. */
@media (max-width: 23.3rem) {
  .site-header .header-cta {
    display: none;
  }
}

@media (min-width: 48rem) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .site-nav {
    order: 0;
    width: auto;
    margin-left: auto;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.7rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--navy);
}

.btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-sm {
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  font-size: 0.9375rem;
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.75;
}

/* Hero */

.hero {
  padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.75rem;
}

@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 4.5rem;
    align-items: center;
  }
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.375rem, 1.55rem + 3.4vw, 3.75rem);
  font-weight: 750;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 34em;
  font-size: clamp(1.125rem, 1.03rem + 0.35vw, 1.3125rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (max-width: 30rem) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

.hero-facts {
  display: grid;
  gap: 0.75rem;
  margin: 2.25rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.9375rem;
}

.hero-facts li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.hero-facts .icon {
  margin-top: 0.15rem;
  color: var(--blue);
}

/* Rate slip in the hero */

.rate-slip {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 40px -24px rgba(16, 42, 67, 0.45);
}

.rate-slip-head {
  padding: 1rem clamp(1.125rem, 4vw, 1.5rem);
  background: var(--navy);
}

.rate-slip-head h2 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.rate-list {
  margin: 0;
  padding: 0.25rem clamp(1.125rem, 4vw, 1.5rem);
}

.rate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px dashed var(--line-strong);
}

.rate-row:last-child {
  border-bottom: 0;
}

.rate-row dt {
  color: var(--navy);
  font-weight: 600;
}

.rate-row .price {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  text-align: right;
}

.rate-row .terms {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9375rem;
}

.rate-slip-foot {
  margin: 0;
  padding: 1rem clamp(1.125rem, 4vw, 1.5rem) 1.125rem;
  border-top: 1px solid var(--line);
  background: var(--alt);
  font-size: 0.9375rem;
}

.rate-slip-foot a {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
}

/* Sections */

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-alt {
  border-block: 1px solid var(--line);
  background: var(--alt);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  letter-spacing: -0.025em;
}

.section-head p {
  font-size: 1.125rem;
}

/* Services */

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  list-style: none;
}

@media (min-width: 40rem) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .service-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .service {
    grid-column: span 2;
  }

  /* If the last row has only two cards, let them share the full width. */
  .service:nth-child(3n+1):nth-last-child(2),
  .service:nth-child(3n+1):nth-last-child(2) ~ .service {
    grid-column: span 3;
  }
}

@media (min-width: 40rem) and (max-width: 63.99rem) {
  /* An odd card out on the last row spans both columns. */
  .service:nth-child(2n+1):last-child {
    grid-column: 1 / -1;
  }
}

.service {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
}

.service .icon {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 1.125rem;
  color: var(--blue);
}

.service h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1875rem;
}

.service p {
  margin-bottom: 1.25rem;
}

.service .service-scope {
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

/* Where supported, line up each card's parts with its neighbors so the
   "Includes" dividers sit at the same height across a row. */
@supports (grid-template-rows: subgrid) {
  .service {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .service .service-scope {
    margin-top: 0;
  }
}

.scope-label {
  color: var(--navy);
  font-weight: 600;
}

/* About */

.about-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 56rem) {
  .about-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 4.5rem;
    align-items: start;
  }
}

.about-copy h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  letter-spacing: -0.025em;
}

.about-copy p {
  max-width: 36em;
  font-size: 1.125rem;
}

.facts {
  margin: 0;
  padding: 0.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.facts > div {
  padding-block: 1.125rem;
  border-bottom: 1px solid var(--line);
}

.facts > div:last-child {
  border-bottom: 0;
}

.facts dt {
  margin-bottom: 0.25rem;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
}

.facts dd {
  margin: 0;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
}

.external-link .icon {
  width: 1em;
  height: 1em;
}

/* How it works and pricing */

.steps {
  display: grid;
  gap: 1.75rem;
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.25rem;
  }
}

.step {
  position: relative;
  padding-top: 3.25rem;
}

.step::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  counter-increment: step;
  content: counter(step);
}

@media (min-width: 48rem) {
  .step::after {
    position: absolute;
    top: 1.125rem;
    left: 3rem;
    right: -1.5rem;
    height: 1px;
    background: var(--line-strong);
    content: "";
  }

  .step:last-child::after {
    display: none;
  }
}

.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.pricing-grid,
.area-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 56rem) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
}

caption {
  padding: 1.125rem clamp(1rem, 3vw, 1.5rem) 0.75rem;
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 700;
  text-align: left;
}

th,
td {
  padding: 0.95rem clamp(1rem, 3vw, 1.5rem);
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--alt);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
}

tbody th {
  width: 42%;
  color: var(--navy);
  font-weight: 600;
}

.terms-note {
  padding: clamp(1.25rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 0 14px 14px 0;
  background: var(--white);
}

.terms-note h3 {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

/* Service area and availability */

.note {
  margin-top: 1.25rem;
}

.area h3 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.area-list {
  display: grid;
  gap: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.area-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.area-list .icon {
  margin-top: 0.15rem;
  color: var(--blue);
}

/* Reviews (hidden until real reviews are added) */

.review-list {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .review-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.review {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.review blockquote {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 1.0625rem;
}

.review-by {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* FAQ */

.faq-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 60rem) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
    gap: 4rem;
    align-items: start;
  }

  .faq-grid .section-head {
    margin-bottom: 0;
  }
}

.faq {
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  position: relative;
  padding: 1.2rem 2.75rem 1.2rem 0;
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  content: "";
}

.faq details[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

@media (prefers-reduced-motion: no-preference) {
  .faq summary::after {
    transition: transform 0.2s ease;
  }
}

.faq summary:hover {
  color: var(--blue);
}

.faq .answer {
  max-width: 40em;
  padding-bottom: 1.35rem;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 62rem) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
}

.form-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  margin-bottom: 0.375rem;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
}

.optional {
  color: var(--slate);
  font-weight: 400;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 2.875rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

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

.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: 3px solid var(--blue);
  outline-offset: 1px;
}

.field [aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: inset 0 0 0 1px var(--error);
}

.field-hint {
  margin: -0.125rem 0 0.5rem;
  font-size: 0.9375rem;
}

.field-error {
  margin: 0.4rem 0 0;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 500;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 1.5rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--navy);
  border-radius: 0 6px 6px 0;
  background: var(--alt);
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.form-privacy {
  margin: 0;
  font-size: 0.9375rem;
}

.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.125rem;
  border: 1px solid;
  border-radius: 8px;
  font-weight: 500;
}

.form-status.is-success {
  border-color: #86EFAC;
  background: var(--success-bg);
  color: var(--success);
}

.form-status.is-error {
  border-color: #FDA29B;
  background: var(--error-bg);
  color: var(--error);
}

.form-status a {
  color: inherit;
  font-weight: 600;
}

.contact-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--alt);
}

.contact-card h3 {
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
}

.contact-list {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.contact-list .icon {
  margin-top: 0.2rem;
  color: var(--blue);
}

.contact-list strong {
  display: block;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
}

.contact-list a {
  overflow-wrap: anywhere;
}

.contact-card-note {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

/* Privacy page */

.page-head {
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2rem);
}

.page-head h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.125rem, 1.6rem + 2.2vw, 3rem);
  letter-spacing: -0.03em;
}

.prose {
  max-width: 44rem;
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* 404 page */

.not-found {
  padding-block: clamp(4rem, 12vw, 8rem);
}

.not-found h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.125rem, 1.6rem + 2.2vw, 3rem);
  letter-spacing: -0.03em;
}

.not-found p {
  max-width: 34em;
  font-size: 1.125rem;
}

/* Footer */

.site-footer {
  padding-block: 3rem 2rem;
  background: var(--navy);
  color: var(--footer-text);
  font-size: 0.9375rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer :focus-visible {
  outline-color: var(--white);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark-invert {
  margin-bottom: 1rem;
  color: var(--white);
}

.wordmark-invert .wordmark-tag {
  background: var(--white);
  color: var(--navy);
}

.footer-links {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.35rem;
  overflow-wrap: anywhere;
}

.footer-bottom {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
