/**
 * Home Page - Black & White theme + section animations
 * Scoped under .home-modern
 */

/* ========== B&W Design Tokens ========== */
.home-modern {
  --wp-radius: 12px;
  --wp-radius-lg: 20px;
  --wp-radius-xl: 28px;
  --wp-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --wp-shadow-hover: 0 16px 48px -12px rgba(0, 0, 0, 0.15);
  --wp-section-padding: 100px;
  --wp-section-padding-sm: 60px;
  --wp-alt-bg: #f5f5f5;
  --wp-text: #111111;
  --wp-text-muted: #6b7280;
  --wp-border: rgba(0, 0, 0, 0.08);
  --wp-black: #111111;
  --wp-black-soft: #1a1a1a;
}

/* ========== Keyframes ========== */
@keyframes wpFadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wpFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes wpLineIn {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes wpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wpScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes wpSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section header underline – animates when in view (WOW adds .animated) */
.home-modern .section-header .title::after {
  transform-origin: left center;
}

.home-modern .section-header.text-center .title::after {
  transform-origin: center center;
}

.home-modern .section-header:not(.animated) .title::after {
  transform: scaleX(0);
  opacity: 0;
}

.home-modern .section-header.animated .title::after {
  animation: wpLineIn 0.6s ease-out forwards;
}

/* ========== Hero Section – B&W ========== */
.home-modern .hero-section {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 45%, #f5f5f5 100%);
  position: relative;
  overflow: hidden;
}

.home-modern .hero-section::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 70%;
  height: 90%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.03) 0%, transparent 65%);
  pointer-events: none;
}

.home-modern .min-vh-60 {
  min-height: 60vh;
}

.home-modern .hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp-black);
  background: #fff;
  border: 1px solid var(--wp-border);
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  box-shadow: var(--wp-shadow);
  animation: wpFadeIn 0.6s ease-out;
}

.home-modern .hero-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--wp-black);
  margin-bottom: 20px;
}

.home-modern .hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--wp-text-muted);
  max-width: 480px;
  margin-bottom: 28px;
}

.home-modern .hero-logo-wrap img {
  max-width: 140px;
  height: auto;
  border-radius: var(--wp-radius-lg);
  box-shadow: var(--wp-shadow);
  border: 1px solid var(--wp-border);
}

.home-modern .hero-visual {
  position: relative;
}

.home-modern .hero-svg {
  max-width: 100%;
  max-height: 380px;
  animation: wpFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
}

/* Custom hero illustration: store → deliveryman → home */
.home-modern .hero-mart-illustration {
  color: var(--wp-black);
  display: block;
  margin: 0 auto;
}

.home-modern .hero-mart-illustration .hero-store,
.home-modern .hero-mart-illustration .hero-house,
.home-modern .hero-mart-illustration .hero-deliveryman {
  transition: transform 0.4s ease;
}

.home-modern .hero-visual:hover .hero-mart-illustration .hero-deliveryman {
  transform: translateX(4px);
}

@media (max-width: 991px) {
  .home-modern .hero-section { padding: 60px 0 70px; }
  .home-modern .min-vh-60 { min-height: auto; }
  .home-modern .hero-svg { max-height: 280px; }
}

/* ========== Section badges – B&W ========== */
.home-modern .section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp-black);
  margin-bottom: 12px;
  opacity: 0.85;
}

.home-modern .section-header .title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--wp-black);
  margin-bottom: 0;
}

.home-modern .section-header .title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--wp-black);
  border-radius: 2px;
  margin-top: 16px;
}

.home-modern .section-header.text-start .title::after {
  margin-left: 0;
}

.home-modern .section-desc,
.home-modern .section-header p,
.home-modern .section-header .text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--wp-text-muted);
  margin-top: 16px;
  max-width: 600px;
}

.home-modern .section-header.text-start .section-desc,
.home-modern .section-header.text-start .text { margin-left: 0; margin-right: auto; }
.home-modern .section-header.text-center .section-desc { margin-left: auto; margin-right: auto; }

