/* =============================================================
   uno.com.my — Base / reset / typography
   ============================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg-body);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
  margin: 0 0 var(--s-4);
  color: var(--text-strong);
  font-weight: 800;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); line-height: 1.1; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 700; }

p  { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

strong, b { font-weight: 700; color: var(--text-strong); }

hr {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: var(--s-8) 0;
}

::selection { background: var(--uno-yellow); color: var(--c-black); }

:focus-visible {
  outline: 3px solid var(--uno-yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Utility helpers -------------------------------------- */
.u-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;
}

.skip-link {
  position: absolute; top: -100px; left: var(--s-4);
  z-index: 999; padding: 12px 20px;
  background: var(--uno-yellow); color: var(--c-black);
  font-weight: 700; border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--s-4); }

.u-accent   { color: var(--uno-yellow); }
.u-strong   { color: var(--text-strong); }
.u-center   { text-align: center; }
.u-nowrap   { white-space: nowrap; }
.u-mb-0     { margin-bottom: 0 !important; }

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