/* ============================================================
   joshuaschafer.com — Global Stylesheet
   Design: Bold & Modern | Dark palette + gold accent
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --black:       #0a0a0a;
  --dark:        #111111;
  --surface:     #1a1a1a;
  --surface-2:   #222222;
  --border:      #2e2e2e;
  --accent:      #c9a84c;
  --accent-dark: #a88a38;
  --white:       #f5f5f5;
  --muted:       #8a8a8a;
  --light:       #d4d4d4;

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1200px;
  --nav-height: 72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--light); line-height: 1.75; }

.label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
section { padding: 100px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--black);
  transform: translateY(-2px);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: var(--dark);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.nav__logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--white);
}
.nav__logo span { color: var(--accent); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__links a {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--accent); }
.nav__cta {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 2px;
  transition: all 0.2s;
}
.nav__cta:hover {
  background: var(--accent);
  color: var(--black);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* Mobile nav drawer */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem 2rem;
  z-index: 999;
  flex-direction: column;
  gap: 1.5rem;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
}
.nav__mobile a:hover { color: var(--accent); }

/* ── Footer ── */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.footer__brand-name span { color: var(--accent); }
.footer__tagline {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 280px;
}
.footer__col h5 {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__bottom p { font-size: 0.8rem; color: var(--muted); }
.footer__bottom a { font-size: 0.8rem; color: var(--muted); }
.footer__bottom a:hover { color: var(--white); }

/* ── Divider ── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 1.25rem 0 2rem;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background: var(--dark);
  padding-top: var(--nav-height);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.35;
}
.page-hero__content {
  position: relative;
  z-index: 1;
}
.page-hero__content .label { margin-bottom: 1rem; }
.page-hero__content h1 { max-width: 700px; }

/* ── Utility ── */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  section { padding: 72px 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
