/* ============================================================
   base.css — Reset, Typography & Global Foundations
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--color-text);
  background-color: var(--color-navy);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Images & Media ─────────────────────────────────────────── */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Lists ──────────────────────────────────────────────────── */
ul,
ol {
  list-style: none;
}

/* ── Links ──────────────────────────────────────────────────── */
a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold-light);
}

a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Heading Hierarchy ──────────────────────────────────────── */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-5xl);
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--color-white);
}

h2 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: var(--text-3xl);
  line-height: 1.2;
  color: var(--color-white);
}

h3 {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-xl);
  line-height: 1.3;
  color: var(--color-text);
}

h4, h5, h6 {
  font-family: var(--font-ui);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
}

h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

/* ── Paragraphs ─────────────────────────────────────────────── */
p {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.8;
  color: inherit;
}

p + p {
  margin-top: var(--space-md);
}

/* ── Strong & Em ────────────────────────────────────────────── */
strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

/* ── Selection ──────────────────────────────────────────────── */
::selection {
  background-color: var(--color-gold);
  color: var(--color-navy);
}

/* ── Focus Styles ───────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* ── Horizontal Rule ────────────────────────────────────────── */
hr {
  border: none;
  height: 1px;
  background: var(--gradient-gold-h);
  opacity: 0.6;
  margin: var(--space-2xl) 0;
}

/* ── Blockquote ─────────────────────────────────────────────── */
blockquote {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: var(--text-xl);
  line-height: 1.6;
  color: var(--color-white);
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-xl);
}

/* ── Form Base ──────────────────────────────────────────────── */
input,
textarea,
select,
button {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: 1.5;
}

input,
textarea,
select {
  width: 100%;
  background: transparent;
  color: inherit;
}

/* ── Tables ─────────────────────────────────────────────────── */
table {
  border-collapse: collapse;
  width: 100%;
}

/* ── Section Divider ────────────────────────────────────────── */
.gold-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--gradient-gold-h);
  opacity: 0.5;
  margin: var(--space-2xl) auto;
}

.gold-rule--short {
  width: 80px;
  height: 2px;
  opacity: 1;
  margin: var(--space-md) auto;
}

/* ── Body on Light Sections ─────────────────────────────────── */
.section-light h3,
.section-light h4,
.section-light h5 {
  color: var(--color-navy);
}

.section-light p {
  color: var(--color-text);
}

.section-light h2 {
  color: var(--color-navy);
}

/* ── Utility ────────────────────────────────────────────────── */
.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;
}

.text-center { text-align: center; }
.text-gold   { color: var(--color-gold); }
.text-white  { color: var(--color-white); }
.text-navy   { color: var(--color-navy); }

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
