/* =====================================================
   PREMIUM.CSS — Lindem Engenharia e Arquitetura
   Refinamentos Visuais de Segunda Etapa
   ===================================================== */

/* ===== 1. KEYFRAMES PREMIUM ===== */

/* Ken Burns cinematográfico no Hero */
@keyframes heroBgKenBurns {
  0%   { transform: scale(1) translateY(0); }
  50%  { transform: scale(1.06) translateY(-1%); }
  100% { transform: scale(1) translateY(0); }
}

/* Loader linha arquitetônica */
@keyframes loaderLineDraw {
  0%   { width: 0; opacity: 0; }
  20%  { opacity: 1; }
  100% { width: 200px; opacity: 1; }
}

/* Linha do processo crescendo */
@keyframes processLineGrow {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

/* Clip-path reveal de baixo para cima */
@keyframes clipRevealUp {
  from { clip-path: inset(100% 0 0 0); opacity: 0.5; }
  to   { clip-path: inset(0% 0 0 0); opacity: 1; }
}

/* Linha vertical crescendo para baixo */
@keyframes lineGrowDown {
  from { height: 0; }
  to   { height: var(--line-h, 60px); }
}

/* Shimmer sutil */
@keyframes subtleShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Pulse para indicadores pequenos */
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

/* ===== 2. HERO PREMIUM ===== */

/* Ken Burns na imagem de fundo */
.hero-bg img {
  animation: heroBgKenBurns 25s ease-in-out infinite;
  will-change: transform;
}

/* Overlay reforçado — mais dramático à esquerda, mais aberto à direita */
.hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(5, 5, 5, 0.92) 0%,
    rgba(10, 10, 10, 0.75) 45%,
    rgba(10, 10, 10, 0.30) 100%
  );
}

/* Textura arquitetônica ultra-sutil sobre o Hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 79px,
      rgba(255, 255, 255, 0.012) 80px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(255, 255, 255, 0.012) 80px
    );
  pointer-events: none;
}

/* Gradient radial de profundidade no centro-esquerdo */
.hero-content::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,132,26,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Hero label */
.hero .label-tech {
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  opacity: 0.9;
  margin-bottom: 1.2rem;
}

/* Hero title refinado */
.hero-title {
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
  letter-spacing: -0.03em;
}

.hero-title em {
  font-style: italic;
  position: relative;
}

/* Subtítulo do hero */
.hero-subtitle {
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* Scroll indicator — refinado */
.hero-scroll {
  gap: 0.75rem;
}

.hero-scroll-line {
  height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: heroScrollPulse 2.4s ease-in-out infinite;
}

/* ===== 3. LOADER PREMIUM ===== */

/* Barra mais longa e elemento de linha */
.site-loader {
  gap: 0;
  flex-direction: column;
  align-items: center;
}

.loader-logo {
  margin-bottom: 2.5rem;
}

/* Linha arquitetônica antes da barra */
.loader-line-arch {
  width: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  animation: loaderLineDraw 0.7s 0.15s var(--ease) forwards;
  margin-bottom: 1rem;
}

.loader-bar {
  width: 160px;
  margin-top: 0;
}

/* ===== 4. HEADER PREMIUM ===== */

/* Scrolled: sombra arquitetônica mais refinada */
.site-header.scrolled {
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(200,132,26,0.15),
    0 4px 30px rgba(0,0,0,0.3);
  border-bottom: none;
}

/* Linha dourada na base do header ao scrollar */
.site-header.scrolled::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200,132,26,0.3), transparent);
}

/* Nav links — microinteração refinada */
.nav-links a {
  position: relative;
}

