/**
 * Home Page Styles
 * Speed Protection - Astra Child Theme
 */

/* =========================================
   HERO SECTION
   ========================================= */
.sp-light-hero {
  padding: 160px 0 100px 0;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  color: var(--sp-dark);
}

.sp-hero-container {
  width: 100%;
  max-width: 1300px;
  padding: 0 40px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}

.sp-hero-image-wrapper {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.sp-hero-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
  transform: rotate(-2deg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.sp-hero-text-wrapper {
  flex: 1;
  min-width: 300px;
  position: relative;
  z-index: 2;
}

.sp-hero-title {
  text-align: left;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  margin-bottom: 30px;
  font-weight: 900;
  color: var(--sp-dark);
}

.sp-hero-desc {
  text-align: left;
  margin: 0;
  border: none;
  padding: 0;
  font-size: 1.3rem;
  color: #222222;
  max-width: 700px;
  line-height: 1.6;
  font-weight: 400;
}

.sp-hero-buttons {
  margin-top: 50px;
  display: flex;
  gap: 20px;
}

.sp-hero-buttons .elementor-button {
  padding: 22px 50px;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: 0.4s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-hero-buttons .elementor-button:first-child {
  background: var(--sp-primary);
  color: white;
  border: none;
  box-shadow: 0 15px 40px rgba(255, 77, 0, 0.4);
}

.sp-hero-buttons .elementor-button:last-child {
  background: transparent;
  color: var(--sp-dark);
  border: 2px solid #eee;
}

/* Hero Responsive */
@media (max-width: 768px) {
  .sp-hero-container {
    flex-direction: column-reverse;
    padding: 0 20px !important;
    gap: 30px !important;
  }

  .sp-hero-text-wrapper {
    text-align: center !important;
    padding-right: 0 !important;
    width: 100%;
  }

  .sp-hero-title {
    font-size: 2.5rem !important;
    text-align: center !important;
    margin-bottom: 20px !important;
  }

  .sp-hero-desc {
    text-align: center !important;
    font-size: 1.1rem !important;
    padding: 0 10px !important;
  }

  .sp-hero-buttons {
    justify-content: center !important;
    margin-top: 30px !important;
    flex-wrap: wrap;
  }

  .sp-badge {
    display: block;
    margin: 0 auto 15px auto !important;
  }
}

/* =========================================
   FEATURES GRID (Dark & Orange)
   ========================================= */
.sp-feature-bar-section {
  padding: 0 20px;
  position: relative;
  margin-top: -80px;
  z-index: 20;
}

.sp-feature-bar {
  background: #0a0a0a;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  animation: slideUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
  border: 1px solid #1a1a1a;
}

.sp-feature-item {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 250px;
  padding: 15px;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.sp-feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.03);
}

.sp-feature-icon-wrapper {
  width: 65px;
  height: 65px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  color: var(--sp-primary);
  background: rgba(255, 77, 0, 0.1);
  transition: all 0.4s ease;
}

.sp-feature-item:hover .sp-feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: var(--sp-primary);
  color: white;
}

.sp-feature-text h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 5px 0;
  color: #fff;
  letter-spacing: -0.5px;
}

.sp-feature-text p {
  font-size: 0.95rem;
  color: #a3a3a3;
  margin: 0;
  line-height: 1.4;
}

.sp-feature-divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, #222, transparent);
}

@media (max-width: 1024px) {
  .sp-feature-divider {
    display: none;
  }

  .sp-feature-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    padding: 30px;
  }

  .sp-feature-item {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .sp-feature-bar {
    padding: 25px;
    gap: 15px;
  }

  .sp-feature-item {
    padding: 10px;
  }
}

/* =========================================
   NEWEST PRODUCTS SECTION
   ========================================= */
.sp-newest-products-section {
  padding: 100px 0;
  background: #fdfdfd;
  width: 100%;
}

.sp-section-header {
  text-align: center;
  margin-bottom: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sp-title-accent {
  width: 65px;
  height: 5px;
  background: var(--sp-primary);
  margin-bottom: 25px;
  border-radius: 10px;
}

.sp-section-title {
  font-size: 3.2rem !important;
  font-weight: 800 !important;
  color: #1a1a1a !important;
  margin: 0 !important;
  letter-spacing: -1px;
  text-transform: none !important;
}

.sp-products-wrapper {
  width: 100% !important;
}

@media (max-width: 768px) {
  .sp-section-title {
    font-size: 2.5rem !important;
  }

  .sp-section-header {
    margin-bottom: 40px;
  }
}

/* =========================================
   CATEGORIES SECTION
   ========================================= */
.sp-categories-section {
  padding: 100px 20px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.sp-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.sp-category-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.4s ease;
  text-decoration: none !important;
  display: block;
  cursor: pointer;
  height: 100%;
}

.sp-category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--sp-primary-light, #e2e8f0);
}

.sp-cat-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.sp-category-card:hover .sp-cat-overlay {
  opacity: 1;
}

.sp-cat-content {
  position: relative;
  z-index: 2;
}

.sp-cat-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: transform 0.4s ease;
}

.sp-category-card:hover .sp-cat-icon-box {
  transform: scale(1.1) rotate(-5deg);
}

.sp-category-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.sp-category-card p {
  font-size: 1rem;
  color: #737373;
  margin-bottom: 25px;
  line-height: 1.5;
}

.sp-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--sp-primary, #ff4d00);
  font-size: 0.95rem;
  transition: gap 0.3s ease;
}

.sp-category-card:hover .sp-cat-link {
  gap: 15px;
}

.sp-cat-bg-icon {
  position: absolute;
  bottom: -20px;
  right: -20px;
  opacity: 0.05;
  transform: rotate(-15deg) scale(1.5);
  transition: all 0.5s ease;
  z-index: 0;
  pointer-events: none;
}

.sp-category-card:hover .sp-cat-bg-icon {
  transform: rotate(0deg) scale(1.8);
  opacity: 0.08;
  right: -10px;
  bottom: -10px;
}

@media (max-width: 1024px) {
  .sp-categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .sp-categories-grid {
    grid-template-columns: 1fr;
  }

  .sp-category-card {
    padding: 30px;
  }
}

/* =========================================
   ABOUT/STATS SECTION (Dark)
   ========================================= */
.sp-about-section {
  padding: 100px 20px;
  background: #000000;
  position: relative;
  overflow: hidden;
}

.sp-about-section .ast-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sp-about-section h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 30px;
  color: #fff;
  line-height: 1.1;
}

.sp-about-section p {
  font-size: 1.15rem;
  color: #a3a3a3;
  margin: 0 auto 50px auto;
  line-height: 1.8;
  max-width: 700px;
}

.sp-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.sp-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.sp-stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.sp-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--sp-primary);
  margin-bottom: 5px;
}

.sp-stat-label {
  font-size: 0.85rem;
  color: #a3a3a3;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .sp-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
    max-width: 400px !important;
  }

  @media (min-width: 600px) and (max-width: 1024px) {
    .sp-stats-grid {
      grid-template-columns: repeat(3, 1fr) !important;
    }
  }

  .sp-about-section h2 br {
    display: none;
  }
}
