/* Priority IT Services — site styles
   Brand colors from the 2021 identity guide and letterhead logo:
   blue #3B72BC, red #F12022, green #5EBA49, black / gray.
   Logo itself is never recolored or stretched. */

:root {
  --blue: #3b72bc;
  --blue-ink: #1e4f8a;
  --blue-dark: #163a66;
  --blue-deep: #0f294a;
  --blue-soft: #e8f0f8;
  --red: #e21e24;
  --green: #4ea03c;
  --green-brand: #5eba49;
  --black: #1a1a1a;
  --text: #1a1a1a;
  --muted: #4a4f55;
  --line: #d8dee6;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --white: #ffffff;
  --focus: #1e4f8a;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(15, 41, 74, 0.06), 0 8px 24px rgba(15, 41, 74, 0.06);
  --header-h: 4.5rem;
  --wrap: 68rem;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --space: 1.25rem;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

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

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

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--blue-dark);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
}

.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.wrap-narrow { width: min(100% - 2rem, 44rem); margin-inline: auto; }

/* Header
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(59, 114, 188, 0.0);
}

.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--blue);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: auto;
  text-decoration: none;
}

.logo img {
  width: 11.5rem;
  height: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 1.15rem;
  height: 0.7rem;
  background:
    linear-gradient(var(--text), var(--text)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--text), var(--text)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--text), var(--text)) 0 100% / 100% 2px no-repeat;
}

.header-phone {
  display: none;
  font-weight: 700;
  color: var(--blue-ink);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover { color: var(--blue-dark); text-decoration: underline; }

.site-nav {
  display: none;
}

.site-nav.is-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--blue-ink); }

/* Mobile menu: full-width panel under header */
@media (max-width: 879px) {
  .header-inner {
    flex-wrap: wrap;
    padding-bottom: 0.65rem;
  }

  .site-nav {
    flex-basis: 100%;
    order: 3;
    border-top: 1px solid var(--line);
    padding: 0.4rem 0 0.75rem;
  }

  .site-nav.is-open { display: block; }

  .site-nav > ul > li > a,
  .site-nav .sub-toggle {
    display: block;
    padding: 0.7rem 0.15rem;
  }

  .site-nav .has-sub {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .site-nav .has-sub > a { grid-column: 1; }

  .site-nav .sub-toggle {
    grid-column: 2;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0.7rem 0.6rem;
  }

  .site-nav .sub-toggle::after { content: "+"; }

  .site-nav .has-sub.is-open .sub-toggle::after { content: "–"; }

  .site-nav .sub {
    display: none;
    grid-column: 1 / -1;
    padding: 0 0 0.5rem 0.9rem;
  }

  .site-nav .has-sub.is-open .sub { display: block; }

  .site-nav .sub a {
    display: block;
    padding: 0.4rem 0;
    font-weight: 500;
    color: var(--muted);
  }

  .nav-cta {
    display: block;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem !important;
    background: var(--blue);
    color: var(--white) !important;
    text-align: center;
    border-radius: var(--radius);
    font-weight: 700;
  }

  .nav-cta:hover { background: var(--blue-dark); }
}

@media (min-width: 880px) {
  .nav-toggle { display: none; }

  .logo img { width: 13.25rem; }

  .header-phone { display: inline-block; margin-right: 0.25rem; }

  .site-nav {
    display: block;
    margin-left: auto;
  }

  .site-nav > ul {
    display: flex;
    align-items: center;
    gap: 0.15rem;
  }

  .site-nav > ul > li {
    position: relative;
  }

  .site-nav > ul > li > a {
    display: block;
    padding: 0.7rem 0.7rem;
  }

  .site-nav .sub-toggle { display: none; }

  .site-nav .sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 15.5rem;
    padding: 0.45rem 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.35rem);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 20;
  }

  .site-nav .has-sub:hover .sub,
  .site-nav .has-sub:focus-within .sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav .sub a {
    display: block;
    padding: 0.45rem 0.9rem;
    font-weight: 500;
    color: var(--text);
  }

  .site-nav .sub a:hover { background: var(--blue-soft); color: var(--blue-ink); }

  .nav-cta {
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0.5rem 0.95rem !important;
    background: var(--blue);
    color: var(--white) !important;
    border-radius: var(--radius);
    font-weight: 700;
  }

  .nav-cta:hover { background: var(--blue-dark); }
}

/* Hero / page titles
   ------------------------------------------------------------------ */
