/* TrinIT overrides and additions, layered on top of the original stylesheet (site.css). */

/* ---------- Brand alignment with README-brand-guide.md ---------- */
:root {
  --brand-blue: #1E8FCB;   /* Cerulean */
  --ring: #1E8FCB;
  --steel: #C5CCD6;        /* Light gray */
  --gunmetal: #1F2A37;     /* Blue gunmetal */
  --font-heading-brand: "Archivo", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}
/* Headings use Archivo, the wordmark typeface. Body text stays IBM Plex Sans. */
h1, h2, h3, .audience-title { font-family: var(--font-heading-brand); letter-spacing: -0.01em; }

/* ---------- Header ---------- */
.site-logo { height: 2.75rem; width: auto; }
.nav-link { display: none; }
@media (min-width: 48rem) { .nav-link { display: inline; } }
@media (min-width: 40rem) {
  .site-header-bar { height: 4.5rem; }
  .site-logo { height: 3rem; }
  #businesses, #with-your-msp, #msps, #about, #faq, #contact { scroll-margin-top: 4.5rem; }
}
.footer-logo { height: 2.5rem; width: auto; }

/* ---------- Audience chooser ---------- */
.audience-grid { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .audience-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.audience-card {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--background); color: inherit; text-decoration: none;
  border: 1px solid var(--border); border-radius: 0.375rem; padding: 1.75rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.audience-card:hover { border-color: var(--primary); background: var(--accent); }
.audience-card:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.audience-title { margin-top: 0.75rem; font-size: 1.25rem; font-weight: 600; }
.audience-body { color: var(--muted-foreground); }
.audience-go { margin-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--primary); font-size: 0.875rem; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .audience-card { transition: none; } }

/* ---------- Comparison table ---------- */
.cmp { margin-top: 3.5rem; border: 1px solid var(--border); border-radius: 0.375rem; overflow: hidden; }
.cmp-head, .cmp-row { display: grid; }
@media (min-width: 40rem) { .cmp-head, .cmp-row { grid-template-columns: 1fr 1fr; } }
.cmp-head { display: none; background: var(--muted); }
@media (min-width: 40rem) { .cmp-head { display: grid; } }
.cmp-head p {
  padding: 0.9rem 1.5rem; font-family: var(--font-mono-brand); font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-foreground);
}
.cmp-head p + p { color: var(--primary); }
.cmp-row p { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); }
.cmp-a { color: var(--muted-foreground); }
.cmp-b { font-weight: 500; background: var(--accent); }
/* On phones the header row is hidden, so each cell carries its own label. */
@media (max-width: 39.99rem) {
  .cmp-row p::before {
    display: block; margin-bottom: 0.25rem; font-family: var(--font-mono-brand); font-size: 0.7rem;
    letter-spacing: 0.15em; text-transform: uppercase; font-weight: 400;
  }
  .cmp-a::before { content: "Typical MSP relationship"; color: var(--muted-foreground); }
  .cmp-b::before { content: "With a fractional CIO"; color: var(--primary); }
  .cmp-row:first-of-type p.cmp-a { border-top: 0; }
}

