/* ==========================================================================
   APR — Base / Reset / Typography
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--apr-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--apr-slate);
  background: var(--apr-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--apr-steel-blue); text-decoration: none; transition: color var(--apr-transition); }
a:hover { color: var(--apr-shield-blue); }

h1, h2, h3, h4, h5 {
  font-family: var(--apr-font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.03em;
  color: var(--apr-slate);
}
h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); text-transform: uppercase; overflow-wrap: break-word; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); text-transform: uppercase; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { line-height: 1.7; }
ul, ol { line-height: 1.7; }

strong { font-weight: 700; }

/* --- Layout helpers --- */
.apr-container { width: 100%; max-width: var(--apr-container); margin-inline: auto; padding-inline: 1.5rem; }
.apr-container--wide { max-width: var(--apr-container-wide); }
.apr-section { padding-block: var(--apr-space-2xl); position: relative; }
@media (max-width: 768px) { .apr-section { padding-block: var(--apr-space-xl); } }

/* --- Section eyebrow label --- */
.apr-eyebrow {
  font-family: var(--apr-font-label);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--apr-trophy-gold);
  display: inline-block;
  margin-bottom: 0.75rem;
}
.apr-eyebrow--blue { color: var(--apr-steel-blue); }
.apr-eyebrow--shield { color: var(--apr-shield-blue); }

.apr-section-head { max-width: 760px; }
.apr-section-head--center { margin-inline: auto; text-align: center; }
.apr-section-head p { color: var(--apr-gunmetal); margin-top: 1rem; font-size: 1.05rem; }

/* --- Backgrounds --- */
.bg-cream { background: var(--apr-concrete-cream); }
.bg-midnight { background: var(--apr-midnight-steel); color: var(--apr-white); }
.bg-industrial { background: var(--apr-grad-industrial); color: var(--apr-white); }
.bg-steel { background: var(--apr-grad-steel); color: var(--apr-white); }
.bg-red { background: var(--apr-grad-red); color: var(--apr-white); }
.bg-dark-text-light h2, .bg-midnight h2, .bg-industrial h2, .bg-steel h2, .bg-red h2 { color: var(--apr-white); }

/* --- Blueprint texture overlay --- */
.apr-blueprint::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--apr-blueprint);
  background-size: 38px 38px;
  pointer-events: none;
  z-index: 0;
}
.apr-blueprint > * { position: relative; z-index: 1; }

/* --- Accessibility: skip link --- */
.apr-skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100000;
  background: var(--apr-steel-blue); color: #fff; padding: 0.75rem 1.25rem;
  font-family: var(--apr-font-label); text-transform: uppercase; letter-spacing: 0.1em;
}
.apr-skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

/* --- Visible focus rings --- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--apr-shield-blue);
  outline-offset: 2px;
}

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

/* --- Utility --- */
.apr-text-gold { color: var(--apr-trophy-gold); }
.apr-grid { display: grid; gap: 1.75rem; }
