/* =============================================
   MILL RATS — Global Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Teko:wght@400;500;600;700&family=Barlow:ital,wght@0,400;0,500;0,600;1,400&family=Barlow+Condensed:wght@400;500;600;700&display=swap');

:root {
  --navy: #0c1428;
  --navy-mid: #111c36;
  --navy-light: #1a2a4a;
  --gold: #d4a843;
  --gold-bright: #f0c350;
  --gold-dark: #b08a2e;
  --red: #c23028;
  --white: #f2f0ec;
  --off-white: #d0ccc4;
  --gray: #7a8199;
  --dark-gray: #3a4060;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--navy);
  color: var(--off-white);
  overflow-x: hidden;
}

/* Film grain */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ======= NAV ======= */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 3rem; height: 68px;
  background: rgba(12,20,40,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--gold);
}

.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
}
.nav-logo {
  font-family: 'Teko', sans-serif; font-weight: 700;
  font-size: 1.7rem; color: var(--white); letter-spacing: 0.04em;
}
.nav-logo .g { color: var(--gold); }
.nav-pipe { width: 1px; height: 24px; background: var(--dark-gray); }
.nav-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gray);
}

.nav-links { display: flex; list-style: none; height: 100%; gap: 0; }
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--off-white); text-decoration: none;
  display: flex; align-items: center; padding: 0 1.4rem; height: 100%;
  border-bottom: 3px solid transparent; transition: all 0.25s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold); border-bottom-color: var(--gold);
  background: rgba(212,168,67,0.04);
}

.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--gold); display: block; transition: 0.3s; }

.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(12,20,40,0.98); border-bottom: 2px solid var(--gold);
  flex-direction: column; padding: 1rem 0; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--off-white); text-decoration: none;
  padding: 1rem 2rem; transition: all 0.25s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold); background: rgba(212,168,67,0.04); }

/* ======= SHARED ======= */
.section-label {
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 1rem; margin-bottom: 0.8rem;
}
.section-label::before { content: ''; width: 35px; height: 1px; background: var(--gold); }
.section-label.centered { justify-content: center; }
.section-label.centered::before { display: none; }

.section-title {
  font-family: 'Teko', sans-serif; font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.8rem); color: var(--white); line-height: 0.95;
  margin-bottom: 1.8rem;
}

.gold-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Buttons */
.btn {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.85rem 2rem; text-decoration: none; display: inline-flex;
  align-items: center; gap: 0.5rem; transition: all 0.3s; cursor: pointer; border: none;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,168,67,0.22); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid var(--dark-gray); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(35px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Page content spacing (below fixed nav) */
.page-content { padding-top: 68px; }

/* Section dividers */
.page-section { position: relative; }
.page-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ======= FOOTER ======= */
footer {
  padding: 2.5rem 3rem; border-top: 2px solid var(--gold);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--navy);
}
.footer-brand {
  font-family: 'Teko', sans-serif; font-size: 1.1rem; color: var(--gray); letter-spacing: 0.05em;
}
.footer-brand .g { color: var(--gold); }
.footer-copy { font-size: 0.72rem; color: var(--dark-gray); }

/* ======= RESPONSIVE ======= */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-tag { display: none; }
  .nav-pipe { display: none; }
  footer { flex-direction: column; gap: 0.8rem; text-align: center; }
}
