/* ==========================================================================
   Sufficiently Advanced Solutions — components
   Every component reads the semantic roles set in tokens.css / layout.css,
   so dropping one inside .band--ink recolours it with no ".on-dark" variant.
   ========================================================================== */

/* ---- Eyebrow + descriptor rule -------------------------------------------
   The wide-tracked uppercase line is the brand's own signature device
   ("SMALL BUSINESS IT", "SASTX.NET"), not generic decoration. */
.eyebrow {
  font-size: var(--step--1);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-utility);
  text-transform: uppercase;
  color: var(--accent-text);
  /* Wide tracking makes these run long; balance stops a lone trailing word. */
  text-wrap: balance;
}

/* The badge's flanking-rule treatment, reusable as a section marker. */
.rule-label {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--step--1);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-utility);
  text-transform: uppercase;
}
.rule-label::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--accent);
}
.rule-label--center::before {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--accent);
}

.lede {
  font-size: var(--step-1);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---- Buttons -------------------------------------------------------------
   Black on gold is 9.4:1. Never white on gold (2.2:1). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85em 1.6em;
  border: var(--border-rule) solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--step-0);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.btn:hover { color: inherit; }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}
.btn--primary:hover { background: var(--sas-orange-hover); border-color: var(--sas-orange-hover); color: var(--accent-contrast); }
.btn--primary:active { background: var(--sas-orange-press); border-color: var(--sas-orange-press); }

.btn--secondary {
  background: transparent;
  border-color: currentColor;
  color: var(--text);
}
.btn--secondary:hover { background: var(--text); color: var(--surface); }

.btn--ghost { background: transparent; border-color: transparent; color: var(--text); padding-inline: 0.4em; }
.btn--ghost:hover { color: var(--accent-text); }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ---- Header --------------------------------------------------------------
   Not sticky: the page is short, and a fixed bar eats phone viewport height
   for no navigational benefit on a single-page site. */
.site-header { background: var(--surface); border-bottom: var(--border-hair) solid var(--line); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-4);
}
.site-header__logo { display: block; }
.site-header__logo img { width: clamp(190px, 26vw, 250px); }

.site-nav { display: flex; align-items: center; gap: clamp(var(--space-4), 2.5vw, var(--space-6)); }
.site-nav a {
  font-size: var(--step--1);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent-text); }
@media (max-width: 46rem) {
  .site-nav__links { display: none; }   /* single-page site: the CTA is the job */
}

/* ---- Hero ----------------------------------------------------------------
   The outline connector is specified for large watermark use only (§08);
   this is that use. It is decorative, so it is aria-hidden and drops out
   entirely on narrow screens rather than competing with the headline. */
.hero { position: relative; overflow: hidden; }
.hero__inner { position: relative; z-index: 1; max-width: 46rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__watermark {
  position: absolute;
  right: max(2rem, 5vw);
  top: 50%;
  transform: translateY(-50%);
  height: 132%;
  width: auto;
  opacity: 0.1;
  pointer-events: none;
}
/* Below this the headline needs the full width; the mark would sit behind type. */
@media (max-width: 72rem) { .hero__watermark { display: none; } }

/* ---- Full-bleed graphic divider -------------------------------------------
   object-fit: cover rather than letting the SVG scale down, so the ports keep
   a legible size on a phone and the panel crops instead of turning to specks. */
.panel-divider { background: var(--sas-ink); line-height: 0; }
.panel-divider img {
  width: 100%;
  height: clamp(84px, 11vw, 150px);
  object-fit: cover;
}

/* ---- Value strip (§10 footer device) ------------------------------------- */
.value-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4) clamp(var(--space-5), 5vw, var(--space-8));
}
.value-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--step--1);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-utility);
  text-transform: uppercase;
}
.value-strip__item svg { width: 1.65rem; height: 1.65rem; flex: none; }

