/* ============================================
   Bedigital.pk — Components CSS
   Buttons, Cards, Icon Tiles, Strips
   ============================================ */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--brand-blue);
  color: white;
}

.btn--primary:hover {
  background-color: #1565d8;
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* WhatsApp buttons */
a[href*="wa.me"].btn {
  background-color: #25D366;
}

a[href*="wa.me"].btn:hover {
  background-color: #1ebe5d;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

a[href*="wa.me"].btn--secondary {
  background-color: transparent;
  color: #25D366;
  border-color: #25D366;
}

a[href*="wa.me"].btn--secondary:hover {
  background-color: #25D366;
  color: white;
}

.btn--secondary {
  background-color: transparent;
  color: var(--brand-blue);
  border: 1.5px solid var(--brand-blue);
}

.btn--secondary:hover {
  background-color: var(--brand-blue);
  color: white;
}

/* Secondary buttons on dark backgrounds */
.section--dark .btn--secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.section--dark .btn--secondary:hover {
  background-color: white;
  color: var(--brand-blue);
  border-color: white;
}

.btn--ghost {
  background-color: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background-color: var(--mist);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn i,
.btn .fa-brands,
.btn .fa-solid,
.btn .fa-regular {
  font-size: 1em;
  line-height: 1;
}

/* --- Icon Tiles --- */
.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  background-color: white;
  color: var(--brand-blue);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.icon-tile:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.icon-tile svg {
  width: 20px;
  height: 20px;
}

.icon-tile i,
.icon-tile .fa-solid,
.icon-tile .fa-regular,
.icon-tile .fa-brands {
  font-size: 20px;
  line-height: 1;
}

/* --- Cards --- */
.card {
  background-color: white;
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__icon {
  margin-bottom: var(--space-lg);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: 0.9375rem;
  color: var(--ink);
  opacity: 0.7;
}

/* --- Service List (2-column icon-label) --- */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.service-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background-color: white;
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.service-item:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.service-item__label {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* --- Benefit / Ideal-For Strip --- */
.strip {
  background-color: var(--navy-deep);
  color: white;
  padding: var(--space-2xl) 0;
  margin: var(--space-3xl) calc(-50vw + 50%);
}

.strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.strip__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.strip__title span {
  color: var(--sky);
}

.strip__items {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: white;
  opacity: 0.9;
}

.strip__check {
  width: 20px;
  height: 20px;
  color: var(--success);
}

/* --- Stat Block --- */
.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--brand-blue);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__delta {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--success);
  font-weight: 500;
}

.stat__label {
  font-size: 0.875rem;
  color: var(--ink);
  opacity: 0.6;
  margin-top: var(--space-xs);
}

/* Invert stat labels in dark sections */
.section--dark .stat__label {
  color: white;
  opacity: 0.7;
}

/* --- Tag / Eyebrow --- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand-blue);
  background-color: rgba(30, 115, 232, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Headline Split Color Pattern --- */
.headline-split {
  color: var(--ink);
}

.headline-split span {
  color: var(--brand-blue);
}

.section--dark .headline-split {
  color: white;
}

.section--dark .headline-split span {
  color: var(--sky);
}

/* --- Responsive: Service List --- */
@media (max-width: 768px) {
  .service-list {
    grid-template-columns: 1fr;
  }

  .strip__inner {
    flex-direction: column;
    text-align: center;
  }

  .strip__items {
    justify-content: center;
  }
}
