/* ===========================
   Google Fonts Import
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ===========================
   Design Tokens
   =========================== */
:root {
  --bg:        #F5F2EE;   /* warm off-white — page background */
  --ink:       #0D0D0D;   /* near-black — all text */
  --gold:      #D4AF37;   /* soft gold — accent */
  --gold-dark: #B8971F;   /* darker gold — hover states */
  --muted:     #6B6B6B;   /* secondary text */
  --border:    #0D0D0D;
  --dark-bg:   #0D0D0D;
  --dark-text: #F5F2EE;
  --border-dark:  #2a2a2a;   /* subtle divider on dark backgrounds */
  --border-light: #E0DDD9;   /* subtle divider on light backgrounds */
  --muted-light:  #A0A0A0;   /* secondary text on dark backgrounds */

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --max-width:     1200px;
  --border-weight: 2px;
}

/* ===========================
   CSS Reset
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 64px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Typography
   =========================== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ===========================
   Container
   =========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border: var(--border-weight) solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--ink);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-dark {
  background-color: var(--ink);
  color: var(--dark-text);
}

.btn-dark:hover {
  background-color: var(--gold);
  color: var(--ink);
  border-color: var(--gold-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  background-color: var(--ink);
  color: var(--dark-text);
}

/* ===========================
   Dividers
   =========================== */
.rule {
  border: none;
  border-top: var(--border-weight) solid var(--ink);
}

/* ===========================
   Sections
   =========================== */
.section {
  padding: 80px 0;
}

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

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

/* ===========================
   Utility
   =========================== */
.gold {
  color: var(--gold);
}

.bg-gold {
  background-color: var(--gold);
}

/* ===========================
   Navbar
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 40px;
  background: rgba(28, 28, 28, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  transition: padding 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  padding: 14px 24px;
  background: rgba(18, 18, 18, 0.88);
}

.navbar-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: height 0.3s ease;
}

.navbar.scrolled .navbar-logo img {
  height: 34px;
}

.navbar-links {
  display: flex;
  gap: 32px;
  list-style: none;
  justify-content: center;
}

.navbar-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.15s ease;
}

.navbar-links a:hover {
  color: var(--gold);
}

.navbar-cta {
  display: flex;
  justify-content: flex-end;
}

.navbar-cta a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--ink);
  background: var(--gold);
  padding: 8px 18px;
  border: 2px solid var(--gold);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.navbar-cta a:hover {
  background: transparent;
  color: var(--gold);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--gold);
}

@media (max-width: 768px) {
  .navbar {
    grid-template-columns: 1fr auto;
  }
  .navbar-links {
    display: none;
  }
  .navbar-cta {
    display: none;
  }
}

/* ===========================
   Footer
   =========================== */
.footer {
  background-color: var(--ink);
  color: var(--dark-text);
  padding: 48px 0 32px;
  border-top: var(--border-weight) solid var(--gold);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark-text);
}

.footer-brand span {
  color: var(--gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark); /* subtle divider — intentionally lighter than --ink */
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

/* --- Footer Logo --- */
.footer-logo-wrap {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-logo {
  width: 220px;
  height: auto;
  opacity: 0.85;
  display: inline-block;
}

/* ===========================
   Scroll Fade (global)
   =========================== */
.scroll-fade {
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.scroll-fade.is-hidden {
  opacity: 0;
  transform: translateY(14px);
}
