/* ==========================================================================
   GLOBAL
   Base elements, the page grid, and the shared type, button and link styles.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--page-white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--deep-forest-shade);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

b, strong {
  font-weight: 600;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--deep-forest);
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

a:hover {
  color: var(--muted-brass);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

main:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

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

/* Hint wording that depends on the device: "Select…" with a mouse, "Tap…" on touch screens. */
.hint-touch { display: none; }

@media (hover: none) {
  .hint-desk { display: none; }
  .hint-touch { display: inline; }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--deep-forest);
  color: var(--off-white);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
  color: var(--off-white);
}

/* ---------- Page width and 12-column grid ---------- */
.wrap {
  padding-inline: var(--pad-x);
}

.grid-12 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 20px;
}

@media (min-width: 900px) {
  .grid-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
  }
}

/* ---------- Shared type ---------- */
.eyebrow {
  font: 600 12px var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--body-muted);
  line-height: 1.5;
}

.eyebrow--forest { color: var(--deep-forest); }
.eyebrow--on-dark { color: var(--soft-sage); }

.body-lg {
  font-size: clamp(16px, calc(16px + 2 * var(--fl)), 18px);
  line-height: 1.7;
}

.body-md {
  font-size: clamp(16px, calc(16px + 2 * var(--fl)), 18px);
  line-height: 1.7;
}

.strong-forest {
  font-weight: 600;
  color: var(--deep-forest);
}

/* ---------- Buttons (square corners everywhere) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 28px;
  border: 0;
  font: 600 15px/1.35 var(--font-body);
  text-align: center;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn--brass {
  background: var(--muted-brass);
  color: var(--deep-forest-shade);
}

.btn--brass:hover {
  background: var(--brass-hover);
  color: var(--deep-forest-shade);
}

.btn--forest {
  background: var(--deep-forest);
  color: var(--off-white);
  padding: 19px 30px;
}

.btn--forest:hover {
  background: var(--deep-forest-shade);
  color: var(--off-white);
}

.btn--forest:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Full width on phones (as in the mobile design), natural width on larger screens */
@media (max-width: 899.98px) {
  .btn--block-mobile {
    display: flex;
    width: 100%;
  }
}

/* ---------- Text link with brass underline ("See How We Work →") ---------- */
.text-link {
  align-self: flex-start;
  display: inline-block;
  font: 600 16px/1.4 var(--font-body);
  color: var(--deep-forest);
  border-bottom: 1.5px solid var(--muted-brass);
  padding-bottom: 4px;
}

.text-link--sm {
  font-size: 15px;
  padding-bottom: 3px;
}

.text-link__arrow {
  color: var(--muted-brass);
}

.text-link--on-dark {
  color: var(--off-white);
}

/* Button row: a filled button plus a text link */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.cta-row .text-link {
  align-self: center;
}

@media (max-width: 899.98px) {
  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .cta-row .text-link {
    align-self: center;
  }
}
