/* ============================================
   32 HOUR GROUP — SHARED STYLESHEET
   All pages import this via inline or link
   ============================================ */

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

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --card: #161616;
  --border: #2a2a2a;
  --gold: #c9a84c;
  --gold-dim: #8a6f30;
  --white: #f0ece4;
  --grey: #888880;
  --light: #d4d0c8;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Cormorant Garamond', Georgia, serif;
  overflow-x: hidden;
}

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

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  overflow: visible;
  padding: 16px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  background: linear-gradient(to bottom, rgba(10,10,10,0.97), transparent);
}
nav.scrolled {
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.98);
  padding: 16px 56px;
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--gold);
  text-decoration: none;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 10px 24px;
  text-decoration: none;
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--white); }

/* PAGE HERO */
.page-hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 56px 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  align-items: center;
  text-align: center;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 30% 60%, rgba(201,168,76,0.06) 0%, transparent 65%);
}
.page-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: 3px;
  color: var(--white);
  max-width: 900px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.35s forwards;
}
.page-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--light);
  max-width: 580px;
  margin-top: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

/* CONTENT */
.page-content { max-width: 1200px; margin: 0 auto; padding: 100px 56px; }
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 24px;
}
.body-text {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--light);
}
.body-text + .body-text { margin-top: 20px; }

/* BUTTONS */
.btn-primary {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--black);
  padding: 18px 44px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}
.btn-primary:hover { background: var(--white); transform: translateY(-2px); }
.btn-ghost {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}
.btn-ghost::after { content: '→'; transition: transform 0.3s; }
.btn-ghost:hover { color: var(--white); }
.btn-ghost:hover::after { transform: translateX(5px); }

/* CARDS */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 40px 36px;
  transition: border-color 0.3s;
}
.card:hover { border-color: var(--gold-dim); }

/* DOCTRINE STRIP */
.doctrine-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  background: var(--dark);
}
.strip-track {
  display: flex;
  gap: 56px;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.strip-item {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 56px;
}
.strip-item::after { content: '◆'; color: var(--gold-dim); font-size: 7px; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--black);
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--gold);
  text-decoration: none;
}
.footer-links { display: flex; gap: 32px; list-style: none; }
.footer-links a {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--grey);
  text-transform: uppercase;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@media (max-width: 960px) {
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .page-hero, .page-content { padding-left: 24px; padding-right: 24px; }
  footer { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* LOGO */
.nav-logo-img {
  height: 120px;
  width: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.footer-logo:hover .footer-logo-img { opacity: 1; }

@media (max-width: 960px) {
  .nav-logo-img { height: 80px; }
}

/* ============================================
   MOBILE NAV
   ============================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 12px;
  background: none;
  border: none;
  z-index: 200;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-width: 48px;
  min-height: 48px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,10,10,0.98);
  z-index: 500;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: none;
}
.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}
.mobile-menu-links a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  letter-spacing: 3px;
  color: var(--grey) !important;
  text-decoration: none !important;
  transition: color 0.3s;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-links a:hover,
.mobile-menu-links a.active { color: var(--gold); }
.mobile-menu-cta {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 16px 40px;
  text-decoration: none;
  transition: all 0.3s;
}
.mobile-menu-cta:hover { background: var(--white); }
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey);
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

@media (max-width: 960px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none !important; }
  .nav-cta { display: none; }
  nav {
    padding: 12px 20px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }
  nav.scrolled { padding: 10px 20px; }
  .nav-logo { flex-shrink: 0; }
}

/* START JOURNALING NAV LINK */
.nav-links a[href*="app.32hourgroup"] {
  color: var(--gold) !important;
}
.nav-links a[href*="app.32hourgroup"]:hover {
  color: var(--white) !important;
}
