/* ===== PÁGINAS INTERNAS — Estilos compartilhados ===== */

/* ==========================================================================
   BLINDAGEM DEFINITIVA ANTI-FOIC PARA TODAS AS PÁGINAS INTERNAS
   Garante visibilidade 100% imediata e incondicional em qualquer dispositivo
   ========================================================================== */
.page-hero,
.page-hero *,
.page-hero .reveal,
.page-hero .label-tech,
.page-hero h1,
.page-hero .lead,
.page-hero p,
.gallery-filters,
.gallery-filters * {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  clip-path: none !important;
}

.portfolio-catalog-grid,
.gallery-grid {
  opacity: 1 !important;
  visibility: visible !important;
}

.portfolio-catalog-grid .portfolio-item:not(.hidden),
.gallery-grid .gallery-item:not(.hidden) {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Page hero ajuste de margin-top para header fixo e compactação de altura */
.page-hero {
  margin-top: 80px;
  padding: 4rem 0 2.5rem !important;
  min-height: auto !important;
  height: auto !important;
}

@media (max-width: 768px) {
  .page-hero {
    margin-top: 70px;
    padding: 3rem 0 1.75rem !important;
  }
}

/* Breadcrumb separator */
.breadcrumb > span:not(.breadcrumb-sep):not(.current) + span {
  margin-left: 0.5rem;
}

/* Sobre — layout específico */
.about-section .about-layout {
  grid-template-columns: 1fr 1.2fr;
}

/* Serviços — âncoras de navegação */
.service-nav {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.service-nav a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--gray);
  white-space: nowrap;
  transition: all var(--duration) var(--ease);
}

.service-nav a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Serviços — grupo */
.service-group {
  padding-top: var(--space-12);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  scroll-margin-top: 100px;
}

.service-group:first-child {
  border-top: none;
  padding-top: 0;
}

.service-group-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-2);
}

.service-group-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  margin-bottom: var(--space-6);
}

.service-card-simple {
  padding: var(--space-5);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--white);
  transition: all var(--duration) var(--ease);
}

.service-card-simple:hover {
  border-color: var(--gold);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
}

.service-card-simple .service-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.service-card-simple h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.service-card-simple p {
  font-size: var(--text-sm);
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

/* FAQ */
.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: var(--space-4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  gap: var(--space-3);
  transition: color var(--duration) ease;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: transform var(--duration) var(--ease), background var(--duration) ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-4);
}

.faq-answer p {
  font-size: var(--text-sm);
  color: var(--gray);
  line-height: 1.8;
}

/* Blog — empty state */
.blog-empty-state {
  text-align: center;
  padding: var(--section-padding-y-sm) 0;
}

.blog-coming-soon-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.4rem 1rem;
  margin-bottom: var(--space-4);
}

/* Newsletter form inline */
.newsletter-form {
  display: flex;
  gap: var(--space-2);
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 0.85rem 1.125rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--gold);
}

@media (max-width: 640px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-10);
  align-items: start;
}

@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* Obrigado / 404 */
.success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  color: var(--gold);
  margin: 0 auto var(--space-4);
}

.error-404-num {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  opacity: 0.8;
  letter-spacing: -0.03em;
  display: block;
}

/* Maquete 3D section (Serviços) */
.maquete-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  background: var(--off-white);
  padding: var(--space-8);
}

.maquete-feature img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .maquete-feature {
    grid-template-columns: 1fr;
    padding: var(--space-5);
  }
}

/* ===== SERVICOS PAGE ADDITIONS ===== */

/* Feature list (usada na seção Maquetes 3D) */
.feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--gold);
  margin-top: 0.6em;
  flex-shrink: 0;
}

/* Service group sections */
.service-group {
  scroll-margin-top: 100px;
}

/* service-card-simple com flexbox para botão no bottom */
.service-card-simple {
  display: flex;
  flex-direction: column;
}

/* ===== DESIGN SYSTEM — PAGE HERO TYPOGRAPHY ===== */

/* /* 1. Badge / Eyebrow superior dourado */
.hero-eyebrow,
.page-hero .label-tech {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D99426;
  margin-bottom: 0.5rem;
}

/* 2. Título H1 — Serif branco nobre */
.hero-title,
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3.1rem) !important;
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

