/* ==========================================================================
   BASE.CSS — Reset, Global Styles, Typography
   Scrapwala Hyderabad
   ========================================================================== */

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

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Base Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  color: inherit;
}

h1 { font-size: var(--text-hero); letter-spacing: var(--tracking-tight); }
h2 { font-size: var(--text-4xl); letter-spacing: var(--tracking-snug); }
h3 { font-size: var(--text-xl); letter-spacing: var(--tracking-normal); }
h4 { font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-bold); }

p { line-height: var(--leading-relaxed); }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

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

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
}

button { cursor: pointer; border: none; background: none; }

svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ---- Focus Styles for Accessibility ---- */
:focus-visible {
  outline: 2px solid var(--green-mid);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- Selection color ---- */
::selection {
  background: var(--green-light);
  color: var(--green);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-light); }