/* ========== Alternating section backgrounds – B&W ========== */
.home-modern .section-alt {
  background: var(--wp-alt-bg);
  padding-top: var(--wp-section-padding);
  padding-bottom: var(--wp-section-padding);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (max-width: 991px) {
  .home-modern .section-alt {
    padding-top: var(--wp-section-padding-sm);
    padding-bottom: var(--wp-section-padding-sm);
  }
}

.home-modern .ecommerce-venture-section.section-alt { padding-top: var(--wp-section-padding); padding-bottom: var(--wp-section-padding); }
.home-modern .main-category { padding: var(--wp-section-padding-sm) 0; background: #fff; }
.home-modern .learn-feature-section.section-alt {
  position: relative;
  padding-top: var(--wp-section-padding);
  padding-bottom: var(--wp-section-padding);
  overflow: hidden;
}
.home-modern .learn-feature-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  filter: grayscale(1);
  pointer-events: none;
}
.home-modern .learn-feature-section .container { position: relative; z-index: 1; }
.home-modern .learn-feature-wrapper { padding: 0; }
.home-modern .learn-feature-grid { margin: 0 -0.5rem; }
.home-modern .learn-feature-grid > [class*="col-"] { padding: 0 0.5rem; }
.home-modern .delivery-area-section .text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--wp-text-muted);
}
.home-modern .delivery-area-section.section-alt { padding-top: var(--wp-section-padding); padding-bottom: var(--wp-section-padding); }
.home-modern .refer-section { padding: var(--wp-section-padding) 0; background: #fff; }
.home-modern .earn-money-section.section-alt { padding-top: var(--wp-section-padding); padding-bottom: var(--wp-section-padding); }
.home-modern .counter-section.section-alt { padding: var(--wp-section-padding-sm) 0; }
.home-modern .testimonial-section.section-alt { padding: var(--wp-section-padding) 0; }

/* ========== Ecommerce / Modules – B&W + animation ========== */
.home-modern .ecommerce-venture-section .venture-content-box {
  background: #fff;
  border-radius: var(--wp-radius-xl);
  padding: 36px 32px;
  box-shadow: var(--wp-shadow);
  border: 1px solid var(--wp-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-modern .ecommerce-venture-section .venture-content-box:hover {
  box-shadow: var(--wp-shadow-hover);
  transform: translateY(-6px);
  border-color: rgba(0, 0, 0, 0.12);
}

.home-modern .venture-img img {
  border-radius: var(--wp-radius-xl);
  box-shadow: var(--wp-shadow);
  border: 1px solid var(--wp-border);
  transition: transform 0.5s ease;
}

.home-modern .ecommerce-venture-section .venture-content-box:hover + .venture-img img,
.home-modern .venture-img img:hover {
  transform: scale(1.02);
}

.home-modern .nav--tabs .item {
  background: #fff;
  border-radius: var(--wp-radius-lg);
  padding: 20px 16px;
  border: 2px solid var(--wp-border);
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.home-modern .nav--tabs .item:hover,
.home-modern .nav--tabs .item.active {
  border-color: var(--wp-black);
  background: #fff;
  color: var(--wp-black);
  box-shadow: var(--wp-shadow);
  transform: translateY(-3px);
}

/* ========== Promo / Category Slider – B&W ========== */
.home-modern .main-category .category-slide-item {
  border-radius: var(--wp-radius-xl);
  min-height: 340px;
  padding: 48px 40px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.home-modern .main-category .category-slide-item:hover {
  transform: scale(1.02);
}

.home-modern .main-category .category-slide-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 55%);
}

.home-modern .main-category .category-slide-item .title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: #fff !important;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

.home-modern .main-category .category-slide-item .text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

/* ========== Features section – B&W, no hide, grid layout ========== */
.home-modern .learn-feature-item {
  background: #fff;
  border-radius: var(--wp-radius-lg);
  padding: 24px 20px;
  box-shadow: var(--wp-shadow);
  border: 1px solid var(--wp-border);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.home-modern .learn-feature-item:hover {
  box-shadow: var(--wp-shadow-hover);
  transform: translateY(-6px);
  border-color: rgba(0, 0, 0, 0.1);
}

.home-modern .learn-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.home-modern .learn-feature-icon img {
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
}

.home-modern .learn-feature-item:hover .learn-feature-icon {
  transform: scale(1.05);
  background: #ebebeb;
}

.home-modern .learn-feature-item-content {
  flex: 1;
}

.home-modern .learn-feature-item .subttle {
  font-size: 17px;
  font-weight: 700;
  color: var(--wp-black);
  margin-bottom: 8px;
  line-height: 1.3;
}

.home-modern .learn-feature-item .text,
.home-modern .learn-feature-item p.text {
  font-size: 14px;
  color: var(--wp-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ========== Delivery / Zone – B&W ========== */
.home-modern .zone-list .item {
  display: inline-block;
  background: #fff;
  border-radius: 50px;
  padding: 12px 22px;
  margin: 6px 6px 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--wp-black);
  border: 1px solid var(--wp-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.home-modern .zone-list .item:hover {
  background: var(--wp-black);
  color: #fff;
  border-color: var(--wp-black);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ========== Refer Section – B&W ========== */
.home-modern .refer-section .text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--wp-text-muted);
}

.home-modern .refer-img .main-img {
  animation: wpFloat 5s ease-in-out infinite;
  max-width: 100%;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.1));
}

/* ========== Earn Money Cards – B&W ========== */
.home-modern .earn-item {
  border-radius: var(--wp-radius-xl);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--wp-shadow);
  border: 1px solid var(--wp-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-modern .earn-item:hover {
  box-shadow: var(--wp-shadow-hover);
  transform: translateY(-10px);
  border-color: rgba(0, 0, 0, 0.1);
}

.home-modern .earn-item-img {
  min-height: 240px;
  transition: transform 0.5s ease;
}

.home-modern .earn-item:hover .earn-item-img {
  transform: scale(1.05);
}

.home-modern .earn-item-cont {
  padding: 28px 24px;
  background: #fff;
}

.home-modern .earn-item-cont .subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wp-text-muted);
  font-weight: 600;
}

.home-modern .earn-item-cont .title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--wp-black);
}

/* Buttons – B&W */
.home-modern .cmn--btn {
  border-radius: 50px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  background: var(--wp-black) !important;
  color: #fff !important;
  border: 2px solid var(--wp-black) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-modern .cmn--btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  background: var(--wp-black-soft) !important;
  color: #fff !important;
  border-color: var(--wp-black-soft) !important;
}

/* ========== Counter Section – B&W ========== */
.home-modern .counter-wrapper {
  border-radius: var(--wp-radius-xl);
  overflow: hidden;
  box-shadow: var(--wp-shadow);
  border: 1px solid var(--wp-border);
  background: #fff;
}

.home-modern .counter-item {
  padding: 32px 24px;
  transition: all 0.35s ease;
}

.home-modern .counter-item:hover {
  transform: scale(1.03);
  background: #fafafa;
}

.home-modern .counter-item .title {
  color: var(--wp-black) !important;
}

/* ========== Testimonials – B&W ========== */
.home-modern .testimonial-item {
  background: #fff;
  border-radius: var(--wp-radius-lg);
  padding: 36px 32px;
  box-shadow: var(--wp-shadow);
  border: 1px solid var(--wp-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.home-modern .testimonial-item:hover {
  box-shadow: var(--wp-shadow-hover);
  transform: translateY(-6px);
  border-color: rgba(0, 0, 0, 0.1);
}

.home-modern .testimonial-item blockquote {
  font-size: 17px;
  line-height: 1.7;
  color: var(--wp-text-muted);
}

/* ========== CTA Section – Black ========== */
.home-modern .cta-section {
  padding: var(--wp-section-padding) 0;
  background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.home-modern .cta-section::before {
  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");
  pointer-events: none;
}

.home-modern .cta-section .title,
.home-modern .cta-section .primary-color,
.home-modern .cta-section .download-app-content .text {
  color: #fff !important;
}

.home-modern .cta-section .download-app-content .text {
  opacity: 0.9;
}

.home-modern .cta-section .section-header .title::after {
  background: rgba(255, 255, 255, 0.7);
}

.home-modern .cta-section .section-badge {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.15);
}

.home-modern .cta-section .cmn--btn {
  background: #fff !important;
  color: #111 !important;
  border-color: #fff !important;
}

.home-modern .cta-section .cmn--btn:hover {
  background: #f0f0f0 !important;
  color: #111 !important;
  border-color: #f0f0f0 !important;
}

/* ========== Section entrance animation (WOW) ========== */
.home-modern .wow {
  animation-duration: 0.8s;
}

.home-modern .section-alt,
.home-modern .refer-section,
.home-modern .main-category {
  animation: wpFadeIn 0.6s ease-out;
}

/* ========== Responsive ========== */
@media (max-width: 767px) {
  .home-modern .hero-section { padding: 50px 0 60px; }
  .home-modern .venture-content-box { padding: 22px 20px; }
  .home-modern .learn-feature-item { padding: 20px 18px; }
  .home-modern .learn-feature-section .learn-feature-content { margin-bottom: 24px; }
  .home-modern .main-category .category-slide-item {
    min-height: 280px;
    padding: 32px 24px;
  }
  .home-modern .section-alt {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}
