:root {
  --bg: #fbfcfe;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #0b5cff;
  --maxw: 1200px;
  --radius: 12px;
  --gap: 1rem;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  padding-top: 150px;
  background: var(--bg);
  color: #111827;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem;
}
.section {
  padding: 2.5rem 0;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e6e9ee;
  position: sticky;
  top: 0;
  z-index: 50;
   position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* keeps it above other elements */
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}
.brand-text h1 {
  margin: 0;
  font-size: 1.05rem;
}
.tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Nav */
.nav {
  display: block;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.nav-list a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}
.nav-list a:hover,
.nav-list a:focus {
  background: #f1f5f9;
  color: var(--accent);
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.25rem;
  margin-left: auto;
  cursor: pointer;
}
.hamburger {
  width: 26px;
  height: 2px;
  background: #111827;
  display: block;
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: inherit;
}
.hamburger::before {
  top: -8px;
}
.hamburger::after {
  top: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
}
.about-image img {
  width: 100%;
  height: 462px;
  object-fit: cover;
  border-radius: 12px;
}
.ceo-message,
.mission {
  margin-top: 1rem;
}

/* Products slider */
.products-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  position: relative;
}
.products-slider {
  display: flex;
  gap: 1rem;
  overflow: hidden;
  padding: 1rem 0;
  scroll-behavior: smooth;
}
.product-card {
  min-width: 260px;
  background: var(--card);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  flex: 0 0 auto;
}
.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}
.prod-meta {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.slider-btn {
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 999px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover {
  transform: translateY(-2px);
}


/* Machinery */
/* Machinery Section */
.machinery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;   /* centers remaining cards */
  justify-items: center;     /* centers individual cards */
}

/* 2 columns on medium screens */
@media (min-width: 768px) {
  .machinery-grid {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
  }
}

/* 3 columns on large screens */
@media (min-width: 1200px) {
  .machinery-grid {
    grid-template-columns: repeat(3, minmax(250px, 1fr));
  }
}

.machinery-card {
  background: var(--card);
  padding: 0.5rem;
  border-radius: 10px;
  text-align: center;
  max-width: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.machinery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.machinery-card figcaption {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

/* Hover effect */
.machinery-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}



/* Clients slider */
.clients-slider-wrap {
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}

.clients-slider {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  width: max-content;
  animation: scrollClients 25s linear infinite;
}

.client-logo {
  flex: 0 0 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.06);
}

.client-logo img {
  max-width: 100%;
  height: 100px;
  object-fit: contain;
}

.clients-slider-wrap:hover .clients-slider {
  animation-play-state: paused;
}

@keyframes scrollClients {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: end;
}
.contact-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
}

/* Footer */
.site-footer {
  padding: 1rem 0;
  background: #fff;
  border-top: 1px solid #e6e9ee;
  text-align: center;
  color: var(--muted);
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 1200px) {
  body{
    padding: 0 5%;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .nav-list {
    flex-direction: column;
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    position: absolute;
    right: 1rem;
    top: 72px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    display: none;
  }
  .nav-list.show {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .products-slider {
    padding: 0 0.5rem;
  }
}

/* Small screens: slider cards smaller */
@media (max-width: 680px) {
  .product-card {
    min-width: 200px;
  }
  .client-logo {
    flex: 0 0 120px;
  }
}
