/* ============================================
   pumpsandspareparts.com — Global Stylesheet
   Professional B2B Mining Pump Parts Design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1A1A2E;
  --navy-light: #16213E;
  --navy-mid: #0F3460;
  --red: #E94560;
  --red-dark: #C73E54;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --gray-100: #F0F2F5;
  --gray-200: #E4E7EB;
  --gray-300: #CBD2D9;
  --gray-500: #717B8A;
  --gray-700: #3D4856;
  --text: #2D3748;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --transition: .25s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { color: var(--navy); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .75rem; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { margin-bottom: .5rem; }
.section-title p { color: var(--gray-500); max-width: 640px; margin: 0 auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius); font-weight: 600;
  font-size: .9375rem; cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(233,69,96,.35); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-secondary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy-mid); color: var(--white); }

/* --- Header / Nav --- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy); color: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px; max-width: var(--max-width); margin: 0 auto;
}
.logo { font-size: 1.25rem; font-weight: 800; color: var(--white); text-decoration: none; }
.logo span { color: var(--red); }

.main-nav { display: flex; gap: 24px; align-items: center; }
.main-nav a { color: rgba(255,255,255,.85); font-size: .875rem; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--white); }

.lang-switcher { position: relative; }
.lang-switcher button {
  background: none; border: 1px solid rgba(255,255,255,.3);
  color: var(--white); padding: 6px 12px; border-radius: var(--radius);
  font-size: .8125rem; cursor: pointer; font-weight: 600;
}
.lang-switcher button:hover { border-color: var(--white); }
.lang-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 140px; z-index: 100;
  overflow: hidden;
}
.lang-dropdown.open { display: block; }
.lang-dropdown a {
  display: block; padding: 10px 16px; color: var(--text);
  font-size: .875rem; font-weight: 500;
}
.lang-dropdown a:hover { background: var(--gray-100); color: var(--red); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white); padding: 80px 0 72px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 1rem; max-width: 700px; }
.hero p { font-size: 1.125rem; opacity: .85; max-width: 600px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Brand Bar --- */
.brand-bar {
  background: var(--gray-100); padding: 32px 0;
  border-bottom: 1px solid var(--gray-200);
}
.brand-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.brand-bar-inner span {
  font-size: 1.125rem; font-weight: 700; color: var(--gray-500);
  letter-spacing: .5px; text-transform: uppercase;
}
.brand-bar-inner .divider { width: 1px; height: 32px; background: var(--gray-300); }
.brand-bar-inner img {
  height: 32px; width: auto;
  opacity: .5; filter: grayscale(100%);
  transition: opacity .3s, filter .3s;
}
.brand-bar-inner img:hover { opacity: 1; filter: grayscale(0%); }

/* --- Brand Showcase --- */
.brand-showcase { padding: 80px 0; background: var(--gray-100, #f8fafc); }
.brand-showcase .section-title { text-align: center; margin-bottom: 48px; }
.brand-showcase .section-title h2 { font-size: 1.75rem; }
.brand-showcase .section-title p { font-size: 1rem; color: var(--gray-600); margin-top: 8px; }
.brand-logos-grid {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap; margin-bottom: 48px;
}
.brand-logos-grid img {
  height: 40px; width: auto;
  opacity: .55; filter: grayscale(100%);
  transition: opacity .3s, filter .3s;
}
.brand-logos-grid img:hover { opacity: 1; filter: grayscale(0%); }
.brand-products-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.brand-product-card {
  border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid var(--gray-200);
  transition: transform .2s, box-shadow .2s;
}
.brand-product-card:hover {
  transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.brand-product-card img {
  width: 100%; height: 200px; object-fit: cover;
}
.brand-product-card .brand-card-body { padding: 16px 20px; }
.brand-product-card .brand-card-body h3 { font-size: .95rem; margin-bottom: 4px; }
.brand-product-card .brand-card-body p {
  font-size: .82rem; color: var(--gray-600); line-height: 1.5;
}
.brand-compat-tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; background: #e0f2fe; color: #0369a1;
}

/* --- Cards Grid --- */
.products-section { padding: 80px 0; }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; transition: all var(--transition);
  border: 1px solid var(--gray-200);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.product-card-icon {
  height: 160px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  font-size: 3rem;
}
.product-card-image {
  height: 200px; overflow: hidden; background: #f8f9fa;
}
.product-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-card-image img {
  transform: scale(1.05);
}
.product-card-body { padding: 24px; }
.product-card-body h3 { margin-bottom: 8px; }
.product-card-body p { color: var(--gray-500); font-size: .9375rem; margin-bottom: 16px; }
.product-card-body .btn { font-size: .8125rem; padding: 8px 20px; }

/* --- Features --- */
.features-section { padding: 80px 0; background: var(--off-white); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px;
}
.feature-card { text-align: center; padding: 32px 24px; }
.feature-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 16px; font-weight: 700;
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.125rem; }
.feature-card p { color: var(--gray-500); font-size: .9375rem; }

/* --- Testimonials --- */
.testimonials-section { padding: 80px 0; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--gray-200);
}
.testimonial-stars { color: #F59E0B; font-size: 1.125rem; margin-bottom: 12px; }
.testimonial-text { font-style: italic; color: var(--gray-700); margin-bottom: 16px; line-height: 1.7; }
.testimonial-author { font-weight: 700; font-size: .9375rem; color: var(--navy); }
.testimonial-role { font-size: .8125rem; color: var(--gray-500); }

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white); padding: 80px 0; text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { opacity: .85; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* --- Contact Form --- */
.contact-section { padding: 80px 0; background: var(--off-white); }
.contact-form { max-width: 720px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: 6px; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300);
  border-radius: var(--radius); font-size: .9375rem; font-family: inherit;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(233,69,96,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Footer --- */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,.7); padding: 64px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p { margin-top: 12px; font-size: .9375rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: .875rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.6); font-size: .875rem; padding: 4px 0; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: .8125rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--white); }

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white); padding: 48px 0 40px;
}
.page-hero h1 { color: var(--white); }
.page-hero .breadcrumb { font-size: .875rem; margin-top: 8px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.6); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .breadcrumb span { color: rgba(255,255,255,.4); margin: 0 8px; }

