/**
 * Pulmo 2.0 - CSS Reset
 * Modern CSS Reset baseado em Josh Comeau e normalize.css
 */

/* ========================================
   BOX SIZING
   ======================================== */

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

/* ========================================
   REMOVE DEFAULT MARGIN & PADDING
   ======================================== */

* {
  margin: 0;
  padding: 0;
}

/* ========================================
   DOCUMENT & BODY
   ======================================== */

html {
  /* Prevent font size inflation */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  
  /* Smooth scrolling */
  scroll-behavior: smooth;
  
  /* Better font rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  line-height: 1.5;
  text-rendering: optimizeSpeed;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.25;
}

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

/* ========================================
   LISTS
   ======================================== */

ul[class],
ol[class] {
  list-style: none;
}

/* ========================================
   MEDIA
   ======================================== */

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

img {
  border-style: none;
}

/* ========================================
   FORMS
   ======================================== */

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

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

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

button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

textarea {
  resize: vertical;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

/* Remove default fieldset styling */
fieldset {
  border: none;
}

/* ========================================
   LINKS
   ======================================== */

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

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

/* ========================================
   TABLES
   ======================================== */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Remove all animations and transitions for people that prefer not to see them */
@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;
  }
}

/* Improve screen reader accessibility */
.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;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ========================================
   SELECTION
   ======================================== */

::selection {
  background-color: var(--color-primary-alpha-20);
  color: var(--color-text-primary);
}

::-moz-selection {
  background-color: var(--color-primary-alpha-20);
  color: var(--color-text-primary);
}

/* ========================================
   SCROLLBAR (Webkit)
   ======================================== */

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-background-light);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-medium);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-border-dark);
}

/* ========================================
   MISC
   ======================================== */

/* Fix iOS button styling */
input[type="submit"],
input[type="reset"],
input[type="button"],
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Fix line-height for sup and sub */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Hidden attribute */
[hidden] {
  display: none !important;
}

/* Prevent iOS zooming on input focus */
@media screen and (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px;
  }
}


