/* =============================================
   ZAAVISH TECH — Global Stylesheet
   Black & White editorial, legacy aesthetic
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Inter:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --black:    #0A0A0A;
  --ink:      #1A1A1A;
  --rule:     #2A2A2A;
  --mid:      #666666;
  --light:    #AAAAAA;
  --paper:    #F5F4F0;
  --white:    #FAFAF8;
  --serif:    'Playfair Display', Georgia, serif;
  --sans:     'Inter', system-ui, sans-serif;
  --mono:     'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.05; }
h4, h5     { font-family: var(--serif); font-weight: 400; }

a { color: inherit; text-decoration: none; }

/* ---- UTILITY ---- */
.mono {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--mid);
  flex-shrink: 0;
}

hr.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

hr.rule-light {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---- PAGE FADE ---- */
.page-wrap {
  animation: pageFade 0.55s ease both;
}

@keyframes pageFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- NAV ---- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--white);
}

.nav-logo span {
  font-style: italic;
  font-weight: 400;
  color: var(--light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-wa {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  color: var(--light);
  padding: 0.5rem 1.2rem;
  transition: all 0.2s;
}

.nav-wa:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.04);
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: all 0.3s;
}

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.footer-logo span {
  font-style: italic;
  font-weight: 400;
  color: var(--mid);
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--mid);
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s;
}

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

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in {
  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; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav-inner { padding: 0 1.5rem; }
  .nav-links, .nav-wa { display: none; }
  .nav-burger { display: flex; }

  .site-footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .footer-links { justify-content: center; }
}