.nav-links a::before {
  content: attr(data-char);
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

/* Nav link underline — dois pixels dourados que se encontram do centro */
.nav-links a::after {
  width: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: width 0.35s var(--ease), transform 0.35s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  transform: translateX(-50%) scaleX(1);
}

/* ===== 5. PILLAR BAR ===== */

.pillar-item {
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.pillar-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.pillar-item:hover::before {
  transform: scaleX(1);
}

.pillar-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pillar-label::before {
  content: '—';
  font-size: 0.6rem;
  opacity: 0.4;
}

/* ===== 6. ELEMENTO ASSINATURA — LINHA LATERAL ===== */
/*
   Linha técnica vertical com número de seção
   Aparece no lado esquerdo de seções selecionadas
   Percorre a identidade visual de forma coesa
*/
.section-signature {
  position: absolute;
  left: calc(var(--gutter) - 1.5rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
  z-index: 2;
}

.section-signature-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(200, 132, 26, 0.5);
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.section-signature-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(200,132,26,0.6), transparent);
}

/* Ocultar signature em telas < 1300px */
@media (max-width: 1300px) {
  .section-signature {
    display: none;
  }
}

/* Seção com posição relative para suportar signature */
.has-signature {
  position: relative;
}

/* ===== 7. SEÇÃO SOBRE — EDITORIAL ===== */

.about-img-wrap {
  position: relative;
}

/* Frame dourado mais elegante */
.about-img-frame {
  opacity: 0.35;
  transition: opacity 0.5s ease;
}

.about-img-wrap:hover .about-img-frame {
  opacity: 0.6;
}

/* Badge elevado */
.about-badge {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(200, 132, 26, 0.4);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(200, 132, 26, 0.15);
}

.about-badge .about-badge-label {
  color: #d49a3d !important;
}

.about-badge .about-badge-value {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Highlights refinados */
.about-highlight {
  border-left-width: 2px;
  padding: 0.85rem var(--space-3);
  transition: background 0.3s ease, border-left-color 0.3s ease;
}

.about-highlight:hover {
  background: rgba(200,132,26,0.1);
  border-left-color: var(--gold-light);
}

.about-highlight .label-tech {
  font-size: 0.65rem;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

/* ===== 8. BIM SECTION ===== */

/* Profundidade visual melhorada no BIM stack */
.bim-stack-img:nth-child(1) {
  filter: brightness(1);
  border: 1px solid rgba(200,132,26,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.bim-stack-img:nth-child(2) {
  border: 1px solid rgba(91,141,184,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.bim-stack-img:nth-child(3) {
  border: 1px solid rgba(123,158,112,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Labels flutuantes nas camadas BIM */
.bim-layer-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.bim-layer-label-arch {
  top: -0.5rem;
  right: 1rem;
  color: rgba(200,132,26,0.7);
  border-color: rgba(200,132,26,0.3);
}

.bim-layer-label-struct {
  top: 0.5rem;
  left: 1.5rem;
  color: rgba(91,141,184,0.7);
  border-color: rgba(91,141,184,0.3);
}

.bim-layer-label-mep {
  bottom: 0.5rem;
  right: 1.5rem;
  color: rgba(123,158,112,0.7);
  border-color: rgba(123,158,112,0.3);
}

/* Linha superior na seção BIM */
.bim-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200,132,26,0.2), transparent);
}

/* ===== 9. SERVICE CARDS PREMIUM ===== */

/* Overlay mais sofisticado */
.service-card-overlay {
  background: linear-gradient(
    to top,
    rgba(5, 5, 5, 0.97) 0%,
    rgba(5, 5, 5, 0.5) 50%,
    rgba(5, 5, 5, 0.0) 100%
  );
}

/* Número visível mesmo sem hover */
.service-card-num {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

/* Título do card com mais presença */
.service-card-title {
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin-bottom: var(--space-2);
}

/* Efeito de borda dourada no hover */
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: 3;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* ===== 10. PORTFOLIO ITEMS ===== */

/* Overlay sempre visível (levemente) para mobile */
.portfolio-item-overlay {
  background: linear-gradient(
    to top,
    rgba(5, 5, 5, 0.90) 0%,
    rgba(5, 5, 5, 0.2) 50%,
    transparent 100%
  );
  opacity: 0.4; /* sempre visível sutilmente */
}

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

/* Info sempre parcialmente visível */
.portfolio-item-info {
  transform: translateY(6px);
  opacity: 0.7;
}

.portfolio-item:hover .portfolio-item-info {
  transform: translateY(0);
  opacity: 1;
}

/* "Ver projeto" cursor label */
.portfolio-item-view {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(200,132,26,0.8);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item-view::after {
  content: '→';
  font-size: 0.7rem;
}

.portfolio-item:hover .portfolio-item-view {
  opacity: 1;
  transform: translateX(0);
}

/* ===== 11. SEÇÃO PROCESSO — LINHA PROGRESSIVA ===== */

/* Container do processo com linha horizontal refinada */
.process-steps {
  gap: 0;
}

/* Linha horizontal reestilizada */
.process-steps::before {
  background: linear-gradient(to right, var(--gold), rgba(200,132,26,0.1));
  height: 1px;
  opacity: 0.4;
}

/* Ícone animado no hover */
.process-step:hover .step-icon {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 0 20px rgba(200,132,26,0.3);
}

/* Número da etapa mais visível */
.step-num {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

/* Título da etapa refinado */
.step-title {
  letter-spacing: 0.005em;
  font-weight: 400;
  font-size: var(--text-xl);
}

/* Texto da etapa */
.step-text {
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 160px;
  margin: 0 auto;
}

/* ===== 12. DIFERENCIAIS ===== */

/* Número de fundo mais impactante */
.diff-item-num {
  font-size: 7rem;
  color: rgba(200, 132, 26, 0.07);
  top: -1.5rem;
  right: 0.5rem;
  font-weight: 700;
}

/* Border dourado no hover */
.diff-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.diff-item:hover {
  border-color: rgba(200,132,26,0.2);
  box-shadow: 0 8px 40px rgba(200,132,26,0.08);
  transform: translateY(-4px);
}

/* ícone com linha acima */
.diff-icon {
  position: relative;
  z-index: 1;
}

.diff-icon::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  margin-top: 0.5rem;
  opacity: 0.5;
}

/* ===== 13. CTA FINAL ===== */

/* Overlay mais cinematográfico — radial + sólido */
.cta-overlay {
  background:
    radial-gradient(ellipse at center, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.82) 100%);
}

/* Linhas técnicas nas laterais do CTA */
.cta-section::before {
  content: '';
  position: absolute;
  top: var(--space-8);
  left: var(--gutter);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0.3;
  z-index: 2;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: var(--space-8);
  right: var(--gutter);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0.3;
  z-index: 2;
}

/* Headline do CTA com mais respiro */
.cta-content .section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem) !important;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* Label acima do título CTA */
.cta-content .label-tech {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

/* ===== 14. BOTÕES PREMIUM ===== */

/* Btn gold — refinado */
.btn-gold {
  letter-spacing: 0.09em;
  font-size: var(--text-xs);
  position: relative;
  overflow: hidden;
}

/* Shimmer no btn-gold */
.btn-gold::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn-gold:hover::after {
  left: 140%;
}

/* Btn outline — borda mais presente */
.btn-outline {
  letter-spacing: 0.09em;
  font-size: var(--text-xs);
}

/* Btn dark — refinado */
.btn-dark {
  letter-spacing: 0.09em;
  font-size: var(--text-xs);
}

/* Btn sizes refinados */
.btn-lg {
  padding: 1.15rem 2.75rem;
}

/* ===== 15. FORMULÁRIO DE CONTATO PREMIUM ===== */

/* Input refinado */
.form-input,
.form-select,
.form-textarea {
  border-radius: 0;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.12);
  padding: 1rem 1.125rem;
  font-size: var(--text-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200,132,26,0.1), 0 2px 12px rgba(200,132,26,0.08);
}

/* Label em mono */
.form-label {
  color: rgba(0,0,0,0.55);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

/* ===== 16. GALERIA PREMIUM ===== */

/* Overlay da galeria com zoom icon mais refinado */
.gallery-item-overlay {
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(2px);
}

/* Zoom icon com borda */
.gallery-zoom-icon {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-zoom-icon {
  border-color: var(--gold);
  transform: scale(1.1) !important;
}

/* ===== 17. PAGE HERO (PÁGINAS INTERNAS) ===== */

.page-hero {
  background: var(--black);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  padding: 4rem 0 2.5rem;
  min-height: auto;
  height: auto;
}

/* Texture sutil no page hero */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(255, 255, 255, 0.015) 80px
    );
  pointer-events: none;
  opacity: 0.5;
}

/* Linha decorativa direita no page hero */
.page-hero .container {
  position: relative;
}

/* H1 nas páginas internas — Design System */
.page-hero h1,
.hero-title {
  font-size: clamp(2.1rem, 3.8vw, 3.1rem) !important;
  color: var(--white);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.hero-title em,
.page-hero h1 em,
.page-hero h1 strong {
  font-style: italic;
  font-weight: inherit;
  color: #D99426 !important;
}

.hero-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D99426;
  margin-bottom: 0.5rem;
}

.hero-description,
.page-hero .hero-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 680px;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 680px;
}

/* Breadcrumb refinado */
.breadcrumb {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-3);
}

.breadcrumb a {
  color: rgba(255,255,255,0.4);
  transition: color 0.25s ease;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb .current {
  color: var(--gold);
}

/* ===== 18. FOOTER PREMIUM ===== */

/* Linha superior dourada no footer */
.site-footer {
  border-top: none;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200,132,26,0.25), transparent);
}

/* Logo no footer com filtro branco refinado */
.footer-brand img {
  opacity: 0.85;
}

/* Footer nav link — indent no hover mais elegante */
.footer-nav a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0;
  transition: width 0.3s ease, margin-right 0.3s ease;
  overflow: hidden;
}

.footer-nav a:hover::before {
  width: 12px;
  margin-right: 6px;
}

.footer-nav a:hover {
  padding-left: 0;
  color: var(--gold);
}

/* ===== 19. WHATSAPP FLUTUANTE PREMIUM ===== */

.btn-whatsapp {
  box-shadow:
    0 4px 20px rgba(37, 211, 102, 0.25),
    0 2px 8px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-whatsapp:hover {
  box-shadow:
    0 8px 30px rgba(37, 211, 102, 0.4),
    0 4px 12px rgba(0,0,0,0.25);
}

/* ===== 20. BLOG SECTION ===== */

/* Blog estado "Em breve" — aparência intencional */
.blog-coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(200,132,26,0.1);
  border: 1px solid rgba(200,132,26,0.25);
  padding: 0.3rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.blog-coming-soon-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: dotPulse 2s ease-in-out infinite;
}

/* ===== 21. SCROLL REVEAL VARIAÇÕES (Progressive Enhancement) ===== */
.reveal-clip,
.reveal-subtle {
  opacity: 1;
  visibility: visible;
  transform: none;
  clip-path: none;
}

/* Reveal com clip-path condicionado ao JS */
html.js-ready .reveal-clip:not(.visible) {
  opacity: 0;
  clip-path: inset(20% 0 0 0);
  transition:
    opacity var(--duration-slower) var(--ease),
    clip-path var(--duration-slower) var(--ease);
}

.reveal-clip.visible {
  opacity: 1 !important;
  visibility: visible !important;
  clip-path: inset(0% 0 0 0) !important;
}

/* Reveal com scale mínimo condicionado ao JS */
html.js-ready .reveal-subtle:not(.visible) {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal-subtle.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

/* Stagger adicional */
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }

/* ===== 22. SECTION TRANSITIONS ===== */

/* Gradiente sutil de transição entre seções */
.section-fade-dark {
  position: relative;
}

.section-fade-dark::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--dark));
  pointer-events: none;
  z-index: 1;
}

