/* MetARS - Steel Constructions */
:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-light: #333333;
  --color-text-muted: #666666;
  --color-cream: #f5f5f0;
  --color-footer: #5a5a5a;
  --color-overlay: rgba(0, 0, 0, 0.5);
  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --gutter: 60px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  transition: background 0.3s, border-color 0.3s;
}



.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: #000;
  font-size: 15px;
  font-weight: 400;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a.active::after {
  width: 100%;
}



.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  transition: transform 0.3s, opacity 0.3s;
}



.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 var(--gutter);
}

.hero-content .subtitle {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-content h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content .tagline {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1.6;
}

/* ---- SECTIONS ---- */
.section {
  padding: 80px 0;
}

.section-cream {
  background: var(--color-cream);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
}

/* ---- ABOUT (two-column) ---- */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-text {
  font-size: 17px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.about-text p + p {
  margin-top: 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-grid {
  overflow: hidden;
}

.product-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ---- SERVICES ---- */
.services-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.services-content p {
  margin-bottom: 16px;
}

.services-content p strong {
  color: var(--color-text);
}

.services-list {
  list-style: disc;
  padding-left: 24px;
  margin: 16px 0;
}

.services-list li {
  padding: 4px 0;
  font-size: 17px;
}

/* ---- PAGE BANNER ---- */
.page-banner {
  padding: 120px 0 40px;
  background: var(--color-bg);
}

.page-banner h1 {
  font-size: 36px;
  font-weight: 700;
}

/* ---- PRODUCTION ---- */
.capabilities-list {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 48px;
  color: var(--color-text-light);
}

.capabilities-list li {
  padding: 4px 0;
  font-size: 17px;
}

.production-heading {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.process-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.process-card h2 {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 16px 12px 12px;
}

.process-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ---- GALLERY ---- */
.gallery-grid {
  column-count: 3;
  column-gap: 6px;
}

.gallery-item {
  break-inside: avoid;
  overflow: hidden;
  margin-bottom: 6px;
  border-radius: 4px;
}

.gallery-grid img {
  width: 100%;
  display: block;
  cursor: pointer;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 40px;
  line-height: 1;
  padding: 16px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close { top: 16px; right: 16px; font-size: 48px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---- CERTIFICATIONS ---- */
.cert-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: start;
}

.cert-images img {
  width: 100%;
}

.cert-caption {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 8px;
}

/* ---- CONTACTS ---- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.staff-card {
  text-align: center;
}

.staff-card img {
  width: 190px;
  height: 230px;
  object-fit: cover;
  margin: 0 auto 16px;
  border-radius: 6px;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.staff-card img:hover {
  filter: brightness(1.05);
  transform: scale(1.03);
}

.staff-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.staff-card .role {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 8px;
}

.staff-card .contact-line {
  color: var(--color-text-light);
  font-size: 15px;
  margin-top: 4px;
}

.staff-card a {
  color: var(--color-text-light);
  transition: color 0.2s;
}

.staff-card a:hover {
  color: var(--color-text);
}

.company-info {
  max-width: 800px;
}

.company-info h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 32px;
}

.company-info h2:first-child {
  margin-top: 0;
}

.company-details {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.company-details li {
  list-style: disc;
  margin-left: 20px;
  padding: 2px 0;
}

.map-embed {
  margin-top: 48px;
  width: 100%;
  max-width: 700px;
}

.map-embed iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--color-footer);
  color: #fff;
  padding: 30px 0;
  font-size: 13px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  margin-left: 16px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- PAGE FADE-IN ---- */
body {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.loaded {
  opacity: 1;
}

/* ---- SCROLL REVEAL ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: none;
}

/* ---- NAV OVERLAY (mobile) ---- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  :root {
    --gutter: 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.3s;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav a {
    font-size: 16px;
    color: #000 !important;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content .tagline {
    font-size: 16px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .about-row {
    grid-template-columns: 1fr;
  }

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

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .gallery-grid {
    column-count: 2;
    column-gap: 4px;
  }

  .cert-images {
    grid-template-columns: 1fr;
  }

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

  .page-banner {
    padding: 100px 0 30px;
  }

  .page-banner h1 {
    font-size: 26px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .footer-links a {
    margin: 0 8px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 32px;
    padding: 8px;
  }
}
