/* ============================================================
   VERISTREAM — Base Styles & Reset (base.css)
   ============================================================ */

/* ----------------------------------------------------------
   Google Fonts
   ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ----------------------------------------------------------
   Modern CSS Reset
   ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for fixed nav */
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Remove default list styles */
ul,
ol {
  list-style: none;
}

/* Media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Inherit fonts for inputs/buttons */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Remove textarea resize unless specified */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anchor reset */
a {
  color: inherit;
  text-decoration: none;
}

/* Remove button defaults */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ----------------------------------------------------------
   Headings
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  text-wrap: balance;
}

h1 { font-size: var(--text-6xl); font-weight: 800; }
h2 { font-size: var(--text-5xl); font-weight: 800; }
h3 { font-size: var(--text-4xl); font-weight: 700; }
h4 { font-size: var(--text-3xl); font-weight: 700; }
h5 { font-size: var(--text-2xl); font-weight: 600; }
h6 { font-size: var(--text-xl);  font-weight: 600; }

/* ----------------------------------------------------------
   Links
   ---------------------------------------------------------- */
a {
  color: var(--primary);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ----------------------------------------------------------
   Selection
   ---------------------------------------------------------- */
::selection {
  background-color: rgba(4, 161, 254, 0.3);
  color: var(--text-primary);
}

::-moz-selection {
  background-color: rgba(4, 161, 254, 0.3);
  color: var(--text-primary);
}

/* ----------------------------------------------------------
   Custom Scrollbar
   ---------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-card) var(--bg-primary);
}

/* ----------------------------------------------------------
   Utility Classes
   ---------------------------------------------------------- */

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

/* Section padding */
.section-padding {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

/* Gradient text */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Screen-reader only */
.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;
}
