/* ============================================
   MINIMAL RESET
   ============================================ */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  min-height: 100vh;
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
}

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


/* ---- ACCESSIBILITY ---- */

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 0.8rem 1.5rem;
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-butter);
  outline-offset: 2px;
}

/* Screen reader only (visually hidden but accessible) */
.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;
}

/* Focus-visible styles — keyboard-only focus ring */
:focus-visible {
  outline: 3px solid var(--color-butter);
  outline-offset: 3px;
}

/* Buttons & links — refined focus ring */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-butter);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Dark sections — contrasting focus ring */
.footer a:focus-visible,
.footer button:focus-visible,
.marquee a:focus-visible {
  outline-color: var(--color-butter);
}

/* Cards — focus ring around the card */
.assessment-card:focus-visible,
.menu-card:focus-visible {
  outline: 3px solid var(--color-butter);
  outline-offset: 4px;
}

/* WhatsApp float — circular focus ring */
.whatsapp-float:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 4px;
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}
