/* ============================================
   PACKISTRY — HOME PAGE STYLES
   ============================================ */

/* ---- HERO SECTION ---- */
.hero-section {
  background: #0F2640;
  min-height: 420px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 56px 0 48px;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(201,168,76,0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* Slides */
.hero-slide {
  display: none;
  animation: heroFadeIn 0.5s ease;
  max-width: 640px;
}
.hero-slide.active { display: block; }

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: #D4B05A;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-slide h1 {
  color: var(--color-white);
  font-size: 52px;
  line-height: 1.05;
  margin-bottom: 16px;
}
.hero-slide h1 span { color: var(--color-gold); }
.hero-slide p {
  color: rgba(255,255,255,0.58);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 480px;
}
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Dots */
.hero-slider-dots {
  display: flex;
  gap: 6px;
  margin-top: 28px;
}
.hero-dot {
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.hero-dot.active {
  background: var(--color-gold);
  width: 36px;
}

/* ---- FEATURES BAR ---- */
.features-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--color-gray-200);
  padding: 20px 0;
}
.features-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.feature-bar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  border-right: 1px solid var(--color-gray-200);
}
.feature-bar-item:last-child { border-right: none; }
.feature-bar-item .fbi-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: #0F2640;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.feature-bar-item .fbi-icon svg { width: 18px; height: 18px; color: var(--color-gold); }
.feature-bar-item .fbi-text strong {
  display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 1px;
}
.feature-bar-item .fbi-text span { font-size: 11px; color: var(--text-muted); }

/* ---- PROMO BANNERS ---- */
.promo-section { background: var(--bg-light); padding: var(--sp-xl) 0; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-lg); }
.promo-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 220px;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.promo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.promo-card-content {
  padding: var(--sp-xl);
  display: flex; flex-direction: column; justify-content: center;
}
.promo-card-content h3 { color: var(--color-white); font-size: var(--fs-xl); margin-bottom: var(--sp-sm); }
.promo-card-content p { color: var(--text-on-dark-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-md); }
.promo-card-img { overflow: hidden; }
.promo-card-img .img-placeholder { width: 100%; height: 100%; }

/* ---- TOP FEATURED PRODUCTS ---- */
.featured-section { background: var(--bg-white); }
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); }

/* ---- WHY CHOOSE PACKISTRY ---- */
.why-section { background: #0F2640; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); }
.why-card {
  padding: 20px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.why-card:hover { border-color: rgba(201,168,76,0.25); background: rgba(255,255,255,0.03); }
.why-card-num {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gold);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 10px;
}
.why-card h5 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 8px;
}
.why-card p { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.65; }

/* ---- CUSTOMER REVIEWS ---- */
.reviews-section { background: var(--bg-white); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
.review-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  border: 1px solid var(--color-gray-200);
  transition: var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-sm); border-color: var(--color-gold-light); }
.review-stars { color: var(--color-gold); font-size: 14px; margin-bottom: var(--sp-sm); letter-spacing: 2px; }
.review-card p { font-size: var(--fs-sm); font-style: italic; color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--sp-md); }
.review-author { display: flex; align-items: center; gap: var(--sp-sm); }
.review-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm); font-weight: 600; color: var(--color-gold);
  flex-shrink: 0;
}
.review-author-info strong { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--text-primary); }
.review-author-info span { font-size: var(--fs-xs); color: var(--text-muted); }

/* ---- TRENDING BOXES ---- */
.trending-section { background: var(--bg-light); }
.trending-scroll {
  display: flex;
  gap: var(--sp-sm);
  overflow-x: auto;
  /* The hovered card moves up 2px; this keeps its top gold edge from clipping. */
  padding: 4px 0 var(--sp-sm);
}
.trending-scroll::-webkit-scrollbar { height: 4px; }
.trending-scroll::-webkit-scrollbar-track { background: var(--color-gray-200); border-radius: 2px; }
.trending-scroll::-webkit-scrollbar-thumb { background: var(--color-gold); border-radius: 2px; }
.trending-item {
  flex-shrink: 0; width: 140px;
  background: var(--bg-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition);
}
.trending-item:hover { border-color: var(--color-gold-light); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.trending-item .ti-img { height: 100px; }
.trending-item .ti-img .img-placeholder { width: 100%; height: 100%; font-size: 9px; }
.trending-item .ti-name { padding: 8px; font-size: var(--fs-xs); font-weight: 500; color: var(--text-primary); text-align: center; line-height: 1.3; }

/* ---- OUR CLIENTS ---- */
.clients-section { background: var(--bg-white); padding: var(--sp-xl) 0; }
.clients-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xl);
  flex-wrap: wrap;
}
.client-name {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--color-gray-300);
  letter-spacing: 0.04em;
  transition: var(--transition-fast);
}
.client-name:hover { color: var(--color-gray-500); }

