/* ============================================================
   BIYAPOINT — Global Reset & Base
   ============================================================ */

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

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

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-800);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

input, select, textarea { outline: none; }

ul, ol { list-style: none; }

hr {
  border: none;
  border-top: 1px solid var(--gray-200);
}

::selection {
  background: var(--green-light);
  color: var(--green-dark);
}

/* ── Page Loader ── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s, visibility 0.4s;
}
.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}
.loader-logo {
  width: 48px; height: 48px;
  background: var(--green);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 22px; font-weight: 800;
  animation: loaderPulse 1.2s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.08); opacity: 0.8; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar               { width: 6px; height: 6px; }
::-webkit-scrollbar-track         { background: transparent; }
::-webkit-scrollbar-thumb         { background: var(--gray-300); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover   { background: var(--gray-400); }

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}
