/* ==========================================================================
   reset.css — Best Treks Nepal Modern CSS Reset
   Version: 1.0 | August 2026
   ========================================================================== */

/* 1. Box sizing — inherit for easier overriding */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin and padding */
* {
  margin:  0;
  padding: 0;
}

/* 3. Smooth rendering and scroll */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 100%; /* Base 16px */
}

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

  *,
  *::before,
  *::after {
    animation-duration:        0.01ms !important;
    animation-iteration-count: 1      !important;
    transition-duration:       0.01ms !important;
    scroll-behavior:           auto   !important;
  }
}

/* 4. Core body defaults */
body {
  min-height:          100vh;
  line-height:         1.5;
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering:      optimizeLegibility;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display:   block;
  max-width: 100%;
}

/* 6. Remove built-in form typography styles */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. Avoid text overflows */
p,
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

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

/* 9. Anchors — remove default underline, inherit color */
a {
  color:           inherit;
  text-decoration: none;
}

/* 10. Strong / Bold */
b,
strong {
  font-weight: var(--weight-bold, 700);
}

/* 11. Buttons — remove default styling */
button {
  background:    none;
  border:        none;
  cursor:        pointer;
  appearance:    none;
  -webkit-appearance: none;
}

/* 12. Table defaults */
table {
  border-collapse: collapse;
  border-spacing:  0;
}

/* 13. HR */
hr {
  border:           none;
  border-top:       1px solid currentColor;
  opacity:          0.15;
}

/* --------------------------------------------------------------------------
   Accessibility — Focus Styles
   Always visible, never rely on outline:none
   -------------------------------------------------------------------------- */
:focus {
  outline: none;
}

:focus-visible {
  outline:        2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius:  2px;
}

/* Skip to content link (screen reader + keyboard) */
.skip-link {
  position:     absolute;
  top:          -100%;
  left:         var(--space-2);
  z-index:      var(--z-toast);
  padding:      var(--space-1) var(--space-2);
  background:   var(--color-primary);
  color:        var(--color-white);
  font-family:  var(--font-body);
  font-size:    var(--text-sm);
  font-weight:  var(--weight-semibold);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition:   top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-2);
}

/* Screen-reader only utility (used across components) */
.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;
}
