/* ============================================================
   CONTEMP Base Styles
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Open+Sans:wght@400;600;700;800&family=Roboto:wght@400;500;700;900&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  color: var(--c-gray-500);
  background-color: var(--c-white);
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--c-black);
}

h1 { font-size: var(--fs-4xl); margin-bottom: var(--sp-6); }
h2 { font-size: var(--fs-3xl); margin-bottom: var(--sp-5); }
h3 { font-size: var(--fs-2xl); margin-bottom: var(--sp-4); }
h4 { font-size: var(--fs-xl);  margin-bottom: var(--sp-3); }
h5 { font-size: var(--fs-lg);  margin-bottom: var(--sp-3); }
h6 { font-size: var(--fs-md);  margin-bottom: var(--sp-2); }

p {
  margin-bottom: var(--sp-4);
  color: var(--c-gray-400);
  line-height: var(--lh-relaxed);
}

a {
  color: var(--c-teal);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--c-teal-dark);
}

ul, ol {
  list-style: none;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container-lg {
  max-width: var(--max-width-lg);
}

.container-sm {
  max-width: var(--max-width-sm);
}

/* ── Section Spacing ── */
.section {
  padding: var(--sp-20) 0;
}

.section-sm {
  padding: var(--sp-12) 0;
}

/* ── Text Utilities ── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.text-teal    { color: var(--c-teal); }
.text-orange  { color: var(--c-orange); }
.text-white   { color: var(--c-white); }
.text-dark    { color: var(--c-black); }
.text-muted   { color: var(--c-gray-300); }

.text-sm      { font-size: var(--fs-sm); }
.text-md      { font-size: var(--fs-md); }
.text-lg      { font-size: var(--fs-lg); }
.text-xl      { font-size: var(--fs-xl); }

.fw-medium    { font-weight: var(--fw-medium); }
.fw-semibold  { font-weight: var(--fw-semibold); }
.fw-bold      { font-weight: var(--fw-bold); }

/* ── Spacing Utilities ── */
.mb-0  { margin-bottom: 0; }
.mb-2  { margin-bottom: var(--sp-2); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }
.mb-12 { margin-bottom: var(--sp-12); }

.mt-4  { margin-top: var(--sp-4); }
.mt-8  { margin-top: var(--sp-8); }

/* ── Display Utilities ── */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2         { gap: var(--sp-2); }
.gap-4         { gap: var(--sp-4); }
.gap-6         { gap: var(--sp-6); }
.gap-8         { gap: var(--sp-8); }

.grid          { display: grid; }

/* ── Background Utilities ── */
.bg-white     { background-color: var(--c-white); }
.bg-off-white { background-color: var(--c-off-white); }
.bg-dark      { background-color: var(--c-dark); }
.bg-teal      { background-color: var(--c-teal); }

/* ── Visibility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Scrollbar Styling ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--c-off-white);
}

::-webkit-scrollbar-thumb {
  background: var(--c-gray-300);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-teal);
}

/* ── Selection ── */
::selection {
  background-color: var(--c-teal);
  color: var(--c-white);
}
