/* ═══════════════════════════════════════════════
   JONIEL DA SILVA — BAUHAUS DARK MODERNIST
   Work Index Page
   ═══════════════════════════════════════════════ */

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

:root {
  /* Dark Bauhaus palette */
  --black:      #000000;
  --white:      #FFFFFF;
  --dark-bg:    #0A0A0A;
  --dark-card:  #141414;
  --gray-dark:  #1F1F1F;
  --gray-mid:   #666666;
  --gray-light: #999999;
  --accent:     #D32F2F;

  --futura: 'Futura', 'Century Gothic', 'Avenir Next', 'Trebuchet MS', sans-serif;

  --unit: 8px;
  --grid-gap: calc(var(--unit) * 3);
  --nav-h: 80px;
}

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

body {
  font-family: var(--futura);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  text-transform: uppercase;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

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

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--grid-gap);
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--grid-gap);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--futura);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--white);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: calc(var(--unit) * 5);
  justify-content: center;
}
.nav-links a {
  font-family: var(--futura);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-light);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}
.nav-cta {
  font-family: var(--futura);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  background: var(--white);
  padding: calc(var(--unit) * 2) calc(var(--unit) * 4);
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--white);
}
.nav-toggle {
  display: none;
  font-family: var(--futura);
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--white);
  color: var(--black);
  border: none;
  padding: calc(var(--unit) * 2) calc(var(--unit) * 3);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nav-toggle:hover {
  background: var(--accent);
  color: var(--white);
}

/* Mobile overlay menu */
.nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--dark-bg);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-overlay.active {
  transform: translateX(0);
}
.nav-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
.nav-overlay-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.nav-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--unit) * 3) var(--grid-gap);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-overlay-close {
  font-family: var(--futura);
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--white);
  color: var(--black);
  border: none;
  padding: calc(var(--unit) * 2) calc(var(--unit) * 3);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nav-overlay-close:hover {
  background: var(--accent);
  color: var(--white);
}
.nav-overlay-links {
  list-style: none;
  padding: calc(var(--unit) * 6) var(--grid-gap);
}
.nav-overlay-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-overlay-links a {
  display: block;
  font-family: var(--futura);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  padding: calc(var(--unit) * 3) 0;
  transition: color 0.2s, padding-left 0.2s;
}
.nav-overlay-links a:hover {
  color: var(--accent);
  padding-left: calc(var(--unit) * 2);
}
.nav-overlay-cta {
  margin: 0 var(--grid-gap) calc(var(--unit) * 4);
}
.nav-overlay-cta a {
  display: block;
  text-align: center;
  font-family: var(--futura);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  background: var(--white);
  padding: calc(var(--unit) * 3) calc(var(--unit) * 4);
  transition: background 0.2s, color 0.2s;
}
.nav-overlay-cta a:hover {
  background: var(--accent);
  color: var(--white);
}

/* ─── PAGE HEADER ─── */
.page-header {
  min-height: 50vh;
  padding-top: calc(var(--nav-h) + calc(var(--unit) * 8));
  padding-bottom: calc(var(--unit) * 8);
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.page-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--grid-gap);
}
.page-header-label {
  font-family: var(--futura);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gray-mid);
  margin-bottom: calc(var(--unit) * 3);
}
.page-header h1 {
  font-family: var(--futura);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: calc(var(--unit) * 4);
  max-width: 900px;
}
.page-header-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-light);
  max-width: 600px;
}

/* ─── WORK GRID ─── */
.work-section {
  padding: calc(var(--unit) * 12) 0;
  background: var(--dark-bg);
}
.work-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--grid-gap);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.project-card {
  background: var(--dark-card);
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}
.project-card:hover {
  background: var(--gray-dark);
}
.project-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-dark);
}
.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}
.project-card:hover .project-card-image img {
  opacity: 0.7;
}
.project-card-content {
  padding: calc(var(--unit) * 5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-card-sector {
  font-family: var(--futura);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: calc(var(--unit) * 2);
}
.project-card h3 {
  font-family: var(--futura);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: calc(var(--unit) * 2);
  line-height: 1.2;
}
.project-card-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--gray-light);
  margin-bottom: calc(var(--unit) * 4);
  flex: 1;
  text-transform: none;
}
.project-card-link {
  font-family: var(--futura);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: calc(var(--unit));
  transition: color 0.2s, gap 0.2s;
}
.project-card-link::after {
  content: '→';
  font-size: 1.125rem;
}
.project-card:hover .project-card-link {
  color: var(--accent);
  gap: calc(var(--unit) * 2);
}

/* ─── CTA SECTION ─── */
.cta-section {
  background: var(--accent);
  color: var(--white);
  padding: calc(var(--unit) * 15) var(--grid-gap);
  text-align: center;
}
.cta-section-label {
  font-family: var(--futura);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: calc(var(--unit) * 3);
}
.cta-section h2 {
  font-family: var(--futura);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0 auto calc(var(--unit) * 6);
  max-width: 800px;
}
.btn-white {
  display: inline-block;
  font-family: var(--futura);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--white);
  padding: calc(var(--unit) * 2.5) calc(var(--unit) * 5);
  transition: background 0.2s, color 0.2s;
}
.btn-white:hover {
  background: var(--black);
  color: var(--white);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--black);
  padding: calc(var(--unit) * 4) var(--grid-gap);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--futura);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--white);
}
.footer-links {
  display: flex;
  gap: calc(var(--unit) * 3);
  align-items: center;
}
.footer-links a {
  font-size: 0.75rem;
  color: var(--gray-mid);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--gray-mid);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-inner {
    grid-template-columns: 1fr auto;
  }
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: block;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: calc(var(--unit) * 2);
    text-align: center;
  }
}
