/* =========================================
   HR NextGen Solutions v2 - Base Styles
   Light Theme Foundation
   ========================================= */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-toast);
  padding: var(--space-3) var(--space-6);
  background: var(--gradient-brand);
  color: #FFFFFF;
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-to-content:focus { top: var(--space-4); }

::selection {
    background: rgba(37,99,235,0.15);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(37,99,235,0.15);
    color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: var(--bg-alt); }
::-webkit-scrollbar-thumb  { background: var(--gradient-brand); border-radius: var(--radius-full); }

ul, ol { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

p + p { margin-top: var(--space-4); }
hr    { border: none; border-top: 1px solid var(--border-subtle); }

/* ---- Layout Utilities ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-8);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  position: relative;
  padding: var(--space-10) 0;
  overflow: hidden;
}
.section--sm    { padding: var(--space-16) 0; }
.section--alt   { background: var(--bg-alt); }
.section--alt-2 { background: var(--bg-alt-2); }

/* ---- Text Utilities ---- */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }

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

/* ---- Page-level inner padding (for multi-page non-hero pages) ---- */
.page-hero {
  padding-top: calc(var(--header-height) + var(--space-16));
  padding-bottom: var(--space-16);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-subtle);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-4);
}
.page-hero p {
  font-size: var(--text-xl);
  color: var(--text-muted);
  max-width: 600px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.breadcrumb a { color: var(--color-primary); }
.breadcrumb-sep { color: var(--text-faint); }
