/* ===== Global Base Styles ===== */

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  overflow-x: hidden;
}

/* --- Container --- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--sp-6);
  }
}

/* --- Sections --- */

.section {
  padding-block: var(--sp-9);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--sp-10);
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: var(--sp-11);
  }
}

/* --- Typography --- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

@media (min-width: 768px) {
  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-3xl); }
  h3 { font-size: var(--fs-2xl); }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--fs-5xl); }
}

p {
  color: var(--clr-text);
  line-height: 1.7;
}

p + p {
  margin-top: var(--sp-4);
}

.text-muted {
  color: var(--clr-text-muted);
}

.text-accent {
  color: var(--clr-accent);
}

strong {
  font-weight: var(--fw-semibold);
}

/* --- Links --- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
}

/* --- Section Headers --- */

.section-header {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.section-header h2 {
  margin-bottom: var(--sp-3);
}

.section-subtitle {
  color: var(--clr-text-muted);
  font-size: var(--fs-md);
  max-width: 600px;
  margin-inline: auto;
}

.accent-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--clr-accent);
  margin: var(--sp-3) auto 0;
  border-radius: var(--radius-full);
}

/* --- Utilities --- */

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

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* --- Image Placeholder (for missing images) --- */

.img-placeholder {
  background: var(--clr-surface);
  border: 2px dashed var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  text-align: center;
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  min-height: 200px;
}
