/* ==========================================================================
   TechRentalHub — Reset
   Modern, opinionated reset. Loads before variables.css / main.css.
   ========================================================================== */

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

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.has-open-nav {
  overflow: hidden;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
  text-align: inherit;
}

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

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

table {
  border-collapse: collapse;
  width: 100%;
}

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

p,
li,
figcaption {
  overflow-wrap: break-word;
}

fieldset {
  border: none;
  padding: 0;
}

/* -- Focus -----------------------------------------------------------------
   Never remove focus outlines outright; only restyle them so they're
   visible against every surface in the palette. */
:focus {
  outline: none;
}

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

/* -- Motion ------------------------------------------------------------- */
@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;
  }
}
