/* =========================================================
   HOME.CSS - Digital Ranker Pakistan Homepage
   Version: 2.1 (Fixed Service Card Alignment)
   ========================================================= */

/* =========================================================
   HERO SECTION - UNIQUE LAYOUTS & ELEMENTS
========================================================= */
/* Decorative circles in hero background */
.hero {
  position: relative;
  background: linear-gradient(135deg, #009933 0%, #003300 100%);
  color: #FFFFFF;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -120px;
  inset-block-start: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 42px solid rgba(255, 255, 255, 0.12);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-18deg);
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  inset-block-end: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, 0.1);
  border-right-color: transparent;
  border-top-color: transparent;
  transform: rotate(24deg);
}

.hero-inner {
  position: relative;
  padding-block: 96px;
}

/* Hero grid with asymmetrical columns */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

/* Badge row styling */
.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.65);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  opacity: 0.9;
}

/* Trust layer badges */
.hero-trust-layer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.85rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.9);
}

.icon-check {
  color: #0AA86A;
  font-weight: bold;
}

/* Hero typography */
.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

/* Action buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
}

/* Meta information */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8rem;
  opacity: 0.9;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Hero illustration card */
.hero-illustration {
  position: relative;
}

.hero-illustration-card {
  background-color: #FFFFFF;
  border-radius: 28px;
  padding: 1.4rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  color: var(--color-text-main);
}

.hero-illustration-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.hero-illustration-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
}

.metric-pill {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background-color: #F5F7FA;
  font-size: 0.78rem;
}

.metric-pill strong {
  display: block;
  font-size: 1rem;
  color: #006600;
}

/* =========================================================
   TRUST BAR - SPECIFIC STYLES
========================================================= */
.trust-bar {
  margin-top: -28px;
}

.trust-bar-card {
  background-color: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.trust-label {
  font-size: 0.9rem;
  color: #4A4A4A;
  font-weight: 500;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.8rem;
  color: #4A4A4A;
}

.badge-pill {
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  background-color: rgba(0, 102, 0, 0.06);
  color: #003B3B;
  font-weight: 600;
}

/* =========================================================
   SERVICES SECTION - FIXED ALIGNMENT
========================================================= */
/* Ensure grid creates equal height columns */
.features-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch; /* Ensure equal height */
}

/* Service card with full height flexbox */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Features list grows to push pricing down */
.service-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  flex-grow: 1; /* This pushes pricing to bottom */
}

.service-features li {
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: #4A4A4A;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Pricing always at bottom */
.card-pricing {
  margin: 1.25rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #E5E7EB;
  margin-top: auto; /* Push to bottom */
}

.price-main {
  font-size: 1.75rem;
  font-weight: 700;
  color: #006600;
  line-height: 1;
}

.price-unit {
  font-size: 0.75rem;
  font-weight: 500;
  color: #4A4A4A;
  margin-left: 0.25rem;
}

.price-alt {
  font-size: 0.85rem;
  color: #4A4A4A;
}

/* Footer always at bottom */
.card-footer {
  margin-top: auto; /* Ensure footer stays at bottom */
}

/* Service guarantee banner */
.guarantee-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 102, 0, 0.06);
  border: 1px solid rgba(0, 102, 0, 0.15);
  border-radius: 18px;
  padding: 1.25rem;
  margin-top: 2.5rem;
}

.guarantee-icon {
  font-size: 2rem;
}

/* =========================================================
   PAKISTAN STATS SECTION
========================================================= */
.stats-grid {
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #006600;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.stat-context {
  font-size: 0.85rem;
  color: #4A4A4A;
}

/* =========================================================
   INDUSTRY SOLUTIONS SECTION
========================================================= */
.industry-card {
  text-align: center;
  padding: 2rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.industry-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.industry-wins {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  flex-grow: 1;
}

.industry-wins li {
  padding: 0.25rem 0;
  font-size: 0.85rem;
  color: #4A4A4A;
}

/* =========================================================
   CASE STUDIES SECTION - SPECIFIC METRICS
========================================================= */
#case-studies .grid-3 {
  margin-bottom: 3rem;
}

