/* ==========================================================================
   INDOBUZZER - SERVICE CATALOG INDEX STYLES
   ========================================================================== */

:root {
  --primary-blue: #0048b7;
  --primary-hover: #00368a;
  --dark-navy: #0f2e5d;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --card-border: #e2e8f0;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   HERO BANNER
   -------------------------------------------------------------------------- */
.service-hero {
  background: linear-gradient(135deg, #0f2e5d 0%, #081d3d 50%, #0048b7 100%);
  padding: 130px 0 60px 0;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 114, 255, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.service-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 72, 183, 0.22) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 18px;
}

.hero-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.hero-breadcrumb a:hover {
  color: #ffffff;
}

.badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.service-hero-title {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #ffffff;
}

.service-hero-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: #cbd5e1;
  max-width: 760px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   SEARCH & FILTER BAR
   -------------------------------------------------------------------------- */
.search-wrapper {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 20px;
  color: #94a3b8;
  font-size: 18px;
  pointer-events: none;
}

.search-service-input {
  width: 100%;
  padding: 16px 48px 16px 52px;
  font-size: 15px;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.25);
  outline: none;
  transition: all 0.2s ease;
  color: #0f172a;
}

.search-service-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

.search-clear-btn {
  position: absolute;
  right: 16px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  display: none;
}

.search-clear-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   FILTER TABS
   -------------------------------------------------------------------------- */
.filter-tabs-wrapper {
  background: #ffffff;
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 70px;
  z-index: 1020;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.filter-tabs-scroll {
  display: flex;
  gap: 8px;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-tab img.tab-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.filter-tab .tab-badge {
  background: #e2e8f0;
  color: #475569;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.filter-tab:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--primary-blue);
}

.filter-tab.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 72, 183, 0.25);
}

.filter-tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   CATALOG CONTAINER & GRID
   -------------------------------------------------------------------------- */
.catalog-section {
  padding: 40px 0 80px 0;
  min-height: 50vh;
}

.catalog-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog-result-count {
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.catalog-result-count strong {
  color: var(--text-main);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* --------------------------------------------------------------------------
   SERVICE CARD
   -------------------------------------------------------------------------- */
.service-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(15, 46, 93, 0.03);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(15, 46, 93, 0.1);
  border-color: #cbd5e1;
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.platform-pill img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.badge-featured {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #d1fae5;
  padding: 3px 8px;
  border-radius: 6px;
}

.service-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 10px;
  line-height: 1.4;
}

.service-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.service-card-title a:hover {
  color: var(--primary-blue);
}

.service-card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.service-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #64748b;
}

.service-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.btn-card-detail {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  background: #eff6ff;
  color: var(--primary-blue);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-card-detail:hover {
  background: var(--primary-blue);
  color: #ffffff;
}

.btn-card-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 14px;
  background: #22c55e;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-card-order:hover {
  background: #16a34a;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   EMPTY / NO RESULTS STATE
   -------------------------------------------------------------------------- */
.no-results-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 1px dashed var(--card-border);
  border-radius: 16px;
  display: none;
}

.no-results-icon {
  font-size: 48px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.no-results-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 8px;
}

.no-results-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 20px auto;
}

.btn-reset-filter {
  padding: 8px 18px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset-filter:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   BOTTOM CTA SECTION
   -------------------------------------------------------------------------- */
.service-cta-banner {
  background: linear-gradient(135deg, #0f2e5d 0%, #0048b7 100%);
  border-radius: 20px;
  padding: 44px 36px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  gap: 24px;
  box-shadow: 0 20px 40px -10px rgba(0, 72, 183, 0.3);
}

.cta-banner-text h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.cta-banner-text p {
  color: #cbd5e1;
  font-size: 15px;
  margin: 0;
  max-width: 600px;
  line-height: 1.5;
}

.btn-cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #22c55e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
  transition: all 0.2s ease;
}

.btn-cta-whatsapp:hover {
  background: #16a34a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.4);
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .service-hero {
    padding: 110px 0 50px 0;
  }

  .filter-tabs-wrapper {
    top: 60px;
  }

  .service-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
  }

  .cta-banner-text p {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-hero {
    padding: 95px 15px 40px 15px;
  }

  .service-card {
    padding: 18px 16px;
  }

  .service-card-title {
    font-size: 16px;
  }

  .service-cta-banner {
    padding: 28px 18px;
  }

  .service-cta-banner h3 {
    font-size: 20px;
  }
}
