:root {
  --brand: #0b8a64;
  --brand-600: #077151;
  --text: #1f2a37;
  --muted: #6b7280;
  --bg: #f6f7f9;
  --card: #ffffff;
  --border: #e5e7eb;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
.container { width: min(1200px, 92%); margin: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0; z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 0;
}
.brand img { width: 60px; }
.main-nav { display: flex; align-items: center; gap: 1rem; }
.nav-list { display: flex; gap: 1.25rem; list-style: none; }
.nav-list a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.nav-list a.active,
.nav-list a:hover { color: var(--brand); }

/* Hamburger */
.hamburger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  transition: 0.25s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-menu .m-link {
  padding: 0.65rem 0;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}
.mobile-menu .m-link.active,
.mobile-menu .m-link:hover {
  color: var(--brand);
}

/* Hero */
.hero {
  height: 65vh;
  background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.45)),
              url('img/Agricultue&Bricks kiln.png') center/cover no-repeat;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  margin-bottom: 0.5rem;
}
.hero p {
  max-width: 720px;
  margin: 0.5rem auto 1.5rem;
  color: #e5e7eb;
}

/* Sections */
.section { padding: 2.5rem 0; }
.section-head { margin-bottom: 1.5rem; text-align: center; }
.section-head h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.section-head .muted { color: var(--muted); }
.category-title { margin: 1.5rem 0 0.5rem; font-size: 1.4rem; }

/* Cards */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
}
.card:hover { transform: translateY(-4px); }
.card img {
  max-height: 200px;
  object-fit: contain;
  margin: auto;
}
.card-body {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Buttons */
.btn {
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: 0.2s ease-in-out;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
}
.btn-primary:hover { background: var(--brand-600); }
.btn-outline {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand);
}
.btn-outline:hover {
  background: var(--brand);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--brand);
  border-color: var(--brand);
}

/* Icon Cards */
.icon-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease-in-out;
}
.icon-card:hover { transform: translateY(-5px); }
.icon-card i {
  width: 40px; height: 40px;
  color: var(--brand);
  margin-bottom: 1rem;
}
.icon-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--text);
}
.icon-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Filter Row */
.filter-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.chip {
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.chip.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 4px 10px rgba(11,138,100,0.2);
}

/* Mobile: scrollable filter row */
@media (max-width: 600px) {
  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-row::-webkit-scrollbar {
    display: none;
  }
}

/* Machine Detail Layout */
.details-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.details-media img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.details-info h2 {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.spec-table {
  margin: 1.5rem 0;
}

.spec-table ul {
  list-style: none;
  padding: 0;
}

.spec-table li {
  background: #f9f9f9;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
}

.cta-row {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .details-layout {
    grid-template-columns: 1fr;
  }
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info, .contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 2px rgba(11,138,100,0.15);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Machine Detail Layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.detail-media img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.detail-info h1 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.spec-table th,
.spec-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.spec-table th {
  width: 35%;
  background: #f9fafb;
  font-weight: 600;
  color: var(--text);
}

.spec-table td {
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-media img {
    margin-bottom: 1.5rem;
  }
  .cta-row {
    flex-direction: column;
  }
}


/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2.25rem 0;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
}
.footer-brand img { height: 42px; margin-bottom: 0.5rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin: 0.25rem 0; }
.footer-links a { color: #cbd5e1; text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .nav-list { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: none; }
  .mobile-menu.active { display: flex; }
}
@media (max-width: 768px) {
  .hero { height: 55vh; padding: 1.5rem; }
  .hero h1 { font-size: 1.8rem; }
  .section-head h2 { font-size: 1.6rem; }
}