/* ===== 23. SECTION DIVIDER PREMIUM ===== */

.section-divider {
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  opacity: 0.9;
}

/* ===== 24. NEWSLETTER BLOG — OCULTAR AVISO ===== */

/* Ocultar aviso de "formulário visual" do blog */
.newsletter-disclaimer {
  display: none !important;
}

/* ===== 25. BACKGROUND TEXTURA ===== */

/* Off-white com textura muito sutil */
.bg-textured {
  background-color: var(--off-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23f8f6f2'/%3E%3Crect width='1' height='1' fill='rgba(0,0,0,0.03)'/%3E%3C/svg%3E");
}

/* ===== 26. MOBILE PREMIUM ===== */

@media (max-width: 768px) {
  /* Ken Burns mais sutil no mobile */
  .hero-bg img {
    animation-duration: 30s;
  }

  /* Overlay mais escuro no mobile para legibilidade */
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(5, 5, 5, 0.85) 0%,
      rgba(5, 5, 5, 0.75) 60%,
      rgba(5, 5, 5, 0.60) 100%
    );
  }

  /* Título hero no mobile */
  .hero-title {
    line-height: 1.05;
  }

  /* Process steps no mobile */
  .process-step {
    padding: var(--space-3) var(--space-1);
  }

  .step-text {
    max-width: 100%;
  }

  /* Diff grid no mobile */
  .diff-item-num {
    font-size: 5rem;
    opacity: 0.06;
  }
}