/* ---- BLOG SECTION (home) ---- */
.home-blog-section { background: var(--bg-light); }
.home-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); }

/* ---- SHIPPING PARTNERS ---- */
.shipping-partners {
  background: var(--bg-white);
  border-top: 1px solid var(--color-gray-200);
  padding: 34px 0;
  text-align: center;
}

.shipping-partners-kicker {
  color: var(--color-gold);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.shipping-partners h2 {
  color: var(--color-navy);
  font-size: clamp(22px, 2.2vw, 30px);
  margin-bottom: 24px;
}

.shipping-partners-logos {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.shipping-partner {
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  font: inherit;
  height: 58px;
  justify-content: center;
  padding: 12px 24px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  width: 150px;
}

.shipping-partner img {
  display: block;
  height: 48px;
  max-width: 100%;
  transition: filter var(--transition-fast);
}

.shipping-partner-dhl img {
  filter: invert(13%) sepia(97%) saturate(6475%) hue-rotate(350deg) brightness(88%) contrast(111%);
  transform: scaleY(2.15);
  width: 138px;
}
.shipping-partner-ups img { filter: brightness(0) invert(1); }
.shipping-partner-dpd img { filter: brightness(0) invert(1); }

.shipping-partner-dhl { background: #FFCC00; border-color: #FFCC00; }
.shipping-partner-fedex { background: #4D148C; border-color: #4D148C; }
.shipping-partner-ups { background: #351C15; border-color: #351C15; }
.shipping-partner-dpd { background: #DC0032; border-color: #DC0032; }
.shipping-partner-royal-mail { background: #fff; border-color: var(--color-gray-200); }
.shipping-partner-dtdc {
  background: #fff;
  border-color: var(--color-gray-200);
  padding: 8px;
}

.shipping-partner-royal-mail img {
  filter: none;
  height: 48px;
  width: auto;
}

.shipping-partner-dtdc img {
  filter: none;
  height: auto;
  max-height: 38px;
  width: 132px;
}

.fedex-logo {
  display: block;
  height: 48px;
  position: relative;
  width: 138px;
}

.fedex-logo img {
  height: 48px;
  left: 0;
  max-width: none;
  position: absolute;
  top: 0;
  width: 138px;
}

.shipping-partner-fedex .fedex-purple {
  clip-path: inset(0 50% 0 0);
  filter: brightness(0) invert(1);
}

.shipping-partner-fedex .fedex-orange {
  clip-path: inset(0 0 0 50%);
  filter: brightness(0) invert(1);
}

.shipping-partner:hover,
.shipping-partner:focus-visible,
.shipping-partner:active {
  border-color: var(--color-gold);
  box-shadow: 0 6px 16px rgba(194, 157, 57, 0.22);
  transform: translateY(-2px);
}

/* ---- NEWSLETTER ---- */
.newsletter-section {
  background: var(--bg-dark);
  padding: var(--sp-xl) 0;
  text-align: center;
}
.newsletter-section p { color: var(--text-on-dark-muted); margin-bottom: var(--sp-md); }
.newsletter-section h3 { color: var(--color-white); margin-bottom: 6px; }
.newsletter-form {
  display: flex; gap: var(--sp-sm);
  max-width: 440px; margin: 0 auto;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  outline: none;
  transition: var(--transition-fast);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { border-color: var(--color-gold); background: rgba(255,255,255,0.1); }

/* ---- View All Posts button ---- */
.btn-view-all {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--color-gray-300);
  transition: all 0.25s ease;
}
.btn-view-all:hover {
  background: var(--color-gold);
  color: #0F2640;
  border-color: var(--color-gold);
}

@media (max-width: 767px) {
  .hero-section { min-height: 390px; padding: 42px 0 36px; }
  .hero-slide h1 { font-size: 38px; }
  .hero-slide p { font-size: 13px; }
  .hero-btns .btn { width: 100%; }
  .features-bar-inner { grid-template-columns: 1fr 1fr; }
  .feature-bar-item { padding: 12px 8px; gap: 9px; }
  .feature-bar-item:nth-child(odd) { border-right: 1px solid var(--color-gray-200); }
  .feature-bar-item:nth-child(even) { border-right: none; }
  .feature-bar-item:nth-child(-n+2) { border-bottom: 1px solid var(--color-gray-200); }
  .feature-bar-item .fbi-icon { width: 34px; height: 34px; min-width: 34px; }
  .feature-bar-item .fbi-text strong { font-size: 11px; }
  .feature-bar-item .fbi-text span { font-size: 9px; }
  .promo-grid, .promo-card { grid-template-columns: 1fr; }
  .promo-card { min-height: 0; }
  .promo-card-content { padding: 24px 20px; }
  .promo-card-img { min-height: 150px; }
  .featured-grid, .why-grid, .reviews-grid, .home-blog-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
  .shipping-partner { width: calc(50% - 7px); }
}
