/**
 * BANCANNABIS CSS RESET
 * Modern CSS Reset + Normalize
 * Based on: modern-normalize + custom additions
 */

/* ========================================
   Box Sizing
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ========================================
   Remove Default Margin & Padding
   ======================================== */
* {
  margin: 0;
  padding: 0;
}

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

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

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

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

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

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

a:not([class]) {
  text-decoration-skip-ink: auto;
}

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

/* ========================================
   Forms
   ======================================== */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button,
select {
  text-transform: none;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

button,
[role="button"] {
  cursor: pointer;
}

button:disabled,
[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

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

/* ========================================
   Accessibility
   ======================================== */

/* Remove animations for users who prefer 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;
  }
}

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-green-400, #50F47A);
  outline-offset: 2px;
}

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

/* Screen reader only content */
.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;
}
