/* ==========================================================================
   Reset CSS — Modern CSS Reset for NFON Partner Website
   ========================================================================== */

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

/* HTML & Body
   ========================================================================== */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Media elements
   ========================================================================== */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form elements inherit fonts
   ========================================================================== */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

textarea {
  resize: vertical;
  white-space: revert;
}

/* Links
   ========================================================================== */
a {
  color: inherit;
  text-decoration: none;
}

/* Lists
   ========================================================================== */
ul,
ol,
menu {
  list-style: none;
}

/* Headings & paragraphs
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

/* Tables
   ========================================================================== */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Fieldset
   ========================================================================== */
fieldset {
  border: none;
}

/* Blockquote
   ========================================================================== */
blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: '';
  content: none;
}

/* HR
   ========================================================================== */
hr {
  border: none;
  border-top: 1px solid;
  color: inherit;
  height: 0;
  overflow: visible;
}

/* Address
   ========================================================================== */
address {
  font-style: normal;
}

/* Strong
   ========================================================================== */
strong,
b {
  font-weight: 700;
}

/* Summary / Details
   ========================================================================== */
summary {
  cursor: pointer;
}

details summary::-webkit-details-marker {
  display: none;
}

/* Selection color
   ========================================================================== */
::selection {
  background-color: rgba(33, 150, 243, 0.2);
  color: inherit;
}

/* Focus styles
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Hidden / SR only
   ========================================================================== */
[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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