@media (max-width: 480px) {
  /* Formulário fullwidth no mobile */
  .btn-lg {
    padding: 1rem 1.75rem;
    font-size: 0.8rem;
  }

  /* Hero label menor no mobile */
  .hero .label-tech {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
  }
}

/* ===== 27. PREFERS-REDUCED-MOTION ===== */

@media (prefers-reduced-motion: reduce) {
  .hero-bg img {
    animation: none !important;
  }

  .loader-line-arch {
    animation: none !important;
    width: 200px;
    opacity: 1;
  }

  .reveal-clip,
  .reveal-subtle {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =====================================================
   FASE 3 — EVOLUCAO VISUAL PROFUNDA
   ===================================================== */

/* ===== 28. HERO EDITORIAL ===== */
.hero-tech-indicator {
  position: absolute;
  top: calc(var(--space-20) + 72px);
  left: var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(200,132,26,0.45);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-tech-indicator::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: rgba(200,132,26,0.4);
  flex-shrink: 0;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  position: relative;
  display: inline-block;
}
.hero-title em::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--gold), rgba(200,132,26,0.3));
}
.hero-coords {
  position: absolute;
  bottom: var(--space-8);
  left: var(--gutter);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hero-coords::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: rgba(200,132,26,0.4);
  flex-shrink: 0;
}
@keyframes svgLineDraw {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}
.hero-arch-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-arch-svg .draw-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: svgLineDraw 1.8s 0.8s var(--ease) forwards;
}
.hero-arch-svg .draw-rect {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: svgLineDraw 1.2s 1.2s var(--ease) forwards;
}

