/* ══════════════════════════════════════════════════════
   WISE MACHINE CO. — Main Stylesheet
   All pages share this file
══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@300;400;600;700&family=Barlow+Condensed:wght@400;600;700&display=swap');

:root {
  --black:        #0a0c0f;
  --dark:         #0f1318;
  --dark-mid:     #161b22;
  --dark-panel:   #1c2330;
  --dark-card:    #212a38;
  --green:        #3a7d44;
  --green-bright: #4a9e57;
  --green-light:  #5db86a;
  --green-dim:    #2a5c32;
  --chrome:       #d8e4d8;
  --chrome-dim:   #8fa88f;
  --white:        #eef4ee;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--black);
  color: var(--chrome);
  overflow-x: hidden;
}

/* subtle noise */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 999; opacity: 0.5;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 64px; height: 76px;
  background: rgba(10,12,15,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(58,125,68,0.28);
  transition: background 0.3s;
}
.nav-logo { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.nav-logo img { height: 48px; }
.nav-wordmark { line-height: 1.1; }
.nav-wordmark-main {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem; letter-spacing: 0.08em; color: var(--white);
}
.nav-wordmark-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--green-light); display: block;
}
.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--chrome-dim); text-decoration: none;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--green);
  transition: width 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 0.82rem !important; font-weight: 700 !important;
  letter-spacing: 0.18em !important; text-transform: uppercase !important;
  color: var(--white) !important; background: var(--green);
  padding: 11px 26px; text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--green-bright) !important; }
.nav-cta::after { display: none !important; }

/* ── MARQUEE ── */
.marquee-strip {
  background: var(--green); overflow: hidden;
  padding: 13px 0; white-space: nowrap;
}
.marquee-inner { display: inline-block; animation: marquee 30s linear infinite; }
.marquee-inner span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--white); padding: 0 52px; opacity: 0.92;
}
.marquee-inner span::before { content: '◆'; margin-right: 52px; opacity: 0.55; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── LAYOUT HELPERS ── */
section { position: relative; }
.section-wrap { max-width: 1300px; margin: 0 auto; padding: 0 64px; }
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--green-light); margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.section-label::before { content: ''; width: 30px; height: 2px; background: var(--green); }
.section-label.centered { justify-content: center; }
.section-label.centered::before { display: none; }
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 4.5vw, 4.6rem);
  line-height: 0.94; color: var(--white);
  letter-spacing: 0.02em; margin-bottom: 28px;
}
.section-title em { color: var(--green-light); font-style: normal; }
.body-text { font-size: 1.02rem; font-weight: 300; line-height: 1.82; color: var(--chrome-dim); }
.body-text + .body-text { margin-top: 18px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 160px 64px 80px;
  background: var(--dark);
  border-bottom: 1px solid rgba(58,125,68,0.2);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(58,125,68,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,125,68,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 1300px; margin: 0 auto; }
.page-hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--green-light); margin-bottom: 20px;
  display: flex; align-items: center; gap: 16px;
}
.page-hero-eyebrow::before { content: ''; width: 36px; height: 2px; background: var(--green); }
.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.92; color: var(--white); letter-spacing: 0.02em;
}
.page-hero h1 em { color: var(--green-light); font-style: normal; }
.page-hero-sub {
  font-size: 1.1rem; font-weight: 300; line-height: 1.75;
  color: var(--chrome-dim); max-width: 600px; margin-top: 24px;
}
.left-bar {
  position: absolute; top: 0; left: 0;
  width: 5px; height: 100%;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dim) 100%);
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--green); color: var(--white);
  padding: 16px 42px; text-decoration: none; display: inline-block;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 14px 100%);
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--green-bright); transform: translateY(-2px); }
.btn-outline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  background: transparent; color: var(--chrome);
  padding: 14px 40px; text-decoration: none; display: inline-block;
  border: 2px solid rgba(216,228,216,0.28);
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--green); color: var(--green-light); }

/* ── SERVICE / CAPABILITY TAGS ── */
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.service-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--green-light); border: 1px solid rgba(58,125,68,0.38); padding: 4px 10px;
}

/* ── CTA BAND (shared) ── */
.cta-band {
  padding: 90px 0;
  background: linear-gradient(135deg, rgba(58,125,68,0.14) 0%, rgba(58,125,68,0.03) 100%), var(--dark);
  border-top: 1px solid rgba(58,125,68,0.22);
  border-bottom: 1px solid rgba(58,125,68,0.22);
}
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.cta-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 3.8vw, 4rem);
  line-height: 0.94; color: var(--white); letter-spacing: 0.02em; margin-bottom: 14px;
}
.cta-title em { color: var(--green-light); font-style: normal; }
.cta-sub { font-size: 1rem; font-weight: 300; color: var(--chrome-dim); line-height: 1.65; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 40px 64px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(58,125,68,0.22);
  flex-wrap: wrap; gap: 20px;
}
.footer-logo { display: flex; align-items: center; gap: 14px; }
.footer-logo img { height: 38px; filter: brightness(0.85); }
.footer-brand-main { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; color: var(--white); letter-spacing: 0.08em; }
.footer-brand-sub { font-family: 'Barlow Condensed', sans-serif; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-dim); }
.footer-copy { font-family: 'Barlow Condensed', sans-serif; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--chrome-dim); }
.footer-tagline { font-family: 'Barlow Condensed', sans-serif; font-size: 0.71rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green-dim); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.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; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  nav { padding: 0 24px; }
  .nav-links { gap: 16px; }
  .section-wrap { padding: 0 24px; }
  .page-hero { padding: 130px 24px 60px; }
  footer { padding: 32px 24px; }
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
}