/* ---- Cards --------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--surface-alt);
  border: var(--border-hair) solid var(--line);
  border-radius: var(--radius-md);
}
.card__icon { width: 2.5rem; height: 2.5rem; color: var(--accent-text); flex: none; }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--text-muted); font-size: var(--step-0); }

/* The product names under each service: supporting detail, never the headline. */
.card__tags {
  margin-block-start: auto;
  padding-block-start: var(--space-3);
  border-top: var(--border-hair) solid var(--line);
  font-size: var(--step--1);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Numbered steps ------------------------------------------------------
   Numbered because §02 describes an actual sequence — understand, solve,
   explain, hand over. The order carries meaning; it is not decoration. */
.step { display: flex; gap: var(--space-4); }
.step__num {
  flex: none;
  width: 2.5rem;
  font-size: var(--step-2);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  line-height: 1.1;
}
.step h3 { font-size: var(--step-1); margin-block-end: var(--space-1); }
.step p { color: var(--text-muted); }

/* ---- Feature block -------------------------------------------------------
   Art column is centred and capped so the plate never outgrows its text
   partner; on narrow screens it drops below and shrinks rather than
   dominating the first screenful. */
.feature__art { display: flex; align-items: center; justify-content: center; }
.feature__art img { width: auto; height: clamp(200px, 26vw, 330px); }
@media (min-width: 60rem) { .feature { align-items: center; } }

/* ---- Checklist ----------------------------------------------------------- */
.checklist { display: grid; gap: var(--space-4); }
/* Two columns for short tag-like items, so six entries don't run down the page. */
.checklist--split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: var(--space-3) var(--space-5); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; }
.checklist svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--accent); margin-block-start: 0.2em; }

/* ---- Pull quote ---------------------------------------------------------- */
.pullquote {
  margin: 0;
  padding-inline-start: var(--space-5);
  border-inline-start: var(--border-heavy) solid var(--accent);
  font-size: var(--step-2);
  font-weight: var(--fw-medium);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.pullquote p { max-width: 34ch; }

/* ---- Form ---------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--step--1); font-weight: var(--fw-bold); letter-spacing: var(--ls-wide); text-transform: uppercase; }
.field input, .field textarea, .field select {
  padding: 0.8em 0.9em;
  background: var(--sas-white);
  color: var(--sas-black);
  border: var(--border-rule) solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease);
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--text-muted); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 8rem; }
.field__hint { font-size: var(--step--1); color: var(--text-muted); }
.field--required label::after { content: " *"; color: var(--accent); }

/* Error text sits on black in the contact section, so it cannot use a dark red.
   This salmon is 7.4:1 on --sas-ink; the invalid border is gold-independent so
   an error never reads as "focused". */
.field__error { font-size: var(--step--1); font-weight: var(--fw-bold); color: #E8867A; }
.field input[aria-invalid], .field textarea[aria-invalid] { border-color: #E8867A; }

.form-status { font-size: var(--step--1); font-weight: var(--fw-bold); min-height: 1.5em; }
.form-status[data-state="ok"] { color: var(--accent); }
.form-status[data-state="error"] { color: #E8867A; }

/* Honeypot: removed from layout and from the accessibility tree, but NOT
   display:none — some bots skip fields that are display:none. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Contact details ------------------------------------------------------ */
.contact-list { display: grid; gap: var(--space-4); }
.contact-list li { display: flex; flex-direction: column; gap: var(--space-1); }
.contact-list a {
  font-size: var(--step-1);
  font-weight: var(--fw-bold);
  text-decoration: none;
  width: fit-content;
}
.contact-list a:hover { color: var(--accent); }
.contact-list__plain { font-size: var(--step-0); font-weight: var(--fw-medium); }

/* Service-area line under the hero CTAs. Gold on ink is 8.8:1, so it is safe
   at this size — the same colour on cream would not be. */
.service-area {
  font-size: var(--step--1);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--accent);
  /* No max-width: `ch` is the width of "0", which badly understates
     wide-tracked uppercase and forced this onto three lines. */
  text-wrap: balance;
}

/* ---- Footer --------------------------------------------------------------
   The element also carries .band .band--ink in the markup. That is what flips
   --text-muted to the on-dark value; setting only background/color here left
   muted copy at the light-ground grey, which is 2.2:1 on black. Any new dark
   region must opt into .band--ink rather than painting its own background. */
.site-footer { }
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: flex-start;
  justify-content: space-between;
  padding-block: var(--space-7);
}
.site-footer__logo img { width: 230px; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  border-top: var(--border-hair) solid var(--sas-ink-line);
  font-size: var(--step--1);
  color: var(--text-invert-muted);
}
.site-footer__mark {
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-utility);
  text-transform: uppercase;
  color: var(--sas-cream);
}
.site-footer__mark span { color: var(--accent); }
/* Footer nav links are inline elements inside a .stack, so they need to be
   block-level or the owl selector's block margin does nothing and they run
   together on one line. */
.site-footer__top nav a { display: block; width: fit-content; }

.footer-values { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.footer-values li + li::before {
  content: "\00B7";
  margin-inline-end: var(--space-4);
  color: var(--accent);
}

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