/* ===============================
   GLOBAL RESET + FOUNDATION
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* ===============================
   CONTAINER SYSTEM (FIX ALIGNMENT)
================================ */
.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.section {
  padding: 60px 0;
}

/* ===============================
   FLEX + GRID HELPERS
================================ */
.flex {
  display: flex;
  align-items: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ===============================
   HEADER FIX (VERY IMPORTANT)
================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px; /* FIX SMALL HEADER */
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
}

/* ===============================
   BUTTON STANDARDIZATION
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.25s ease;
  text-decoration: none;
}

/* ===============================
   CARD FIX (CONSISTENT SPACING)
================================ */
.card {
  border-radius: 18px;
  padding: 20px;
  transition: 0.3s ease;
}

/* ===============================
   FORM IMPROVEMENTS
================================ */
input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

/* ===============================
   IMAGE RESPONSIVENESS
================================ */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===============================
   MOBILE RESPONSIVENESS
================================ */
@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 12px;
    font-size: 13px;
  }

  .nav-wrap {
    min-height: 58px;
  }

  .section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 20px);
  }

  .btn {
    width: 100%;
  }
}
