/* =========================
RESET
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #ffffff;
  color: #111;
  line-height: 1.6;
  min-width: 0;
  overflow-x: clip;
}

/* =========================
CONTAINER
========================= */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  min-width: 0;
}

/* =========================
LINK & TEXT
========================= */

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

iframe,
video,
canvas,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
a,
li,
span,
strong {
  overflow-wrap: break-word;
}

/* =========================
BUTTON BASE
========================= */

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

button,
input,
textarea,
select {
  min-width: 0;
  max-width: 100%;
}

/* =========================
SECTION SPACING
========================= */

section {
  position: relative;
}

/* =========================
GRID HELPERS
========================= */

.grid {
  display: grid;
}

.flex {
  display: flex;
}

/* =========================
SPACING UTILITIES
========================= */

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }

.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

/* =========================
TEXT UTILITIES
========================= */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* =========================
BORDER RADIUS
========================= */

.rounded {
  border-radius: 12px;
}

.rounded-lg {
  border-radius: 20px;
}

/* =========================
SHADOW
========================= */

.shadow-sm {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.shadow-md {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* =========================
TRANSITIONS
========================= */

.transition {
  transition: all 0.3s ease;
}

/* =========================
RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 18px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@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;
  }
}