/* ---------- Business section pieces ---------- */
.subhead { margin-top: 4rem; font-size: 1.25rem; font-weight: 600; }
.subhead.mt-0 { margin-top: 0; }
.role-note {
  margin-top: 1.5rem; max-width: var(--reading-width); color: var(--muted-foreground);
  border-left: 3px solid var(--brand-blue); padding: 0.25rem 0 0.25rem 1rem;
}
.biz-start { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--border); display: grid; gap: 3rem; }
@media (min-width: 64rem) { .biz-start { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.steps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.steps li { display: flex; gap: 1rem; align-items: baseline; }

/* ---------- How I work with your MSP ---------- */
.principles { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .principles { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.principle { display: flex; gap: 1rem; align-items: flex-start; }
.principle svg { margin-top: 0.3rem; }

/* ---------- MSP section pieces ---------- */
.msp-outcomes { margin-top: 3rem; }
.referral {
  margin-top: 3rem; display: grid; gap: 1.25rem; align-items: center;
  border: 1px solid var(--border); border-radius: 0.375rem; background: var(--muted); padding: 2rem;
}
@media (min-width: 48rem) { .referral { grid-template-columns: auto 1fr auto; gap: 1.5rem; } }
.referral-btn { border: 1px solid var(--border); background: var(--background); color: var(--foreground); }
.referral-btn:hover { background: var(--accent); }

/* ---------- Contact form ---------- */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.choice {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  border: 1px solid var(--border); border-radius: 0.375rem; padding: 0.65rem 0.9rem; font-size: 0.875rem;
}
.choice input { accent-color: var(--primary); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--accent); }
.choice:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }
/* field-sizing-content ignores rows="5", so give the message box a real starting height. */
#contact-message { min-height: 8rem; }
.choice-legend { margin-bottom: 0.75rem; }

/* ---------- Revision 2 additions ---------- */
.text-2xl-brand { font-size: 1.75rem; line-height: 1.2; }
@media (min-width: 40rem) { .text-2xl-brand { font-size: 2rem; } }

/* Track-record panel: wider label column for "Integrated" and "Supported". */
.ledger-label { flex: 0 0 6.5rem; }

/* Audience bands that open each service section. */
.audience-band { color: #fff; }
/* Deeper brand blue so the small jump link meets WCAG AA contrast with white text. */
.band-biz { background: var(--primary); }
.band-msp { background: var(--gunmetal); border-top: 1px solid rgba(255,255,255,0.08); }
.band-inner { padding-top: 2rem; padding-bottom: 2rem; }
@media (min-width: 48rem) { .band-inner { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 2.25rem; padding-bottom: 2.25rem; } }
.band-title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.9rem;
  font-family: var(--font-heading-brand); font-weight: 600; font-size: 2rem; line-height: 1.1; letter-spacing: -0.01em;
}
@media (min-width: 40rem) { .band-title { font-size: 2.5rem; } }
.band-icon { width: 2rem; height: 2rem; align-self: center; opacity: 0.9; }
.band-sub { font-family: var(--font-mono-brand); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.85; }
.band-jump {
  display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start;
  color: #fff; font-size: 0.9rem; font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em;
  text-decoration-color: rgba(255,255,255,0.5);
}
@media (min-width: 48rem) { .band-jump { align-self: center; } }
.band-jump:hover { text-decoration-color: #fff; }
.band-msp .band-icon { color: var(--brand-blue); opacity: 1; }

/* MSP outcomes: four items, two by two on tablets, four across on wide screens. */
.outcomes-4 { list-style: none; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 48rem) { .outcomes-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72rem) { .outcomes-4 { grid-template-columns: repeat(4, 1fr); } }

/* MSP service cards: three across on wide screens. */
@media (min-width: 64rem) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

/* About: headshot and LinkedIn link. */
.headshot {
  margin-top: 1.5rem; width: 12rem; height: 12rem; object-fit: cover;
  border-radius: 0.5rem; border: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 64rem) { .headshot { width: 14rem; height: 14rem; } }
.about-link {
  margin-top: 0.75rem; display: flex; width: fit-content; align-items: center; gap: 0.5rem;
  color: var(--brand-blue); font-size: 0.95rem; font-weight: 500; text-decoration: none;
}
.about-link:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.about-copy { align-self: center; }

/* FAQ: native collapsible rows. */
.faq-list { margin-top: 2.5rem; max-width: 52rem; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0.25rem; font-family: var(--font-heading-brand); font-weight: 600; font-size: 1.15rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 0.25rem; }
.faq-chev { flex-shrink: 0; transition: transform 0.15s ease; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-item p { padding: 0 0.25rem 1.5rem; max-width: var(--reading-width); color: var(--muted-foreground); line-height: 1.7; }
@media (prefers-reduced-motion: reduce) { .faq-chev { transition: none; } }

/* Contact and footer LinkedIn links. */
.contact-li { color: var(--primary); text-decoration: none; }
.contact-li:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.footer-right { display: flex; align-items: center; gap: 1.25rem; }
.footer-li { color: var(--steel); display: inline-flex; }
.footer-li:hover { color: #fff; }

/* How I work with your MSP: light band so it separates from the gunmetal MSP band below it. */
.stance { background: var(--accent); border-top: 1px solid var(--border); }

/* ---------- Revision 3 additions ---------- */
/* vCIO definition as a light callout at body size. */
.vcio-callout {
  margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: 0.375rem;
  background: var(--accent); border-left: 3px solid var(--brand-blue); color: var(--foreground);
}
/* Plain-language promise, set as a closing line under the three commitments. */
.stance-quote {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(31,42,55,0.12);
  display: flex; gap: 1rem; align-items: flex-start; max-width: 48rem;
  font-family: var(--font-heading-brand); font-size: 1.25rem; font-weight: 500; line-height: 1.45; color: var(--foreground);
}
.stance-quote svg { margin-top: 0.35rem; }
.stance { border-top: 0; }
