/* ============================
   General Reset
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #111;
  color: #fff;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================
   Hero Section
============================ */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
  text-align: center;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1,
.hero .subtitle,
.hero .description {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero .btn {
  color: #ffffff;
  background-color: #1e293b;
  border: none;
  padding: 0.75em 1.5em;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.hero .btn:hover {
  background-color: #334155;
}

/* ============================
   Featured Machines
============================ */
.featured-machines {
  padding: 80px 0;
  background: #121220;
  text-align: center;
}

.featured-machines h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #fff;
}

.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.machine-item {
  background: #242a36;
  padding: 14px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.machine-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.machine-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.machine-item h3 {
  margin-top: 10px;
  font-size: 1rem;
  color: #fff;
  text-align: center;
}

/* ============================
   Featured Machine Categories
   (Blended with Featured Machines)
============================ */
.featured-categories {
  background: #121220; /* same as featured machines */
  padding: 80px 0;
  text-align: center;
}

.featured-categories h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #fff;
}

.featured-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.featured-category-card {
  background: #242a36; /* match machine cards */
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.featured-category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.featured-category-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.featured-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-category-name {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

/* ============================
   Benefits Section
============================ */
.benefits {
  padding: 80px 0;
  background: #1a1a26;
  text-align: center;
}

.benefit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.benefit-item {
  background: #2a2a3b;
  padding: 20px;
  border-radius: 10px;
  width: 250px;
}

.benefit-item h3 {
  color: #4e9af1;
  margin-bottom: 10px;
}

/* ============================
   Industries Section
============================ */
.industries {
  padding: 80px 0;
  background: #1c1c2c;
  text-align: center;
}

.industry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.industry-item {
  width: 200px;
  background: #2b2b3c;
  border-radius: 10px;
  padding: 15px;
}

.industry-item img {
  max-width: 100%;
  border-radius: 5px;
}

.industry-item h3 {
  margin-top: 10px;
  font-size: 1rem;
  color: #4e9af1;
}

/* ============================
   Contact Section
============================ */
.contact {
  position: relative;
  padding: 80px 0;
  background: #151522;
  text-align: center;
  z-index: 0;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.contact .container {
  position: relative;
  z-index: 2;
}

.contact .btn {
  position: relative;
  z-index: 3;
  display: inline-block;
  background-color: #1e293b;
  color: #fff;
  padding: 0.75em 1.5em;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.contact .btn:hover {
  background-color: #334155;
}

.contact-details p {
  margin: 10px 0;
}

.contact-form {
  margin-top: 30px;
}

/* ============================
   Footer Section
============================ */
.site-footer {
  width: 100%;
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 30px 15px;
  font-size: 0.9rem;
  margin-top: 60px;
  clear: both;
  display: block !important;
  position: relative;
  z-index: 10;
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.site-footer p {
  margin: 0.5em 0;
  color: #eee;
  font-size: 14px;
}

.site-footer a {
  color: #4e9af1;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ensure our injected sub-menu is hidden until toggled on small screens */
.menu-item-ep-browse-cats > .sub-menu {
  display: none;
}

/* On desktop we want the submenu to show as normal if parent has children - let theme handle it */
@media (min-width: 1025px) {
  .menu-item-ep-browse-cats > .sub-menu {
    display: block; /* allow the theme/Astra to place it properly */
  }
}
