/* ==========================================================================
   SITESURGEON PRO — BASE
   Reset, typography scale, containers, buttons, links and utilities.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper);
  line-height: 1.68; font-size: 17.5px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.026em; text-wrap: balance; }
p { margin: 0 0 1em; color: var(--slate); }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
@media (max-width: 400px) { .container { padding: 0 20px; } }
.container--narrow { max-width: 880px; }
:focus-visible { outline: 2.5px solid var(--surgical-teal); outline-offset: 3px; border-radius: 4px; }

/* ---- Type: one step lighter than Homepage 1 ---- */
h1 { font-size: clamp(1.95rem, 3.1vw, 2.65rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 2.9vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; }
h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.02em; }
h4 { font-size: 0.98rem; font-weight: 600; }
.lede { font-size: clamp(1.1rem, 1.3vw, 1.22rem); color: var(--slate); max-width: 62ch; line-height: 1.7; }

.eyebrow {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--surgical-teal); font-weight: 600; display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px;
}
.eyebrow::before { content: ''; flex: 0 0 auto; width: 6px; height: 6px; background: currentColor; border-radius: 2px; transform: rotate(45deg); opacity: 0.75; }
.eyebrow--slate { color: var(--slate-2); }

.sec-head { max-width: 700px; margin: 0 0 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head.center .lede { margin-left: auto; margin-right: auto; }
.sec-head h2 { margin-bottom: 16px; }
.sec-head .lede:last-child { margin-bottom: 0; }

/* ---- Buttons: orange rationed to one per view ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 1rem; padding: 16px 28px; border-radius: 10px;
  border: 1px solid transparent; line-height: 1; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--alert-orange); color: var(--paper); box-shadow: 0 2px 10px rgba(255,90,31,0.20); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255,90,31,0.26); }
.btn-teal { background: var(--surgical-teal); color: var(--paper); box-shadow: 0 2px 10px rgba(15,157,143,0.18); }
.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15,157,143,0.24); }
.btn-outline { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--slate-3); background: var(--mist); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; font-size: 0.92rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Quiet arrow link ---- */
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem; color: var(--surgical-teal); transition: gap 0.2s var(--ease); }
.arrow-link:hover { gap: 12px; }
.arrow-link--ink { color: var(--ink); }
.arrow-link--ink:hover { color: var(--surgical-teal); }


/* ---- Skip link ---- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink-navy); color: #fff; padding: 14px 20px; border-radius: 0 0 10px 0; font-weight: 600; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Very narrow phones ----
   Placed last so it wins over the .btn nowrap declared earlier. */
@media (max-width: 400px) {
  .btn { white-space: normal; padding-left: 18px; padding-right: 18px; line-height: 1.25; }
}
