/**
 * servicos.css — Estilos específicos da página de listagem de serviços
 * Complementa style-2.css (design system base)
 */

/* ════════════════════════════════════════════════
   PAGE HEADER
════════════════════════════════════════════════ */
.page-header {
  padding-top: 120px;
  padding-bottom: 3rem;
  background: linear-gradient(180deg, #080c18 0%, #0d1225 100%);
  border-bottom: 1px solid rgba(0, 212, 255, .12);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, .07) 0%, transparent 70%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 10%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 47, 255, .05) 0%, transparent 70%);
  pointer-events: none;
}

.page-header-inner { position: relative; z-index: 1; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--clr-text-muted);
  margin-bottom: 1.25rem;
  list-style: none;
  padding: 0;
}
.breadcrumb a {
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb a:hover { color: var(--clr-primary); }
.breadcrumb-sep { color: rgba(255, 255, 255, .2); }
.breadcrumb-current { color: var(--clr-primary); }

/* Page title */
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .75rem;
  line-height: 1.2;
}
.page-title span {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 540px;
}

/* Stats bar */
.page-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.page-stat {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--clr-text-muted);
}
.page-stat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-primary);
  box-shadow: 0 0 8px rgba(0, 212, 255, .5);
  flex-shrink: 0;
}
.page-stat strong { color: var(--clr-text); }


/* ════════════════════════════════════════════════
   FILTER PANEL — sticky
════════════════════════════════════════════════ */
.filter-section {
  padding: 1.5rem 0 1.25rem;
  position: sticky;
  top: 72px;
  z-index: 90;
  background: rgba(8, 12, 24, .95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, .08);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.filter-field { display: flex; flex-direction: column; gap: .45rem; }

.filter-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--clr-text-muted);
}

.filter-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-input-wrap svg {
  position: absolute;
  left: .9rem;
  color: var(--clr-text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.filter-input {
  width: 100%;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: .65rem .85rem .65rem 2.4rem;
  color: var(--clr-text);
  font-size: .9rem;
  font-family: var(--font-body);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.filter-input::placeholder { color: rgba(255, 255, 255, .3); }
.filter-input:focus {
  border-color: rgba(0, 212, 255, .5);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, .1);
}

.filter-select {
  width: 100%;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: .65rem .85rem;
  color: var(--clr-text);
  font-size: .9rem;
  font-family: var(--font-body);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  transition: border-color .2s, box-shadow .2s;
}
.filter-select:focus {
  border-color: rgba(0, 212, 255, .5);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, .1);
}
.filter-select option { background: #0d1225; color: var(--clr-text); }

.filter-actions {
  display: flex;
  gap: .6rem;
}

.btn-filter {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .68rem 1.4rem;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.btn-filter:hover { opacity: .88; transform: translateY(-1px); }
.btn-filter:active { transform: translateY(0); }

.btn-clear {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .68rem .9rem;
  background: transparent;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text-muted);
  font-size: .85rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.btn-clear:hover { border-color: rgba(255, 255, 255, .4); color: var(--clr-text); }

/* Results count */
.results-count {
  margin-top: .9rem;
  font-size: .82rem;
  color: var(--clr-text-muted);
}
.results-count strong { color: var(--clr-primary); }


/* ════════════════════════════════════════════════
   SERVICES LIST — grid 2 colunas
════════════════════════════════════════════════ */
.services-list-section {
  padding: 1.5rem 0 5rem;
}

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}


/* ════════════════════════════════════════════════
   SERVICE ROW — vertical full-width
   Ordem: [header: cat+nome+benefício] → [foto] → [chamada] → [cta]
════════════════════════════════════════════════ */
.service-row {
  display: flex;
  flex-direction: column;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .25s, box-shadow .25s, transform .2s;
}

.service-row:hover {
  border-color: rgba(0, 212, 255, .4);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 212, 255, .1);
  transform: translateY(-2px);
}

/* ── 1. Header: categoria → nome → benefício (empilhados) ── */
.srow-info {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .85rem 1.5rem;
  border-bottom: 1px solid var(--clr-border);
  min-width: 0;
}

.srow-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--clr-text-muted);
}
.srow-cat-chip svg,
.srow-cat-chip i { flex-shrink: 0; font-size: 11px; }

.srow-info-sep { display: none; }

.srow-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.2;
}

.srow-meta { display: contents; }

.srow-benefit {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 100px;
  border: 1px solid;
  white-space: nowrap;
  width: fit-content;
}

/* ── 2. Foto ── */
.srow-photo {
  position: relative;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
}



.srow-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
  display: block;
}

.service-row:hover .srow-photo img {
  transform: scale(1.04);
}

.srow-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    transparent 50%,
    rgba(8, 12, 24, .55) 100%
  );
  pointer-events: none;
}

/* ── 3. Chamada (descrição) ── */
.srow-desc {
  font-size: .85rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
  padding: .65rem 1.5rem;
  border-bottom: 1px solid var(--clr-border);
}

/* ── 4. CTA ── */
.srow-cta {
  padding: .65rem 1.5rem;
}

.srow-cta-number { display: none !important; }

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .filter-grid > :last-child { grid-column: 1 / -1; }
  .services-list { max-width: 100%; }
  .srow-photo { height: 170px; }
}

/* Botão WA — mantido para uso eventual */
.srow-btn-wa { display: none; }

.srow-btn-more i { font-size: 11px; }

.srow-btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 100%;
  padding: .6rem 1rem;
  background: transparent;
  border: 1px solid rgba(0, 212, 255, .25);
  border-radius: var(--radius-sm);
  color: var(--clr-primary);
  font-size: .82rem;
  font-weight: 500;
  font-family: var(--font-body);
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.srow-btn-more:hover {
  background: rgba(0, 212, 255, .07);
  border-color: rgba(0, 212, 255, .55);
  color: #fff;
}


/* ════════════════════════════════════════════════
   EMPTY STATE
════════════════════════════════════════════════ */
.empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  gap: 1rem;
  color: var(--clr-text-muted);
}
.empty-state.visible { display: flex; }

.empty-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .2);
}

.empty-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-text);
}

.empty-sub { font-size: .9rem; max-width: 320px; }


/* ════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .45);
  animation: wa-pulse 2.5s ease-in-out infinite;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { flex-shrink: 0; }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, .45); }
  50%       { box-shadow: 0 4px 32px rgba(37, 211, 102, .7), 0 0 0 8px rgba(37, 211, 102, .12); }
}


/* ════════════════════════════════════════════════
   ANIMATIONS — fade-in on load
════════════════════════════════════════════════ */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.service-row {
  opacity: 0;
  animation: fadeSlideIn .45s ease forwards;
}
.service-row:nth-child(1) { animation-delay: .06s; }
.service-row:nth-child(2) { animation-delay: .12s; }
.service-row:nth-child(3) { animation-delay: .18s; }
.service-row:nth-child(4) { animation-delay: .24s; }
.service-row:nth-child(5) { animation-delay: .30s; }
.service-row:nth-child(6) { animation-delay: .36s; }


/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .services-list {
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
  }
  .srow-photo { height: 155px; }
}

@media (max-width: 640px) {
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .filter-grid > :last-child { grid-column: 1 / -1; }

  /* Mobile: 1 coluna */
  .services-list {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .srow-photo { height: 200px; }
}

@media (max-width: 480px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .page-stats { gap: 1rem; }
  .service-row { border-radius: var(--radius-md); }
}