/* ===== 29. SERVICES HOME — GRID HARMONIOSO E EQUILIBRADO ===== */
.services-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.service-card-home {
  position: relative;
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-5);
  text-decoration: none;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.service-card-home:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 132, 26, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.service-card-home .service-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.service-card-home .service-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s ease;
  filter: brightness(0.8);
}

.service-card-home:hover .service-card-bg img {
  transform: scale(1.08);
  filter: brightness(0.92);
}

.service-card-home .service-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(8, 8, 8, 0.97) 0%,
    rgba(8, 8, 8, 0.7) 48%,
    rgba(8, 8, 8, 0.25) 80%,
    transparent 100%
  );
  transition: background 0.4s ease;
}

.service-card-home:hover .service-card-overlay {
  background: linear-gradient(
    to top,
    rgba(8, 8, 8, 0.98) 0%,
    rgba(8, 8, 8, 0.6) 48%,
    rgba(8, 8, 8, 0.15) 80%,
    transparent 100%
  );
}

.service-card-home .service-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.service-card-home .service-card-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card-home .service-card-num::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: rgba(200, 132, 26, 0.4);
}

.service-card-home .service-card-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--space-2);
}

.service-card-home .service-card-text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: var(--space-3);
  max-height: none;
  opacity: 1;
}

.service-card-home .service-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: gap 0.3s ease, color 0.3s ease;
}

