/* =====================================================
   ACME Co. Ltd. — Main Stylesheet
   Modern Industrial / Premium Corporate Theme
   Palette: white base, normal red + blue accents, with
   red->blue gradient used for a handful of "energy" sections.
===================================================== */

:root {
  --acme-red: #e2231a;
  --acme-red-dark: #b91813;
  --acme-blue: #2454c7;
  --acme-blue-dark: #1a3d99;
  --acme-navy: #232a3d;         /* dark neutral, used ONLY for text/heading color */
  --acme-dark-gray: #2b2b2b;
  --acme-gray: #667085;
  --acme-light-gray: #f5f7fb;
  --acme-white: #ffffff;
  --acme-accent: #ff8a00;
  --acme-gradient: linear-gradient(120deg, var(--acme-red) 0%, #8c3a9e 50%, var(--acme-blue) 100%);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 8px;
  --transition: all 0.3s ease;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--acme-dark-gray);
  background: #ffffff;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--acme-navy);
}

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

.section-padding { padding: 90px 0; background: #fff; }
@media (max-width: 768px) { .section-padding { padding: 55px 0; } }

.text-acme-blue { color: var(--acme-blue) !important; }
.text-acme-red { color: var(--acme-red) !important; }
.bg-acme-navy { background: var(--acme-gradient) !important; background-size: 220% 220% !important; animation: gradientShift 12s ease infinite; }
.bg-acme-light { background: var(--acme-light-gray) !important; }

.bg-acme-navy .section-label { color: #fff; }
.section-label {
  display: inline-block;
  color: var(--acme-red);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.section-subtitle {
  color: var(--acme-gray);
  max-width: 640px;
}

/* ---------------- Buttons ---------------- */
.btn-acme-primary {
  background: var(--acme-red);
  color: #fff;
  border: none;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: .3px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(226,35,26,.28);
}
.btn-acme-primary:hover { background: var(--acme-red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(226,35,26,.38); }

.btn-acme-blue {
  background: var(--acme-blue);
  color: #fff;
  border: none;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(36,84,199,.28);
}
.btn-acme-blue:hover { background: var(--acme-blue-dark); color: #fff; transform: translateY(-2px); }

.btn-acme-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 11px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}
.btn-acme-outline:hover { background: #fff; color: var(--acme-red); }

.btn-acme-dark {
  background: var(--acme-navy);
  color: #fff;
  border: none;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}
.btn-acme-dark:hover { background: #000; color: #fff; transform: translateY(-2px); }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; transform: translateY(-2px); }

/* ---------------- Navbar (white, red/blue accents) ---------------- */
.navbar-acme {
  background: rgba(255,255,255,.98);
  padding: 14px 0;
  transition: var(--transition);
  box-shadow: 0 2px 18px rgba(35,42,61,.08);
}
.navbar-acme .navbar-brand img { height: 40px; }
.navbar-acme .nav-link {
  color: var(--acme-navy) !important;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  padding-bottom: 4px !important;
}
.navbar-acme .nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--acme-red);
  transition: width .3s ease;
}
.navbar-acme .nav-link:hover, .navbar-acme .nav-link.active { color: var(--acme-red) !important; }
.navbar-acme .nav-link:hover::after, .navbar-acme .nav-link.active::after { width: 100%; }
.navbar-acme .btn-quote {
  background: var(--acme-red);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}
.navbar-acme .btn-quote:hover { background: var(--acme-red-dark); transform: translateY(-2px); }
.navbar-acme .cart-icon { position: relative; color: var(--acme-navy); font-size: 20px; }
.navbar-acme .cart-icon:hover { color: var(--acme-blue); }
.navbar-acme .cart-badge {
  position: absolute; top: -8px; right: -10px;
  background: var(--acme-accent); color: #fff;
  font-size: 11px; border-radius: 50%;
  width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
}

/* Top contact strip */
.topbar-acme { background: var(--acme-red); color: #fff; font-size: 13px; padding: 8px 0; }
.topbar-acme a { color: #fff; }

/* ---------------- Hero Slider (with motion) ---------------- */
.hero-slide {
  height: 88vh;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slide .hero-bg {
  position: absolute; inset: -3%;
  background-size: cover;
  background-position: center;
  animation: kenBurns 16s ease-in-out infinite alternate;
}
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(226,35,26,.72) 0%, rgba(140,58,158,.55) 45%, rgba(36,84,199,.62) 100%);
  z-index: 1;
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .35; z-index: 1;
  animation: floatBlob 10s ease-in-out infinite;
}
.hero-blob.b1 { width: 320px; height: 320px; background: var(--acme-blue); top: -60px; right: 8%; }
.hero-blob.b2 { width: 260px; height: 260px; background: var(--acme-red); bottom: -40px; right: 28%; animation-delay: 2s; }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 720px; }
.hero-content h1 {
  color: #fff;
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-content p { font-size: 1.15rem; color: #f3e9ea; margin-bottom: 32px; }
@media (max-width: 768px) {
  .hero-slide { height: 78vh; }
  .hero-content h1 { font-size: 2rem; }
}
.carousel-indicators [data-bs-target] { background-color: #fff; }

@keyframes kenBurns {
  0%   { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.12) translate(-1%, -1%); }
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-20px, 20px) scale(1.1); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------------- Stats Counter ---------------- */
.stats-bar {
  background: var(--acme-gradient);
  background-size: 220% 220%;
  animation: gradientShift 12s ease infinite;
  padding: 55px 0;
}
.stat-item { text-align: center; color: #fff; }
.stat-number { font-size: 2.6rem; font-weight: 800; color: #fff; }
.stat-label { color: #fbe9e9; letter-spacing: 1px; font-size: .9rem; text-transform: uppercase; }

/* ---------------- Category Cards ---------------- */
.category-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 280px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}
.category-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,42,61,0) 35%, rgba(35,42,61,.88) 100%);
  transition: var(--transition);
}
.category-card:hover::before { background: linear-gradient(180deg, rgba(226,35,26,.15) 0%, rgba(35,42,61,.92) 100%); }
.category-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 18px 34px rgba(35,42,61,.25); }
.category-card-body { position: relative; z-index: 2; padding: 22px; color: #fff; width: 100%; }
.category-card-body h5 { color: #fff; margin-bottom: 4px; }
.category-card-body a { color: #ffd9d6; font-weight: 600; font-size: .9rem; }

/* ---------------- Equipment Gallery ---------------- */
.gallery-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 220px;
  border: 1px solid #eef1f5;
}
.gallery-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-tile:hover img { transform: scale(1.08); }
.gallery-tile span {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(35,42,61,0) 0%, rgba(35,42,61,.85) 100%);
  color: #fff; font-weight: 600; font-size: .92rem;
  padding: 34px 16px 12px;
}

/* ---------------- Why Choose Us ---------------- */
.feature-box {
  text-align: center;
  padding: 34px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #eef1f5;
  height: 100%;
  transition: var(--transition);
}
.feature-box:hover { box-shadow: 0 12px 28px rgba(226,35,26,.12); border-color: var(--acme-red); transform: translateY(-4px); }
.feature-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(226,35,26,.12), rgba(36,84,199,.12));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; color: var(--acme-red); font-size: 26px;
  transition: var(--transition);
}
.feature-box:hover .feature-icon { transform: rotate(8deg) scale(1.08); }

/* ---------------- Product Cards ---------------- */
.product-card {
  border: 1px solid #eef1f5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: var(--transition);
  height: 100%;
}
.product-card:hover { box-shadow: 0 16px 32px rgba(35,42,61,.14); transform: translateY(-4px); border-color: var(--acme-red); }
.product-card-img { height: 220px; overflow: hidden; background: var(--acme-light-gray); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-card-body { padding: 20px; }
.product-card-cat { color: var(--acme-blue); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.product-card-body h5 { font-size: 1.05rem; margin: 8px 0 10px; }
.product-card-body h5 a { color: var(--acme-navy); }
.product-price { font-weight: 700; color: var(--acme-red); }

/* ---------------- Testimonials ---------------- */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid #eef1f5;
  height: 100%;
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: 0 14px 30px rgba(35,42,61,.1); transform: translateY(-3px); }
.testimonial-stars { color: #ffb703; margin-bottom: 12px; }
.testimonial-author { display: flex; align-items: center; margin-top: 20px; }
.testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--acme-red), var(--acme-blue)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-right: 12px;
}

/* ---------------- Blog Cards ---------------- */
.blog-card { border-radius: var(--radius); overflow: hidden; border: 1px solid #eef1f5; height: 100%; background: #fff; transition: var(--transition); }
.blog-card:hover { box-shadow: 0 16px 32px rgba(35,42,61,.14); transform: translateY(-4px); }
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 22px; }
.blog-meta { color: var(--acme-gray); font-size: .82rem; margin-bottom: 8px; }
.blog-card-body h5 a { color: var(--acme-navy); }

/* ---------------- Footer ---------------- */
.footer-acme {
  background: var(--acme-gradient);
  background-size: 220% 220%;
  animation: gradientShift 16s ease infinite;
  color: #f7e6e6;
  padding: 70px 0 0;
}
.footer-acme h5 { color: #fff; margin-bottom: 20px; font-size: 1.05rem; }
.footer-acme a { color: #f3dcdc; }
.footer-acme a:hover { color: #fff; }
.footer-acme ul { list-style: none; padding: 0; margin: 0; }
.footer-acme ul li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 50px; padding: 22px 0; font-size: .88rem; color: #f3dcdc; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.14);
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 8px; color: #fff;
  transition: var(--transition);
}
.social-icons a:hover { background: #fff; color: var(--acme-red); transform: translateY(-3px); }

/* ---------------- WhatsApp Floating Button ---------------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: #25d366; color: #fff;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  animation: pulse 2s infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------------- Scroll Reveal (staggered) ---------------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.row .reveal:nth-child(1) { transition-delay: 0s; }
.row .reveal:nth-child(2) { transition-delay: .08s; }
.row .reveal:nth-child(3) { transition-delay: .16s; }
.row .reveal:nth-child(4) { transition-delay: .24s; }
.row .reveal:nth-child(5) { transition-delay: .32s; }
.row .reveal:nth-child(6) { transition-delay: .4s; }

/* ---------------- Page Header ---------------- */
.page-header {
  background: linear-gradient(100deg, rgba(226,35,26,.82) 0%, rgba(140,58,158,.68) 45%, rgba(36,84,199,.78) 100%), url('../images/page-header-bg.jpg') center/cover;
  padding: 130px 0 60px;
  color: #fff;
}
.page-header h1 { color: #fff; font-size: 2.4rem; }
.breadcrumb-acme a { color: #fbe1e1; }
.breadcrumb-acme .active { color: #fff; font-weight: 600; }

/* ---------------- Filters / Sidebar ---------------- */
.filter-box { background: var(--acme-light-gray); border-radius: var(--radius); padding: 22px; }
.filter-box h6 { text-transform: uppercase; font-size: .85rem; letter-spacing: 1px; margin-bottom: 14px; }
.category-list a {
  display: flex; justify-content: space-between;
  color: var(--acme-dark-gray); padding: 8px 0;
  border-bottom: 1px solid #e5e9ef;
}
.category-list a:hover, .category-list a.active { color: var(--acme-red); }

/* ---------------- Product Detail ---------------- */
.product-gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid #eef1f5; height: 420px; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs img { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.product-gallery-thumbs img.active, .product-gallery-thumbs img:hover { border-color: var(--acme-red); }
.spec-table th { background: var(--acme-light-gray); width: 40%; }

/* ---------------- Cart ---------------- */
.cart-table img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; }
.qty-input { width: 70px; }

/* ---------------- Forms ---------------- */
.form-control, .form-select {
  border-radius: 6px;
  padding: 11px 14px;
  border: 1px solid #dfe4ea;
}
.form-control:focus, .form-select:focus { border-color: var(--acme-red); box-shadow: 0 0 0 .2rem rgba(226,35,26,.12); }

/* ---------------- Admin Panel ---------------- */
.admin-sidebar { background: #1b2030; min-height: 100vh; }
.admin-sidebar a { color: #cbd5e1; display: flex; align-items: center; padding: 12px 20px; border-radius: 6px; margin: 2px 10px; transition: var(--transition); }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--acme-red); color: #fff; }
.admin-sidebar a i { margin-right: 10px; width: 20px; }
.admin-topbar { background: #fff; border-bottom: 1px solid #eef1f5; padding: 14px 24px; }
.admin-card { background: #fff; border-radius: var(--radius); border: 1px solid #eef1f5; padding: 22px; }
.stat-card { border-radius: var(--radius); padding: 22px; color: #fff; }
.table thead th { background: var(--acme-light-gray); border-bottom: none; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; }
