/* ==========================================
   CSS Reset & Base Styles
   SISOBIO Corporate Website
   ========================================== */

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

/* HTML & Body */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Reset */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-weight: inherit;
  font-size: inherit;
}

p {
  margin: 0;
}

/* List Reset */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Link Reset */
a {
  text-decoration: none;
  color: inherit;
  background-color: transparent;
}

a:hover,
a:focus {
  outline: none;
}

/* Button Reset */
button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
}

button:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Form Elements Reset */
input,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
  margin: 0;
  padding: 0;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

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

img {
  border-style: none;
}

/* Table Reset */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove default list markers */
dl, dt, dd {
  margin: 0;
  padding: 0;
}

/* Accessibility: Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-primary, #0066CC);
  outline-offset: 2px;
}

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

/* Selection Color */
::selection {
  background-color: var(--color-primary, #0066CC);
  color: #FFFFFF;
}

::-moz-selection {
  background-color: var(--color-primary, #0066CC);
  color: #FFFFFF;
}

/* Smooth Scrolling for Safari */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

/* iOS Safari - Remove tap highlight */
* {
  -webkit-tap-highlight-color: transparent;
}

/* iOS Safari - Prevent font size adjustment */
html {
  -webkit-text-size-adjust: 100%;
}

/* Improve rendering on mobile */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
