/* ============================================================
   Vertex Metals Ltd — Base Styles
   Reset, body defaults, typography scale
   ============================================================ */

@import './variables.css';

/* ─── Reset ──────────────────────────────────────────────── */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-surface);
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

/* ─── Typography ─────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 600;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(var(--text-4xl), 5vw, var(--text-5xl)); font-weight: 700; }
h2 { font-size: clamp(var(--text-3xl), 3.5vw, var(--text-4xl)); font-weight: 700; }
h3 { font-size: var(--text-2xl); font-weight: 600; }
h4 { font-size: var(--text-xl); font-weight: 600; }
h5 { font-size: var(--text-lg); font-weight: 600; }
h6 { font-size: var(--text-base); font-weight: 600; }

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

strong { font-weight: 600; color: var(--color-text-primary); }
small  { font-size: var(--text-sm); }

/* ─── Utilities ──────────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
  width: 100%;
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

.section-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  display: block;
}

.divider-steel {
  width: 3rem;
  height: 2px;
  background: linear-gradient(to right, var(--color-accent), var(--color-accent-light));
  margin: var(--space-4) 0 var(--space-6);
  border: none;
  display: block;
}

.text-muted   { color: var(--color-text-muted); }
.text-primary { color: var(--color-text-primary); }
.text-accent  { color: var(--color-accent); }
.text-white   { color: #fff; }

.text-balance { text-wrap: balance; }

/* Steel gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 50%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Dark section overrides ─────────────────────────────── */

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4,
.bg-dark h5, .bg-dark h6 {
  color: #fff;
}

.bg-dark p {
  color: rgba(255,255,255,0.6);
}

.bg-dark .section-label {
  color: var(--color-accent);
}
