/* ===== CSS Variables ===== */
:root {
  --primary: #1a237e;
  --secondary: #0d47a1;
  --accent: #f57c00;
  --light: #f5f7fa;
  --dark: #1a1a2e;
  --success: #2e7d32;
  --body-font: "Inter", sans-serif;
  --heading-font: "Poppins", sans-serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* ===== Global ===== */
body {
  font-family: var(--body-font);
  color: var(--dark);
  overflow-x: hidden;
  background: #fff;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-weight: 700;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-accent:hover {
  background: #e65100;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 124, 0, 0.3);
}
.btn-outline-accent {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-outline-accent:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-primary-custom:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 35, 126, 0.3);
}
section {
  padding: 80px 0;
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--dark);
  color: #ccc;
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}
.top-bar a:hover {
  color: #fff;
}
.top-bar .social-icons a {
  margin-left: 15px;
  font-size: 0.9rem;
}

/* ===== Header ===== */
.main-header {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}
.navbar-brand img {
  max-height: 50px;
}
.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--dark);
  padding: 0.5rem 1.2rem;
  transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent);
}
.header-phone {
  font-weight: 600;
  color: var(--primary);
}
.header-phone i {
  color: var(--accent);
  margin-right: 6px;
}

/* ----- Cart Icon (improved) ----- */
.cart-icon {
  text-decoration: none;
  color: var(--dark);
  transition: var(--transition);
  display: inline-block;
  background: var(--light);
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  border-radius: 50%;
  position: relative;
}
.cart-icon:hover {
  background: var(--primary);
  color: #fff;
}
.cart-icon .badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.45rem;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.bg-accent {
  background-color: var(--accent);
  color: #fff;
}

/* ----- Cart Offcanvas ----- */
#cartOffcanvas .offcanvas-header {
  background: var(--light);
}
#cartOffcanvas .offcanvas-body {
  background: #fff;
}
.cart-item {
  transition: background 0.2s;
}
.cart-item:hover {
  background: #f8f9fa;
}
.cart-footer {
  background: #fff;
}

/* ===== Hero Slider ===== */
.hero-slider {
  position: relative;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 35, 126, 0.65);
  z-index: 1;
}
.hero-slide .hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
}
.hero-slide .hero-content h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.hero-slide .hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}
.hero-slide .hero-content .btn-group .btn {
  margin-right: 15px;
}
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 12px;
}
.slider-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dots span.active {
  background: var(--accent);
  width: 30px;
  border-radius: 20px;
}

/* ===== Trust Badges ===== */
.trust-badges {
  background: var(--light);
  padding: 40px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.trust-badges .stat-item {
  text-align: center;
}
.trust-badges .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}
.trust-badges .stat-label {
  font-size: 0.95rem;
  color: #555;
}

/* ===== About Preview ===== */
.about-preview .about-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-preview .about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Services ===== */
.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border-bottom: 4px solid transparent;
}
.service-card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--accent);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.service-card .icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: inline-block;
  background: var(--light);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  transition: var(--transition);
}
.service-card:hover .icon {
  background: var(--primary);
  color: #fff;
}
.service-card h5 {
  font-weight: 700;
  margin-bottom: 15px;
}
.service-card p {
  color: #666;
  font-size: 0.95rem;
}

/* ===== Featured Products ===== */
.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.product-card .product-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img {
  transform: scale(1.05);
}
.product-card .product-body {
  padding: 20px;
}
.product-card .product-body h5 {
  font-weight: 700;
}
.product-card .product-body p {
  color: #666;
  font-size: 0.9rem;
}
.product-card .product-body .btn-sm {
  border-radius: 50px;
  font-weight: 600;
}

/* ===== Why Us / Video ===== */
.why-us {
  background: var(--light);
}
.why-us .video-placeholder {
  background: var(--dark);
  border-radius: 20px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
}
.why-us .video-placeholder i {
  font-size: 4rem;
  color: var(--accent);
  margin-right: 10px;
}
.why-us .benefit-item {
  display: flex;
  margin-bottom: 20px;
}
.why-us .benefit-item i {
  color: var(--accent);
  font-size: 1.5rem;
  margin-right: 15px;
  margin-top: 4px;
}

/* ===== Certifications ===== */
.certifications .cert-badge {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
.certifications .cert-badge:hover {
  transform: scale(1.02);
}
.certifications .cert-badge img {
  max-height: 60px;
  margin-bottom: 10px;
}
.certifications .cert-badge span {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== Quick Quote ===== */
.quick-quote {
  background: var(--primary);
  color: #fff;
}
.quick-quote .quote-form {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  color: var(--dark);
}
.quick-quote .quote-form .form-control,
.quick-quote .quote-form .form-select {
  border-radius: 50px;
  padding: 0.7rem 1.2rem;
}
.quick-quote .quote-form .btn {
  width: 100%;
}
.quick-quote .benefits-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}
.quick-quote .benefits-list i {
  color: var(--accent);
  font-size: 1.3rem;
  width: 30px;
}

/* ===== Testimonials ===== */
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
  height: 100%;
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-5px);
}
.testimonial-card .client-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}
.testimonial-card .stars {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 0.9rem;
}
.testimonial-card .quote {
  font-style: italic;
  color: #555;
  margin: 15px 0;
}

/* ===== Blog Preview ===== */
.blog-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-8px);
}
.blog-card .blog-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}
.blog-card .blog-body {
  padding: 20px;
}
.blog-card .blog-meta {
  font-size: 0.8rem;
  color: #999;
}
.blog-card .blog-body h5 {
  font-weight: 700;
  margin: 10px 0;
}

/* ===== Partners ===== */
.partners .partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
  transition: var(--transition);
}
.partners .partner-logo:hover {
  transform: scale(1.03);
}
.partners .partner-logo img {
  max-height: 60px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}
.partners .partner-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ===== Newsletter ===== */
.newsletter {
  background: var(--light);
  padding: 60px 0;
}
.newsletter .input-group {
  max-width: 500px;
  margin: 0 auto;
}
.newsletter .input-group .form-control {
  border-radius: 50px 0 0 50px;
  padding: 0.8rem 1.5rem;
  border: none;
}
.newsletter .input-group .btn {
  border-radius: 0 50px 50px 0;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 2rem;
  border: none;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: #ccc;
  padding: 60px 0 30px;
}
.footer h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}
.footer a:hover {
  color: var(--accent);
}
.footer .footer-social a {
  display: inline-block;
  margin-right: 15px;
  font-size: 1.3rem;
}
.footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 30px;
  font-size: 0.9rem;
}


/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-slide .hero-content h1 {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
}
@media (max-width: 768px) {
  .hero-slider {
    height: 70vh;
    min-height: 400px;
  }
  .hero-slide .hero-content h1 {
    font-size: 2rem;
  }
  .hero-slide .hero-content p {
    font-size: 1rem;
  }
  .trust-badges .stat-number {
    font-size: 1.8rem;
  }
  section {
    padding: 50px 0;
  }
  .quick-quote .benefits-list {
    margin-top: 30px;
  }
}
