/* ============================================
   MUD RECYCLING — Clean Corporate Redesign
   v2.0 — Full rebuild, no legacy overlay
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --mud-green: #1a7a4c;
  --mud-green-dark: #145f3b;
  --mud-green-light: #e8f5ee;
  --mud-dark: #111827;
  --mud-gray-900: #1f2937;
  --mud-gray-700: #374151;
  --mud-gray-500: #6b7280;
  --mud-gray-300: #d1d5db;
  --mud-gray-100: #f3f4f6;
  --mud-gray-50: #f9fafb;
  --mud-white: #ffffff;
  --mud-radius: 12px;
  --mud-radius-sm: 8px;
  --mud-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --mud-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --mud-shadow-lg: 0 4px 6px rgba(0,0,0,0.05), 0 10px 24px rgba(0,0,0,0.08);
  --mud-transition: all 0.2s ease;
  --container-max: 1140px;
}

/* === GLOBAL === */
body.page-template-template-mud-homepage {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  color: var(--mud-gray-700);
  background: var(--mud-white);
  -webkit-font-smoothing: antialiased;
}
body.page-template-template-mud-homepage *:not(.fa):not(.fas):not(.far):not(.fab) {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* === HIDE THEME CHROME === */
body.page-template-template-mud-homepage .top,
body.page-template-template-mud-homepage .breadcrumbs,
body.page-template-template-mud-homepage .page-header,
body.page-template-template-mud-homepage .main-title,
body.page-template-template-mud-homepage .jumbotron {
  display: none !important;
}

/* === HEADER === */
body.page-template-template-mud-homepage .header__container {
  background: var(--mud-white) !important;
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: none !important;
  padding: 0 !important;
}
body.page-template-template-mud-homepage .header__container > .container {
  max-width: var(--container-max);
  padding: 0 32px !important;
}
body.page-template-template-mud-homepage .header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 68px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
}
/* kill the diagonal clip-paths */
body.page-template-template-mud-homepage .header::before,
body.page-template-template-mud-homepage .header::after,
body.page-template-template-mud-homepage .header__logo::before,
body.page-template-template-mud-homepage .header__logo::after,
body.page-template-template-mud-homepage .header__navigation::before,
body.page-template-template-mud-homepage .header__navigation::after {
  display: none !important;
  content: none !important;
  background: none !important;
}
body.page-template-template-mud-homepage .header__logo {
  background: none !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  shape-outside: none !important;
  flex-shrink: 0;
  max-width: none !important;
  width: auto !important;
  position: static !important;
}
body.page-template-template-mud-homepage .header__logo a {
  display: flex; align-items: center;
}
body.page-template-template-mud-homepage .header__logo img {
  max-height: 44px !important; width: auto !important;
}
body.page-template-template-mud-homepage .header__logo h1 {
  font-size: 20px !important; font-weight: 800 !important;
  color: var(--mud-dark) !important; margin: 0 !important;
}
body.page-template-template-mud-homepage .header__navigation {
  background: none !important; padding: 0 !important; margin: 0 !important;
  clip-path: none !important; -webkit-clip-path: none !important;
  position: static !important; flex-grow: 0;
}
body.page-template-template-mud-homepage .navbar-collapse {
  padding: 0 !important; margin: 0 !important;
}
body.page-template-template-mud-homepage .main-navigation {
  display: flex !important; align-items: center !important;
  gap: 2px !important; margin: 0 !important; padding: 0 !important;
  list-style: none !important;
}
body.page-template-template-mud-homepage .main-navigation > li > a {
  color: var(--mud-gray-700) !important;
  font-size: 14px !important; font-weight: 500 !important;
  text-transform: none !important; letter-spacing: 0 !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  transition: var(--mud-transition) !important;
  background: none !important; border: none !important;
}
body.page-template-template-mud-homepage .main-navigation > li > a:hover {
  color: var(--mud-green) !important;
  background: var(--mud-green-light) !important;
}
body.page-template-template-mud-homepage .main-navigation > li.current-menu-item > a,
body.page-template-template-mud-homepage .main-navigation > li.current_page_item > a {
  color: var(--mud-green) !important;
  background: var(--mud-green-light) !important;
  border: none !important;
}
body.page-template-template-mud-homepage .main-navigation > li > a::after,
body.page-template-template-mud-homepage .main-navigation > li > a::before {
  display: none !important;
}
body.page-template-template-mud-homepage .header__widgets,
body.page-template-template-mud-homepage .header__navigation-widgets {
  display: none !important;
}

/* === MUD PAGE WRAPPER === */
.mud-page {
  overflow-x: hidden;
}