.hero {
  padding: 2.5rem 0 2.75rem;
  background:
    linear-gradient(180deg, var(--blue-soft) 0%, #f7f9fc 62%, var(--bg) 100%);
}

.hero-kicker {
  margin: 0 0 0.65rem;
  color: var(--blue-ink);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.page-head h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 3.4vw + 1rem, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 750;
  color: var(--blue-deep);
}

.hero .lead,
.page-head .lead {
  margin: 0 0 1.4rem;
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.page-head {
  padding: 2rem 0 1.75rem;
  background: linear-gradient(180deg, var(--blue-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

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

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

.btn-secondary {
  background: var(--white);
  border-color: var(--blue-ink);
  color: var(--blue-ink);
}

.btn-secondary:hover { background: var(--blue-soft); color: var(--blue-dark); }

.btn-on-blue {
  background: var(--white);
  border-color: var(--white);
  color: var(--blue-dark);
}

.btn-on-blue:hover { background: var(--blue-soft); color: var(--blue-deep); }

.btn-on-blue-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-on-blue-outline:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.btn[aria-disabled="true"] {
  opacity: 0.65;
  pointer-events: none;
  cursor: not-allowed;
}

/* Sections
   ------------------------------------------------------------------ */
.section { padding: 3rem 0; }

.section-alt { background: var(--bg-alt); }

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 1.5vw + 1.1rem, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--blue-deep);
}

.section h2 + p,
.intro {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: var(--muted);
}

.section h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--blue-deep);
}

.prose { max-width: 44rem; }

.prose p { margin: 0 0 1rem; }

.prose ul,
.prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

.prose li { margin: 0 0 0.4rem; }

/* Cards / grids
   ------------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* 7-card service grid: 4 + 3 centered on desktop, 2-col on tablet, stacked on mobile */
.card-grid.cols-7 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.card-grid.cols-7 > .card {
  flex: 1 1 100%;
  max-width: 100%;
}
@media (min-width: 640px) {
  .card-grid.cols-7 > .card {
    flex: 1 1 calc((100% - 1rem) / 2);
    max-width: calc((100% - 1rem) / 2);
  }
}
@media (min-width: 960px) {
  .card-grid.cols-7 > .card {
    flex: 1 1 calc((100% - 3rem) / 4);
    max-width: calc((100% - 3rem) / 4);
  }
}

.ai-callout {
  padding: 2rem 0;
  background: var(--blue-dark);
  color: var(--white);
}
.ai-callout-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.ai-callout .hero-kicker { color: #c5d8ef; }
.ai-callout h2 {
  margin: 0 0 0.45rem;
  color: var(--white);
  font-size: clamp(1.3rem, 1.4vw + 1rem, 1.75rem);
  letter-spacing: -0.02em;
}
.ai-callout p {
  margin: 0;
  max-width: 40rem;
  color: #d5e3f4;
}
.ai-callout .btn { flex: 0 0 auto; }

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 1.25rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 rgba(15, 41, 74, 0.03);
}

a.card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  color: inherit;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.card .more {
  margin-top: 0.85rem;
  font-weight: 700;
  color: var(--blue-ink);
  font-size: 0.95rem;
}

a.card:hover .more { text-decoration: underline; }

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  padding: 1.2rem 1.2rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.step h3 { margin-top: 0; }

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

/* CTA band
   ------------------------------------------------------------------ */
.cta-band {
  padding: 2.5rem 0;
  background: var(--blue-dark);
  color: var(--white);
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  color: var(--white);
}

.cta-band p {
  margin: 0 0 1.15rem;
  max-width: 38rem;
  color: #d5e3f4;
}

/* Contact split
   ------------------------------------------------------------------ */
.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 840px) {
  .split { grid-template-columns: 1fr 1.15fr; align-items: start; }
}

.contact-card {
  padding: 1.25rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.contact-card p { margin: 0 0 0.7rem; }

.contact-card a { font-weight: 700; }

.contact-card .big-phone {
  font-size: 1.45rem;
  text-decoration: none;
  color: var(--blue-ink);
}

/* Forms
   ------------------------------------------------------------------ */
form { margin: 0; }

.form-row { margin-bottom: 1rem; }

label,
.lbl {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.req { color: var(--red); }

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(59, 114, 188, 0.25);
  outline-offset: 0;
}

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

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

.form-status {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-ok {
  display: block;
  background: #e8f6e6;
  color: #21571a;
  border: 1px solid #b7dfb0;
}

.form-status.is-err {
  display: block;
  background: #fdecea;
  color: #8a1216;
  border: 1px solid #f5c2c0;
}

.form-note { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.92rem; }

/* Support placeholder
   ------------------------------------------------------------------ */
.placeholder-box {
  margin: 1.25rem 0;
  padding: 1.1rem 1.2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.placeholder-box p { margin: 0 0 0.6rem; }

.placeholder-box p:last-child { margin-bottom: 0; }

/* FAQ
   ------------------------------------------------------------------ */
.faq { max-width: 44rem; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--blue-deep);
  list-style-position: outside;
}
.faq summary:hover { color: var(--blue-ink); }
.faq details p {
  margin: 0.55rem 0 0.15rem;
  color: var(--muted);
}

/* Footer
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--blue-deep);
  color: #d7e2ef;
  padding: 2.5rem 0 1.5rem;
}

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

.site-footer a:hover { text-decoration: underline; }

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.site-footer h2 {
  margin: 0 0 0.55rem;
  color: var(--white);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer li { margin: 0 0 0.35rem; }

.footer-meta {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  color: #9db0c6;
}

/* 404
   ------------------------------------------------------------------ */
.not-found { padding: 3.5rem 0 4rem; text-align: left; }

.not-found h1 { color: var(--blue-deep); }

/* Utilities
   ------------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-nav .sub { transition: none; }
}
