/* ==========================================================================
   Base / Reset — mobile-first
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text-dark);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden; /* guard against any accidental overflow, no page ever scrolls sideways */
}

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

/* The `img{display:block}` reset above (an author rule) overrides the
   browser's built-in `[hidden]{display:none}` UA rule, so anything using
   the hidden attribute needs this to actually disappear. */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  margin: 0 0 var(--space-sm);
  color: var(--color-text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

ul { margin: 0; padding: 0; list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
}

/* Touch-friendly tap targets everywhere (Section 34) */
a, button, input, select, textarea {
  min-height: 44px;
}
textarea { min-height: 100px; }

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-xl);
}

.section--alt {
  background: var(--color-bg-light);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-lg);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--color-orange);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--fs-small);
  margin-bottom: var(--space-xs);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-body);
  border: 2px solid transparent;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}
.btn--primary:hover { background: var(--color-orange-dark); border-color: var(--color-orange-dark); }

.btn--outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn--outline:hover { background: var(--color-navy); color: var(--color-white); }

.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline-light:hover { background: var(--color-white); color: var(--color-navy); border-color: var(--color-white); }

.btn--block { width: 100%; }

/* Responsive tables (Section 34) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  z-index: 2000;
}
.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
}

/* Content that must exist for search engines and screen readers but is
   carried visually by a design element instead (e.g. an image-only banner). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Logo chip — the NEXTEC logo's native white background (Section 2) shown as
   a small white card so it reads cleanly on navy surfaces (header, footer,
   admin sidebar) without recoloring or distorting the logo itself. */
.logo-chip {
  display: inline-flex;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.5rem;
  line-height: 0;
}

/* Placeholder content flag (Section 49 — content not yet provided) */
.placeholder-note {
  color: var(--color-orange);
  font-style: italic;
}
