/* Shared header + footer across index, works, about, contact, work-detail, legal pages */

body {
  background-color: #0a0a0a;
  color: #f5f5f5;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

header {
  padding: 1.25rem 2rem;
  min-height: 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

header .logo {
  width: 100px;
  height: auto;
  display: block;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-right: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #fff;
}

.nav-close {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: 0.4s;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  nav.active {
    display: flex;
  }

  .nav-close {
    display: flex;
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    opacity: 0.9;
  }

  .nav-close:hover {
    opacity: 1;
  }

  nav a {
    margin: 1rem 0;
    font-size: 2rem;
    font-weight: 500;
  }
}

/* Footer: professional multi-column with copyright */
footer {
  background-color: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4rem;
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem 2rem;
  align-items: start;
}

.footer-brand {
  max-width: 20ch;
}

.footer-brand .company-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 0.75rem 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  header {
    padding: 1rem 1.25rem;
    min-height: 3.25rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-col h4 {
    margin-top: 0.5rem;
  }
}
