/* ============================================================
   AIRAVATAM — Base Styles
   CSS reset + global defaults. No class-specific rules here.
   ============================================================ */

/* ---------- Google Fonts Import ----------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

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

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

/* ---------- Body ------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-body);
  background-color: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---------- Typography ------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-dark);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

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

strong { font-weight: var(--weight-semibold); }
em     { font-style: italic; }

small {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- Links ------------------------------------------ */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--color-primary-light);
}
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Lists ------------------------------------------ */
ul, ol {
  list-style: none;
}

/* ---------- Images & Media --------------------------------- */
img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------- Inputs & Forms --------------------------------- */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ---------- Tables ----------------------------------------- */
table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------- Horizontal Rule --------------------------------- */
hr {
  border: none;
  border-top: 1px solid var(--color-border-light);
  margin: var(--space-8) 0;
}

/* ---------- Selection -------------------------------------- */
::selection {
  background-color: var(--color-primary);
  color: white;
}

/* ---------- Scrollbar (WebKit) ----------------------------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-mid);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary-dark);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ---------- Focus Ring (Accessibility) --------------------- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---------- Dark Section Text Override --------------------- */
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--color-text-primary);
}

.section-dark p,
.section-dark li {
  color: var(--color-text-secondary);
}

/* ---------- Reduced Motion --------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Print ------------------------------------------ */
@media print {
  .no-print { display: none !important; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}