.service-card-home:hover .service-card-arrow {
  color: var(--gold-light);
  gap: 0.75rem;
}

.service-card-home::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: 3;
}

.service-card-home:hover::before {
  transform: scaleX(1);
}

@media (max-width: 1024px) {
  .services-grid-home {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
}

@media (max-width: 600px) {
  .services-grid-home {
    grid-template-columns: 1fr;
  }
  .service-card-home {
    height: 420px;
  }
}

/* ===== 30. PORTFOLIO HIERARCHY ===== */
.portfolio-grid-v2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-2);
  min-height: 560px;
}
.portfolio-item--featured { grid-row: span 2; min-height: 560px; }
.portfolio-item--secondary { min-height: 270px; }
.portfolio-item--featured .portfolio-item-overlay {
  background: linear-gradient(to top,rgba(5,5,5,.95) 0%,rgba(5,5,5,.4) 40%,transparent 70%);
}
.portfolio-item--featured .portfolio-item-info { padding: var(--space-5); }
.portfolio-item--featured .portfolio-item-name { font-size: var(--text-3xl); }
.portfolio-item-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200,132,26,.85);
  margin-bottom: var(--space-1);
  display: block;
}
.portfolio-item-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(255,255,255,.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s ease, transform .3s ease;
}
.portfolio-item:hover .portfolio-item-arrow { opacity: 1; transform: translateX(0); }
.portfolio-item:hover .portfolio-item-arrow svg { transform: translateX(4px); }
.portfolio-item-arrow svg { transition: transform .3s ease; }
@media (max-width: 768px) {
  .portfolio-grid-v2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: unset;
  }
  .portfolio-item--featured { grid-row: span 1; min-height: 360px; }
  .portfolio-item--secondary { min-height: 240px; }
}

/* ===== 31. BIM LAYERS DIAGRAM ===== */
.bim-layers-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.bim-layer-card {
  position: relative;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-3) var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease, border-color .3s ease, background .3s ease;
  overflow: hidden;
}
.bim-layer-card.visible { opacity: 1; transform: translateY(0); }
.bim-layer-card:nth-child(1) { transition-delay: .05s; }
.bim-layer-card:nth-child(2) { transition-delay: .18s; }
.bim-layer-card:nth-child(3) { transition-delay: .31s; }
.bim-layer-card:nth-child(4) { transition-delay: .44s; }
.bim-layer-card--arch:hover { border-color: rgba(200,132,26,.4); background: rgba(200,132,26,.04); }
.bim-layer-card--struct:hover { border-color: rgba(91,141,184,.4); background: rgba(91,141,184,.04); }
.bim-layer-card--mep:hover { border-color: rgba(123,158,112,.4); background: rgba(123,158,112,.04); }
.bim-layer-card--result { border-color: rgba(200,132,26,.18); background: rgba(200,132,26,.03); }
.bim-layer-card--result:hover { border-color: rgba(200,132,26,.5); background: rgba(200,132,26,.07); }
.bim-layer-card-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-top: auto;
}
.bim-layer-card--arch .bim-layer-card-label { color: rgba(200,132,26,.7); }
.bim-layer-card--struct .bim-layer-card-label { color: rgba(91,141,184,.7); }
.bim-layer-card--mep .bim-layer-card-label { color: rgba(123,158,112,.7); }
.bim-layer-card--result .bim-layer-card-label { color: var(--gold); }
.bim-layer-card svg { width: 100%; height: auto; max-height: 110px; }
.bim-layer-card::before {
  content: attr(data-layer);
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: rgba(255,255,255,.15);
  letter-spacing: 0.1em;
}
@media (max-width: 480px) {
  .bim-layers-diagram { grid-template-columns: 1fr; }
}