/* === HERO === */
.mud-hero {
  background: var(--mud-dark);
  position: relative;
  overflow: hidden;
}
.mud-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: grayscale(30%);
}
.mud-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(17,24,39,0.92) 0%, rgba(17,24,39,0.7) 100%);
}
.mud-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 100px 32px 90px;
  display: flex;
  align-items: center;
  gap: 60px;
}
.mud-hero-content {
  flex: 1; max-width: 600px;
}
.mud-hero-badge {
  display: inline-block;
  background: rgba(26,122,76,0.2);
  color: #4ade80;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.mud-hero h1 {
  color: #fff !important;
  font-size: 42px !important; font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em;
  margin: 0 0 20px !important;
}
.mud-hero-sub {
  color: rgba(255,255,255,0.7) !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
  margin: 0 0 36px !important;
}
.mud-hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.mud-hero-visual {
  flex: 0 0 380px;
  display: flex; align-items: center;
}
.mud-hero-visual img {
  width: 100%; border-radius: var(--mud-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* === BUTTONS === */
.mud-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: var(--mud-radius-sm);
  font-size: 14px; font-weight: 600;
  text-decoration: none !important;
  transition: var(--mud-transition);
  cursor: pointer; border: none;
  line-height: 1.4;
}
.mud-btn-primary {
  background: var(--mud-green); color: #fff !important;
  box-shadow: 0 1px 3px rgba(26,122,76,0.3);
}
.mud-btn-primary:hover {
  background: var(--mud-green-dark);
  box-shadow: 0 4px 12px rgba(26,122,76,0.35);
  transform: translateY(-1px); color: #fff !important;
}
.mud-btn-outline {
  background: transparent; color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.25) !important;
}
.mud-btn-outline:hover {
  border-color: rgba(255,255,255,0.5) !important;
  background: rgba(255,255,255,0.06);
  color: #fff !important;
}
.mud-btn-white {
  background: #fff; color: var(--mud-green) !important;
}
.mud-btn-white:hover {
  background: var(--mud-gray-50);
  transform: translateY(-1px);
  color: var(--mud-green) !important;
}

/* === SECTIONS === */
.mud-section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 32px;
}
.mud-section-full {
  padding: 80px 0;
}
.mud-section-full-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}
.mud-bg-gray { background: var(--mud-gray-50); }
.mud-bg-dark { background: var(--mud-dark); }

