/* OAEI shared styles. Tokens + base + nav + footer + reusable components.
   Page-specific layout stays in each page's <style> block. */

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

:root {
  --bg: #08090D;
  --bg-2: #0F1117;
  --bg-card: #13151C;
  --gold: #C8A96E;
  --gold-d: #7A6540;
  --gold-dim: rgba(200,169,110,0.55);
  --gold-line: rgba(200,169,110,0.18);
  --gold-bg: rgba(200,169,110,0.06);
  --text: #EAEAEA;
  --text-mid: #6B7280;
  --text-dim: #374151;
  --line: rgba(255,255,255,0.06);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* === NAV === */
nav#nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(8,9,13,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
nav#nav.scrolled {
  background: rgba(8,9,13,0.96);
  border-bottom-color: var(--gold-line);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8vw;
}
.nav-logo img {
  height: 30px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  font: 500 12px/1 'DM Sans', sans-serif;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 1.7px;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  font: 600 11px/1 'DM Sans', sans-serif;
  letter-spacing: 2px;
  padding: 11px 22px;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  text-transform: uppercase;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--gold-bg);
  border-color: var(--gold);
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 880px) {
  .nav-inner { padding: 16px 5vw; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #08090D;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 5vw 28px;
    gap: 0;
    z-index: 99;
    border-bottom: 1px solid var(--gold-line);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    font-size: 14px;
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    width: 100%;
  }
  .nav-cta { display: none; }
  .hamburger { display: block; }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
}

/* === REUSABLE === */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 8vw;
}
.eyebrow {
  font: 600 11px/1 'DM Sans', sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.08;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: 1.35rem; letter-spacing: 0; }
p { font-size: 1.02rem; color: var(--text); }
p.lede {
  font-size: 1.18rem;
  color: var(--text-mid);
  max-width: 760px;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  font: 600 12px/1 'DM Sans', sans-serif;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  padding: 17px 28px;
  border: 1px solid var(--gold);
  color: var(--bg);
  background: var(--gold);
  transition: all 0.2s;
  white-space: nowrap;
}
.btn:hover { background: transparent; color: var(--gold); }
.btn-ghost {
  background: transparent;
  color: var(--gold);
}
.btn-ghost:hover { background: var(--gold); color: var(--bg); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 12px/1 'DM Sans', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold-dim);
  transition: gap 0.2s, border-color 0.2s;
}
.link-arrow:hover { gap: 14px; border-bottom-color: var(--gold); }

/* === FOOTER === */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--gold-line);
  margin-top: 100px;
  padding: 70px 0 28px;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 8vw;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand img { height: 28px; margin-bottom: 18px; }
.footer-brand p { color: var(--text-mid); font-size: 0.92rem; max-width: 320px; }
.footer-col h4 {
  font: 600 11px/1 'DM Sans', sans-serif;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text-mid); font-size: 0.92rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--gold); }
.footer-col p { color: var(--text-mid); font-size: 0.92rem; margin-bottom: 6px; }
.footer-col a { color: var(--text-mid); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 8vw 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-mid);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 10px; padding-top: 22px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* === CARD === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 32px 30px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.card h3 { margin-bottom: 12px; color: var(--gold); }
.card p { color: var(--text-mid); font-size: 0.96rem; line-height: 1.6; }

/* === SECTION === */
section { padding: 110px 0; position: relative; }
section.tight { padding: 72px 0; }

@media (max-width: 700px) {
  section { padding: 70px 0; }
  section.tight { padding: 52px 0; }
  .wrap { padding: 0 5vw; }
}
