/* Web3 Nepal — homepage-only styles
   Loaded only on front-page via functions.php
   Design: editorial, dark, typography-first
*/

/* ─── reset homepage from global theme ─── */
body.home {
  background: #000;
  color: #e5e5e5;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
.w3n-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 60px;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1a1a1a;
}

.w3n-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.w3n-nav-logo img {
  width: 26px;
  height: 26px;
  border-radius: 4px;
}

.w3n-nav-logo span {
  color: #fff;
}

.w3n-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}

.w3n-nav-links a {
  font-size: 0.875rem;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.w3n-nav-links a:hover { color: #fff; }

.w3n-nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: #000 !important;
  background: #fff;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.w3n-nav-cta:hover {
  background: #e5e5e5;
  color: #000 !important;
}

.w3n-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
}

/* ─── HERO ─── */
.w3n-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2.5rem;
  padding-top: 60px;
  border-bottom: 1px solid #1a1a1a;
}

.w3n-hero-inner {
  max-width: 860px;
  padding: 5rem 0;
}

.w3n-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 2rem;
}

.w3n-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 1.5rem;
}

.w3n-hero h1 em {
  font-style: normal;
  color: #888;
}

.w3n-hero-sub {
  font-size: 1.1rem;
  color: #666;
  max-width: 540px;
  line-height: 1.65;
  margin: 0 0 2.5rem;
}

.w3n-hero-tracks {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.w3n-track-pill {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
  border: 1px solid #222;
  border-radius: 3px;
  padding: 0.3rem 0.75rem;
}

.w3n-hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.w3n-btn-primary {
  font-size: 0.875rem;
  font-weight: 600;
  color: #000;
  background: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.w3n-btn-primary:hover { background: #e5e5e5; color: #000; }

.w3n-link-arrow {
  font-size: 0.875rem;
  color: #555;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.w3n-link-arrow:hover { color: #fff; }
.w3n-link-arrow svg { transition: transform 0.2s; }
.w3n-link-arrow:hover svg { transform: translateX(3px); }

/* ─── DISCIPLINES ─── */
.w3n-disciplines {
  border-bottom: 1px solid #1a1a1a;
}

.w3n-disciplines-header {
  padding: 3.5rem 2.5rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.w3n-disciplines-header h2 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #444;
  margin: 0;
}

.w3n-disciplines-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid #1a1a1a;
  margin-top: 2rem;
}

.w3n-disc {
  padding: 3rem 2.5rem;
  border-right: 1px solid #1a1a1a;
  transition: background 0.25s;
}

.w3n-disc:last-child { border-right: none; }
.w3n-disc:hover { background: #0a0a0a; }

.w3n-disc-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #333;
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.75rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.w3n-disc-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
  line-height: 1.2;
}

.w3n-disc-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.w3n-disc-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  border-bottom: 1px solid #222;
  padding-bottom: 2px;
}
.w3n-disc-link:hover { color: #fff; border-color: #555; }

/* ─── MANIFESTO ─── */
.w3n-manifesto {
  padding: 6rem 2.5rem;
  border-bottom: 1px solid #1a1a1a;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.w3n-manifesto blockquote {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: #999;
  line-height: 1.55;
  margin: 0 0 2rem;
  letter-spacing: -0.01em;
}

.w3n-manifesto blockquote strong {
  color: #fff;
  font-weight: 600;
}

.w3n-manifesto cite {
  font-size: 0.8rem;
  font-style: normal;
  color: #444;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── COURSES ─── */
.w3n-courses {
  border-bottom: 1px solid #1a1a1a;
}

.w3n-courses-header {
  padding: 3.5rem 2.5rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.w3n-courses-header h2 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #444;
  margin: 0;
}

.w3n-courses-header a {
  font-size: 0.78rem;
  color: #444;
  text-decoration: none;
  transition: color 0.2s;
}
.w3n-courses-header a:hover { color: #fff; }

.w3n-course-list {
  margin-top: 2rem;
  border-top: 1px solid #1a1a1a;
}

.w3n-course-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.5rem;
  border-bottom: 1px solid #111;
  text-decoration: none;
  transition: background 0.2s;
  gap: 1rem;
}

.w3n-course-row:hover { background: #0d0d0d; }

.w3n-course-info { flex: 1; min-width: 0; }

.w3n-course-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w3n-course-meta {
  font-size: 0.75rem;
  color: #444;
  display: flex;
  gap: 1rem;
}

.w3n-course-arrow {
  color: #333;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}
.w3n-course-row:hover .w3n-course-arrow {
  color: #888;
  transform: translateX(3px);
}

/* ─── FOOTER ─── */
.w3n-footer {
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid #1a1a1a;
}

.w3n-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #444;
  text-decoration: none;
}

.w3n-footer-left img {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  opacity: 0.6;
}

.w3n-footer-right {
  display: flex;
  gap: 1.5rem;
}

.w3n-footer-right a {
  font-size: 0.78rem;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}
.w3n-footer-right a:hover { color: #888; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .w3n-disciplines-grid {
    grid-template-columns: 1fr;
  }
  .w3n-disc {
    border-right: none;
    border-bottom: 1px solid #1a1a1a;
    padding: 2.5rem 1.5rem;
  }
  .w3n-disc:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .w3n-nav { padding: 0 1.25rem; }
  .w3n-nav-links { display: none; }
  .w3n-nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 60px 0 0 0;
    background: #000;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-top: 1px solid #1a1a1a;
    z-index: 99;
  }
  .w3n-nav-links.open a { font-size: 1.1rem; color: #888; }
  .w3n-menu-btn { display: block; }
  .w3n-nav-cta { display: none; }

  .w3n-hero { padding: 0 1.25rem; padding-top: 60px; }
  .w3n-hero-inner { padding: 3.5rem 0; }

  .w3n-disciplines-header,
  .w3n-courses-header { padding-left: 1.25rem; padding-right: 1.25rem; }

  .w3n-course-row { padding-left: 1.25rem; padding-right: 1.25rem; }
  .w3n-manifesto { padding: 4rem 1.25rem; }
  .w3n-footer { padding: 1.5rem 1.25rem; }
}