/* === SECTION HEADERS === */
.mud-label {
  display: inline-block;
  color: var(--mud-green);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.mud-label-light { color: #4ade80; }
.mud-heading {
  font-size: 30px !important; font-weight: 800 !important;
  color: var(--mud-dark) !important;
  letter-spacing: -0.02em;
  margin: 0 0 14px !important;
  line-height: 1.2 !important;
}
.mud-heading-light { color: #fff !important; }
.mud-subheading {
  font-size: 16px !important;
  color: var(--mud-gray-500) !important;
  line-height: 1.6 !important;
  margin: 0 0 40px !important;
  max-width: 520px;
}
.mud-subheading-light { color: rgba(255,255,255,0.6) !important; }

/* === STATS === */
.mud-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 32px;
  border-bottom: 1px solid var(--mud-gray-100);
  padding-bottom: 80px;
}
.mud-stat { text-align: center; }
.mud-stat-num {
  font-size: 40px !important; font-weight: 800 !important;
  color: var(--mud-green) !important;
  line-height: 1 !important;
  margin-bottom: 6px !important;
  letter-spacing: -0.02em;
}
.mud-stat-text {
  font-size: 13px !important; font-weight: 500 !important;
  color: var(--mud-gray-500) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === ABOUT === */
.mud-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.mud-about-text h2 {
  font-size: 30px !important; margin-bottom: 18px !important;
}
.mud-about-text p {
  margin-bottom: 14px !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--mud-gray-500) !important;
}
.mud-about-text strong { color: var(--mud-gray-700) !important; }
.mud-about-img {
  border-radius: var(--mud-radius);
  overflow: hidden;
}
.mud-about-img img {
  width: 100%; height: 360px;
  object-fit: cover; display: block;
}

/* === SERVICE CARDS === */
.mud-grid-4 {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}
.mud-card {
  background: var(--mud-white);
  border-radius: var(--mud-radius);
  padding: 28px 24px;
  border: 1px solid var(--mud-gray-100);
  transition: var(--mud-transition);
}
.mud-card:hover {
  border-color: #d1fae5;
  box-shadow: var(--mud-shadow-lg);
  transform: translateY(-3px);
}
.mud-card-icon {
  width: 44px; height: 44px;
  background: var(--mud-green-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
}
.mud-card h3 {
  font-size: 16px !important; font-weight: 700 !important;
  color: var(--mud-dark) !important;
  margin: 0 0 8px !important;
}
.mud-card p {
  font-size: 14px !important;
  color: var(--mud-gray-500) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* === CTA BANNER === */
.mud-cta {
  background: var(--mud-green);
  border-radius: var(--mud-radius);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.mud-cta h2 {
  color: #fff !important;
  font-size: 24px !important;
  margin: 0 0 6px !important;
}
.mud-cta p {
  color: rgba(255,255,255,0.8) !important;
  margin: 0 !important;
  font-size: 15px !important;
}

/* === CONTACT CARDS === */
.mud-grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.mud-contact-card {
  background: var(--mud-white);
  border-radius: var(--mud-radius);
  padding: 28px;
  border: 1px solid var(--mud-gray-100);
  text-align: center;
}
.mud-contact-card:hover {
  border-color: #d1fae5;
  box-shadow: var(--mud-shadow);
}
.mud-contact-icon {
  width: 48px; height: 48px;
  background: var(--mud-green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 20px;
}
.mud-contact-card h3 {
  font-size: 15px !important; font-weight: 700 !important;
  margin: 0 0 6px !important; color: var(--mud-dark) !important;
}
.mud-contact-card p {
  font-size: 14px !important;
  color: var(--mud-gray-500) !important;
  margin: 0 !important; line-height: 1.6 !important;
}

/* === FOOTER === */
body.page-template-template-mud-homepage .footer {
  background: var(--mud-gray-900) !important;
}
body.page-template-template-mud-homepage .footer-top {
  background: transparent !important;
  padding: 40px 0 24px !important;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
body.page-template-template-mud-homepage .footer-top .widget,
body.page-template-template-mud-homepage .footer-top .textwidget,
body.page-template-template-mud-homepage .footer-top .textwidget p {
  color: rgba(255,255,255,0.55) !important;
  font-size: 14px !important;
}
body.page-template-template-mud-homepage .footer-top .wpcf7 {
  display: none !important;
}
body.page-template-template-mud-homepage .footer-bottom {
  background: rgba(0,0,0,0.15) !important;
  padding: 16px 0 !important;
}
body.page-template-template-mud-homepage .footer-bottom__left,
body.page-template-template-mud-homepage .footer-bottom__right {
  color: rgba(255,255,255,0.4) !important;
  font-size: 13px !important;
}
body.page-template-template-mud-homepage .footer-bottom a {
  color: rgba(255,255,255,0.5) !important;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
  .mud-hero-inner { flex-direction: column; padding: 64px 32px 56px; gap: 40px; }
  .mud-hero-content { max-width: 100%; }
  .mud-hero-visual { flex: none; width: 100%; max-width: 480px; }
  .mud-hero h1 { font-size: 34px !important; }
  .mud-about { grid-template-columns: 1fr; gap: 40px; }
  .mud-grid-4 { grid-template-columns: repeat(2,1fr); }
  .mud-stats { grid-template-columns: repeat(2,1fr); }
  .mud-cta { flex-direction: column; text-align: center; padding: 36px 28px; }
}
@media (max-width: 767px) {
  body.page-template-template-mud-homepage .header {
    flex-wrap: wrap !important; min-height: auto !important; padding: 8px 0 !important;
  }
  body.page-template-template-mud-homepage .header__logo {
    width: 100% !important;
    display: flex !important; justify-content: space-between !important; align-items: center !important;
  }
  body.page-template-template-mud-homepage .navbar-toggle {
    display: flex !important; align-items: center !important;
    background: var(--mud-gray-100) !important; border: none !important;
    border-radius: 6px !important; padding: 7px 12px !important;
  }
  body.page-template-template-mud-homepage .navbar-toggle .icon-bar {
    background: var(--mud-gray-700) !important;
  }
  body.page-template-template-mud-homepage .main-navigation {
    flex-direction: column !important; padding: 8px 0 !important;
  }
  .mud-hero-inner { padding: 48px 20px 40px; }
  .mud-hero h1 { font-size: 28px !important; }
  .mud-grid-4, .mud-grid-3 { grid-template-columns: 1fr; }
  .mud-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .mud-section { padding: 48px 20px; }
  .mud-section-full-inner { padding: 0 20px; }
  .mud-section-full { padding: 48px 0; }
}

/* === UPCP CATALOG — FLAT GRID (JS-powered) === */

/* Hide sidebar and sort bar */
.ewd-upcp-catalog-sidebar,
.ewd-upcp-catalog-header-bar {
  display: none !important;
}

/* Catalog full width */
.ewd-upcp-catalog-display {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 20px 0 !important;
}

/* The flat grid created by JS */
.mud-flat-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}

/* Product cards */
.mud-flat-grid .ewd-upcp-catalog-product-div {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
.mud-flat-grid .ewd-upcp-catalog-product-thumbnail {
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  transition: all 0.2s ease !important;
  background: #fff !important;
}
.mud-flat-grid .ewd-upcp-catalog-product-thumbnail:hover {
  border-color: #d1fae5 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
  transform: translateY(-2px) !important;
}
.mud-flat-grid .ewd-upcp-catalog-product-thumbnail-image-div {
  height: 160px !important;
  overflow: hidden !important;
}
.mud-flat-grid .ewd-upcp-catalog-product-thumbnail-image-div img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.mud-flat-grid .ewd-upcp-catalog-product-thumbnail-body-div {
  padding: 10px 12px !important;
}
.mud-flat-grid .ewd-upcp-product-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: var(--mud-dark, #111827) !important;
}
.mud-flat-grid .ewd-upcp-catalog-product-price {
  display: none !important;
}

/* Hide list/detail views */
.ewd-upcp-list-view,
.ewd-upcp-detail-view {
  display: none !important;
}

/* Responsive */
@media (max-width: 991px) {
  .mud-flat-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 767px) {
  .mud-flat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}
