/* ARCSTEEL — Base Reset & Typography */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--as-font);
  font-size: 16px;
  font-weight: 400;
  line-height: var(--as-lh-body);
  color: var(--as-text);
  background: var(--as-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

img {
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--as-duration-fast) var(--as-ease);
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--as-red);
  outline-offset: 3px;
}

::selection {
  background: var(--as-red);
  color: var(--as-white);
}

/* Container override — Bootstrap */
.container,
.container-xxl {
  max-width: var(--as-container);
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

/* Sections */
.as-section {
  position: relative;
  padding: var(--as-section-pad) 0;
}

.as-section--tight {
  padding: clamp(80px, 8vw, 120px) 0;
}

.as-section--surface {
  background: var(--as-bg-alt);
}

.as-section--gradient {
  background: linear-gradient(
    180deg,
    var(--as-black) 0%,
    var(--as-surface) 50%,
    var(--as-black) 100%
  );
}

.as-section--fade-up {
  background: linear-gradient(180deg, transparent 0%, var(--as-surface) 100%);
}

/* Section Header Pattern */
.as-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--as-tracking-wide);
  text-transform: uppercase;
  color: var(--as-red);
  margin-bottom: 1.25rem;
}

.as-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--as-red);
}

.as-heading {
  font-weight: 800;
  line-height: var(--as-lh-tight);
  letter-spacing: var(--as-tracking-tight);
  color: var(--as-white);
  margin-bottom: 1.25rem;
}

.as-heading--xl {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.as-heading--lg {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.as-heading--md {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.as-heading--sm {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.as-lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: var(--as-lh-body);
  color: var(--as-text-muted);
  max-width: 560px;
}

.as-lead--wide {
  max-width: 720px;
}

.as-section-header {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.as-section-header--center {
  text-align: center;
}

.as-section-header--center .as-lead {
  margin-inline: auto;
}

.as-section-header--center .as-eyebrow {
  justify-content: center;
}

/* Utility */
.as-text-muted {
  color: var(--as-text-muted);
}

.as-text-red {
  color: var(--as-red);
}

.as-divider {
  height: 1px;
  background: var(--as-border);
  border: none;
  margin: 0;
}

.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Lazy images */
img[loading="lazy"] {
  background: var(--as-surface);
}

/* Main offset for fixed header */
#main {
  min-height: 60vh;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
