/* ==========================================================================
   APEXCRUSH HEAVY INDUSTRY - MAIN STYLESHEET
   Theme: Heavy Industrial Mining & Crushing Equipment
   ========================================================================== */

:root {
  --primary-color: #ff9800;
  --primary-hover: #e68a00;
  --secondary-color: #1a202c;
  --dark-bg: #111827;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-white: #ffffff;
  --border-color: #e2e8f0;
  --accent-color: #2563eb;
  --font-heading: 'Oswald', 'Arial Black', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --transition-fast: all 0.3s ease;
  --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --container-max-width: 1240px;
}

/* --- Resets & Global --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
  padding-bottom: 10px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Container & Grid Helpers --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content tr td{
   padding-left: 10px;
   border: 1px solid #d8d8d8;
   height: 40px;
}

.new {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.excerpt a{
  color: var(--primary-color);
}

.content p{
  padding-bottom: 10px;
}

.content ol{
  margin-left: 20px;
}

.content img{
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin: 10px auto 10px auto;
}

.col_middle li{
  float: left;
  padding-right: 10px;
}

.col_middle {
  padding-bottom: 20px;
}

.section-padding {
  padding: 3rem 0;
}

.bg-light {
  background-color: var(--light-bg);
}

.bg-dark {
  background-color: var(--dark-bg);
  color: var(--text-white);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: var(--text-white);
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }

.section-header {
  margin-bottom: 3.5rem;
}

.section-header .subtitle {
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
}

.section-header.text-left h2::after {
  left: 0;
  transform: none;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-white);
}

.btn-secondary:hover {
  background-color: #2d3748;
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* --- Top Header Bar --- */
.top-bar {
  background-color: var(--dark-bg);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #1e293b;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info span {
  margin-right: 1.5rem;
}

.top-bar-info i {
  color: var(--primary-color);
  margin-right: 0.4rem;
}

.top-bar-social a {
  color: #94a3b8;
  margin-left: 1rem;
}

.top-bar-social a:hover {
  color: var(--primary-color);
}

/* --- Main Navigation Bar --- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: var(--transition-fast);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.logo i {
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-right: 0.5rem;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-item {
  position: relative;
  margin: 0 0.2rem;
}

.nav-link {
  padding: 1.8rem 1rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background-color: #ffffff;
  box-shadow: var(--box-shadow);
  border-top: 3px solid var(--primary-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-fast);
  border-radius: 0 0 4px 4px;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background-color: var(--light-bg);
  color: var(--primary-color);
  padding-left: 1.5rem;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--secondary-color);
}

/* --- Hero Banner Section --- */
.hero-slider {
  position: relative;
  background: linear-gradient(rgba(17, 24, 39, 0.75), rgba(17, 24, 39, 0.75)), url('https://www.mineralscrushing.com/wp-content/themes/julyseason/image/banner-header.jpg') center/cover no-repeat;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: var(--text-white);
}

.hero-content {
  max-width: 800px;
}

.hero-content .tag {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-family: var(--font-heading);
  padding: 0.3rem 1rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.hero-content h1 {
  font-size: 3.8rem;
  line-height: 1.1;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1.2rem;
}

/* --- Page Header Banner --- */
.page-header {
  background: linear-gradient(rgba(26, 32, 44, 0.85), rgba(26, 32, 44, 0.85)), url('https://www.mineralscrushing.com/wp-content/themes/julyseason/image/banners.jpg') center/cover no-repeat;
  padding: 4rem 0;
  color: var(--text-white);
  text-align: center;
}

.page-header h1 {
  color: var(--text-white);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #94a3b8;
}

.breadcrumb a {
  color: var(--primary-color);
}

/* --- Stats Strip --- */
.stats-strip {
  background-color: var(--secondary-color);
  padding: 3rem 0;
  border-bottom: 4px solid var(--primary-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.stat-item p {
  color: #94a3b8;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--card-bg);
  padding: 2.5rem 2rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
  position: relative;
  top: 0;
}

.service-card:hover {
  top: -8px;
  box-shadow: var(--box-shadow);
  border-color: var(--primary-color);
}

.service-icon {
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

/* --- Product Cards & Grid --- */
.product-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  font-family: var(--font-heading);
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.product-card:hover {
  box-shadow: var(--box-shadow);
  transform: translateY(-5px);
}

.product-img {
  position: relative;
  height: 260px;
  background-color: #f1f5f9;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  font-weight: 700;
  border-radius: 2px;
}

.product-info {
  padding: 1.5rem;
}

.product-info p{
  padding-bottom: 10px;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-specs-list {
  margin: 0 0 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-specs-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--border-color);
}

/* --- Product Detail Page --- */
.product-single-grid {
  gap: 3rem;
  margin-bottom: 6rem;
}

.main-image {
  height: 420px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.main-image img { width: 100%; height: 100%; object-fit: cover; }

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.thumb-item {
  height: 90px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
}

.thumb-item.active, .thumb-item:hover {
  border-color: var(--primary-color);
}

.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

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

.spec-table th {
  background-color: var(--light-bg);
  font-family: var(--font-heading);
}

/* --- Project Cards & Portfolio --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  height: 380px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,24,39,0.95) 0%, rgba(17,24,39,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--text-white);
}

.project-overlay h3 {
  color: var(--text-white);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.project-location {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

/* --- News / Blog System --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

.news-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.news-img {
  height: 220px;
  overflow: hidden;
}

.news-img img { width: 100%; height: 100%; object-fit: cover; }

.news-content {
  padding: 1.8rem;
}

.news-meta {
  display: flex;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.news-meta i { color: var(--primary-color); }

.news-content h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

/* Single Article */
.article-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.sidebar-widget {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

/* --- FAQ Accordion --- */
.faq-accordion {
  max-width: 1190px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
}

.faq-item li{
    float: left;
    padding-right: 20px;
}

.faq-header {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  user-select: none;
}

.faq-header.active {
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
}

.faq-body {
  padding: 1.5rem;
  display: none;
  background-color: var(--light-bg);
  color: var(--text-main);
}

/* --- Contact & Forms --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.contact-info-box {
  background-color: var(--secondary-color);
  color: var(--text-white);
  padding: 3rem;
  border-radius: 6px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.info-item i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

/* Map Section */
.map-container {
  width: 100%;
  height: 450px;
  border: 0;
}

/* --- Footer --- */
.footer {
  background-color: var(--dark-bg);
  color: #94a3b8;
  padding-top: 3rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #1e293b;
}

.footer-widget h4 {
  color: var(--text-white);
  font-size: 1.2rem;
  margin-bottom: 1.8rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 0.4rem;
}

.footer-bottom {
  padding: 1.8rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
  .hamburger { display: block; }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    box-shadow: 10px 0 20px rgba(0,0,0,0.1);
    transition: var(--transition-fast);
    overflow-y: auto;
  }

  .nav-menu.active { left: 0; }
  
  .nav-item { width: 100%; margin: 0; }
  .nav-link { padding: 1rem 0; width: 100%; justify-content: space-between; }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    width: 100%;
    display: none;
    background-color: var(--light-bg);
    padding-left: 1rem;
  }

  .nav-item.open .dropdown-menu { display: block; }

  .hero-content h1 { font-size: 2.8rem; }
  .product-single-grid, .contact-grid, .article-layout { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .hero-content h1 { font-size: 2.2rem; }
  .hero-btns { flex-direction: column; }
  .top-bar-info span:nth-child(2) { display: none; }
}