/* Reset, typography, layout wrapper, buttons and accessibility helpers. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* The header is sticky; keep anchored headings from hiding under it. */
  scroll-padding-top: var(--header-h);
}

body.sas {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--sas-white);
  color: var(--sas-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Keeps the footer at the bottom of short pages. */
.site {
  flex: 1 0 auto;
}

/* :where() keeps these resets at zero specificity so component classes win. */
:where(.sas) :is(h1, h2, h3) {
  margin: 0;
  font-family: var(--font-display);
  color: var(--sas-navy);
}

:where(.sas) p {
  margin: 0;
}

:where(.sas) :is(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--sas-navy);
  border-radius: 0;
  background: var(--sas-navy);
  color: var(--sas-white);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--sas-sky);
  background: var(--sas-sky);
  color: var(--sas-white);
}

.btnfx {
  transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.btnfx:hover {
  transform: translateY(-2px);
}

.ar-r svg {
  transition: transform 200ms ease;
}

.ar-r:hover svg {
  transform: translateX(4px);
}

/* Large uppercase link row (mobile menu, footer quick links) ---------- */
.fbig {
  display: block;
  padding: 22px 0;
  border-top: 1px solid var(--sas-line-dark);
  color: var(--sas-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.fbig:hover {
  color: var(--sas-sky);
}

/* Accessibility ------------------------------------------------------ */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--sas-navy);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 20px;
  clip: auto;
  background: var(--sas-white);
  color: var(--sas-navy);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btnfx,
  .ar-r svg,
  .navl::after {
    transition: none !important;
  }

  .btnfx:hover,
  .ar-r:hover svg {
    transform: none !important;
  }
}
