/* Portfolio Page Styles */
.hero--small {
  padding: 120px 0 80px;
  text-align: center;
  background-color: #f8f9fa;
}

.hero--small h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--brand);
}

.hero--small p {
  font-size: 1.2rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto;
}

/* Portfolio Filters */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--brand);
  color: white;
  border-color: var(--brand);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.portfolio-overlay {
  position: static;
  background: #fff;
  color: #1f2937;
  padding: .75rem .9rem;
  transform: none;
  height: auto;
  display: block;
  border-top: 1px solid #e5e7eb;
}

.portfolio-item:hover .portfolio-overlay { transform: none; }

/* Título e descrição mais compactos no card */
.portfolio-overlay h3 {
  margin: 0 0 .35rem 0;
  font-size: 1rem;
}
.portfolio-overlay p {
  margin: 0 0 .6rem 0;
  font-size: .85rem;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

/* Badge dentro do caption */
.portfolio-overlay .category-badge {
  display: inline-block;
  font-size: .72rem;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 2px 6px;
  border-radius: 999px;
  margin-bottom: .5rem;
}

/* FAQ Page Styles */
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
  justify-content: center;
}

.faq-category {
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.faq-category:hover,
.faq-category.active {
  background-color: var(--brand);
  color: white;
  border-color: var(--brand);
}

.faq-section {
  margin-bottom: 3rem;
}

.faq-section h2 {
  color: var(--brand);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.faq-item details {
  padding: 1rem;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  padding: 0.75rem 1rem;
  margin: -1rem;
  position: relative;
  list-style: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item details[open] summary::after {
  content: '-';
}

.faq-item p {
  margin: 1rem 0 0 0;
  padding: 0 1rem 1rem 1rem;
  color: #4a5568;
  line-height: 1.6;
}

.faq-cta {
  margin-top: 4rem;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.faq-cta h3 {
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.faq-cta p {
  color: #4a5568;
  margin-bottom: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-categories {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero--small {
    padding: 80px 0 50px;
  }
  
  .hero--small h1 {
    font-size: 2rem;
  }
}