/* 2a. Destaque bicolor: itálico dourado */
.hero-title em,
.page-hero h1 em,
.page-hero h1 strong,
.page-hero-title em,
.page-hero-title strong {
  font-style: italic;
  font-weight: inherit;
  color: #D99426 !important;
}

/* 3. Parágrafo descritivo — cinza claro calibrado */
.hero-description,
.page-hero .hero-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 680px;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* 4. Lead legado — alta compatibilidade */
.page-hero .lead,
.page-hero p.lead,
.page-hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: var(--text-md);
  line-height: 1.7;
  max-width: 680px;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Category nav */
.service-nav a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(0,0,0,0.12);
  color: var(--gray);
  white-space: nowrap;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}

.service-nav a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== PORTFOLIO PAGE CATALOG ===== */

.portfolio-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--content-gap);
  margin-top: 1.5rem;
}

.portfolio-catalog-grid .portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark-card);
  aspect-ratio: 16/11;
  cursor: pointer;
  transition: transform 0.4s var(--ease), opacity 0.35s ease, box-shadow 0.4s ease;
}

.portfolio-catalog-grid .portfolio-item:first-child {
  grid-row: auto;
}

.portfolio-catalog-grid .portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}

.portfolio-catalog-grid .portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.portfolio-catalog-grid .portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-catalog-grid .portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 8, 8, 0.94) 0%,
    rgba(8, 8, 8, 0.45) 45%,
    transparent 80%
  );
  opacity: 0.88;
  transition: opacity var(--duration) var(--ease);
}

.portfolio-catalog-grid .portfolio-item:hover .portfolio-item-overlay {
  opacity: 1;
}

.portfolio-catalog-grid .portfolio-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transform: translateY(0);
  opacity: 1;
}

.portfolio-catalog-grid .portfolio-item-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portfolio-catalog-grid .portfolio-item-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--white);
  margin: 0;
  line-height: 1.15;
}

.portfolio-catalog-grid .portfolio-item-view {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(200, 132, 26, 0.85);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.25rem;
  transition: color 0.3s ease;
}

.portfolio-catalog-grid .portfolio-item:hover .portfolio-item-view {
  color: var(--gold-light);
}

/* Transições suaves de filtragem */
.portfolio-item,
.gallery-item {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.portfolio-item.hidden,
.gallery-item.hidden {
  opacity: 0 !important;
  transform: scale(0.95) !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .portfolio-catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PROCESSO NA PÁGINA SOBRE — FUNDO BRANCO REFINADO ===== */
#processo.bg-white {
  background: #ffffff !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#processo.bg-white .section-title {
  color: #111111 !important;
}

#processo.bg-white .section-title strong {
  color: #D99426 !important;
}

#processo.bg-white .process-steps::before,
#processo.bg-white .process-progress-line {
  background: linear-gradient(to right, rgba(200, 132, 26, 0.15), rgba(200, 132, 26, 0.45), rgba(200, 132, 26, 0.15)) !important;
  opacity: 0.6;
}

#processo.bg-white .process-step-dot {
  background: #ffffff !important;
  border: 1.5px solid #D99426 !important;
  box-shadow: 0 0 6px rgba(217, 148, 38, 0.25);
}

#processo.bg-white .process-step.step-active .process-step-dot {
  background: #D99426 !important;
  box-shadow: 0 0 10px rgba(217, 148, 38, 0.5);
}

#processo.bg-white .step-num {
  color: #D99426 !important;
  font-weight: 700;
  font-size: 0.75rem;
}

#processo.bg-white .step-icon {
  background: #ffffff !important;
  border: 1.5px solid rgba(217, 148, 38, 0.35) !important;
  color: #D99426 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#processo.bg-white .process-step:hover .step-icon {
  background: #D99426 !important;
  color: #ffffff !important;
  border-color: #D99426 !important;
  transform: translateY(-5px) scale(1.08) !important;
  box-shadow: 0 12px 24px rgba(217, 148, 38, 0.32) !important;
}

#processo.bg-white .step-title {
  color: #111111 !important;
  font-size: 1.22rem;
  font-weight: 500;
  margin-top: 0.25rem;
  margin-bottom: 0.45rem;
}

#processo.bg-white .step-text {
  color: #555555 !important;
  font-size: 0.88rem;
  line-height: 1.55;
}