/* --- Tables --- */
.data-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.data-table th { background: var(--navy); color: var(--white); font-size: .875rem; font-weight: 600; }
.data-table td { font-size: .9375rem; }
.data-table tr:hover td { background: var(--gray-100); }

/* --- Specs Grid --- */
.specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin: 32px 0; }
.spec-item { padding: 20px; background: var(--gray-100); border-radius: var(--radius); }
.spec-item dt { font-size: .8125rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.spec-item dd { font-size: 1.125rem; font-weight: 700; color: var(--navy); margin-top: 4px; }

/* --- Article --- */
.article-content { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.article-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.article-content p { margin-bottom: 1rem; line-height: 1.8; }
.article-content ul, .article-content ol { margin-bottom: 1rem; padding-left: 24px; }
.article-content li { margin-bottom: .5rem; line-height: 1.7; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

/* --- About Page --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 64px 0; }
.about-text p { margin-bottom: 1rem; line-height: 1.8; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); min-height: 360px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); font-size: 4rem; }

/* --- Stats Bar --- */
.stats-bar {
  background: var(--navy); color: var(--white); padding: 48px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--red); }
.stat-label { font-size: .875rem; opacity: .7; margin-top: 4px; }

/* --- Breadcrumb --- */
.breadcrumb { padding: 16px 0; font-size: .8125rem; background: var(--gray-100); }
.breadcrumb a { color: var(--red); }
.breadcrumb span { color: var(--gray-500); margin: 0 6px; }

/* --- Two-Column Layout --- */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding: 48px 0; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: var(--navy);
    padding: 24px; gap: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 1.75rem; }
  .products-grid, .features-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .about-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .two-col { grid-template-columns: 1fr; }
  .brand-bar-inner { gap: 24px; }
  .brand-bar-inner .divider { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 32px 0; }
  .hero h1 { font-size: 1.5rem; }
  .btn { padding: 10px 20px; }
  .stat-number { font-size: 2rem; }
}

/* --- Floating Contact Bar --- */
.floating-contact {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: center; gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  font-size: .88rem;
}
.floating-contact .fc-text { font-weight: 600; }
.floating-contact .fc-text span { color: #60a5fa; }
.floating-contact .fc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.floating-contact .fc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 6px;
  font-size: .82rem; font-weight: 600; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.floating-contact .fc-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.floating-contact .fc-btn-primary {
  background: #2563eb; color: #fff;
}
.floating-contact .fc-btn-outline {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.floating-contact .fc-close {
  position: absolute; top: 6px; right: 12px;
  background: none; border: none; color: rgba(255,255,255,.5);
  font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.floating-contact .fc-close:hover { color: #fff; }
@media (max-width: 640px) {
  .floating-contact { padding: 10px 16px; gap: 10px; font-size: .82rem; }
  .floating-contact .fc-btn { padding: 7px 14px; font-size: .78rem; }
}