.case-study-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.case-study-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 1rem 0;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}

.case-study-metrics .metric strong {
  display: block;
  font-size: 1.25rem;
  color: #006600;
}

.case-study-metrics .metric span {
  font-size: 0.75rem;
  color: #4A4A4A;
}

/* =========================================================
   PROCESS SECTION - STICKY SIDEBAR
========================================================= */
.process-section-layout {
  align-items: start;
  gap: 4rem;
}

.process-sidebar-card {
  position: sticky;
  top: 120px;
}

/* =========================================================
   TEAM SECTION - SPECIFIC LAYOUTS
========================================================= */
.team-card {
  text-align: center;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid #0AA86A;
}

.team-role {
  font-size: 0.85rem;
  color: #0AA86A;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-bio {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.team-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.cert-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 102, 0, 0.08);
  color: #003B3B;
  font-weight: 600;
}

.team-social a {
  font-size: 0.8rem;
  color: #0AA86A;
  font-weight: 600;
}

.team-social a:hover {
  text-decoration: underline;
}

/* =========================================================
   TESTIMONIALS SECTION - ENHANCED
========================================================= */
.testimonial-carousel {
  position: relative;
}

.testimonial-card.featured {
  border: 2px solid #006600;
  background: linear-gradient(135deg, rgba(0, 102, 0, 0.03) 0%, rgba(10, 168, 106, 0.03) 100%);
  margin-bottom: 2rem;
}

.testimonial-results {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.result-tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 102, 0, 0.1);
  color: #003B3B;
  font-weight: 600;
}

/* =========================================================
   TRUST BADGES SECTION
========================================================= */
.trust-badges-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.press-badge {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #F5F7FA;
  color: #4A4A4A;
  font-weight: 600;
}

.payment-text {
  font-size: 0.75rem;
  color: #4A4A4A;
}

/* =========================================================
   PRICING SECTION - FEATURED CARD
========================================================= */
.pricing-card.featured {
  border: 2px solid #006600;
  transform: scale(1.05);
  z-index: 2;
  background: linear-gradient(135deg, rgba(0, 102, 0, 0.03) 0%, rgba(10, 168, 106, 0.03) 100%);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #FF7A3C;
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* =========================================================
   LEAD MAGNET - SPECIFIC LAYOUT
========================================================= */
.lead-magnet-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: center;
}

/* =========================================================
   INTERACTIVE TOOLS & RESOURCE HUB
========================================================= */
.tool-preview {
  margin-top: 1.5rem;
}

.blog-preview {
  margin-top: 3rem;
}

/* =========================================================
   FINAL CTA SECTION
========================================================= */
.final-cta-card {
  text-align: center;
  padding: 3rem 2rem;
}

.final-cta-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.final-cta-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.85rem;
  color: #4A4A4A;
}

/* =========================================================
   HOMEPAGE RESPONSIVE OVERRIDES
========================================================= */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 2.5rem;
  }
  
  .features-grid,
  .grid-3,
  .stats-grid,
  .trust-badges-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .lead-magnet-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .process-section-layout {
    grid-template-columns: 1fr;
  }
  
  .process-sidebar-card {
    position: static;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .urgency-banner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    padding-block: 72px;
  }
  
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .hero-illustration {
    order: -1;
    margin-bottom: 2rem;
  }
  
  .features-grid,
  .grid-4,
  .stats-grid,
  .trust-badges-row {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .case-study-metrics {
    grid-template-columns: 1fr;
  }
  
  .step-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .final-cta-actions,
  .final-cta-meta {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-badge-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .trust-bar-card {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .metric-pill {
    padding: 0.5rem 0.6rem;
    font-size: 0.7rem;
  }
  
  .price-main {
    font-size: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}