/* ===== 32. PROCESSO DOTS ===== */
.process-step { position: relative; }
.process-step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(200,132,26,.25);
  border: 1px solid rgba(200,132,26,.35);
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  transition: background .5s ease, border-color .5s ease, box-shadow .5s ease;
  z-index: 2;
}
.process-step.step-active .process-step-dot {
  background: var(--gold);
  border-color: var(--gold-light);
  box-shadow: 0 0 14px rgba(200,132,26,.5);
}
.process-step.step-active .process-step-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(200,132,26,.25);
  animation: dotPulse 2.2s ease-in-out infinite;
}
.process-progress-line {
  position: absolute;
  top: 3.5rem; left: 5%;
  height: 1px;
  background: linear-gradient(to right, var(--gold), rgba(200,132,26,.2));
  z-index: 1;
  width: 0;
  transition: width 1.8s var(--ease);
}
.process-progress-line.animated { width: 90%; }

/* ===== 33. DIFERENCIAIS EDITORIAL ===== */
.diff-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
}
.diff-grid-v2::before {
  content: '';
  position: absolute;
  top: var(--space-6); bottom: var(--space-6);
  left: 50%; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(200,132,26,.12), transparent);
  pointer-events: none;
}
.diff-item-v2 {
  padding: var(--space-8) var(--space-8);
  position: relative;
  border-bottom: 1px solid rgba(200,132,26,.05);
  overflow: hidden;
  transition: background .3s ease;
}
.diff-item-v2:hover { background: rgba(200,132,26,.02); }
.diff-item-v2 .diff-item-num {
  position: absolute;
  top: var(--space-2); right: var(--space-3);
  font-family: var(--font-display);
  font-size: 8rem; font-weight: 300; line-height: 1;
  color: rgba(200,132,26,.045);
  pointer-events: none; z-index: 0;
  letter-spacing: -0.04em;
  transition: color .4s ease;
  user-select: none;
}
.diff-item-v2:hover .diff-item-num { color: rgba(200,132,26,.085); }
.diff-item-v2 .diff-icon,
.diff-item-v2 .diff-title,
.diff-item-v2 .diff-text { position: relative; z-index: 1; }
.diff-item-v2 .diff-icon {
  width: 22px; height: 22px;
  color: var(--gold);
  margin-bottom: var(--space-3);
  opacity: .85;
}
.diff-item-v2 .diff-title {
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
  line-height: 1.25;
}
.diff-item-v2 .diff-text {
  font-size: var(--text-base);
  color: var(--gray);
  line-height: 1.75;
}
.diff-item-v2::after {
  content: '';
  position: absolute;
  left: var(--space-8); bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .4s var(--ease);
}
.diff-item-v2:hover::after { width: 3rem; }
@media (max-width: 768px) {
  .diff-grid-v2 { grid-template-columns: 1fr; }
  .diff-grid-v2::before { display: none; }
  .diff-item-v2 { padding: var(--space-6) var(--space-4); }
  .diff-item-v2 .diff-item-num { font-size: 5rem; }
}

/* ===== 34. FOOTER LINK HOVER ===== */
.footer-nav a {
  display: inline-block;
  padding-left: 0;
  transition: color .3s ease, padding-left .25s ease;
  position: relative;
}
.footer-nav a:hover { padding-left: 0.6rem; }
.footer-nav a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
  transition: width .25s ease;
}
.footer-nav a:hover::before { width: 0.4rem; }

/* ===== 35. PREFERS-REDUCED-MOTION FASE 3 ===== */
@media (prefers-reduced-motion: reduce) {
  .bim-layer-card { opacity: 1 !important; transform: none !important; transition: none !important; }
  .process-step-dot::after { animation: none !important; }
  .process-progress-line { transition: none !important; }
  .hero-arch-svg .draw-line,
  .hero-arch-svg .draw-rect { animation: none !important; stroke-dashoffset: 0 !important; }
}

/* ===== 36. MOBILE SHIELD OVERRIDES (PREMIUM) ===== */
@media (max-width: 768px) {
  .hero-content::before {
    display: none !important;
  }
  .hero-tech-indicator,
  .hero-coords,
  .section-signature,
  .process-progress-line,
  .process-step-dot {
    display: none !important;
  }
  .hero-title em::after {
    bottom: -1px;
  }
  .pillar-item::before {
    display: none;
  }
}

