/* ==========================================================================
   TechRentalHub — Base styles, layout primitives, utilities
   Loads after reset.css + variables.css.
   ========================================================================== */

/* -- Base -------------------------------------------------------------- */

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--color-ink-navy);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h4,
h5,
h6 {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  color: var(--color-ink-navy);
}

h1 {
  font-size: var(--text-h1);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-h1);
  margin-bottom: var(--space-5);
}

h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-h2);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: var(--text-h3);
  font-weight: var(--weight-medium);
  line-height: var(--leading-h3);
  margin-bottom: var(--space-3);
}

.text-display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
  color: var(--color-text-muted);
}

small,
.text-small {
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

.text-micro {
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

a:not([class]) {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:not([class]):hover {
  color: var(--color-accent-hover);
}

/* -- Layout -------------------------------------------------------------- */

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

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

.section {
  padding-block: var(--space-8);
}

.section--tight {
  padding-block: var(--space-6);
}

.section--inverse {
  background-color: var(--color-inverse-bg);
  color: var(--color-inverse-text);
}

.section--inverse h1,
.section--inverse h2,
.section--inverse h3 {
  color: var(--color-inverse-text);
}

/* -- Accessibility utilities ---------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-ink-navy);
  color: var(--color-inverse-text);
  border-radius: var(--radius-sm);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: var(--space-4);
}

/* -- Spacing utilities ------------------------------------------------------
   Small, deliberately limited set — reach for .section / component
   spacing first; these exist for one-off adjustments only. */

.u-mt-1 { margin-top: var(--space-1); }
.u-mt-2 { margin-top: var(--space-2); }
.u-mt-3 { margin-top: var(--space-3); }
.u-mt-4 { margin-top: var(--space-4); }
.u-mt-5 { margin-top: var(--space-5); }
.u-mt-6 { margin-top: var(--space-6); }

.u-mb-1 { margin-bottom: var(--space-1); }
.u-mb-2 { margin-bottom: var(--space-2); }
.u-mb-3 { margin-bottom: var(--space-3); }
.u-mb-4 { margin-bottom: var(--space-4); }
.u-mb-5 { margin-bottom: var(--space-5); }
.u-mb-6 { margin-bottom: var(--space-6); }

.u-text-center { text-align: center; }
