/* ==========================================================================
   Nexora Talent Solutions — Base
   Resets, typography, layout primitives. Depends on tokens.css.
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.sr-only {
  position: absolute !important;
  display: inline-block !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

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

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

button {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
  letter-spacing: var(--ls-wide);
}

h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 600; }

p {
  margin: 0 0 var(--space-3);
}

p:last-child {
  margin-bottom: 0;
}

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

.text-lg {
  font-size: var(--fs-body-lg);
}

/* ---- Layout primitives ---- */

.container-nx {
  width: min(96%, var(--container-max));
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 1024px) {
  .container-nx {
    padding-inline: var(--space-5);
  }
}

.page-wrap {
  overflow: hidden;
}

.section {
  padding-block: var(--section-padding-y-mobile);
  position: relative;
}

@media (min-width: 1024px) {
  .section {
    padding-block: var(--section-padding-y);
  }
}

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

.section-bg-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section-bg-primary h1,
.section-bg-primary h2,
.section-bg-primary h3,
.section-bg-primary h4 {
  color: var(--color-white);
}

/* Bootstrap gutter override to match 32px desktop spec */
@media (min-width: 1024px) {
  .row-gutter-wide {
    --bs-gutter-x: 32px;
  }
}

/* ---- Focus states (accessibility) ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ---- Misc utility ---- */
.rounded-card {
  border-radius: var(--radius-card);
}

.shadow-resting {
  box-shadow: var(--shadow-resting);
}
